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 
12 //----------------------
13 // Base Class Headers --
14 //----------------------
15 
16 
17 //------------------------------------
18 // Collaborating Class Declarations --
19 //------------------------------------
21 
25 
26 //---------------
27 // C++ Headers --
28 //---------------
29 #include <string>
30 #include <vector>
31 #include <utility>
32 
33 template <class Key, class Content> class DTBufferTree;
34 
35 // ---------------------
36 // -- Class Interface --
37 // ---------------------
38 
40 
41  public:
42 
45 
46  int wheelId;
47  int stationId;
48  int sectorId;
49 
50 
52 };
53 
54 
56 
57  public:
58 
61 
62  int nClock;
63  float tPhase;
64 
65 
67 };
68 
69 
71 
72  public:
73 
78 
82 
85  int get( int wheelId,
87  int stationId,
88  int sectorId,
89  int& nc,
90  float& ph,
91  DTTimeUnits::type unit ) const;
92  int get( const DTChamberId& id,
93  int& nc,
94  float& ph,
95  DTTimeUnits::type unit ) const;
96  float totalTime( int wheelId,
97  int stationId,
98  int sectorId,
99  DTTimeUnits::type unit ) const;
100  float totalTime( const DTChamberId& id,
101  DTTimeUnits::type unit ) const;
102  int clock() const;
103  float unit() const;
104 
106  const
107  std::string& version() const;
108  std::string& version();
109 
111  void clear();
112 
113  int set( int wheelId,
114  int stationId,
115  int sectorId,
116  int nc,
117  float ph,
118  DTTimeUnits::type unit );
119  int set( const DTChamberId& id,
120  int nc,
121  float ph,
122  DTTimeUnits::type unit );
123  void setClock( int clock );
124  void setUnit( float unit );
125 
127  typedef std::vector< std::pair<DTTPGParametersId,
130  const_iterator begin() const;
131  const_iterator end() const;
132 
133  void initialize();
134 
136 
137  private:
138 
140 
142  float nsPerCount;
144 
145  std::vector< std::pair<DTTPGParametersId,DTTPGParametersData> > dataList;
146 
148 
149  std::string mapName() const;
150 
151 
153 };
154 #endif // DTTPGParameters_H
std::vector< std::pair< DTTPGParametersId, DTTPGParametersData > >::const_iterator const_iterator
Access methods to data.
void clear()
reset content
void setUnit(float unit)
edm::ConstRespectingPtr< DTBufferTree< int, int > > dBuf
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
float totalTime(int wheelId, int stationId, int sectorId, DTTimeUnits::type unit) const
#define COND_TRANSIENT
Definition: Serializable.h:53
std::string dataVersion
#define COND_SERIALIZABLE
Definition: Serializable.h:30
DTTPGParameters & operator=(DTTPGParameters const &)
std::string mapName() const
float unit() const
std::vector< std::pair< DTTPGParametersId, DTTPGParametersData > > dataList