#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<> | |
using | CacheTypes = CacheContexts< T... > |
using | GlobalCache = typename CacheTypes::GlobalCache |
using | HasAbility = AbilityChecker< T... > |
using | InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache |
using | LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache |
using | LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache > |
using | LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache |
using | RunCache = typename CacheTypes::RunCache |
using | RunContext = RunContextT< RunCache, GlobalCache > |
using | RunSummaryCache = typename CacheTypes::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) |
template<BranchType B = InEvent> | |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes () |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag const &tag) |
template<Transition Tr = Transition::Event> | |
constexpr auto | esConsumes () |
template<Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag tag) |
template<Transition Tr = Transition::Event> | |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
Used with EventSetupRecord::doGet. More... | |
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) |
void | resetItemsToGetFrom (BranchType iType) |
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_, WZElectronSkims53X_cff::max, verbosity_, and writeDcc_.
|
override |
Definition at line 172 of file EcalDumpRaw.cc.
|
overridevirtual |
Implements edm::stream::EDAnalyzerBase.
Definition at line 175 of file EcalDumpRaw.cc.
References beg_fed_id_, bx_, DMR_cfg::cerr, gather_cfg::cout, data, dccChStatus_, dccId_, TauDecayModes::dec, decode(), dump_, dumpFile_, end_fed_id_, eventId_, eventList_, feBx_, feBxOffset, FEDRawDataCollection::FEDData(), fedRawDataCollectionToken_, feL1a_, feRuId_, EcalPhiSymFlatTableProducers_cfi::fill, spr::find(), first_event_, mps_fire::i, EcalPhiSymFlatTableProducers_cfi::id, iEvent_, iRu_, edm::HandleBase::isValid(), ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, iTcc_, iTow_, l1a_, l1AcceptBunchCrossingCollectionToken_, l1aHistory_, last_event_, FEDNumbering::lastFEDId(), maxEventId_, minEventId_, nRu_, nTpgs_, nTts_, alignCSCRings::s, srpBx_, srpL1a_, isotrackNtupler::start, isotrackNtupler::stop, 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_, cms::cuda::assert(), nano_mu_digi_cff::bx, bx_, DMR_cfg::cerr, colorNames, gather_cfg::cout, ztail::d, Calorimetry_cff::da, data, dtTPAnalyzer_cfg::dataType, dccCh_, dccChStatus_, dccId_, TauDecayModes::dec, detailedTrigNames, detailedTrigType_, dump_, dumpAdc_, ebmTcc_, ebpTcc_, eeInnerTcc_, eeOuterTcc_, feBx_, fedId_, fedStart_, feL1a_, feRuId_, EcalPhiSymFlatTableProducers_cfi::fill, g, mps_fire::i, createfilelist::int, iRu_, iSrWord64_, iTcc_, iTccWord64_, iTowerWord64_, l1a_, lastOrbit_, max(), WZElectronSkims53X_cff::max, maxTccsPerDcc_, maxTpgsPerTcc_, mgpaGainFactors, min(), nDccs_, nRu_, nTpgs_, nTts_, orbit0_, orbit0Set_, orbit_, MillePedeFileConverter_cfg::out, 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.
|
inlineprivate |
Definition at line 52 of file EcalDumpRaw.h.
References a, mps_fire::i, and visualization-live-secondInstance_cfg::m.
Referenced by decode(), and srRange().
|
inlineprivate |
Definition at line 63 of file EcalDumpRaw.h.
References a, mps_fire::i, and visualization-live-secondInstance_cfg::m.
Referenced by decode(), and srRange().
|
staticprivate |
Definition at line 806 of file EcalDumpRaw.cc.
|
staticprivate |
Definition at line 798 of file EcalDumpRaw.cc.
Referenced by decode().
|
private |
Definition at line 828 of file EcalDumpRaw.cc.
References visDQMUpload::buf, fedId_, max(), min(), HLT_IsoTrack_cff::offset, and alignCSCRings::s.
Referenced by decode().
|
private |
Definition at line 394 of file EcalDumpRaw.cc.
References create_idmaps::n, and alignCSCRings::s.
Referenced by analyze().
|
inlineprivate |
|
private |
Definition at line 859 of file EcalDumpRaw.cc.
References visDQMUpload::buf, Exception, ecaldqm::ttId(), and ttId_.
Referenced by decode().
|
private |
Definition at line 843 of file EcalDumpRaw.cc.
References visDQMUpload::buf, Exception, ecaldqm::ttId(), and ttId_.
Referenced by decode().
|
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().