#include <EcalSelectiveReadoutValidation.h>
Classes | |
struct | energiesEb_t |
struct | energiesEe_t |
Public Member Functions | |
void | bookHistograms (DQMStore::IBooker &i, edm::Run const &, edm::EventSetup const &) override |
void | dqmBeginRun (edm::Run const &, edm::EventSetup const &) override |
EcalSelectiveReadoutValidation (const edm::ParameterSet &ps) | |
Constructor. More... | |
~EcalSelectiveReadoutValidation () override | |
Destructor. More... | |
Public Member Functions inherited from one::DQMEDAnalyzer< T > | |
DQMEDAnalyzer ()=default | |
DQMEDAnalyzer (DQMEDAnalyzer< T... > const &)=delete | |
DQMEDAnalyzer (DQMEDAnalyzer< T... > &&)=delete | |
~DQMEDAnalyzer () override=default | |
Protected Member Functions | |
void | analyze (edm::Event const &e, edm::EventSetup const &c) override |
Analyzes the event. More... | |
void | endRun (const edm::Run &r, const edm::EventSetup &c) override |
Private Types | |
typedef EcalRecHit | RecHit |
typedef EcalRecHitCollection | RecHitCollection |
enum | subdet_t { EB, EE } |
distinguishes barral and endcap of ECAL. More... | |
Private Member Functions | |
template<class T , class U > | |
void | anaDigi (const T &frame, const U &srFlagColl) |
void | anaDigiInit () |
void | analyzeDataVolume (const edm::Event &e, const edm::EventSetup &es) |
void | analyzeEB (const edm::Event &event, const edm::EventSetup &es) |
void | analyzeEE (const edm::Event &event, const edm::EventSetup &es) |
void | analyzeTP (const edm::Event &event, const edm::EventSetup &es) |
template<class T > | |
void | checkSrApplication (const edm::Event &event, T &srfs) |
int | cIndex2iEta (int i) const |
int | cIndex2iPhi (int i) const |
int | cIndex2iTtEta (int i) const |
int | cIndex2iTtPhi (int i) const |
int | cIndex2iXY (int iX0) const |
template<class T > | |
void | compareSrfColl (const edm::Event &event, T &srfFromData, T &computedSrf) |
void | configFirWeights (const std::vector< double > &weightsForZsFIR) |
std::pair< int, int > | dccCh (const DetId &xtalId) const |
double | frame2Energy (const EcalDataFrame &frame) const |
template<class T > | |
double | frame2EnergyForTp (const T &frame, int offset=0) const |
double | getBytesPerCrystal () const |
int | getCrystalCount (int iDcc, int iDccCh) |
double | getDccEventSize (int iDcc0, double nReadXtals) const |
double | getDccOverhead (subdet_t subdet) const |
double | getDccSrDependentPayload (int iDcc0, double nReadRus, double nReadXtals) const |
double | getEbEventSize (double nReadXtals) const |
double | getEeEventSize (double nReadXtals) const |
double | getL1aRate () const |
int | getRuCount (int iDcc0) const |
int | iEta2cIndex (int iEta) const |
void | initAsciiFile () |
int | iPhi2cIndex (int iPhi) const |
int | iTtEta2cIndex (int iEta) const |
int | iTtPhi2cIndex (int iPhi) const |
int | iXY2cIndex (int iX) const |
void | printAvailableHists () |
void | readAllCollections (const edm::Event &e) |
bool | registerHist (const std::string &name, const std::string &title) |
void | selectFedsForLog () |
void | setTtEtSums (const edm::EventSetup &es, const EBDigiCollection &ebDigis, const EEDigiCollection &eeDigis) |
void | updateL1aRate (const edm::Event &event) |
EcalTrigTowerDetId | readOutUnitOf (const EBDetId &xtalId) const |
EcalScDetId | readOutUnitOf (const EEDetId &xtalId) const |
MonitorElement * | bookFloat (DQMStore::IBooker &, const std::string &name) |
MonitorElement * | book1D (DQMStore::IBooker &, const std::string &name, const std::string &title, int nbins, double xmin, double xmax) |
MonitorElement * | book2D (DQMStore::IBooker &, const std::string &name, const std::string &title, int nxbins, double xmin, double xmax, int nybins, double ymin, double ymax) |
MonitorElement * | bookProfile (DQMStore::IBooker &, const std::string &name, const std::string &title, int nbins, double xmin, double xmax) |
MonitorElement * | bookProfile2D (DQMStore::IBooker &, const std::string &name, const std::string &title, int nbinx, double xmin, double xmax, int nbiny, double ymin, double ymax, const char *option="") |
void | fill (MonitorElement *me, float x) |
void | fill (MonitorElement *me, float x, float yw) |
void | fill (MonitorElement *me, float x, float y, float zw) |
void | fill (MonitorElement *me, float x, float y, float z, float w) |
int | ruGraphX (const EcalScDetId &id) const |
int | ruGraphY (const EcalScDetId &id) const |
int | ruGraphX (const EcalTrigTowerDetId &id) const |
int | ruGraphY (const EcalTrigTowerDetId &id) const |
int | xtalGraphX (const EEDetId &id) const |
int | xtalGraphY (const EEDetId &id) const |
int | xtalGraphX (const EBDetId &id) const |
int | xtalGraphY (const EBDetId &id) const |
int | dccId (const EcalScDetId &detId) const |
int | dccId (const EcalTrigTowerDetId &detId) const |
Static Private Member Functions | |
static int | dccZsFIR (const EcalDataFrame &frame, const std::vector< int > &firWeights, int firstFIRSample, bool *saturated=0) |
static std::vector< int > | getFIRWeights (const std::vector< double > &normalizedWeights) |
Static Private Attributes | |
static const int | ebTtEdge = 5 |
Number of crystals along an EB TT. More... | |
static const int | kByte_ = 1024 |
number of bytes in 1 kByte: More... | |
static const int | maxDccId_ = minDccId_ + nDccs_ -1 |
static const int | minDccId_ = 1 |
static const unsigned | nDccChs_ = 68 |
Number of input channels of a DCC. More... | |
static const int | nDccRus_ [nDccs_] |
number of RUs for each DCC More... | |
static const unsigned | nDccs_ = 54 |
Total number of DCCs. More... | |
static const int | nEbDccs = 36 |
number of DCCs for EB More... | |
static const int | nEbEta = 170 |
number of crystals along Eta in EB More... | |
static const int | nEbPhi = 360 |
number of crystals along Phi in EB More... | |
static const int | nEbRus = 36*68 |
number of RUs for EB More... | |
static const int | nEbTtEta = 34 |
Number of Trigger Towers in barrel along Eta. More... | |
static const int | nEeDccs = 18 |
number of DCCs for EE More... | |
static const int | nEeRus = 2*(34+32+33+33+32+34+33+34+33) |
number of RUs for EE More... | |
static const int | nEeX = 100 |
EE crystal grid size along X. More... | |
static const int | nEeY = 100 |
EE crystal grid size along Y. More... | |
static const int | nEndcaps = 2 |
number of endcaps More... | |
static const int | nMaxXtalPerRu = 25 |
Number of crystals per Readout Unit excepted partial SCs. More... | |
static const int | nOneEeTtEta = 11 |
Number of Trigger Towers in an endcap along Eta. More... | |
static const int | nTtEta = 2*nOneEeTtEta + nEbTtEta |
Number of Trigger Towers along Eta. More... | |
static const int | nTtPhi = 72 |
Number of Trigger Towers along Phi. More... | |
static const double | rad2deg = 45./atan(1.) |
Conversion factor from radian to degree. More... | |
static const int | scEdge = 5 |
Number of crystals along a supercrystal edge. More... | |
Definition at line 34 of file EcalSelectiveReadoutValidation.h.
|
private |
Definition at line 37 of file EcalSelectiveReadoutValidation.h.
|
private |
Definition at line 36 of file EcalSelectiveReadoutValidation.h.
|
private |
distinguishes barral and endcap of ECAL.
Enumerator | |
---|---|
EB | |
EE |
Definition at line 58 of file EcalSelectiveReadoutValidation.h.
EcalSelectiveReadoutValidation::EcalSelectiveReadoutValidation | ( | const edm::ParameterSet & | ps | ) |
Constructor.
Definition at line 56 of file EcalSelectiveReadoutValidation.cc.
References allHists_, configFirWeights(), ebComputedSrFlags_, ebDigis_, ebNoZsDigis_, ebRecHits_, ebSimHits_, ebSrFlags_, ebZsThr_, eeComputedSrFlags_, eeDigis_, eeNoZsDigis_, eeRecHits_, eeSimHits_, eeSrFlags_, eeZsThr_, fedRaw_, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), histList_, compare::hists, logSrApplicationErrors_, logSrpAlgoErrors_, outputFile_, CollHandle< T >::setToken(), srApplicationErrorLogFileName_, srpAlgoErrorLogFileName_, tps_, and verbose_.
|
override |
|
private |
Accumulates statitics for data volume analysis. To be called for each ECAL digi. See anaDigiInit().
Definition at line 1498 of file EcalSelectiveReadoutValidation.cc.
References Reference_intrackfit_cff::barrel, dccCh(), ebRuActive_, ebTtEdge, EcalBarrel, eeRuActive_, Exception, RemoveAddSevLevel::flag, iEta2cIndex(), iPhi2cIndex(), iXY2cIndex(), minDccId_, nEb_, nEbHI_, nEbLI_, nEe_, nEeHI_, nEeLI_, nHiPerDcc_, nHiRuPerDcc_, nLiPerDcc_, nLiRuPerDcc_, nPerDcc_, nPerRu_, nRuPerDcc_, DetId::rawId(), readOutUnitOf(), scEdge, EcalSrFlag::SRF_FULL, DetId::subdetId(), and ecaldqm::zside().
Referenced by analyzeDataVolume().
|
private |
Initializes statistics accumalator for data volume analysis. To be call at start of each event analysis.
Definition at line 1575 of file EcalSelectiveReadoutValidation.cc.
References ebRuActive_, eeRuActive_, nEb_, nEbHI_, nEbLI_, nEe_, nEeHI_, nEeLI_, nHiPerDcc_, nHiRuPerDcc_, nLiPerDcc_, nLiRuPerDcc_, nPerDcc_, nPerRu_, and nRuPerDcc_.
Referenced by analyzeDataVolume().
|
overrideprotected |
Analyzes the event.
Definition at line 189 of file EcalSelectiveReadoutValidation.cc.
References analyzeDataVolume(), analyzeEB(), analyzeEE(), analyzeTP(), checkSrApplication(), compareSrfColl(), ebComputedSrFlags_, ebNoZsDigis_, ebSimHits_, ebSrFlags_, eeComputedSrFlags_, eeNoZsDigis_, eeSimHits_, eeSrFlags_, fill(), ievt_, meCompleteZSCnt_, meDroppedFROCnt_, meEbFullRoCnt_, meEbZsErrCnt_, meEbZsErrType1Cnt_, meEeFullRoCnt_, meEeZsErrCnt_, meEeZsErrType1Cnt_, meFullRoCnt_, meIncompleteFROCnt_, meZsErrCnt_, meZsErrType1Cnt_, nCompleteZS_, nDroppedFRO_, nEbFROCnt_, nEbZsErrors_, nEbZsErrorsType1_, nEeFROCnt_, nEeZsErrors_, nEeZsErrorsType1_, nIncompleteFRO_, readAllCollections(), selectFedsForLog(), setTtEtSums(), tps_, updateL1aRate(), withEbSimHit_, and withEeSimHit_.
|
private |
Data volume analysis. To be called for each event.
event | EDM event |
es | event setup |
Definition at line 1432 of file EcalSelectiveReadoutValidation.cc.
References a, anaDigi(), anaDigiInit(), b, ebDigis_, ebSrFlags_, eeDigis_, eeSrFlags_, FEDRawDataCollection::FEDData(), fedRaw_, fill(), getBytesPerCrystal(), getCrystalCount(), getDccEventSize(), getDccSrDependentPayload(), getEbEventSize(), getEeEventSize(), isRuComplete_, kByte_, maxDccId_, meDccHiVol_, meDccLiVol_, meDccVol_, meDccVolFromData_, meVol_, meVolB_, meVolBHI_, meVolBLI_, meVolE_, meVolEHI_, meVolELI_, meVolHI_, meVolLI_, minDccId_, nDccRus_, nDccs_, nEb_, nEbHI_, nEbLI_, nEe_, nEeHI_, nEeLI_, nHiPerDcc_, nHiRuPerDcc_, nLiPerDcc_, nLiRuPerDcc_, nPerDcc_, nPerRu_, FEDRawData::size(), and edm::DataFrameContainer::size().
Referenced by analyze().
|
private |
ECAL barrel data analysis. To be called for each event.
event | EDM event |
es | event setup |
Definition at line 543 of file EcalSelectiveReadoutValidation.cc.
References edm::DataFrameContainer::begin(), gather_cfg::cout, dccCh(), dccZsFIR(), ebDigis_, ebEnergies, ebNoZsDigis_, ebRecHits_, ebSimHits_, ebSrFlags_, ebZsThr_, DetId::Ecal, EcalBarrel, edm::DataFrameContainer::end(), PCaloHit::energy(), EcalRecHit::energy(), PV3DBase< T, PVType, FrameType >::eta(), EcalSelectiveReadoutValidation::energiesEb_t::eta, Exception, fill(), plotBeamSpotDB::first, firstFIRSample_, firWeights_, RemoveAddSevLevel::flag, frame2Energy(), EcalSelectiveReadoutValidation::energiesEb_t::gain12, ecalMGPA::gainId(), edm::EventSetup::get(), CaloSubdetectorGeometry::getGeometry(), mps_fire::i, EBDataFrame::id(), EBSrFlag::id(), PCaloHit::id(), EcalRecHit::id(), EcalTrigTowerDetId::ieta(), EBDetId::ieta(), iEta2cIndex(), EcalTrigTowerDetId::ietaAbs(), ievt_, EcalTrigTowerDetId::iphi(), iPhi2cIndex(), isRuComplete_, localReco_, SiStripPI::max, meChOcc_, meEbEMean_, meEbHiZsFir_, meEbLiZsFir_, meEbNoise_, meEbNoZsRecVsSimE_, meEbRecE_, meEbRecEHitXtal_, meEbRecVsSimE_, meEbSimE_, meForcedRu_, meFullRoRu_, meZs1Ru_, nEbEta, nEbFROCnt_, nEbPhi, nEbZsErrors_, nEbZsErrorsType1_, EcalSelectiveReadoutValidation::energiesEb_t::noZsRecE, PV3DBase< T, PVType, FrameType >::phi(), EcalSelectiveReadoutValidation::energiesEb_t::phi, rad2deg, readOutUnitOf(), EcalSelectiveReadoutValidation::energiesEb_t::recE, alignCSCRings::s, edm::second(), EcalSelectiveReadoutValidation::energiesEb_t::simE, rpcPointValidation_cfi::simHit, EcalSelectiveReadoutValidation::energiesEb_t::simHit, EcalDataFrame::size(), srApplicationErrorLog_, EcalSrFlag::SRF_FORCED_MASK, EcalSrFlag::SRF_FULL, EcalSrFlag::SRF_ZS1, findQualityFiles::v, EcalSrFlag::value(), withEbSimHit_, x, xtalGraphX(), xtalGraphY(), y, and EcalTrigTowerDetId::zside().
Referenced by analyze().
|
private |
ECAL endcap data analysis. To be called for each event.
event | EDM event |
es | event setup |
Definition at line 265 of file EcalSelectiveReadoutValidation.cc.
References edm::DataFrameContainer::begin(), gather_cfg::cout, dccCh(), dccZsFIR(), DetId::Ecal, EcalEndcap, eeDigis_, eeEnergies, eeNoZsDigis_, eeRecHits_, eeSimHits_, eeSrFlags_, eeZsThr_, edm::DataFrameContainer::end(), PCaloHit::energy(), EcalRecHit::energy(), PV3DBase< T, PVType, FrameType >::eta(), EcalSelectiveReadoutValidation::energiesEe_t::eta, Exception, fill(), plotBeamSpotDB::first, firstFIRSample_, firWeights_, RemoveAddSevLevel::flag, frame2Energy(), EcalSelectiveReadoutValidation::energiesEe_t::gain12, ecalMGPA::gainId(), edm::EventSetup::get(), CaloSubdetectorGeometry::getGeometry(), mps_fire::i, EEDataFrame::id(), EESrFlag::id(), PCaloHit::id(), EcalRecHit::id(), ievt_, isRuComplete_, EcalScDetId::ix(), EEDetId::ix(), iXY2cIndex(), EcalScDetId::iy(), EEDetId::iy(), localReco_, SiStripPI::max, meChOcc_, meEeEMean_, meEeHiZsFir_, meEeLiZsFir_, meEeNoise_, meEeNoZsRecVsSimE_, meEeRecE_, meEeRecEHitXtal_, meEeRecVsSimE_, meEeSimE_, meForcedRu_, meFullRoRu_, meZs1Ru_, nEeFROCnt_, nEeX, nEeY, nEeZsErrors_, nEeZsErrorsType1_, nEndcaps, EcalSelectiveReadoutValidation::energiesEe_t::noZsRecE, PV3DBase< T, PVType, FrameType >::phi(), EcalSelectiveReadoutValidation::energiesEe_t::phi, rad2deg, readOutUnitOf(), EcalSelectiveReadoutValidation::energiesEe_t::recE, edm::second(), EcalSelectiveReadoutValidation::energiesEe_t::simE, rpcPointValidation_cfi::simHit, EcalSelectiveReadoutValidation::energiesEe_t::simHit, EcalDataFrame::size(), edm::DataFrameContainer::size(), srApplicationErrorLog_, EcalSrFlag::SRF_FORCED_MASK, EcalSrFlag::SRF_FULL, EcalSrFlag::SRF_ZS1, findQualityFiles::v, EcalSrFlag::value(), withEeSimHit_, phase1PixelTopology::xOffset, xtalGraphX(), xtalGraphY(), EcalScDetId::zside(), EEDetId::zside(), and ecaldqm::zside().
Referenced by analyze().
|
private |
Trigger primitive analysis. To be called for each event.
event | EDM event |
es | event setup |
Definition at line 1307 of file EcalSelectiveReadoutValidation.cc.
References cIndex2iTtEta(), cIndex2iTtPhi(), DetId::Ecal, EcalBarrel, EcalEndcap, fill(), edm::EventSetup::get(), EcalTPGLutIdMap::getMap(), EcalTPGGroups::getMap(), EcalTPGPhysicsConst::getMap(), MonitorElement::getTProfile(), mps_fire::i, iTtEta2cIndex(), iTtPhi2cIndex(), lumiPlot::lut, meForcedTtf_, meHiTtf_, meLiTtf_, meMiTtf_, meTp_, meTpMap_, meTpVsEtSum_, meTtf_, meTtfVsEtSum_, meTtfVsTp_, nTtEta, nTtPhi, edm::ESHandle< T >::product(), l1t::HGCalTowerID::rawId(), DataFormats::L1THGCal::towerId, tpInGeV_, tps_, and ttEtSums.
Referenced by analyze().
|
private |
Definition at line 1841 of file EcalSelectiveReadoutValidation.cc.
References DQMStore::IBooker::book1D(), Exception, dataset::name, registerHist(), and mps_fire::result.
Referenced by bookHistograms(), and cIndex2iTtPhi().
|
private |
Definition at line 1851 of file EcalSelectiveReadoutValidation.cc.
References DQMStore::IBooker::book2D(), Exception, dataset::name, registerHist(), and mps_fire::result.
Referenced by bookHistograms(), and cIndex2iTtPhi().
|
private |
Wrappers to the book methods of the DQMStore DQM histogramming interface.
Definition at line 1830 of file EcalSelectiveReadoutValidation.cc.
References DQMStore::IBooker::bookFloat(), Exception, dataset::name, registerHist(), and mps_fire::result.
Referenced by bookHistograms(), and cIndex2iTtPhi().
|
override |
Definition at line 851 of file EcalSelectiveReadoutValidation.cc.
References availableHistList_, book1D(), book2D(), bookFloat(), bookProfile(), bookProfile2D(), ebZsThr_, eeZsThr_, histList_, meChOcc_, meCompleteZSCnt_, meCompleteZSMap_, meCompleteZSRateMap_, meDccHiVol_, meDccLiVol_, meDccVol_, meDccVolFromData_, meDroppedFROCnt_, meDroppedFROMap_, meDroppedFRORateMap_, meEbEMean_, meEbFullRoCnt_, meEbHiZsFir_, meEbLiZsFir_, meEbNoise_, meEbNoZsRecVsSimE_, meEbRecE_, meEbRecEHitXtal_, meEbRecVsSimE_, meEbSimE_, meEbZsErrCnt_, meEbZsErrType1Cnt_, meEeEMean_, meEeFullRoCnt_, meEeHiZsFir_, meEeLiZsFir_, meEeNoise_, meEeNoZsRecVsSimE_, meEeRecE_, meEeRecEHitXtal_, meEeRecVsSimE_, meEeSimE_, meEeZsErrCnt_, meEeZsErrType1Cnt_, meForcedRu_, meForcedTtf_, meFullRoCnt_, meFullRoRu_, meHiTtf_, meIncompleteFROCnt_, meIncompleteFROMap_, meIncompleteFRORateMap_, meL1aRate_, meLiTtf_, meMiTtf_, meSRFlagsConsistency_, meTp_, meTpMap_, meTpVsEtSum_, meTtf_, meTtfVsEtSum_, meTtfVsTp_, meVol_, meVolB_, meVolBHI_, meVolBLI_, meVolE_, meVolEHI_, meVolELI_, meVolHI_, meVolLI_, meZs1Ru_, meZsErrCnt_, meZsErrType1Cnt_, nDccs_, printAvailableHists(), alignCSCRings::s, AlCaHLTBitMon_QueryRunRegistry::string, runGCPTkAlMap::title, and tpInGeV_.
|
private |
Definition at line 1862 of file EcalSelectiveReadoutValidation.cc.
References DQMStore::IBooker::bookProfile(), Exception, dataset::name, registerHist(), and mps_fire::result.
Referenced by bookHistograms(), and cIndex2iTtPhi().
|
private |
Definition at line 1873 of file EcalSelectiveReadoutValidation.cc.
References DQMStore::IBooker::bookProfile2D(), Exception, dataset::name, registerHist(), and mps_fire::result.
Referenced by bookHistograms(), and cIndex2iTtPhi().
|
private |
Checks application of SR decision by the DCC.
event | event currently analyzed. |
srfs | Selective readou flags |
Definition at line 2197 of file EcalSelectiveReadoutValidation.cc.
References dccCh(), fill(), RemoveAddSevLevel::flag, getCrystalCount(), meCompleteZSMap_, meCompleteZSRateMap_, meDroppedFROMap_, meDroppedFRORateMap_, meIncompleteFROMap_, meIncompleteFRORateMap_, minDccId_, nCompleteZS_, nDroppedFRO_, nIncompleteFRO_, nPerRu_, ruGraphX(), ruGraphY(), srApplicationErrorLog_, EcalSrFlag::SRF_FULL, EcalSrFlag::SRF_ZS1, and EcalSrFlag::SRF_ZS2.
Referenced by analyze().
|
inlineprivate |
converse of iEta2cIndex() method.
Definition at line 251 of file EcalSelectiveReadoutValidation.h.
Referenced by dccCh().
|
inlineprivate |
converse of iPhi2cIndex() method.
Definition at line 258 of file EcalSelectiveReadoutValidation.h.
Referenced by dccCh().
|
inlineprivate |
converse of iTtEta2cIndex() method.
Definition at line 285 of file EcalSelectiveReadoutValidation.h.
Referenced by analyzeTP().
|
inlineprivate |
converse of iTtPhi2cIndex() method.
Definition at line 291 of file EcalSelectiveReadoutValidation.h.
References book1D(), book2D(), bookFloat(), bookProfile(), bookProfile2D(), dccZsFIR(), getFIRWeights(), dataset::name, pileupCalc::nbins, TSGForRoadSearch_cfi::option, readOutUnitOf(), AlCaHLTBitMon_QueryRunRegistry::string, runGCPTkAlMap::title, TrackerOfflineValidation_Dqm_cff::xmax, TrackerOfflineValidation_Dqm_cff::xmin, Phase2TrackerMonitorDigi_cff::ymax, and Phase2TrackerMonitorDigi_cff::ymin.
Referenced by analyzeTP().
|
inlineprivate |
converse of iXY2cIndex() method.
Definition at line 245 of file EcalSelectiveReadoutValidation.h.
|
private |
Compares two SR flag collection, flags read from data and computed flags. Descripencies are recorded in relevant histogram and log file.
T | collection type. Must be either an EESrFlagCollection or an EBSrFlagCollection. |
event | event currently analyzed. Used in logs. |
srfFromData | SR flag collection read from data |
compareSrf | SR flag collection computed from TTF by SRP emulation |
Definition at line 2085 of file EcalSelectiveReadoutValidation.cc.
References dccCh(), fill(), logErrForDccs_, meSRFlagsConsistency_, minDccId_, ruGraphX(), ruGraphY(), and srpAlgoErrorLog_.
Referenced by analyze().
|
private |
Configure DCC ZS FIR weights. Heuristic is used to determine if input weights are normalized weights or integer weights in the hardware representation.
weightsForZsFIR | weights from configuration file |
Definition at line 2014 of file EcalSelectiveReadoutValidation.cc.
References Exception, firstFIRSample_, firWeights_, getFIRWeights(), mps_fire::i, createfilelist::int, cmsBatch::log, indexGen::s2, and mathSSE::sqrt().
Referenced by EcalSelectiveReadoutValidation().
|
private |
Retrieves the logical number of the DCC reading a given crystal channel.
xtarId | crystal channel identifier |
xtarId | crystal channel, barrel trigger tower or endcap supercrystal identifier |
Definition at line 1631 of file EcalSelectiveReadoutValidation.cc.
References cIndex2iEta(), cIndex2iPhi(), EcalElectronicsId::dccId(), TauDecayModes::dec, DetId::det(), DetId::Ecal, EcalBarrel, EcalEndcap, EcalTriggerTower, elecMap_, Exception, EcalElectronicsMapping::getDCCandSC(), EcalElectronicsMapping::getElectronicsId(), EcalTrigTowerDetId::ieta(), EcalTrigTowerDetId::iphi(), iTtEta2cIndex(), iTtPhi2cIndex(), maxDccId_, minDccId_, nOneEeTtEta, DetId::rawId(), mps_fire::result, DetId::subdetId(), EcalElectronicsId::towerId(), and groupFilesInBlocks::tt.
Referenced by anaDigi(), analyzeEB(), analyzeEE(), checkSrApplication(), compareSrfColl(), dccId(), and getDccSrDependentPayload().
|
private |
Retrieves the ID of the DCC reading a readout unit
detId | detid of the readout unit |
Definition at line 2146 of file EcalSelectiveReadoutValidation.cc.
References elecMap_, and EcalElectronicsMapping::getDCCandSC().
Referenced by selectFedsForLog(), and xtalGraphY().
|
private |
Definition at line 2150 of file EcalSelectiveReadoutValidation.cc.
References dccCh(), Exception, and EcalTrigTowerDetId::ietaAbs().
|
staticprivate |
Emulates the DCC zero suppression FIR filter. If one of the time sample is not in gain 12, numeric_limits<int>::max() is returned.
frame | data frame |
firWeights | TAP weights |
firstFIRSample | index (starting from 1) of the first time sample to be used in the filter |
saturated | if not null, *saturated is set to true if all the time sample are not in gain 12 and set to false otherwise. |
Definition at line 1950 of file EcalSelectiveReadoutValidation.cc.
References EcalMGPASample::adc(), EcalMGPASample::gainId(), LogTrace, SiStripPI::max, simplePhotonAnalyzer_cfi::sample, EcalDataFrame::size(), and w.
Referenced by analyzeEB(), analyzeEE(), and cIndex2iTtPhi().
|
override |
Definition at line 833 of file EcalSelectiveReadoutValidation.cc.
References elecMap_, edm::EventSetup::get(), initAsciiFile(), edm::ESHandle< T >::product(), and triggerTowerMap_.
|
overrideprotected |
Definition at line 847 of file EcalSelectiveReadoutValidation.cc.
References MonitorElement::Fill(), getL1aRate(), and meL1aRate_.
|
inlineprivate |
Wrapper to fill methods of DQM monitor elements.
Definition at line 358 of file EcalSelectiveReadoutValidation.h.
References MonitorElement::Fill().
Referenced by analyze(), analyzeDataVolume(), analyzeEB(), analyzeEE(), analyzeTP(), checkSrApplication(), and compareSrfColl().
|
inlineprivate |
|
inlineprivate |
Definition at line 364 of file EcalSelectiveReadoutValidation.h.
References MonitorElement::Fill().
|
inlineprivate |
Definition at line 367 of file EcalSelectiveReadoutValidation.h.
References MonitorElement::Fill(), getL1aRate(), initAsciiFile(), and updateL1aRate().
|
private |
Selective Readout decisions Validation
event | EDM event |
es | event setup Energy reconstruction from ADC samples. |
frame | the ADC sample of an ECA channel |
Definition at line 1593 of file EcalSelectiveReadoutValidation.cc.
References mps_fire::i, createfilelist::int, min(), gen::n, EcalDataFrame::size(), and weights_.
Referenced by analyzeEB(), and analyzeEE().
|
private |
Energy reconstruction from ADC samples to be used for trigger primitive estimate.
frame | the ADC sample of an ECA channel |
offset | time offset. To be used to evaluate energy of the event previous (offset=-1) and next (offset=+1) to the triggered one. |
Definition at line 1795 of file EcalSelectiveReadoutValidation.cc.
References Exception, mps_fire::i, gen::n, PFRecoTauDiscriminationByIsolation_cfi::offset, and HGCalRecHit_cfi::weights.
Referenced by setTtEtSums().
|
inlineprivate |
Gets the number of bytes per crystal channel of the event part depending on the number of read crystal channels.
Definition at line 145 of file EcalSelectiveReadoutValidation.h.
Referenced by analyzeDataVolume(), getDccSrDependentPayload(), getEbEventSize(), and getEeEventSize().
|
private |
Retrieves number of crystal channel read out by a DCC channel
iDcc | DCC ID starting from 1 |
iDccCh | DCC channel starting from 1 |
Definition at line 2260 of file EcalSelectiveReadoutValidation.cc.
References maxDccId_.
Referenced by analyzeDataVolume(), checkSrApplication(), and xtalGraphY().
|
inlineprivate |
Gets the size of an DCC event fragment.
iDcc0 | the DCC logical number starting from 0. |
nReadXtals | number of read crystal channels. |
Definition at line 154 of file EcalSelectiveReadoutValidation.h.
References EB, EE, getDccOverhead(), getDccSrDependentPayload(), and getRuCount().
Referenced by analyzeDataVolume().
|
inlineprivate |
Gets the size in bytes fixed-size part of a DCC event fragment.
Definition at line 136 of file EcalSelectiveReadoutValidation.h.
References EB.
Referenced by getDccEventSize(), getEbEventSize(), and getEeEventSize().
|
inlineprivate |
Gets DCC event fragment payload depending on the channel selection made by the selective readout.
iDcc0 | the DCC logical number starting from 0. |
nReadRus | number of read-out RUs |
nReadXtals | number of read-out crystal channels. |
Definition at line 174 of file EcalSelectiveReadoutValidation.h.
References dccCh(), getBytesPerCrystal(), getRuCount(), readAllCollections(), and setTtEtSums().
Referenced by analyzeDataVolume(), and getDccEventSize().
|
private |
Computes the size of an ECAL barrel event fragment.
nReadXtals | number of read crystal channels |
Definition at line 1924 of file EcalSelectiveReadoutValidation.cc.
References EB, getBytesPerCrystal(), getDccOverhead(), getRuCount(), nEbDccs, and nEeDccs.
Referenced by analyzeDataVolume().