|
enum | BinningType { kCrystal,
kSuperCrystal,
kTriggerTower
} |
|
enum | Collections {
kSource,
kEcalRawData,
kGainErrors,
kChIdErrors,
kGainSwitchErrors,
kTowerIdErrors,
kBlockSizeErrors,
kMEMTowerIdErrors,
kMEMBlockSizeErrors,
kMEMChIdErrors,
kMEMGainErrors,
kEBSrFlag,
kEESrFlag,
kEBDigi,
kEEDigi,
kPnDiodeDigi,
kTrigPrimDigi,
kTrigPrimEmulDigi,
kEBUncalibRecHit,
kEEUncalibRecHit,
kEBRecHit,
kEERecHit,
kEBBasicCluster,
kEEBasicCluster,
kEBSuperCluster,
kEESuperCluster,
kRun,
kLumiSection,
nProcessedObjects,
nCollections = kRun
} |
|
enum | Directions { kLeft,
kRight
} |
|
enum | FEFlags {
Enabled = 0,
Disabled = 1,
Timeout = 2,
HeaderError = 3,
ChannelId = 4,
LinkError = 5,
BlockSize = 6,
Suppressed = 7,
FIFOFull = 8,
L1ADesync = 9,
BXDesync = 10,
L1ABXDesync = 11,
FIFOFullL1ADesync = 12,
HParity = 13,
VParity = 14,
ForcedZS = 15,
nFEFlags = 16
} |
|
enum | ObjectType {
kFullEE,
kEEp,
kEEm,
kEEpFar,
kEEpNear,
kEEmFar,
kEEmNear,
kSM
} |
|
enum | SMName {
kEEm07,
kEEm08,
kEEm09,
kEEm01,
kEEm02,
kEEm03,
kEEm04,
kEEm05,
kEEm06,
kEBm01,
kEBm02,
kEBm03,
kEBm04,
kEBm05,
kEBm06,
kEBm07,
kEBm08,
kEBm09,
kEBm10,
kEBm11,
kEBm12,
kEBm13,
kEBm14,
kEBm15,
kEBm16,
kEBm17,
kEBm18,
kEBp01,
kEBp02,
kEBp03,
kEBp04,
kEBp05,
kEBp06,
kEBp07,
kEBp08,
kEBp09,
kEBp10,
kEBp11,
kEBp12,
kEBp13,
kEBp14,
kEBp15,
kEBp16,
kEBp17,
kEBp18,
kEEp07,
kEEp08,
kEEp09,
kEEp01,
kEEp02,
kEEp03,
kEEp04,
kEEp05,
kEEp06,
kEEmLow = kEEm07,
kEEmHigh = kEEm06,
kEEpLow = kEEp07,
kEEpHigh = kEEp06,
kEBmLow = kEBm01,
kEBmHigh = kEBm18,
kEBpLow = kEBp01,
kEBpHigh = kEBp18
} |
|
|
MonitorElement * | bookME (DQMStore *dqmStore, const std::string &name, const std::string &title, const std::string &className, ObjectType otype, BinningType btype=kCrystal, int ism=0, double lowZ=0., double highZ=0., const char *option="s") |
|
void | calcBins (int binWidth, int divisor, long int start_time, long int last_time, long int current_time, long int &binDiff, long int &diff) |
|
bool | ccuExists (unsigned, unsigned) |
|
void | checkElectronicsMap () |
|
void | checkTrigTowerMap () |
|
TObject * | cloneIt (MonitorElement *me, std::string histo) |
|
unsigned | dccId (const DetId &) |
|
unsigned | dccId (const EcalElectronicsId &) |
|
unsigned | dccId (unsigned) |
|
const std::set< unsigned > | dccNoMEM (nomemarr, nomemarr+10) |
|
const EcalElectronicsMapping * | electronicsMap (0) |
|
void | fillME (MonitorElement *me, const EEDetId &id, double wz=1., double wprof=1.) |
|
void | fillME (MonitorElement *me, const EcalScDetId &id, double wz=1., double wprof=1.) |
|
void | fillME (MonitorElement *me, const EcalTrigTowerDetId &id, double wz=1., double wprof=1.) |
|
void | getAverageFromTProfile (TProfile *p, double &mean, double &rms) |
|
double | getBinContentME (MonitorElement *me, const EEDetId &id) |
|
double | getBinContentME (MonitorElement *me, const EcalScDetId &id) |
|
double | getBinContentME (MonitorElement *me, const EcalTrigTowerDetId &id) |
|
double | getBinEntriesME (MonitorElement *me, const EEDetId &id) |
|
double | getBinEntriesME (MonitorElement *me, const EcalScDetId &id) |
|
double | getBinEntriesME (MonitorElement *me, const EcalTrigTowerDetId &id) |
|
double | getBinErrorME (MonitorElement *me, const EEDetId &id) |
|
double | getBinErrorME (MonitorElement *me, const EcalScDetId &id) |
|
double | getBinErrorME (MonitorElement *me, const EcalTrigTowerDetId &id) |
|
int | getBinME (MonitorElement *me, const EEDetId &id) |
|
int | getBinME (MonitorElement *me, const EcalScDetId &id) |
|
int | getBinME (MonitorElement *me, const EcalTrigTowerDetId &id) |
|
unsigned | getEEPnDCC (unsigned, unsigned) |
|
const EcalElectronicsMapping * | getElectronicsMap () |
|
void | getMeanRms (TObject *pre, TObject *cur, double &mean, double &rms) |
|
unsigned | getNSuperCrystals (unsigned) |
|
const
EcalTrigTowerConstituentsMap * | getTrigTowerMap () |
|
bool | isEcalScDetId (const DetId &_id) |
|
unsigned | memDCCIndex (unsigned) |
|
CertificationClient * | pCertificationClient (0) |
|
ClusterTask * | pClusterTask (0) |
|
EnergyTask * | pEnergyTask (0) |
|
IntegrityClient * | pIntegrityClient (0) |
|
IntegrityTask * | pIntegrityTask (0) |
|
LaserClient * | pLaserClient (0) |
|
LaserTask * | pLaserTask (0) |
|
LedTask * | pLedTask (0) |
|
OccupancyClient * | pOccupancyClient (0) |
|
OccupancyTask * | pOccupancyTask (0) |
|
PedestalTask * | pPedestalTask (0) |
|
PNIntegrityTask * | pPNIntegrityTask (0) |
|
PNPresampleTask * | pPNPresampleTask (0) |
|
PresampleClient * | pPresampleClient (0) |
|
PresampleTask * | pPresampleTask (0) |
|
RawDataClient * | pRawDataClient (0) |
|
RawDataTask * | pRawDataTask (0) |
|
SelectiveReadoutClient * | pSelectiveReadoutClient (0) |
|
SelectiveReadoutTask * | pSelectiveReadoutTask (0) |
|
SummaryClient * | pSummaryClient (0) |
|
TestPulseTask * | pTestPulseTask (0) |
|
TimingClient * | pTimingClient (0) |
|
TimingTask * | pTimingTask (0) |
|
TowerStatusTask * | pTowerStatusTask (0) |
|
TrigPrimClient * | pTrigPrimClient (0) |
|
TrigPrimTask * | pTrigPrimTask (0) |
|
void | setBinContentME (MonitorElement *me, const EEDetId &id, double content) |
|
void | setBinContentME (MonitorElement *me, const EcalScDetId &id, double content) |
|
void | setBinContentME (MonitorElement *me, const EcalTrigTowerDetId &id, double content) |
|
void | setBinEntriesME (MonitorElement *me, const EEDetId &id, double entries) |
|
void | setBinEntriesME (MonitorElement *me, const EcalScDetId &id, double entries) |
|
void | setBinEntriesME (MonitorElement *me, const EcalTrigTowerDetId &id, double entries) |
|
void | setBinErrorME (MonitorElement *me, const EEDetId &id, double error) |
|
void | setBinErrorME (MonitorElement *me, const EcalScDetId &id, double error) |
|
void | setBinErrorME (MonitorElement *me, const EcalTrigTowerDetId &id, double error) |
|
void | setElectronicsMap (const EcalElectronicsMapping *) |
|
void | setTrigTowerMap (const EcalTrigTowerConstituentsMap *) |
|
void | shift (TH1 *h, Directions d, int bins) |
|
void | shift2Left (TH1 *h, int bins) |
|
void | shift2Right (TH1 *h, int bins) |
|
void | shiftAxis (TH1 *h, Directions d, double shift) |
|
std::string | smName (unsigned _dccId) |
|
unsigned | tccId (const DetId &) |
|
unsigned | tccId (const EcalElectronicsId &) |
|
unsigned | towerId (const DetId &) |
|
unsigned | towerId (const EcalElectronicsId &) |
|
const
EcalTrigTowerConstituentsMap * | trigtowerMap (0) |
|
unsigned | ttId (const DetId &) |
|
unsigned | ttId (const EcalElectronicsId &) |
|
template<class W > |
DQWorker * | workerFactory (const edm::ParameterSet &_params, const edm::ParameterSet &_paths) |
|
|
SetWorker | CertificationClientInstance ("CertificationClient", pCertificationClient) |
|
SetWorker | ClusterTaskInstance ("ClusterTask", pClusterTask) |
|
std::string const | collectionName [nCollections] |
|
const std::set< unsigned > | dccNoMEM |
|
const EcalElectronicsMapping * | electronicsMap |
|
SetWorker | EnergyTaskInstance ("EnergyTask", pEnergyTask) |
|
SetWorker | IntegrityClientInstance ("IntegrityClient", pIntegrityClient) |
|
SetWorker | IntegrityTaskInstance ("IntegrityTask", pIntegrityTask) |
|
SetWorker | LaserClientInstance ("LaserClient", pLaserClient) |
|
SetWorker | LaserTaskInstance ("LaserTask", pLaserTask) |
|
SetWorker | LedTaskInstance ("LedTask", pLedTask) |
|
unsigned | nomemarr [] = {kEEm09, kEEm01, kEEm04, kEEm05, kEEm06, kEEp09, kEEp01, kEEp04, kEEp05, kEEp06} |
|
SetWorker | OccupancyClientInstance ("OccupancyClient", pOccupancyClient) |
|
SetWorker | OccupancyTaskInstance ("OccupancyTask", pOccupancyTask) |
|
SetWorker | PedestalTaskInstance ("PedestalTask", pPedestalTask) |
|
SetWorker | PNIntegrityTaskInstance ("PNIntegrityTask", pPNIntegrityTask) |
|
SetWorker | PNPresampleTaskInstance ("PNPresampleTask", pPNPresampleTask) |
|
SetWorker | PresampleClientInstance ("PresampleClient", pPresampleClient) |
|
SetWorker | PresampleTaskInstance ("PresampleTask", pPresampleTask) |
|
SetWorker | RawDataClientInstance ("RawDataClient", pRawDataClient) |
|
SetWorker | RawDataTaskInstance ("RawDataTask", pRawDataTask) |
|
SetWorker | SelectiveReadoutClientInstance ("SelectiveReadoutClient", pSelectiveReadoutClient) |
|
SetWorker | SelectiveReadoutTaskInstance ("SelectiveReadoutTask", pSelectiveReadoutTask) |
|
SetWorker | SummaryClientInstance ("SummaryClient", pSummaryClient) |
|
SetWorker | TestPulseTaskInstance ("TestPulseTask", pTestPulseTask) |
|
SetWorker | TimingClientInstance ("TimingClient", pTimingClient) |
|
SetWorker | TimingTaskInstance ("TimingTask", pTimingTask) |
|
SetWorker | TowerStatusTaskInstance ("TowerStatusTask", pTowerStatusTask) |
|
SetWorker | TrigPrimClientInstance ("TrigPrimClient", pTrigPrimClient) |
|
SetWorker | TrigPrimTaskInstance ("TrigPrimTask", pTrigPrimTask) |
|
const
EcalTrigTowerConstituentsMap * | trigtowerMap |
|
MonitorElement * ecaldqm::bookME |
( |
DQMStore * |
dqmStore, |
|
|
const std::string & |
name, |
|
|
const std::string & |
title, |
|
|
const std::string & |
className, |
|
|
ObjectType |
otype, |
|
|
BinningType |
btype = kCrystal , |
|
|
int |
ism = 0 , |
|
|
double |
lowZ = 0. , |
|
|
double |
highZ = 0. , |
|
|
const char * |
option = "s" |
|
) |
| |
Definition at line 48 of file GeometryHelper.cc.
References DQMStore::book2D(), DQMStore::bookProfile2D(), Numbers::ix0EE(), Numbers::iy0EE(), kCrystal, kEEm, kEEmFar, kEEmNear, kEEp, kEEpFar, kEEpNear, kFullEE, kSM, kSuperCrystal, kTriggerTower, NULL, and ecaldqm::MeInfoMap::set().
50 if( !dqmStore )
return NULL;
94 nBinsX = (Int_t)(xmax - xmin);
95 nBinsY = (Int_t)(ymax - ymin);
98 nBinsX = (Int_t)(xmax - xmin) / 5;
99 nBinsY = (Int_t)(ymax - ymin) / 5;
109 me = dqmStore->
book2D(
name,
title, nBinsX, xmin, xmax, nBinsY, ymin, ymax);
static int ix0EE(const unsigned ism)
static int iy0EE(const unsigned ism)
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
int ism(int ieta, int iphi)
std::string className(const T &t)
void set(const std::string &name, int value)
set the flag, with a run-time name
MonitorElement * bookProfile2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, int nchZ, double lowZ, double highZ, const char *option="s")
unsigned ecaldqm::dccId |
( |
const DetId & |
_id | ) |
|
|
inline |
Definition at line 78 of file EcalDQMCommonUtils.h.
References checkElectronicsMap(), EcalElectronicsId::dccId(), EcalElectronicsMapping::DCCid(), EcalBarrel, EcalEndcap, EcalLaserPnDiode, EcalTriggerTower, electronicsMap, edm::hlt::Exception, EcalElectronicsMapping::getDCCandSC(), EcalElectronicsMapping::getElectronicsId(), EcalPnDiodeDetId::iDCCId(), isEcalScDetId(), DetId::rawId(), and DetId::subdetId().
Referenced by DCCEventBlock::addHeaderToCollection(), LaserSorter::analyze(), DCCEESRPBlock::checkSrpIdAndNumbSRFlags(), EcalDCCHeaderBlock::EcalDCCHeaderBlock(), ESDCCHeaderBlock::ESDCCHeaderBlock(), EcalDQMBinningService::findBinsDCC_(), EcalDQMBinningService::findOffset(), ecaldqm::MESetEcal::generateNames(), LinkBoardElectronicIndex::print(), EcalElectronicsMapping::pseudoStripConstituents(), ecaldqm::PedestalTask::runOnDigis(), ecaldqm::TestPulseTask::runOnDigis(), ecaldqm::LaserTask::runOnDigis(), ecaldqm::LedTask::runOnDigis(), ecaldqm::SelectiveReadoutTask::runOnDigis(), ecaldqm::PedestalTask::runOnPnDigis(), ecaldqm::TestPulseTask::runOnPnDigis(), ecaldqm::LaserTask::runOnPnDigis(), ecaldqm::LedTask::runOnPnDigis(), ecaldqm::RawDataTask::runOnRawData(), ecaldqm::SelectiveReadoutTask::runOnSrFlag_(), ecaldqm::TowerStatusTask::runOnTowerStatus(), ecaldqm::TestPulseTask::runOnUncalibRecHits(), ecaldqm::LedTask::runOnUncalibRecHits(), ecaldqm::LaserTask::runOnUncalibRecHits(), EcalElectronicsMapper::setActiveDCC(), ESKCHIPBlock::setDccId(), ESDCCHeaderBlock::setId(), EcalDCCHeaderBlock::setId(), EcalElectronicsMapping::tccConstituents(), and EcalElectronicsMapping::ttConstituents().
91 throw cms::Exception(
"InvalidDetId") <<
"EcalDQMCommonUtils::dccId(" << _id.
rawId() <<
")" << std::endl;
const EcalElectronicsMapping * electronicsMap
std::pair< int, int > getDCCandSC(EcalScDetId id) const
uint32_t rawId() const
get the raw id
EcalElectronicsId getElectronicsId(const DetId &id) const
Get the electronics id for this det id.
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
int iDCCId() const
get the DCCId
int dccId() const
get the DCC (Ecal Local DCC value not global one) id
bool isEcalScDetId(const DetId &_id)
int DCCid(const EBDetId &id) const
returns the DCC of an EBDetId
void checkElectronicsMap()
Definition at line 232 of file GeometryHelper.cc.
References ecaldqm::MeInfo::btype, MonitorElement::DQM_KIND_TH2F, MonitorElement::DQM_KIND_TH3F, MonitorElement::DQM_KIND_TPROFILE, ecaldqm::MeInfoMap::get(), info, ecaldqm::MeInfo::ism, ecalpyutils::ism(), Numbers::ix0EE(), Numbers::iy0EE(), kEEm, kEEmFar, kEEmNear, kEEp, kEEpFar, kEEpNear, kFullEE, MonitorElement::kind(), kSM, kSuperCrystal, ecaldqm::MeInfo::otype, and pileupReCalc_HLTpaths::scale.
Referenced by getBinContentME(), getBinEntriesME(), getBinErrorME(), setBinContentME(), setBinEntriesME(), and setBinErrorME().
235 int kind = me->
kind();
241 if( !info )
return -1;
245 int zside =
id.zside();
249 if(info->otype ==
kSM){
264 if(zside > 0) ix += 100;
268 if(zside < 0)
return -1;
272 if(zside > 0)
return -1;
276 if(zside < 0 || ix > 50)
return -1;
280 if(zside < 0 || ix < 51)
return -1;
285 if(zside > 0 || ix > 50)
return -1;
289 if(zside > 0 || ix < 51)
return -1;
300 ix = (ix - 1) / scale + 1;
301 iy = (iy - 1) / scale + 1;
304 return iy * (nx + 2) + ix;
static int ix0EE(const unsigned ism)
static int iy0EE(const unsigned ism)
Kind kind(void) const
Get the type of the monitor element.
int ism(int ieta, int iphi)
T get(const Candidate &c)
Definition at line 308 of file GeometryHelper.cc.
References ecaldqm::MeInfo::btype, MonitorElement::DQM_KIND_TH2F, MonitorElement::DQM_KIND_TH3F, MonitorElement::DQM_KIND_TPROFILE, ecaldqm::MeInfoMap::get(), info, ecaldqm::MeInfo::ism, ecalpyutils::ism(), Numbers::ix0EE(), Numbers::iy0EE(), kEEm, kEEmFar, kEEmNear, kEEp, kEEpFar, kEEpNear, kFullEE, MonitorElement::kind(), kSM, kSuperCrystal, and ecaldqm::MeInfo::otype.
311 int kind = me->
kind();
317 if( !info )
return -1;
323 int zside =
id.zside();
327 if(info->otype ==
kSM){
342 if(zside > 0) ix += 20;
346 if(zside < 0)
return -1;
350 if(zside > 0)
return -1;
354 if(zside < 0 || ix > 10)
return -1;
358 if(zside < 0 || ix < 11)
return -1;
363 if(zside > 0 || ix > 10)
return -1;
367 if(zside > 0 || ix < 11)
return -1;
377 return iy * (nx + 2) + ix;
static int ix0EE(const unsigned ism)
static int iy0EE(const unsigned ism)
Kind kind(void) const
Get the type of the monitor element.
int ism(int ieta, int iphi)
T get(const Candidate &c)
void ecaldqm::shift |
( |
TH1 * |
h, |
|
|
Directions |
d, |
|
|
int |
bins |
|
) |
| |
Definition at line 58 of file UtilFunctions.cc.
References combineCards::bins, h, i, j, kLeft, kRight, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by shift2Left(), and shift2Right().
60 if(!
bins || !
h)
return;
61 if(
h->GetXaxis()->IsVariableBinSize())
return;
68 if(!
h->GetSumw2())
h->Sumw2();
69 int nBins =
h->GetXaxis()->GetNbins();
78 int firstBin, lastBin, bound, increment;
89 bound = nBins -
bins + 1;
98 if(
h->IsA() == TClass::GetClass(
"TProfile") ){
100 TProfile *
p =
static_cast<TProfile *
>(
h);
104 double nentries = p->GetEntries();
105 for(
int i = firstBin;
i != firstBin +
shift;
i += increment) nentries -= p->GetBinEntries(
i);
106 p->SetEntries(nentries);
108 TArrayD* sumw2 = p->GetSumw2();
110 for(
int i = firstBin;
i != bound;
i += increment){
112 p->SetBinContent(
i, p->GetBinContent(
i+shift ) * p->GetBinEntries(
i+shift ) );
113 p->SetBinEntries(
i, p->GetBinEntries(
i+shift ) );
114 sumw2->SetAt( sumw2->GetAt(
i+shift ),
i );
117 for(
int i = bound;
i != lastBin + increment;
i += increment){
118 p->SetBinContent(
i, 0 );
119 p->SetBinEntries(
i, 0 );
120 sumw2->SetAt( 0.,
i );
123 }
else if(
h->InheritsFrom(
"TH2") ){
125 TH2 *h2 =
static_cast<TH2 *
>(
h);
126 int nBinsY = h2->GetYaxis()->GetNbins();
129 double nentries = h2->GetEntries();
130 for(
int i = firstBin;
i != firstBin +
shift;
i += increment)
131 for(
int j=0 ;
j<=nBinsY+1 ;
j++) nentries -= h2->GetBinContent(
i,
j);
133 h2->SetEntries(nentries);
135 for(
int i = firstBin;
i != bound;
i += increment)
136 for(
int j = 0;
j <= nBinsY + 1;
j++)
137 h2->SetBinContent(
i,
j, h2->GetBinContent(
i+shift,
j) );
139 for(
int i = bound;
i != lastBin + increment;
i += increment)
140 for(
int j = 0;
j <= nBinsY + 1;
j++)
141 h2->SetBinContent(
i,
j, 0 );
143 }
else if(
h->InheritsFrom(
"TH1") ){
146 double nentries =
h->GetEntries();
147 for(
int i = firstBin;
i != firstBin +
shift;
i += increment) nentries -=
h->GetBinContent(
i);
149 h->SetEntries(nentries);
151 for(
int i = firstBin;
i != bound;
i += increment)
152 h->SetBinContent(
i,
h->GetBinContent(
i+shift) );
154 for(
int i = bound;
i != lastBin + increment;
i += increment)
155 h->SetBinContent(
i, 0 );
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
static unsigned int const shift
unsigned ecaldqm::ttId |
( |
const DetId & |
_id | ) |
|
|
inline |
Definition at line 170 of file EcalDQMCommonUtils.h.
References checkElectronicsMap(), EcalBarrel, EcalEndcap, EcalTriggerTower, electronicsMap, edm::hlt::Exception, EcalElectronicsMapping::getTriggerElectronicsId(), isEcalScDetId(), EcalTrigTowerDetId::iTT(), EcalElectronicsMapping::iTT(), DetId::subdetId(), EBDetId::tower(), and EcalTriggerElectronicsId::ttId().
Referenced by EcalTPGTowerStatusXMLTranslator::dumpXML(), EcalElectronicsMapper::fillMaps(), EcalDQMBinningService::findBinsNoMap(), EcalTPGTowerStatusXMLTranslator::plot(), cond::PayLoadInspector< DataT >::plot(), EcalDetIdToBeRecoveredProducer::produce(), EcalSelectiveReadoutValidation::setTtEtSums(), EcalSelectiveReadoutSuppressor::setTtFlags(), EcalTrigPrimCompactColl::toEcalTrigPrimDigiCollection(), EcalDumpRaw::tpgTag(), and EcalDumpRaw::ttfTag().
182 throw cms::Exception(
"InvalidDetId") <<
"EcalDQMCommonUtils::ttId(" << std::hex << uint32_t(_id) <<
")" << std::endl;
const EcalElectronicsMapping * electronicsMap
int iTT(const EcalTrigTowerDetId &id) const
returns the index of a Trigger Tower within its TCC.
int ttId() const
get the tower id
EcalTriggerElectronicsId getTriggerElectronicsId(const DetId &id) const
Get the trigger electronics id for this det id.
EcalTrigTowerDetId tower() const
get the HCAL/trigger iphi of this crystal
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
bool isEcalScDetId(const DetId &_id)
void checkElectronicsMap()
int iTT() const
sequential index within one DCC