CMS 3D CMS Logo

EcalDCCHeaderBlock.h
Go to the documentation of this file.
1 #ifndef RAWECAL_ECALDCCHEADERBLOCK_H
2 #define RAWECAL_ECALDCCHEADERBLOCK_H
3 
10 #include <vector>
11 
12 #define MAX_TCC_SIZE 4
13 #define MAX_TT_SIZE 70
14 
16 public:
17  typedef int key_type;
18 
20 
21  // run types pre-global runs
22  COSMIC = 0,
23  BEAMH4 = 1,
24  BEAMH2 = 2,
25  MTCC = 3,
26  LASER_STD = 4,
34  LED_STD = 12,
35 
36  // physics triggers in global runs
40 
41  // gap events in global runs
42  LASER_GAP = 16,
45  LED_GAP = 19,
46 
47  // physics triggers in local runs
50  HALO_LOCAL = 22,
52 
53  };
54 
60  };
61 
63 
65  short LaserPower;
66  short LaserFilter;
67  short wavelength;
68  short delay;
69  short MEMVinj;
70  short mgpa_content;
71  short ped_offset;
72  };
73 
75  EcalDCCHeaderBlock(const int& dccId);
76 
77  // partitional and geometrical:
78  // CMS: 1-9 EE-, 10-45 EB, 46-54 EE+
79  // TB and COSM: 1 (10 in case of EcalRawToDigi)
80  const int& id() const { return dccId_; }
81 
82  // as found in raw data, namely
83  // CMS: 601-654 TB and COSM: 0-35
84  const int fedId() const { return fedId_; }
85 
86  void setId(const int& dccId) { dccId_ = dccId; };
87  void setFedId(const int& fedId) { fedId_ = fedId; };
88 
89  void setErrors(const int& dccErrors) { dccErrors_ = dccErrors; };
90  void setDccInTTCCommand(const int& dccInTTCCommand) { dccInTTCCommand_ = dccInTTCCommand; };
91  void setRunNumber(const int& run) { runNumber_ = run; }
92  void setLV1(const int& LV1) { LV1event_ = LV1; }
93  void setBX(const int& BX) { BX_ = BX; }
94  void setOrbit(const int& orbit) { orbitNumber_ = orbit; }
95  void setEventSettings(const EcalDCCEventSettings& EventSettings) { EventSettings_ = EventSettings; };
96  void setRunType(const short& runType) { runType_ = runType; };
97  void setZs(const short& zs) { zs_ = zs; };
99  //void setSequence(const short& sequence) { sequence_=sequence; } ;
100  void setRtHalf(const short& rtHalf) { rtHalf_ = rtHalf; };
101  void setMgpaGain(const short& mgpaGain) { mgpaGain_ = mgpaGain; };
102  void setMemGain(const short& memGain) { memGain_ = memGain; };
103  void setSelectiveReadout(const bool& selectiveReadout) { selectiveReadout_ = selectiveReadout; };
105  void setTestZeroSuppression(const bool& testZeroSuppression) { testZeroSuppression_ = testZeroSuppression; };
106  void setSrpStatus(const short& srpStatus) { srpStatus_ = srpStatus; };
107  void setTccStatus(const std::vector<short>& tccStatus) { tccStatus_ = tccStatus; };
108  void setTriggerTowerFlags(const std::vector<short>& triggerTowerFlag) { triggerTowerFlag_ = triggerTowerFlag; };
109  void setFEStatus(const std::vector<short>& feStatus) { feStatus_ = feStatus; };
110 
111  void setFEBx(const std::vector<short>& feBx) { feBx_ = feBx; }
112  void setTCCBx(const std::vector<short>& tccBx) { tccBx_ = tccBx; }
113  void setSRPBx(const short& srpBx) { srpBx_ = srpBx; }
114 
115  void setFELv1(const std::vector<short>& feLv1) { feLv1_ = feLv1; }
116  void setTCCLv1(const std::vector<short>& tccLv1) { tccLv1_ = tccLv1; }
117  void setSRPLv1(const short& srpLv1) { srpLv1_ = srpLv1; }
118 
119  //TODO add all the get methods
120 
121  int getDCCErrors() const { return dccErrors_; }
122  int getDccInTCCCommand() const { return dccInTTCCommand_; };
123  int getRunNumber() const { return runNumber_; }
124  int getLV1() const { return LV1event_; }
125  int getBX() const { return BX_; }
126  int getOrbit() const { return orbitNumber_; }
128  short getRunType() const { return runType_; }
129  short getZs() const { return zs_; }
130  short getBasicTriggerType() const { return basic_trigger_type_; }
131 
132  short getRtHalf() const { return rtHalf_; }
133  short getMgpaGain() const { return mgpaGain_; }
134  short getMemGain() const { return memGain_; }
135  short getSelectiveReadout() const { return selectiveReadout_; }
136  bool getZeroSuppression() const { return zeroSuppression_; }
138  short getSrpStatus() const { return srpStatus_; }
139  const std::vector<short>& getTccStatus() const { return tccStatus_; }
140  const std::vector<short>& getTriggerTowerFlag() const { return triggerTowerFlag_; }
141  const std::vector<short>& getFEStatus() const { return feStatus_; }
142 
143  const std::vector<short>& getFEBxs() const { return feBx_; }
144  const std::vector<short>& getTCCBx() const { return tccBx_; }
145  short getSRPBx() const { return srpBx_; }
146 
147  const std::vector<short>& getFELv1() const { return feLv1_; }
148  const std::vector<short>& getTCCLv1() const { return tccLv1_; }
149  short getSRPLv1() const { return srpLv1_; }
150 
151 private:
152  int dccId_; //to be used as the Key
153  int fedId_;
157  short runType_;
158  short zs_;
159 
161 
164  int BX_;
166 
167  short rtHalf_;
168  short mgpaGain_;
169  short memGain_;
173 
174  short srpStatus_;
175  std::vector<short> tccStatus_;
176  std::vector<short> triggerTowerFlag_;
177  std::vector<short> feStatus_;
178 
179  std::vector<short> feBx_;
180  std::vector<short> tccBx_;
181  short srpBx_;
182 
183  std::vector<short> feLv1_;
184  std::vector<short> tccLv1_;
185  short srpLv1_;
186 };
187 
188 #endif
EcalDCCHeaderBlock::setRtHalf
void setRtHalf(const short &rtHalf)
Definition: EcalDCCHeaderBlock.h:100
EcalDCCHeaderBlock::fedId
const int fedId() const
Definition: EcalDCCHeaderBlock.h:84
EcalDCCHeaderBlock::getSelectiveReadout
short getSelectiveReadout() const
Definition: EcalDCCHeaderBlock.h:135
EcalDCCHeaderBlock::COSMICS_LOCAL
Definition: EcalDCCHeaderBlock.h:49
EcalDCCHeaderBlock::getTCCLv1
const std::vector< short > & getTCCLv1() const
Definition: EcalDCCHeaderBlock.h:148
EcalDCCHeaderBlock::setTCCBx
void setTCCBx(const std::vector< short > &tccBx)
Definition: EcalDCCHeaderBlock.h:112
EcalDCCHeaderBlock::CALIB_LOCAL
Definition: EcalDCCHeaderBlock.h:51
EcalDCCHeaderBlock::getDccInTCCCommand
int getDccInTCCCommand() const
Definition: EcalDCCHeaderBlock.h:122
EcalDCCHeaderBlock::setMemGain
void setMemGain(const short &memGain)
Definition: EcalDCCHeaderBlock.h:102
EcalDCCHeaderBlock::BEAMH2
Definition: EcalDCCHeaderBlock.h:24
EcalDCCHeaderBlock::basic_trigger_type_
short basic_trigger_type_
Definition: EcalDCCHeaderBlock.h:160
EcalDCCHeaderBlock::setSRPBx
void setSRPBx(const short &srpBx)
Definition: EcalDCCHeaderBlock.h:113
EcalDCCHeaderBlock::LV1event_
int LV1event_
Definition: EcalDCCHeaderBlock.h:162
EcalDCCHeaderBlock::getFEStatus
const std::vector< short > & getFEStatus() const
Definition: EcalDCCHeaderBlock.h:141
EcalDCCHeaderBlock::setBX
void setBX(const int &BX)
Definition: EcalDCCHeaderBlock.h:93
EcalDCCHeaderBlock::TTC_TESTPULSE
Definition: EcalDCCHeaderBlock.h:62
EcalDCCHeaderBlock::setRunNumber
void setRunNumber(const int &run)
Definition: EcalDCCHeaderBlock.h:91
EcalDCCHeaderBlock::triggerTowerFlag_
std::vector< short > triggerTowerFlag_
Definition: EcalDCCHeaderBlock.h:176
EcalDCCHeaderBlock::orbitNumber_
int orbitNumber_
Definition: EcalDCCHeaderBlock.h:156
EcalDCCHeaderBlock::setEventSettings
void setEventSettings(const EcalDCCEventSettings &EventSettings)
Definition: EcalDCCHeaderBlock.h:95
EcalDCCHeaderBlock::setFEStatus
void setFEStatus(const std::vector< short > &feStatus)
Definition: EcalDCCHeaderBlock.h:109
EcalDCCHeaderBlock::getEventSettings
EcalDCCEventSettings getEventSettings() const
Definition: EcalDCCHeaderBlock.h:127
EcalDCCHeaderBlock::rtHalf_
short rtHalf_
Definition: EcalDCCHeaderBlock.h:167
EcalDCCHeaderBlock::getRunType
short getRunType() const
Definition: EcalDCCHeaderBlock.h:128
EcalDCCHeaderBlock::EcalBasicTriggerType
EcalBasicTriggerType
Definition: EcalDCCHeaderBlock.h:55
EcalDCCHeaderBlock::EcalDCCEventSettings::LaserPower
short LaserPower
Definition: EcalDCCHeaderBlock.h:65
EcalDCCHeaderBlock::setZeroSuppression
void setZeroSuppression(const bool &zeroSuppression)
Definition: EcalDCCHeaderBlock.h:104
EcalDCCHeaderBlock::feLv1_
std::vector< short > feLv1_
Definition: EcalDCCHeaderBlock.h:183
EcalDCCHeaderBlock::TESTPULSE_SCAN_MEM
Definition: EcalDCCHeaderBlock.h:29
EcalDCCHeaderBlock::srpStatus_
short srpStatus_
Definition: EcalDCCHeaderBlock.h:174
EcalDCCHeaderBlock::getSRPBx
short getSRPBx() const
Definition: EcalDCCHeaderBlock.h:145
EcalDCCHeaderBlock::getTestZeroSuppression
bool getTestZeroSuppression() const
Definition: EcalDCCHeaderBlock.h:137
EcalDCCHeaderBlock::EcalDCCEventSettings::mgpa_content
short mgpa_content
Definition: EcalDCCHeaderBlock.h:70
EcalDCCHeaderBlock::getOrbit
int getOrbit() const
Definition: EcalDCCHeaderBlock.h:126
EcalDCCHeaderBlock::setSRPLv1
void setSRPLv1(const short &srpLv1)
Definition: EcalDCCHeaderBlock.h:117
EcalDCCHeaderBlock::setMgpaGain
void setMgpaGain(const short &mgpaGain)
Definition: EcalDCCHeaderBlock.h:101
EcalDCCHeaderBlock::LED_GAP
Definition: EcalDCCHeaderBlock.h:45
EcalDCCHeaderBlock::TESTPULSE_GAP
Definition: EcalDCCHeaderBlock.h:43
csctfpacker_cfi.zeroSuppression
zeroSuppression
Definition: csctfpacker_cfi.py:6
EcalDCCHeaderBlock::LASER_GAP
Definition: EcalDCCHeaderBlock.h:42
EcalDCCHeaderBlock::setBasicTriggerType
void setBasicTriggerType(const short &triggerType)
Definition: EcalDCCHeaderBlock.h:98
EcalDCCHeaderBlock::memGain_
short memGain_
Definition: EcalDCCHeaderBlock.h:169
EcalDCCHeaderBlock::PHYSICS_GLOBAL
Definition: EcalDCCHeaderBlock.h:37
EcalDCCHeaderBlock::setLV1
void setLV1(const int &LV1)
Definition: EcalDCCHeaderBlock.h:92
EcalDCCHeaderBlock::setOrbit
void setOrbit(const int &orbit)
Definition: EcalDCCHeaderBlock.h:94
EcalDCCHeaderBlock::LASER_STD
Definition: EcalDCCHeaderBlock.h:26
EcalDCCHeaderBlock::TTC_LED
Definition: EcalDCCHeaderBlock.h:62
EcalDCCHeaderBlock::setTccStatus
void setTccStatus(const std::vector< short > &tccStatus)
Definition: EcalDCCHeaderBlock.h:107
EcalDCCHeaderBlock::runType_
short runType_
Definition: EcalDCCHeaderBlock.h:157
EcalDCCHeaderBlock::CALIBRATION_TRIGGER
Definition: EcalDCCHeaderBlock.h:57
EcalDCCHeaderBlock::TTC_DTT_TYPE
TTC_DTT_TYPE
Definition: EcalDCCHeaderBlock.h:62
EcalDCCHeaderBlock::PEDESTAL_GAP
Definition: EcalDCCHeaderBlock.h:44
EcalDCCHeaderBlock::getZeroSuppression
bool getZeroSuppression() const
Definition: EcalDCCHeaderBlock.h:136
EcalDCCHeaderBlock::BX_
int BX_
Definition: EcalDCCHeaderBlock.h:164
EcalDCCHeaderBlock::runNumber_
int runNumber_
Definition: EcalDCCHeaderBlock.h:163
EcalDCCHeaderBlock::mgpaGain_
short mgpaGain_
Definition: EcalDCCHeaderBlock.h:168
EcalDCCHeaderBlock::zeroSuppression_
bool zeroSuppression_
Definition: EcalDCCHeaderBlock.h:172
EcalDCCHeaderBlock::TESTPULSE_MGPA
Definition: EcalDCCHeaderBlock.h:30
EcalDCCHeaderBlock::LASER_POWER_SCAN
Definition: EcalDCCHeaderBlock.h:27
EcalDCCHeaderBlock::EcalDCCEventSettings
Definition: EcalDCCHeaderBlock.h:64
EcalDCCHeaderBlock::getRtHalf
short getRtHalf() const
Definition: EcalDCCHeaderBlock.h:132
EcalDCCHeaderBlock::EcalDCCHeaderBlock
EcalDCCHeaderBlock()
Definition: EcalDCCHeaderBlock.cc:3
EcalDCCHeaderBlock::setRunType
void setRunType(const short &runType)
Definition: EcalDCCHeaderBlock.h:96
EcalDCCHeaderBlock::selectiveReadout_
bool selectiveReadout_
Definition: EcalDCCHeaderBlock.h:170
EcalDCCHeaderBlock::dccErrors_
int dccErrors_
Definition: EcalDCCHeaderBlock.h:154
EcalDCCHeaderBlock::EcalDCCEventSettings::delay
short delay
Definition: EcalDCCHeaderBlock.h:68
EcalDCCHeaderBlock::setSelectiveReadout
void setSelectiveReadout(const bool &selectiveReadout)
Definition: EcalDCCHeaderBlock.h:103
EcalDCCHeaderBlock::TEST_TRIGGER
Definition: EcalDCCHeaderBlock.h:58
EcalDCCHeaderBlock::PHYSICS_LOCAL
Definition: EcalDCCHeaderBlock.h:48
EcalDCCHeaderBlock::tccBx_
std::vector< short > tccBx_
Definition: EcalDCCHeaderBlock.h:180
EcalDCCHeaderBlock::PEDESTAL_25NS_SCAN
Definition: EcalDCCHeaderBlock.h:33
EcalDCCHeaderBlock::PHYSICS_TRIGGER
Definition: EcalDCCHeaderBlock.h:56
EcalDCCHeaderBlock::HALO_LOCAL
Definition: EcalDCCHeaderBlock.h:50
EcalDCCHeaderBlock::BEAMH4
Definition: EcalDCCHeaderBlock.h:23
EcalDCCHeaderBlock::setFedId
void setFedId(const int &fedId)
Definition: EcalDCCHeaderBlock.h:87
EcalDCCHeaderBlock::PEDESTAL_STD
Definition: EcalDCCHeaderBlock.h:31
EcalDCCHeaderBlock::TTC_PEDESTAL
Definition: EcalDCCHeaderBlock.h:62
HLT_FULL_cff.triggerType
triggerType
Definition: HLT_FULL_cff.py:8756
EcalDCCHeaderBlock::id
const int & id() const
Definition: EcalDCCHeaderBlock.h:80
EcalDCCHeaderBlock::EcalDCCEventSettings::LaserFilter
short LaserFilter
Definition: EcalDCCHeaderBlock.h:66
EcalDCCHeaderBlock::dccInTTCCommand_
int dccInTTCCommand_
Definition: EcalDCCHeaderBlock.h:155
EcalDCCHeaderBlock::getRunNumber
int getRunNumber() const
Definition: EcalDCCHeaderBlock.h:123
EcalDCCHeaderBlock::getMgpaGain
short getMgpaGain() const
Definition: EcalDCCHeaderBlock.h:133
EcalDCCHeaderBlock
Definition: EcalDCCHeaderBlock.h:15
EcalDCCHeaderBlock::setTestZeroSuppression
void setTestZeroSuppression(const bool &testZeroSuppression)
Definition: EcalDCCHeaderBlock.h:105
EcalDCCHeaderBlock::setId
void setId(const int &dccId)
Definition: EcalDCCHeaderBlock.h:86
EcalDCCHeaderBlock::TECHNICAL_EXTERNAL_TRIGGER
Definition: EcalDCCHeaderBlock.h:59
ecaldqm::dccId
unsigned dccId(DetId const &, EcalElectronicsMapping const *)
Definition: EcalDQMCommonUtils.cc:16
EcalDCCHeaderBlock::dccId_
int dccId_
Definition: EcalDCCHeaderBlock.h:152
EcalDCCHeaderBlock::getTriggerTowerFlag
const std::vector< short > & getTriggerTowerFlag() const
Definition: EcalDCCHeaderBlock.h:140
EcalDCCHeaderBlock::tccLv1_
std::vector< short > tccLv1_
Definition: EcalDCCHeaderBlock.h:184
EcalDCCHeaderBlock::EcalDCCEventSettings::ped_offset
short ped_offset
Definition: EcalDCCHeaderBlock.h:71
EcalDCCHeaderBlock::COSMICS_GLOBAL
Definition: EcalDCCHeaderBlock.h:38
EcalDCCHeaderBlock::setTCCLv1
void setTCCLv1(const std::vector< short > &tccLv1)
Definition: EcalDCCHeaderBlock.h:116
EcalDCCHeaderBlock::fedId_
int fedId_
Definition: EcalDCCHeaderBlock.h:153
EcalDCCHeaderBlock::key_type
int key_type
For the sorted collection.
Definition: EcalDCCHeaderBlock.h:17
writedatasetfile.run
run
Definition: writedatasetfile.py:27
EcalDCCHeaderBlock::getMemGain
short getMemGain() const
Definition: EcalDCCHeaderBlock.h:134
EcalDCCHeaderBlock::getSrpStatus
short getSrpStatus() const
Definition: EcalDCCHeaderBlock.h:138
EcalDCCHeaderBlock::feStatus_
std::vector< short > feStatus_
Definition: EcalDCCHeaderBlock.h:177
EcalDCCHeaderBlock::setZs
void setZs(const short &zs)
Definition: EcalDCCHeaderBlock.h:97
EcalDCCHeaderBlock::EcalDCCEventSettings::wavelength
short wavelength
Definition: EcalDCCHeaderBlock.h:67
EcalDCCHeaderBlock::getSRPLv1
short getSRPLv1() const
Definition: EcalDCCHeaderBlock.h:149
EcalDCCHeaderBlock::EcalDCCRuntype
EcalDCCRuntype
Definition: EcalDCCHeaderBlock.h:19
EcalDCCHeaderBlock::testZeroSuppression_
bool testZeroSuppression_
Definition: EcalDCCHeaderBlock.h:171
EcalDCCHeaderBlock::getBX
int getBX() const
Definition: EcalDCCHeaderBlock.h:125
EcalDCCHeaderBlock::PEDESTAL_OFFSET_SCAN
Definition: EcalDCCHeaderBlock.h:32
EcalDCCHeaderBlock::getFELv1
const std::vector< short > & getFELv1() const
Definition: EcalDCCHeaderBlock.h:147
EcalDCCHeaderBlock::MTCC
Definition: EcalDCCHeaderBlock.h:25
EcalDCCHeaderBlock::LASER_DELAY_SCAN
Definition: EcalDCCHeaderBlock.h:28
L1TStage2uGTEmulatorClient_cff.BX
BX
Definition: L1TStage2uGTEmulatorClient_cff.py:9
EcalDCCHeaderBlock::COSMIC
Definition: EcalDCCHeaderBlock.h:22
EcalDCCHeaderBlock::HALO_GLOBAL
Definition: EcalDCCHeaderBlock.h:39
EcalDCCHeaderBlock::EcalDCCEventSettings::MEMVinj
short MEMVinj
Definition: EcalDCCHeaderBlock.h:69
EcalDCCHeaderBlock::setFEBx
void setFEBx(const std::vector< short > &feBx)
Definition: EcalDCCHeaderBlock.h:111
EcalDCCHeaderBlock::getBasicTriggerType
short getBasicTriggerType() const
Definition: EcalDCCHeaderBlock.h:130
EcalDCCHeaderBlock::srpBx_
short srpBx_
Definition: EcalDCCHeaderBlock.h:181
EcalDCCHeaderBlock::tccStatus_
std::vector< short > tccStatus_
Definition: EcalDCCHeaderBlock.h:175
EcalDCCHeaderBlock::getDCCErrors
int getDCCErrors() const
Definition: EcalDCCHeaderBlock.h:121
EcalDCCHeaderBlock::srpLv1_
short srpLv1_
Definition: EcalDCCHeaderBlock.h:185
EcalDCCHeaderBlock::getTccStatus
const std::vector< short > & getTccStatus() const
Definition: EcalDCCHeaderBlock.h:139
EcalDCCHeaderBlock::setErrors
void setErrors(const int &dccErrors)
Definition: EcalDCCHeaderBlock.h:89
EcalDCCHeaderBlock::setSrpStatus
void setSrpStatus(const short &srpStatus)
Definition: EcalDCCHeaderBlock.h:106
EcalDCCHeaderBlock::LED_STD
Definition: EcalDCCHeaderBlock.h:34
EcalDCCHeaderBlock::setDccInTTCCommand
void setDccInTTCCommand(const int &dccInTTCCommand)
Definition: EcalDCCHeaderBlock.h:90
EcalDCCHeaderBlock::EventSettings_
EcalDCCEventSettings EventSettings_
Definition: EcalDCCHeaderBlock.h:165
EcalDCCHeaderBlock::getZs
short getZs() const
Definition: EcalDCCHeaderBlock.h:129
EcalDCCHeaderBlock::getLV1
int getLV1() const
Definition: EcalDCCHeaderBlock.h:124
EcalCondDBWriter_cfi.runType
runType
Definition: EcalCondDBWriter_cfi.py:64
EcalDCCHeaderBlock::TTC_LASER
Definition: EcalDCCHeaderBlock.h:62
EcalDCCHeaderBlock::setFELv1
void setFELv1(const std::vector< short > &feLv1)
Definition: EcalDCCHeaderBlock.h:115
EcalDCCHeaderBlock::zs_
short zs_
Definition: EcalDCCHeaderBlock.h:158
ecaldqm::rtHalf
unsigned rtHalf(DetId const &, EcalElectronicsMapping const *)
Definition: EcalDQMCommonUtils.cc:119
EcalDCCHeaderBlock::setTriggerTowerFlags
void setTriggerTowerFlags(const std::vector< short > &triggerTowerFlag)
Definition: EcalDCCHeaderBlock.h:108
EcalDCCHeaderBlock::getTCCBx
const std::vector< short > & getTCCBx() const
Definition: EcalDCCHeaderBlock.h:144
EcalDCCHeaderBlock::getFEBxs
const std::vector< short > & getFEBxs() const
Definition: EcalDCCHeaderBlock.h:143
EcalDCCHeaderBlock::feBx_
std::vector< short > feBx_
Definition: EcalDCCHeaderBlock.h:179