CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTTPGParameters.h
Go to the documentation of this file.
1 #ifndef DTTPGParameters_H
2 #define DTTPGParameters_H
3 
14 //----------------------
15 // Base Class Headers --
16 //----------------------
17 
18 
19 //------------------------------------
20 // Collaborating Class Declarations --
21 //------------------------------------
25 
26 //---------------
27 // C++ Headers --
28 //---------------
29 #include <string>
30 #include <vector>
31 
32 // ---------------------
33 // -- Class Interface --
34 // ---------------------
35 
37 
38  public:
39 
42 
43  int wheelId;
44  int stationId;
45  int sectorId;
46 
47 };
48 
49 
51 
52  public:
53 
56 
57  int nClock;
58  float tPhase;
59 
60 };
61 
62 
64 
65  public:
66 
71 
75 
78  int get( int wheelId,
80  int stationId,
81  int sectorId,
82  int& nc,
83  float& ph,
84  DTTimeUnits::type unit ) const;
85  int get( const DTChamberId& id,
86  int& nc,
87  float& ph,
88  DTTimeUnits::type unit ) const;
89  float totalTime( int wheelId,
90  int stationId,
91  int sectorId,
92  DTTimeUnits::type unit ) const;
93  float totalTime( const DTChamberId& id,
94  DTTimeUnits::type unit ) const;
95  int clock() const;
96  float unit() const;
97 
99  const
100  std::string& version() const;
101  std::string& version();
102 
104  void clear();
105 
106  int set( int wheelId,
107  int stationId,
108  int sectorId,
109  int nc,
110  float ph,
111  DTTimeUnits::type unit );
112  int set( const DTChamberId& id,
113  int nc,
114  float ph,
115  DTTimeUnits::type unit );
116  void setClock( int clock );
117  void setUnit( float unit );
118 
120  typedef std::vector< std::pair<DTTPGParametersId,
123  const_iterator begin() const;
124  const_iterator end() const;
125 
126  private:
127 
129  float nsPerCount;
131 
132  std::vector< std::pair<DTTPGParametersId,DTTPGParametersData> > dataList;
133 
135 
137  void cacheMap() const;
138  std::string mapName() const;
139 
140 };
141 
142 
143 #endif // DTTPGParameters_H
144 
std::vector< std::pair< DTTPGParametersId, DTTPGParametersData > >::const_iterator const_iterator
Access methods to data.
void clear()
reset content
void setUnit(float unit)
int clock() const
const std::string & version() const
access version
const_iterator begin() const
int set(int wheelId, int stationId, int sectorId, int nc, float ph, DTTimeUnits::type unit)
void setClock(int clock)
const_iterator end() const
DTBufferTree< int, int > * dBuf
float totalTime(int wheelId, int stationId, int sectorId, DTTimeUnits::type unit) const
std::string dataVersion
std::string mapName() const
float unit() const
std::vector< std::pair< DTTPGParametersId, DTTPGParametersData > > dataList
void cacheMap() const
read and store full content