#include <EcalDumpRaw.h>
Private Types | |
enum | { inDaqHeader, inDccHeader, inTccBlock, inSrBlock, inTowerBlock } |
Private Member Functions | |
void | analyzeApd () |
void | analyzeFed (int fedId) |
bool | decode (const uint32_t *data, int iWord32, std::ostream &out) |
double | max (const std::vector< double > &a, unsigned &pos) |
double | min (const std::vector< double > &a) |
std::string | srRange (int offset) const |
std::string | toNth (int n) |
template<class T > | |
std::string | toString (T val) |
std::string | tpgTag (int tccType, unsigned iSeq) const |
std::string | ttfTag (int tccType, unsigned iSeq) const |
Static Private Member Functions | |
static int | lmodOfRu (int ru1) |
static int | modOfRu (int ru1) |
static int | sideOfRu (int ru1) |
Static Private Attributes | |
static const unsigned | fedStart_ = 601 |
static const int | maxTccsPerDcc_ = 4 |
static const int | maxTpgsPerTcc_ = 68 |
static const unsigned | nDccs_ = 54 |
static const int | nRu_ = 70 |
static const int | nSamples = 10 |
static const int | ttId_ [nTccTypes_][maxTpgsPerTcc_] |
static const int | ebmTcc_ = 0 |
static const int | ebpTcc_ = 1 |
static const int | eeInnerTcc_ = 2 |
static const int | eeOuterTcc_ = 3 |
static const int | nTccTypes_ = 4 |
Additional Inherited Members | |
Public Types inherited from edm::stream::EDAnalyzer<> | |
typedef CacheContexts< T... > | CacheTypes |
typedef CacheTypes::GlobalCache | GlobalCache |
typedef AbilityChecker< T... > | HasAbility |
typedef CacheTypes::LuminosityBlockCache | LuminosityBlockCache |
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache > | LuminosityBlockContext |
typedef CacheTypes::LuminosityBlockSummaryCache | LuminosityBlockSummaryCache |
typedef CacheTypes::RunCache | RunCache |
typedef RunContextT< RunCache, GlobalCache > | RunContext |
typedef CacheTypes::RunSummaryCache | RunSummaryCache |
Public Types inherited from edm::stream::EDAnalyzerBase | |
typedef EDAnalyzerAdaptorBase | ModuleType |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Static Public Member Functions inherited from edm::stream::EDAnalyzerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes () |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag const &tag) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
Utility to dump ECAL Raw data. Hexadecimal dump is accompagned with a side by data interpretention.
The script test/dumpRaw can be used to run this module. E. g.: dumpRaw /store/..../data_file.root Run dumpRaw -h to get help on this script.
Author: Ph. Gras CEA/IRFU Saclay
Definition at line 34 of file EcalDumpRaw.h.
|
private |
Enumerator | |
---|---|
inDaqHeader | |
inDccHeader | |
inTccBlock | |
inSrBlock | |
inTowerBlock |
Definition at line 106 of file EcalDumpRaw.h.
|
explicit |
Definition at line 97 of file EcalDumpRaw.cc.
References beg_fed_id_, gather_cfg::cout, dumpFile_, end_fed_id_, fedRawDataCollectionTag_, fedRawDataCollectionToken_, filename_, first_event_, edm::ParameterSet::getUntrackedParameter(), l1AcceptBunchCrossingCollectionTag_, l1AcceptBunchCrossingCollectionToken_, last_event_, SiStripPI::max, verbosity_, and writeDcc_.
|
override |
Definition at line 172 of file EcalDumpRaw.cc.
|
override |
Definition at line 175 of file EcalDumpRaw.cc.
References beg_fed_id_, bx_, beam_dqm_sourceclient-live_cfg::cerr, gather_cfg::cout, FEDRawData::data(), data, dccChStatus_, dccId_, TauDecayModes::dec, decode(), dump_, dumpFile_, end_fed_id_, eventId_, eventList_, feBx_, feBxOffset, FEDRawDataCollection::FEDData(), fedRawDataCollectionToken_, feL1a_, feRuId_, ntuplemaker::fill, spr::find(), first_event_, mps_fire::i, triggerObjects_cff::id, iEvent_, iRu_, edm::HandleBase::isValid(), iTcc_, iTow_, l1a_, l1AcceptBunchCrossingCollectionToken_, l1aHistory_, last_event_, FEDNumbering::lastFEDId(), maxEventId_, minEventId_, nRu_, nTpgs_, nTts_, alignCSCRings::s, FEDRawData::size(), srpBx_, srpL1a_, command_line::start, tccBx_, tccL1a_, tccType_, toNth(), trigNames, and writeDcc_.
|
private |
void EcalDumpRaw::analyzeEB | ( | const edm::Event & | , |
const edm::EventSetup & | |||
) | const |
void EcalDumpRaw::analyzeEE | ( | const edm::Event & | , |
const edm::EventSetup & | |||
) | const |
|
private |
|
private |
Definition at line 417 of file EcalDumpRaw.cc.
References adc_, amplCut_, l1GtPatternGenerator_cfi::bx, bx_, beam_dqm_sourceclient-live_cfg::cerr, colorNames, gather_cfg::cout, ztail::d, Calorimetry_cff::da, DTskim_cfg::dataType, dccCh_, dccChStatus_, dccId_, TauDecayModes::dec, detailedTrigNames, detailedTrigType_, dump_, dumpAdc_, ebmTcc_, ebpTcc_, eeInnerTcc_, eeOuterTcc_, feBx_, fedId_, fedStart_, feL1a_, feRuId_, ntuplemaker::fill, g, mps_fire::i, createfilelist::int, iRu_, iSrWord64_, iTcc_, iTccWord64_, iTowerWord64_, l1a_, lastOrbit_, max(), SiStripPI::max, maxTccsPerDcc_, maxTpgsPerTcc_, mgpaGainFactors, min(), nDccs_, nRu_, nTpgs_, nTts_, orbit0_, orbit0Set_, orbit_, alignCSCRings::s, side_, sideOfRu(), simpleTrigType_, srpBx_, srpL1a_, srRange(), tccBlockLen64_, tccId_, tccL1a_, tccType_, towerBlockLength_, tpg_, tpgTag(), trigNames, ttfTag(), ttsNames, and testProducerWithPsetDescEmpty_cfi::x1.
Referenced by analyze().
void EcalDumpRaw::endJob | ( | void | ) |
Definition at line 170 of file EcalDumpRaw.cc.
|
staticprivate |
Definition at line 815 of file EcalDumpRaw.cc.
Referenced by toString().
|
inlineprivate |
Definition at line 52 of file EcalDumpRaw.h.
References mps_fire::i, and visualization-live-secondInstance_cfg::m.
Referenced by decode(), and srRange().
|
inlineprivate |
Definition at line 63 of file EcalDumpRaw.h.
References mps_fire::i, and visualization-live-secondInstance_cfg::m.
Referenced by decode(), and srRange().
|
staticprivate |
Definition at line 806 of file EcalDumpRaw.cc.
Referenced by toString().
|
staticprivate |
Definition at line 798 of file EcalDumpRaw.cc.
Referenced by decode(), and toString().
|
private |
Definition at line 828 of file EcalDumpRaw.cc.
References fedId_, max(), min(), and alignCSCRings::s.
Referenced by decode(), and toString().
|
private |
Definition at line 394 of file EcalDumpRaw.cc.
References dqmiodumpmetadata::n, and alignCSCRings::s.
Referenced by analyze().
|
inlineprivate |
Definition at line 74 of file EcalDumpRaw.h.
References lmodOfRu(), modOfRu(), hltrates_dqm_sourceclient-live_cfg::offset, alignCSCRings::s, sideOfRu(), srRange(), AlCaHLTBitMon_QueryRunRegistry::string, tpgTag(), ttfTag(), and heppy_batch::val.
|
private |
Definition at line 859 of file EcalDumpRaw.cc.
References Exception, ecaldqm::ttId(), and ttId_.
Referenced by decode(), and toString().
|
private |
Definition at line 843 of file EcalDumpRaw.cc.
References Exception, ecaldqm::ttId(), and ttId_.
Referenced by decode(), and toString().
|
private |
Definition at line 109 of file EcalDumpRaw.h.
Referenced by decode().
|
private |
Definition at line 112 of file EcalDumpRaw.h.
Referenced by decode().
|
private |
Definition at line 96 of file EcalDumpRaw.h.
Referenced by analyze(), and EcalDumpRaw().
|
private |
Definition at line 153 of file EcalDumpRaw.h.
|
private |
Definition at line 122 of file EcalDumpRaw.h.
Referenced by decode().
|
private |
Definition at line 162 of file EcalDumpRaw.h.
|
private |
Definition at line 144 of file EcalDumpRaw.h.
enum { ... } EcalDumpRaw::decodeState_ |
|
private |
Definition at line 156 of file EcalDumpRaw.h.
Referenced by decode().
|
private |
Definition at line 113 of file EcalDumpRaw.h.
|
private |
Definition at line 114 of file EcalDumpRaw.h.
Referenced by decode().
|
private |
Definition at line 179 of file EcalDumpRaw.h.
Referenced by analyze(), and EcalDumpRaw().
|
staticprivate |
|
staticprivate |
Definition at line 133 of file EcalDumpRaw.h.
Referenced by decode().
|
staticprivate |
Definition at line 134 of file EcalDumpRaw.h.
Referenced by decode().
|
staticprivate |
Definition at line 135 of file EcalDumpRaw.h.
Referenced by decode().
|
private |
Definition at line 97 of file EcalDumpRaw.h.
Referenced by analyze(), and EcalDumpRaw().
|
private |
Definition at line 146 of file EcalDumpRaw.h.
Referenced by analyze().
|
private |
Definition at line 147 of file EcalDumpRaw.h.
Referenced by analyze().
|
private |
Definition at line 176 of file EcalDumpRaw.h.
|
private |
Definition at line 143 of file EcalDumpRaw.h.
|
private |
Definition at line 186 of file EcalDumpRaw.h.
Referenced by EcalDumpRaw().
|
private |
Definition at line 188 of file EcalDumpRaw.h.
Referenced by analyze(), and EcalDumpRaw().
|
staticprivate |
Definition at line 125 of file EcalDumpRaw.h.
Referenced by decode().
|
private |
Definition at line 171 of file EcalDumpRaw.h.
|
private |
Definition at line 177 of file EcalDumpRaw.h.
|
private |
Definition at line 100 of file EcalDumpRaw.h.
Referenced by EcalDumpRaw().
|
private |
Definition at line 98 of file EcalDumpRaw.h.
Referenced by analyze(), and EcalDumpRaw().
|
private |
Definition at line 101 of file EcalDumpRaw.h.
Referenced by analyze().
|
private |
Definition at line 163 of file EcalDumpRaw.h.
|
private |
Definition at line 104 of file EcalDumpRaw.h.
Referenced by decode().
|
private |
Definition at line 185 of file EcalDumpRaw.h.
|
private |
Definition at line 105 of file EcalDumpRaw.h.
Referenced by decode().
|
private |
Definition at line 178 of file EcalDumpRaw.h.
Referenced by analyze().
|
private |
Definition at line 103 of file EcalDumpRaw.h.
Referenced by decode().
|
private |
Definition at line 154 of file EcalDumpRaw.h.
|
private |
Definition at line 187 of file EcalDumpRaw.h.
Referenced by EcalDumpRaw().
|
private |
Definition at line 189 of file EcalDumpRaw.h.
Referenced by analyze(), and EcalDumpRaw().
|
private |
Definition at line 115 of file EcalDumpRaw.h.
Referenced by analyze().
|
private |
Definition at line 121 of file EcalDumpRaw.h.
|
private |
Definition at line 120 of file EcalDumpRaw.h.
|
private |
Definition at line 158 of file EcalDumpRaw.h.
|
private |
Definition at line 99 of file EcalDumpRaw.h.
Referenced by analyze(), and EcalDumpRaw().
|
private |
Definition at line 123 of file EcalDumpRaw.h.
Referenced by decode().
|
private |
Definition at line 149 of file EcalDumpRaw.h.
Referenced by analyze().
|
private |
Definition at line 117 of file EcalDumpRaw.h.
|
staticprivate |
Definition at line 127 of file EcalDumpRaw.h.
Referenced by decode().
|
staticprivate |
Definition at line 126 of file EcalDumpRaw.h.
Referenced by decode().
|
private |
Definition at line 148 of file EcalDumpRaw.h.
Referenced by analyze().
|
staticprivate |
Definition at line 124 of file EcalDumpRaw.h.
Referenced by decode().
|
staticprivate |
Definition at line 170 of file EcalDumpRaw.h.
|
staticprivate |
Definition at line 111 of file EcalDumpRaw.h.
|
staticprivate |
Definition at line 136 of file EcalDumpRaw.h.
|
private |
Definition at line 161 of file EcalDumpRaw.h.
|
private |
Definition at line 167 of file EcalDumpRaw.h.
|
private |
Definition at line 150 of file EcalDumpRaw.h.
Referenced by decode().
|
private |
Definition at line 152 of file EcalDumpRaw.h.
Referenced by decode().
|
private |
Definition at line 151 of file EcalDumpRaw.h.
Referenced by decode().
|
private |
Definition at line 159 of file EcalDumpRaw.h.
|
private |
Definition at line 118 of file EcalDumpRaw.h.
|
private |
Definition at line 119 of file EcalDumpRaw.h.
|
private |
Definition at line 182 of file EcalDumpRaw.h.
|
private |
Definition at line 181 of file EcalDumpRaw.h.
|
private |
Definition at line 180 of file EcalDumpRaw.h.
|
private |
Definition at line 145 of file EcalDumpRaw.h.
Referenced by decode().
|
private |
Definition at line 155 of file EcalDumpRaw.h.
Referenced by decode().
|
private |
Definition at line 172 of file EcalDumpRaw.h.
|
private |
Definition at line 164 of file EcalDumpRaw.h.
|
private |
Definition at line 169 of file EcalDumpRaw.h.
Referenced by decode().
|
private |
Definition at line 173 of file EcalDumpRaw.h.
Referenced by analyze().
|
private |
Definition at line 183 of file EcalDumpRaw.h.
Referenced by decode().
|
private |
Definition at line 165 of file EcalDumpRaw.h.
|
private |
type of TCC currently parsed
Definition at line 175 of file EcalDumpRaw.h.
|
private |
Definition at line 107 of file EcalDumpRaw.h.
Referenced by decode().
|
private |
Definition at line 160 of file EcalDumpRaw.h.
Referenced by decode().
|
staticprivate |
TT ID in the order the TPG appears in the data
Definition at line 141 of file EcalDumpRaw.h.
|
private |
Definition at line 94 of file EcalDumpRaw.h.
Referenced by EcalDumpRaw().
|
private |
Definition at line 95 of file EcalDumpRaw.h.
Referenced by analyze(), and EcalDumpRaw().