#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) |
Private Attributes | |
std::vector< double > | adc_ |
double | amplCut_ |
int | beg_fed_id_ |
int | bx_ |
int | dccCh_ |
std::vector< int > | dccChStatus_ |
unsigned | dccId_ |
enum EcalDumpRaw:: { ... } | decodeState_ |
int | detailedTrigType_ |
bool | dump_ |
bool | dumpAdc_ |
std::ofstream | dumpFile_ |
int | end_fed_id_ |
unsigned | eventId_ |
std::vector< unsigned > | eventList_ |
std::vector< int > | feBx_ |
unsigned | fedId_ |
edm::InputTag | fedRawDataCollectionTag_ |
std::vector< int > | feL1a_ |
std::vector< int > | feRuId_ |
std::string | filename_ |
int | first_event_ |
int | iEvent_ |
int | iRu_ |
unsigned | iSrWord64_ |
int | iTcc_ |
unsigned | iTccWord64_ |
int | iTow_ |
unsigned | iTowerWord64_ |
int | l1a_ |
edm::InputTag | l1AcceptBunchCrossingCollectionTag_ |
bool | l1aHistory_ |
int | l1amax_ |
int | l1aMaxX_ |
int | l1amin_ |
int | l1aMinX_ |
std::vector< std::vector < uint32_t > > | l1as_ |
int | last_event_ |
std::vector< uint32_t > | lastOrbit_ |
unsigned | maxEventId_ |
int | maxEvt_ |
unsigned | minEventId_ |
std::vector< int > | nTpgs_ |
int | nTts_ |
unsigned | orbit0_ |
bool | orbit0Set_ |
uint32_t | orbit_ |
std::vector< std::vector < uint32_t > > | orbits_ |
int | profileFedId_ |
int | profileRuId_ |
bool | pulsePerLme_ |
bool | pulsePerLmod_ |
bool | pulsePerRu_ |
unsigned | side_ |
int | simpleTrigType_ |
int | srpBx_ |
int | srpL1a_ |
int | tccBlockLen64_ |
int | tccBx_ |
int | tccId_ |
int | tccL1a_ |
int | tccType_ |
type of TCC currently parsed More... | |
size_t | towerBlockLength_ |
std::vector< std::vector< int > > | tpg_ |
int | verbosity_ |
bool | writeDcc_ |
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::EDAnalyzer | |
typedef EDAnalyzer | ModuleType |
Static Public Member Functions inherited from edm::EDAnalyzer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &) |
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 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 32 of file EcalDumpRaw.h.
|
private |
Enumerator | |
---|---|
inDaqHeader | |
inDccHeader | |
inTccBlock | |
inSrBlock | |
inTowerBlock |
Definition at line 101 of file EcalDumpRaw.h.
|
explicit |
Definition at line 129 of file EcalDumpRaw.cc.
References beg_fed_id_, gather_cfg::cout, dumpFile_, end_fed_id_, filename_, first_event_, edm::ParameterSet::getUntrackedParameter(), last_event_, bookConverter::max, verbosity_, and writeDcc_.
EcalDumpRaw::~EcalDumpRaw | ( | ) |
Definition at line 206 of file EcalDumpRaw.cc.
|
virtual |
Implements edm::EDAnalyzer.
Definition at line 211 of file EcalDumpRaw.cc.
References beg_fed_id_, bx_, dtNoiseDBValidation_cfg::cerr, gather_cfg::cout, FEDRawData::data(), data, dccChStatus_, dccId_, TauDecayModes::dec, decode(), dump_, dumpFile_, end_fed_id_, eventId_, eventList_, feBx_, feBxOffset, fedRawDataCollectionTag_, feL1a_, feRuId_, lumiContext::fill, spr::find(), first_event_, i, iEvent_, iRu_, edm::HandleBase::isValid(), iTcc_, iTow_, l1a_, l1AcceptBunchCrossingCollectionTag_, l1aHistory_, l1amax_, l1amin_, last_event_, FEDNumbering::lastFEDId(), maxEventId_, minEventId_, nRu_, nTpgs_, nTts_, lumiPlot::rawdata, alignCSCRings::s, FEDRawData::size(), srpBx_, srpL1a_, dqm_diff::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 482 of file EcalDumpRaw.cc.
References adc_, amplCut_, bx_, dtNoiseDBValidation_cfg::cerr, colorNames, gather_cfg::cout, pyrootRender::da, dtTPAnalyzer_cfg::dataType, dccCh_, dccChStatus_, dccId_, TauDecayModes::dec, detailedTrigNames, detailedTrigType_, dump_, dumpAdc_, ebmTcc_, ebpTcc_, eeInnerTcc_, eeOuterTcc_, feBx_, fedId_, fedStart_, feL1a_, feRuId_, lumiContext::fill, g, i, iRu_, iSrWord64_, iTcc_, iTccWord64_, iTowerWord64_, l1a_, lastOrbit_, max(), bookConverter::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(), and ttsNames.
Referenced by analyze().
|
virtual |
|
staticprivate |
Definition at line 903 of file EcalDumpRaw.cc.
|
inlineprivate |
Definition at line 51 of file EcalDumpRaw.h.
|
inlineprivate |
Definition at line 59 of file EcalDumpRaw.h.
|
staticprivate |
Definition at line 894 of file EcalDumpRaw.cc.
|
staticprivate |
Definition at line 885 of file EcalDumpRaw.cc.
Referenced by decode().
|
private |
Definition at line 916 of file EcalDumpRaw.cc.
References fedId_, max(), min(), and alignCSCRings::s.
Referenced by decode().
|
private |
Definition at line 458 of file EcalDumpRaw.cc.
References n, and alignCSCRings::s.
Referenced by analyze().
|
inlineprivate |
|
private |
Definition at line 950 of file EcalDumpRaw.cc.
References edm::hlt::Exception, ecaldqm::ttId(), and ttId_.
Referenced by decode().
|
private |
Definition at line 933 of file EcalDumpRaw.cc.
References edm::hlt::Exception, ecaldqm::ttId(), and ttId_.
Referenced by decode().
|
private |
Definition at line 105 of file EcalDumpRaw.h.
Referenced by decode().
|
private |
Definition at line 108 of file EcalDumpRaw.h.
Referenced by decode().
|
private |
Definition at line 91 of file EcalDumpRaw.h.
Referenced by analyze(), and EcalDumpRaw().
|
private |
Definition at line 150 of file EcalDumpRaw.h.
|
private |
Definition at line 118 of file EcalDumpRaw.h.
Referenced by decode().
|
private |
Definition at line 161 of file EcalDumpRaw.h.
|
private |
Definition at line 141 of file EcalDumpRaw.h.
enum { ... } EcalDumpRaw::decodeState_ |
|
private |
Definition at line 155 of file EcalDumpRaw.h.
Referenced by decode().
|
private |
Definition at line 109 of file EcalDumpRaw.h.
|
private |
Definition at line 110 of file EcalDumpRaw.h.
Referenced by decode().
|
private |
Definition at line 178 of file EcalDumpRaw.h.
Referenced by analyze(), and EcalDumpRaw().
|
staticprivate |
|
staticprivate |
Definition at line 130 of file EcalDumpRaw.h.
Referenced by decode().
|
staticprivate |
Definition at line 131 of file EcalDumpRaw.h.
Referenced by decode().
|
staticprivate |
Definition at line 132 of file EcalDumpRaw.h.
Referenced by decode().
|
private |
Definition at line 92 of file EcalDumpRaw.h.
Referenced by analyze(), and EcalDumpRaw().
|
private |
Definition at line 143 of file EcalDumpRaw.h.
Referenced by analyze().
|
private |
Definition at line 144 of file EcalDumpRaw.h.
Referenced by analyze().
|
private |
Definition at line 175 of file EcalDumpRaw.h.
|
private |
Definition at line 140 of file EcalDumpRaw.h.
|
private |
Definition at line 185 of file EcalDumpRaw.h.
Referenced by analyze().
|
staticprivate |
Definition at line 121 of file EcalDumpRaw.h.
Referenced by decode().
|
private |
Definition at line 170 of file EcalDumpRaw.h.
|
private |
Definition at line 176 of file EcalDumpRaw.h.
|
private |
Definition at line 95 of file EcalDumpRaw.h.
Referenced by EcalDumpRaw().
|
private |
Definition at line 93 of file EcalDumpRaw.h.
Referenced by analyze(), and EcalDumpRaw().
|
private |
Definition at line 96 of file EcalDumpRaw.h.
Referenced by analyze().
|
private |
Definition at line 162 of file EcalDumpRaw.h.
|
private |
Definition at line 99 of file EcalDumpRaw.h.
Referenced by decode().
|
private |
Definition at line 184 of file EcalDumpRaw.h.
|
private |
Definition at line 100 of file EcalDumpRaw.h.
Referenced by decode().
|
private |
Definition at line 177 of file EcalDumpRaw.h.
Referenced by analyze().
|
private |
Definition at line 98 of file EcalDumpRaw.h.
Referenced by decode().
|
private |
Definition at line 151 of file EcalDumpRaw.h.
|
private |
Definition at line 186 of file EcalDumpRaw.h.
Referenced by analyze().
|
private |
Definition at line 111 of file EcalDumpRaw.h.
Referenced by analyze().
|
private |
Definition at line 153 of file EcalDumpRaw.h.
Referenced by analyze().
|
private |
Definition at line 117 of file EcalDumpRaw.h.
|
private |
Definition at line 152 of file EcalDumpRaw.h.
Referenced by analyze().
|
private |
Definition at line 116 of file EcalDumpRaw.h.
|
private |
Definition at line 157 of file EcalDumpRaw.h.
|
private |
Definition at line 94 of file EcalDumpRaw.h.
Referenced by analyze(), and EcalDumpRaw().
|
private |
Definition at line 119 of file EcalDumpRaw.h.
Referenced by decode().
|
private |
Definition at line 146 of file EcalDumpRaw.h.
Referenced by analyze().
|
private |
Definition at line 113 of file EcalDumpRaw.h.
|
staticprivate |
Definition at line 123 of file EcalDumpRaw.h.
Referenced by decode().
|
staticprivate |
Definition at line 122 of file EcalDumpRaw.h.
Referenced by decode().
|
private |
Definition at line 145 of file EcalDumpRaw.h.
Referenced by analyze().
|
staticprivate |
Definition at line 120 of file EcalDumpRaw.h.
Referenced by decode().
|
staticprivate |
Definition at line 169 of file EcalDumpRaw.h.
|
staticprivate |
Definition at line 107 of file EcalDumpRaw.h.
|
staticprivate |
Definition at line 133 of file EcalDumpRaw.h.
|
private |
Definition at line 160 of file EcalDumpRaw.h.
|
private |
Definition at line 166 of file EcalDumpRaw.h.
|
private |
Definition at line 147 of file EcalDumpRaw.h.
Referenced by decode().
|
private |
Definition at line 149 of file EcalDumpRaw.h.
Referenced by decode().
|
private |
Definition at line 148 of file EcalDumpRaw.h.
Referenced by decode().
|
private |
Definition at line 158 of file EcalDumpRaw.h.
|
private |
Definition at line 114 of file EcalDumpRaw.h.
|
private |
Definition at line 115 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 179 of file EcalDumpRaw.h.
|
private |
Definition at line 142 of file EcalDumpRaw.h.
Referenced by decode().
|
private |
Definition at line 154 of file EcalDumpRaw.h.
Referenced by decode().
|
private |
Definition at line 171 of file EcalDumpRaw.h.
|
private |
Definition at line 163 of file EcalDumpRaw.h.
|
private |
Definition at line 168 of file EcalDumpRaw.h.
Referenced by decode().
|
private |
Definition at line 172 of file EcalDumpRaw.h.
Referenced by analyze().
|
private |
Definition at line 182 of file EcalDumpRaw.h.
Referenced by decode().
|
private |
Definition at line 164 of file EcalDumpRaw.h.
|
private |
type of TCC currently parsed
Definition at line 174 of file EcalDumpRaw.h.
|
private |
Definition at line 103 of file EcalDumpRaw.h.
Referenced by decode().
|
private |
Definition at line 159 of file EcalDumpRaw.h.
Referenced by decode().
|
staticprivate |
TT ID in the order the TPG appears in the data
Definition at line 138 of file EcalDumpRaw.h.
|
private |
Definition at line 89 of file EcalDumpRaw.h.
Referenced by EcalDumpRaw().
|
private |
Definition at line 90 of file EcalDumpRaw.h.
Referenced by analyze(), and EcalDumpRaw().