Jpp  18.0.0-rc.2
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JDetectors.hh
Go to the documentation of this file.
1 #ifndef __JDB_JDETECTORS__
2 #define __JDB_JDETECTORS__
3 
4 #include <TROOT.h>
5 #include <TObject.h>
6 
7 #include <string>
8 
9 #include "JDB/JDBString.hh"
10 #include "JDB/JSonSupportkit.hh"
11 
12 /**
13  * \author mdejong
14  */
15 namespace JDATABASE {}
16 namespace JPP { using namespace JDATABASE; }
17 
18 namespace JDATABASE {
19 
20  struct JDetectors :
21  public TObject
22  {
23  static const char* const getName() { return "detectors"; } //!< Table name
24 
29 
30  ClassDef(JDetectors, 1);
31  };
32 
33  namespace APIV2 {
34 
35  struct JDetector :
36  public JSonHelper<JDetector>,
37  public TObject
38  {
39  static const char* const getName() { return "Detector"; } //!< Table name
40 
41  JDetector() {}
42 
43  /**
44  * Copy constructor.
45  *
46  * \param detector detector
47  */
49  DetOID (detector.OID),
50  DetId (detector.SERIALNUMBER),
51  Location (detector.LOCATIONID),
52  City (detector.CITY)
53  {}
54 
55  /**
56  * Type conversion operator.
57  *
58  * \return detector
59  */
60  operator JDetectors() const
61  {
63 
64  detector.OID = this->DetOID;
65  detector.SERIALNUMBER = this->DetId;
66  detector.LOCATIONID = this->Location;
67  detector.CITY = this->City;
68 
69  return detector;
70  }
71 
73  int DetId;
76 
77  ClassDef(JDetector, 1);
78  };
79  }
80 }
81 
82 #endif
set_variable LOCATIONID(getLocationID-L ${LOGIN}) if(($
Definition: JEditTuneHV.sh:80
Wrapper class to read string until end-of-line.
Definition: JDBString.hh:19
Definition: JRoot.hh:19
ClassDef(JDetectors, 1)
std::string LOCATIONID
Definition: JDetectors.hh:27
Auxiliary base class for JSon I/O based on ROOT dictionary.
JDetector(const JDetectors &detector)
Copy constructor.
Definition: JDetectors.hh:48
then awk string
static const char *const getName()
Table name.
Definition: JDetectors.hh:39
do set_variable DETECTOR_TXT $WORKDIR detector
static const char *const getName()
Table name.
Definition: JDetectors.hh:23