"MarlinReco"  1.32.0
Calibration.h
1 #ifndef Calibration_h
2 #define Calibration_h 1
3 
4 //C++
5 #include "iostream"
6 #include "string"
7 
8 //LCIO
9 #include "lcio.h"
10 #include "UTIL/LCFixedObject.h"
11 
12 
13 #define CalibrationNINTVals 4 // N event and N hits in it
14 #define CalibrationNFLOATVals 0
15 #define CalibrationNDOUBLEVals 4 // Energies
16 
17 class Calibration : public UTIL::LCFixedObject<CalibrationNINTVals,
18  CalibrationNFLOATVals,CalibrationNDOUBLEVals> {
19 
20 public:
21 
24  Calibration(int nevt, int n1, int n2, int n3,
25  double en1, double en2,double en3, double enr );
26 
29  Calibration(EVENT::LCObject* obj) : UTIL::LCFixedObject<CalibrationNINTVals,
30  CalibrationNFLOATVals,
31  CalibrationNDOUBLEVals>(obj) { }
32 
34  virtual ~Calibration(){};
35 
36  // the class interface:
37  int getNEvt();
38  int getNhit1();
39  int getNhit2();
40  int getNhit3();
41  double getEnr1();
42  double getEnr2();
43  double getEnr3();
44  double getEnr4();
45 
46  // -------- need to implement abstract methods from LCGenericObject
47  const std::string getTypeName() const {
48  return std::string("Calibration");
49  }
50  const std::string getDataDescription() const {
51  return std::string("i:Nevent,Nhits[3],d:Energies[4]");
52  }
53 
54 }; // class
55 
56 
57 #endif
virtual ~Calibration()
Important for memory handling.
Definition: Calibration.h:34
Calibration(EVENT::LCObject *obj)
&#39;Copy constructor&#39; needed to interpret LCCollection read from file/database.
Definition: Calibration.h:29
Definition: Calibration.h:17
Calibration(int nevt, int n1, int n2, int n3, double en1, double en2, double en3, double enr)
Convenient constructor.