StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StTofCalibration.h
1 /*******************************************************************
2  *
3  * $Id: StTofCalibration.h,v 1.2 2002/01/22 07:12:52 geurts Exp $
4  *
5  * Author: Frank Geurts
6  *****************************************************************
7  *
8  * Description: Calibration class for TOFp
9  *
10  *****************************************************************
11  *
12  * $Log: StTofCalibration.h,v $
13  * Revision 1.2 2002/01/22 07:12:52 geurts
14  * TOFP_MAX_SLATS changed from 6000 to 41
15  *
16  * Revision 1.1 2001/09/28 19:09:40 llope
17  * first version
18  *
19  *******************************************************************/
20 #ifndef STTOFCALIBRATION_H
21 #define STTOFCALIBRATION_H
22 #include <vector>
23 #ifndef ST_NO_NAMESPACES
24 using std::vector;
25 #endif
26 
27 #define TOFP_MAX_SLATS 41
28 
30  float offset_tdc;
31  float cc_tdc;
32  float ods_tdc;
33  float offset_adc;
34  float cc_adc;
35  float ods_adc;
36 };
37 
38 #ifndef ST_NO_TEMPLATE_DEF_ARGS
39 typedef vector<StructSlatCalib> slatCalibVector;
40 #else
41 typedef vector<StructSlatCalib, allocator<StructSlatCalib> > slatCalibVector;
42 #endif
43 typedef slatCalibVector::iterator slatCalibIter;
44 
45 
47  private:
48  slatCalibVector mSlatCalibVec;
49  public:
52  void init();
53  void print(ostream& os = cout);
54  int numberOfEntries() const;
55  StructSlatCalib slat(int) const;
56 };
57 
58 inline StructSlatCalib StTofCalibration::slat(int index) const {return mSlatCalibVec[index];}
59 inline int StTofCalibration::numberOfEntries() const {return mSlatCalibVec.size();}
60 #endif
void print(ostream &os=cout)
dump contents of calibration vector to stdout
Time-of-Flight Calibration Utilities.
void init()
initializes calibration from XDF or dBase (not functioning yet)
~StTofCalibration()
default empty destructor
StTofCalibration()
default constructor, initializes default calibration values