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:
67  DTTPGParameters(DTTPGParameters const&) = delete;
69 
73 
76  int get(int wheelId, int stationId, int sectorId, int& nc, float& ph, DTTimeUnits::type unit) const;
78  int get(const DTChamberId& id, int& nc, float& ph, DTTimeUnits::type unit) const;
79  float totalTime(int wheelId, int stationId, int sectorId, DTTimeUnits::type unit) const;
80  float totalTime(const DTChamberId& id, DTTimeUnits::type unit) const;
81  int clock() const;
82  float unit() const;
83 
85  const std::string& version() const;
87 
89  void clear();
90 
91  int set(int wheelId, int stationId, int sectorId, int nc, float ph, DTTimeUnits::type unit);
92  int set(const DTChamberId& id, int nc, float ph, DTTimeUnits::type unit);
93  void setClock(int clock);
94  void setUnit(float unit);
95 
97  typedef std::vector<std::pair<DTTPGParametersId, DTTPGParametersData> >::const_iterator const_iterator;
98  const_iterator begin() const;
99  const_iterator end() const;
100 
101  void initialize();
102 
104 
105 private:
107  float nsPerCount;
109 
110  std::vector<std::pair<DTTPGParametersId, DTTPGParametersData> > dataList;
111 
113 
114  std::string mapName() const;
115 
117 };
118 #endif // DTTPGParameters_H
void clear()
reset content
void setUnit(float unit)
const_iterator end() const
std::vector< std::pair< DTTPGParametersId, DTTPGParametersData > >::const_iterator const_iterator
Access methods to data.
const_iterator begin() const
edm::ConstRespectingPtr< DTBufferTree< int, int > > dBuf
std::string mapName() const
float unit() const
void setClock(int clock)
std::vector< std::pair< DTTPGParametersId, DTTPGParametersData > > dataList
float totalTime(int wheelId, int stationId, int sectorId, DTTimeUnits::type unit) const
#define COND_TRANSIENT
Definition: Serializable.h:63
std::string dataVersion
const std::string & version() const
access version
#define COND_SERIALIZABLE
Definition: Serializable.h:39
DTTPGParameters & operator=(DTTPGParameters const &)