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 // Collaborating Class Declarations --
18 //------------------------------------
20 
24 
25 //---------------
26 // C++ Headers --
27 //---------------
28 #include <string>
29 #include <vector>
30 #include <utility>
31 
32 template <class Key, class Content>
33 class DTBufferTree;
34 
35 // ---------------------
36 // -- Class Interface --
37 // ---------------------
38 
40 public:
43 
44  int wheelId;
45  int stationId;
46  int sectorId;
47 
49 };
50 
52 public:
55 
56  int nClock;
57  float tPhase;
58 
60 };
61 
63 public:
68 
71  ~DTTPGParameters();
72 
75  int get(int wheelId, int stationId, int sectorId, int& nc, float& ph, DTTimeUnits::type unit) const;
77  int get(const DTChamberId& id, int& nc, float& ph, DTTimeUnits::type unit) const;
78  float totalTime(int wheelId, int stationId, int sectorId, DTTimeUnits::type unit) const;
79  float totalTime(const DTChamberId& id, DTTimeUnits::type unit) const;
80  int clock() const;
81  float unit() const;
82 
84  const std::string& version() const;
86 
88  void clear();
89 
90  int set(int wheelId, int stationId, int sectorId, int nc, float ph, DTTimeUnits::type unit);
91  int set(const DTChamberId& id, int nc, float ph, DTTimeUnits::type unit);
92  void setClock(int clock);
93  void setUnit(float unit);
94 
96  typedef std::vector<std::pair<DTTPGParametersId, DTTPGParametersData> >::const_iterator const_iterator;
97  const_iterator begin() const;
98  const_iterator end() const;
99 
100  void initialize();
101 
102  DTTPGParameters& operator=(DTTPGParameters const&);
103 
104 private:
105  DTTPGParameters(DTTPGParameters const&) = delete;
106 
108  float nsPerCount;
110 
111  std::vector<std::pair<DTTPGParametersId, DTTPGParametersData> > dataList;
112 
114 
115  std::string mapName() const;
116 
118 };
119 #endif // DTTPGParameters_H
static AlgebraicMatrix initialize()
std::vector< std::pair< DTTPGParametersId, DTTPGParametersData > >::const_iterator const_iterator
Access methods to data.
void clear(CLHEP::HepGenMatrix &m)
Helper function: Reset all elements of a matrix to 0.
Definition: matutil.cc:151
std::vector< std::pair< DTTPGParametersId, DTTPGParametersData > > dataList
#define end
Definition: vmac.h:39
#define COND_TRANSIENT
Definition: Serializable.h:62
std::string dataVersion
#define COND_SERIALIZABLE
Definition: Serializable.h:38
#define begin
Definition: vmac.h:32
Basic3DVector unit() const