#include <DataFormats/EcalRawData/interface/EcalDCCHeaderBlock.h>
Definition at line 20 of file EcalDCCHeaderBlock.h.
typedef int EcalDCCHeaderBlock::key_type |
Definition at line 63 of file EcalDCCHeaderBlock.h.
00063 { 00064 PHYSICS_TRIGGER =1, 00065 CALIBRATION_TRIGGER =2, 00066 TEST_TRIGGER =3, 00067 TECHNICAL_EXTERNAL_TRIGGER =4 00068 };
Definition at line 27 of file EcalDCCHeaderBlock.h.
00027 { 00028 00029 // run types pre-global runs 00030 COSMIC =0, 00031 BEAMH4 =1, 00032 BEAMH2 =2, 00033 MTCC =3, 00034 LASER_STD =4, 00035 LASER_POWER_SCAN =5, 00036 LASER_DELAY_SCAN =6, 00037 TESTPULSE_SCAN_MEM =7, 00038 TESTPULSE_MGPA =8, 00039 PEDESTAL_STD =9, 00040 PEDESTAL_OFFSET_SCAN =10, 00041 PEDESTAL_25NS_SCAN =11, 00042 LED_STD =12, 00043 00044 // physics triggers in global runs 00045 PHYSICS_GLOBAL =13, 00046 COSMICS_GLOBAL =14, 00047 HALO_GLOBAL =15, 00048 00049 // gap events in global runs 00050 LASER_GAP =16, 00051 TESTPULSE_GAP =17, 00052 PEDESTAL_GAP =18, 00053 LED_GAP =19, 00054 00055 // physics triggers in local runs 00056 PHYSICS_LOCAL =20, 00057 COSMICS_LOCAL =21, 00058 HALO_LOCAL =22, 00059 CALIB_LOCAL =23 00060 00061 };
Definition at line 70 of file EcalDCCHeaderBlock.h.
00070 { 00071 TTC_LASER = 4, 00072 TTC_LED = 5, 00073 TTC_TESTPULSE = 6, 00074 TTC_PEDESTAL = 7 00075 };
EcalDCCHeaderBlock::EcalDCCHeaderBlock | ( | ) |
Definition at line 3 of file EcalDCCHeaderBlock.cc.
References basic_trigger_type_, BX_, dccErrors_, dccId_, EcalDCCHeaderBlock::EcalDCCEventSettings::delay, EventSettings_, fedId_, feStatus_, EcalDCCHeaderBlock::EcalDCCEventSettings::LaserFilter, EcalDCCHeaderBlock::EcalDCCEventSettings::LaserPower, LV1event_, MAX_TCC_SIZE, MAX_TT_SIZE, memGain_, EcalDCCHeaderBlock::EcalDCCEventSettings::MEMVinj, EcalDCCHeaderBlock::EcalDCCEventSettings::mgpa_content, mgpaGain_, orbitNumber_, EcalDCCHeaderBlock::EcalDCCEventSettings::ped_offset, rtHalf_, runNumber_, runType_, selectiveReadout_, srpStatus_, tccStatus_, testZeroSuppression_, triggerTowerFlag_, EcalDCCHeaderBlock::EcalDCCEventSettings::wavelength, and zeroSuppression_.
00004 { 00005 dccId_ = -1; // initialize 00006 fedId_ = -1; // initialize 00007 tccStatus_.reserve(MAX_TCC_SIZE); 00008 triggerTowerFlag_.reserve(MAX_TT_SIZE); 00009 feStatus_.reserve(MAX_TT_SIZE); 00010 dccErrors_=-1; 00011 orbitNumber_=-1; // do we need it here? 00012 runType_=-1; 00013 basic_trigger_type_=-1; 00014 LV1event_ =-1; 00015 runNumber_ =-1; 00016 BX_ =-1; 00017 00018 EcalDCCEventSettings dummySettings; 00019 dummySettings.LaserPower =-1; 00020 dummySettings.LaserFilter =-1; 00021 dummySettings.wavelength =-1; 00022 dummySettings.delay =-1; 00023 dummySettings.MEMVinj =-1; 00024 dummySettings.mgpa_content =-1; 00025 dummySettings.ped_offset =-1; 00026 00027 EventSettings_ = dummySettings; 00028 00029 rtHalf_=-1; 00030 mgpaGain_=-1; 00031 memGain_=-1; 00032 srpStatus_ =-1; 00033 selectiveReadout_=false; 00034 testZeroSuppression_=false; 00035 zeroSuppression_=false; 00036 }
EcalDCCHeaderBlock::EcalDCCHeaderBlock | ( | const int & | dccId | ) |
Definition at line 38 of file EcalDCCHeaderBlock.cc.
References basic_trigger_type_, BX_, dccErrors_, dccId_, EcalDCCHeaderBlock::EcalDCCEventSettings::delay, EventSettings_, fedId_, feStatus_, EcalDCCHeaderBlock::EcalDCCEventSettings::LaserFilter, EcalDCCHeaderBlock::EcalDCCEventSettings::LaserPower, LV1event_, MAX_TCC_SIZE, MAX_TT_SIZE, memGain_, EcalDCCHeaderBlock::EcalDCCEventSettings::MEMVinj, EcalDCCHeaderBlock::EcalDCCEventSettings::mgpa_content, mgpaGain_, orbitNumber_, EcalDCCHeaderBlock::EcalDCCEventSettings::ped_offset, rtHalf_, runNumber_, runType_, selectiveReadout_, srpStatus_, tccStatus_, testZeroSuppression_, triggerTowerFlag_, EcalDCCHeaderBlock::EcalDCCEventSettings::wavelength, and zeroSuppression_.
00039 { 00040 dccId_ = dccId; 00041 fedId_ = -1; // initialize 00042 tccStatus_.reserve(MAX_TCC_SIZE); 00043 triggerTowerFlag_.reserve(MAX_TT_SIZE); 00044 feStatus_.reserve(MAX_TT_SIZE); 00045 dccErrors_=-1; 00046 orbitNumber_=-1; // do we need it here? 00047 runType_=-1; 00048 basic_trigger_type_=-1; 00049 LV1event_ =-1; 00050 runNumber_ =-1; 00051 BX_ =-1; 00052 00053 EcalDCCEventSettings dummySettings; 00054 dummySettings.LaserPower =-1; 00055 dummySettings.LaserFilter =-1; 00056 dummySettings.wavelength =-1; 00057 dummySettings.delay =-1; 00058 dummySettings.MEMVinj =-1; 00059 dummySettings.mgpa_content =-1; 00060 dummySettings.ped_offset =-1; 00061 00062 EventSettings_ = dummySettings; 00063 00064 rtHalf_=-1; 00065 mgpaGain_=-1; 00066 memGain_=-1; 00067 srpStatus_ =-1; 00068 00069 selectiveReadout_=false; 00070 testZeroSuppression_=false; 00071 zeroSuppression_=false; 00072 }
const int EcalDCCHeaderBlock::fedId | ( | ) | const [inline] |
short EcalDCCHeaderBlock::getBasicTriggerType | ( | ) | const [inline] |
Definition at line 133 of file EcalDCCHeaderBlock.h.
References basic_trigger_type_.
00133 {return basic_trigger_type_ ;}
int EcalDCCHeaderBlock::getBX | ( | ) | const [inline] |
int EcalDCCHeaderBlock::getDCCErrors | ( | ) | const [inline] |
Definition at line 125 of file EcalDCCHeaderBlock.h.
References dccErrors_.
00125 { return dccErrors_;}
int EcalDCCHeaderBlock::getDccInTCCCommand | ( | ) | const [inline] |
Definition at line 126 of file EcalDCCHeaderBlock.h.
References dccInTTCCommand_.
00126 { return dccInTTCCommand_; };
EcalDCCEventSettings EcalDCCHeaderBlock::getEventSettings | ( | ) | const [inline] |
Definition at line 131 of file EcalDCCHeaderBlock.h.
References EventSettings_.
00131 { return EventSettings_;}
std::vector<short> EcalDCCHeaderBlock::getFEStatus | ( | ) | const [inline] |
Definition at line 144 of file EcalDCCHeaderBlock.h.
References feStatus_.
00144 { return feStatus_ ;}
int EcalDCCHeaderBlock::getLV1 | ( | ) | const [inline] |
Definition at line 128 of file EcalDCCHeaderBlock.h.
References LV1event_.
00128 {return LV1event_ ;}
short EcalDCCHeaderBlock::getMemGain | ( | ) | const [inline] |
short EcalDCCHeaderBlock::getMgpaGain | ( | ) | const [inline] |
Definition at line 136 of file EcalDCCHeaderBlock.h.
References mgpaGain_.
00136 { return mgpaGain_;}
int EcalDCCHeaderBlock::getOrbit | ( | ) | const [inline] |
Definition at line 130 of file EcalDCCHeaderBlock.h.
References orbitNumber_.
00130 {return orbitNumber_;}
short EcalDCCHeaderBlock::getRtHalf | ( | ) | const [inline] |
int EcalDCCHeaderBlock::getRunNumber | ( | ) | const [inline] |
Definition at line 127 of file EcalDCCHeaderBlock.h.
References runNumber_.
00127 {return runNumber_ ;}
short EcalDCCHeaderBlock::getRunType | ( | ) | const [inline] |
Definition at line 132 of file EcalDCCHeaderBlock.h.
References runType_.
Referenced by EcalDCCHeaderRuntypeDecoder::DecodeSetting(), EcalDCCTBHeaderRuntypeDecoder::DecodeSetting(), EcalDCCHeaderRuntypeDecoder::DecodeSettingGlobal(), and EcalMonitorPrescaler::filter().
00132 {return runType_ ;}
short EcalDCCHeaderBlock::getSelectiveReadout | ( | ) | const [inline] |
Definition at line 138 of file EcalDCCHeaderBlock.h.
References selectiveReadout_.
00138 { return selectiveReadout_;}
short EcalDCCHeaderBlock::getSrpStatus | ( | ) | const [inline] |
Definition at line 141 of file EcalDCCHeaderBlock.h.
References srpStatus_.
00141 { return srpStatus_;}
std::vector<short> EcalDCCHeaderBlock::getTccStatus | ( | ) | const [inline] |
Definition at line 142 of file EcalDCCHeaderBlock.h.
References tccStatus_.
00142 { return tccStatus_ ;}
bool EcalDCCHeaderBlock::getTestZeroSuppression | ( | ) | const [inline] |
Definition at line 140 of file EcalDCCHeaderBlock.h.
References testZeroSuppression_.
00140 {return testZeroSuppression_ ;}
std::vector<short> EcalDCCHeaderBlock::getTriggerTowerFlag | ( | ) | const [inline] |
Definition at line 143 of file EcalDCCHeaderBlock.h.
References triggerTowerFlag_.
00143 { return triggerTowerFlag_ ;}
bool EcalDCCHeaderBlock::getZeroSuppression | ( | ) | const [inline] |
Definition at line 139 of file EcalDCCHeaderBlock.h.
References zeroSuppression_.
00139 { return zeroSuppression_;}
void EcalDCCHeaderBlock::setBasicTriggerType | ( | const short & | triggerType | ) | [inline] |
Definition at line 110 of file EcalDCCHeaderBlock.h.
References basic_trigger_type_.
Referenced by DCCEventBlock::addHeaderToCollection(), EcalTB07DaqFormatter::interpretRawData(), and EcalTBDaqFormatter::interpretRawData().
00110 { basic_trigger_type_=triggerType; };
Definition at line 106 of file EcalDCCHeaderBlock.h.
References BX_.
Referenced by DCCEventBlock::addHeaderToCollection(), EcalTB07DaqFormatter::interpretRawData(), and EcalTBDaqFormatter::interpretRawData().
00106 {BX_ = BX;}
Definition at line 103 of file EcalDCCHeaderBlock.h.
References dccInTTCCommand_.
00103 { dccInTTCCommand_=dccInTTCCommand; };
Definition at line 102 of file EcalDCCHeaderBlock.h.
References dccErrors_.
Referenced by DCCEventBlock::addHeaderToCollection(), EcalTB07DaqFormatter::interpretRawData(), and EcalTBDaqFormatter::interpretRawData().
00102 { dccErrors_=dccErrors; };
void EcalDCCHeaderBlock::setEventSettings | ( | const EcalDCCEventSettings & | EventSettings | ) | [inline] |
Definition at line 108 of file EcalDCCHeaderBlock.h.
References EventSettings_.
Referenced by EcalDCCHeaderRuntypeDecoder::DecodeSetting(), EcalDCCTBHeaderRuntypeDecoder::DecodeSetting(), and EcalDCCHeaderRuntypeDecoder::DecodeSettingGlobal().
00108 { EventSettings_=EventSettings; };
Definition at line 100 of file EcalDCCHeaderBlock.h.
References fedId_.
Referenced by DCCEventBlock::addHeaderToCollection(), EcalTB07DaqFormatter::interpretRawData(), and EcalTBDaqFormatter::interpretRawData().
void EcalDCCHeaderBlock::setFEStatus | ( | const std::vector< short > & | feStatus | ) | [inline] |
Definition at line 121 of file EcalDCCHeaderBlock.h.
References feStatus_.
Referenced by DCCEventBlock::addHeaderToCollection(), EcalTB07DaqFormatter::interpretRawData(), and EcalTBDaqFormatter::interpretRawData().
00121 { feStatus_ = feStatus; };
Definition at line 99 of file EcalDCCHeaderBlock.h.
References dccId_.
Referenced by DCCEventBlock::addHeaderToCollection(), EcalTB07DaqFormatter::interpretRawData(), and EcalTBDaqFormatter::interpretRawData().
00099 { dccId_=dccId; };
Definition at line 105 of file EcalDCCHeaderBlock.h.
References LV1event_.
Referenced by DCCEventBlock::addHeaderToCollection(), EcalTB07DaqFormatter::interpretRawData(), and EcalTBDaqFormatter::interpretRawData().
00105 {LV1event_ = LV1;}
void EcalDCCHeaderBlock::setMemGain | ( | const short & | memGain | ) | [inline] |
Definition at line 114 of file EcalDCCHeaderBlock.h.
References memGain_.
Referenced by EcalDCCHeaderRuntypeDecoder::Decode(), and EcalDCCTBHeaderRuntypeDecoder::Decode().
00114 { memGain_=memGain; };
void EcalDCCHeaderBlock::setMgpaGain | ( | const short & | mgpaGain | ) | [inline] |
Definition at line 113 of file EcalDCCHeaderBlock.h.
References mgpaGain_.
Referenced by EcalDCCHeaderRuntypeDecoder::Decode(), and EcalDCCTBHeaderRuntypeDecoder::Decode().
00113 { mgpaGain_=mgpaGain; };
Definition at line 107 of file EcalDCCHeaderBlock.h.
References orbitNumber_.
Referenced by DCCEventBlock::addHeaderToCollection(), EcalTB07DaqFormatter::interpretRawData(), and EcalTBDaqFormatter::interpretRawData().
00107 {orbitNumber_ = orbit;}
void EcalDCCHeaderBlock::setRtHalf | ( | const short & | rtHalf | ) | [inline] |
Definition at line 112 of file EcalDCCHeaderBlock.h.
References rtHalf_.
00112 { rtHalf_=rtHalf; } ;
Definition at line 104 of file EcalDCCHeaderBlock.h.
References runNumber_.
Referenced by DCCEventBlock::addHeaderToCollection(), EcalTB07DaqFormatter::interpretRawData(), and EcalTBDaqFormatter::interpretRawData().
00104 {runNumber_ = run;}
void EcalDCCHeaderBlock::setRunType | ( | const short & | runType | ) | [inline] |
Definition at line 109 of file EcalDCCHeaderBlock.h.
References runType_.
Referenced by EcalDCCHeaderRuntypeDecoder::Decode(), EcalDCCTBHeaderRuntypeDecoder::Decode(), and EcalDCCHeaderRuntypeDecoder::DecodeSettingGlobal().
00109 { runType_=runType; };
Definition at line 115 of file EcalDCCHeaderBlock.h.
References selectiveReadout_.
Referenced by DCCEventBlock::addHeaderToCollection(), EcalTB07DaqFormatter::interpretRawData(), and EcalTBDaqFormatter::interpretRawData().
00115 { selectiveReadout_=selectiveReadout; };
void EcalDCCHeaderBlock::setSrpStatus | ( | const short & | srpStatus | ) | [inline] |
Definition at line 118 of file EcalDCCHeaderBlock.h.
References srpStatus_.
Referenced by DCCEventBlock::addHeaderToCollection(), EcalTB07DaqFormatter::interpretRawData(), and EcalTBDaqFormatter::interpretRawData().
00118 { srpStatus_=srpStatus; };
void EcalDCCHeaderBlock::setTccStatus | ( | const std::vector< short > & | tccStatus | ) | [inline] |
Definition at line 119 of file EcalDCCHeaderBlock.h.
References tccStatus_.
Referenced by DCCEventBlock::addHeaderToCollection(), EcalTB07DaqFormatter::interpretRawData(), and EcalTBDaqFormatter::interpretRawData().
00119 { tccStatus_=tccStatus; };
Definition at line 117 of file EcalDCCHeaderBlock.h.
References testZeroSuppression_.
Referenced by DCCEventBlock::addHeaderToCollection(), EcalTB07DaqFormatter::interpretRawData(), and EcalTBDaqFormatter::interpretRawData().
00117 { testZeroSuppression_ = testZeroSuppression; };
void EcalDCCHeaderBlock::setTriggerTowerFlags | ( | const std::vector< short > & | triggerTowerFlag | ) | [inline] |
Definition at line 120 of file EcalDCCHeaderBlock.h.
References triggerTowerFlag_.
00120 { triggerTowerFlag_ = triggerTowerFlag; };
Definition at line 116 of file EcalDCCHeaderBlock.h.
References zeroSuppression_.
Referenced by DCCEventBlock::addHeaderToCollection(), EcalTB07DaqFormatter::interpretRawData(), and EcalTBDaqFormatter::interpretRawData().
00116 { zeroSuppression_=zeroSuppression; };
short EcalDCCHeaderBlock::basic_trigger_type_ [private] |
Definition at line 154 of file EcalDCCHeaderBlock.h.
Referenced by EcalDCCHeaderBlock(), getBasicTriggerType(), and setBasicTriggerType().
int EcalDCCHeaderBlock::BX_ [private] |
Definition at line 158 of file EcalDCCHeaderBlock.h.
Referenced by EcalDCCHeaderBlock(), getBX(), and setBX().
int EcalDCCHeaderBlock::dccErrors_ [private] |
Definition at line 149 of file EcalDCCHeaderBlock.h.
Referenced by EcalDCCHeaderBlock(), getDCCErrors(), and setErrors().
int EcalDCCHeaderBlock::dccId_ [private] |
Definition at line 147 of file EcalDCCHeaderBlock.h.
Referenced by EcalDCCHeaderBlock(), id(), and setId().
int EcalDCCHeaderBlock::dccInTTCCommand_ [private] |
Definition at line 150 of file EcalDCCHeaderBlock.h.
Referenced by getDccInTCCCommand(), and setDccInTTCCommand().
Definition at line 159 of file EcalDCCHeaderBlock.h.
Referenced by EcalDCCHeaderBlock(), getEventSettings(), and setEventSettings().
int EcalDCCHeaderBlock::fedId_ [private] |
Definition at line 148 of file EcalDCCHeaderBlock.h.
Referenced by EcalDCCHeaderBlock(), fedId(), and setFedId().
std::vector<short> EcalDCCHeaderBlock::feStatus_ [private] |
Definition at line 171 of file EcalDCCHeaderBlock.h.
Referenced by EcalDCCHeaderBlock(), getFEStatus(), and setFEStatus().
int EcalDCCHeaderBlock::LV1event_ [private] |
Definition at line 156 of file EcalDCCHeaderBlock.h.
Referenced by EcalDCCHeaderBlock(), getLV1(), and setLV1().
short EcalDCCHeaderBlock::memGain_ [private] |
Definition at line 163 of file EcalDCCHeaderBlock.h.
Referenced by EcalDCCHeaderBlock(), getMemGain(), and setMemGain().
short EcalDCCHeaderBlock::mgpaGain_ [private] |
Definition at line 162 of file EcalDCCHeaderBlock.h.
Referenced by EcalDCCHeaderBlock(), getMgpaGain(), and setMgpaGain().
int EcalDCCHeaderBlock::orbitNumber_ [private] |
Definition at line 151 of file EcalDCCHeaderBlock.h.
Referenced by EcalDCCHeaderBlock(), getOrbit(), and setOrbit().
short EcalDCCHeaderBlock::rtHalf_ [private] |
Definition at line 161 of file EcalDCCHeaderBlock.h.
Referenced by EcalDCCHeaderBlock(), getRtHalf(), and setRtHalf().
int EcalDCCHeaderBlock::runNumber_ [private] |
Definition at line 157 of file EcalDCCHeaderBlock.h.
Referenced by EcalDCCHeaderBlock(), getRunNumber(), and setRunNumber().
short EcalDCCHeaderBlock::runType_ [private] |
Definition at line 152 of file EcalDCCHeaderBlock.h.
Referenced by EcalDCCHeaderBlock(), getRunType(), and setRunType().
bool EcalDCCHeaderBlock::selectiveReadout_ [private] |
Definition at line 164 of file EcalDCCHeaderBlock.h.
Referenced by EcalDCCHeaderBlock(), getSelectiveReadout(), and setSelectiveReadout().
short EcalDCCHeaderBlock::srpStatus_ [private] |
Definition at line 168 of file EcalDCCHeaderBlock.h.
Referenced by EcalDCCHeaderBlock(), getSrpStatus(), and setSrpStatus().
std::vector<short> EcalDCCHeaderBlock::tccStatus_ [private] |
Definition at line 169 of file EcalDCCHeaderBlock.h.
Referenced by EcalDCCHeaderBlock(), getTccStatus(), and setTccStatus().
bool EcalDCCHeaderBlock::testZeroSuppression_ [private] |
Definition at line 165 of file EcalDCCHeaderBlock.h.
Referenced by EcalDCCHeaderBlock(), getTestZeroSuppression(), and setTestZeroSuppression().
std::vector<short> EcalDCCHeaderBlock::triggerTowerFlag_ [private] |
Definition at line 170 of file EcalDCCHeaderBlock.h.
Referenced by EcalDCCHeaderBlock(), getTriggerTowerFlag(), and setTriggerTowerFlags().
bool EcalDCCHeaderBlock::zeroSuppression_ [private] |
Definition at line 166 of file EcalDCCHeaderBlock.h.
Referenced by EcalDCCHeaderBlock(), getZeroSuppression(), and setZeroSuppression().