CMS 3D CMS Logo

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 
81  ~DTTPGParameters();
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,
119  int set( const DTChamberId& id,
120  int nc,
121  float ph,
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 
135  DTTPGParameters& operator=(DTTPGParameters const&);
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.
static AlgebraicMatrix initialize()
void clear(CLHEP::HepGenMatrix &m)
Helper function: Reset all elements of a matrix to 0.
Definition: matutil.cc:167
#define end
Definition: vmac.h:37
#define COND_TRANSIENT
Definition: Serializable.h:61
std::string dataVersion
#define COND_SERIALIZABLE
Definition: Serializable.h:38
#define begin
Definition: vmac.h:30
std::vector< std::pair< DTTPGParametersId, DTTPGParametersData > > dataList