|
| RPCEventSummary (const edm::ParameterSet &ps) |
| Constructor. More...
|
|
| ~RPCEventSummary () override |
| Destructor. More...
|
|
void | accumulate (edm::Event const &ev, edm::EventSetup const &es) final |
|
void | beginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) final |
|
void | beginRun (edm::Run const &, edm::EventSetup const &) override |
|
| DQMEDHarvester () |
|
void | endJob () final |
|
void | endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) final |
|
void | endLuminosityBlockProduce (edm::LuminosityBlock &, edm::EventSetup const &) final |
|
void | endRun (edm::Run const &, edm::EventSetup const &) override |
|
void | endRunProduce (edm::Run &run, edm::EventSetup const &setup) override |
|
| ~DQMEDHarvester () override=default |
|
| EDProducer ()=default |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () final |
|
SerialTaskQueue * | globalRunsQueue () final |
|
bool | hasAbilityToProduceInBeginLumis () const final |
|
bool | hasAbilityToProduceInBeginRuns () const final |
|
bool | hasAbilityToProduceInEndLumis () const final |
|
bool | hasAbilityToProduceInEndRuns () const final |
|
bool | wantsGlobalLuminosityBlocks () const final |
|
bool | wantsGlobalRuns () const final |
|
| EDProducerBase () |
|
ModuleDescription const & | moduleDescription () const |
|
bool | wantsStreamLuminosityBlocks () const |
|
bool | wantsStreamRuns () const |
|
| ~EDProducerBase () override |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
std::vector< edm::ProductResolverIndex > const & | indiciesForPutProducts (BranchType iBranchType) const |
|
| ProducerBase () |
|
std::vector< edm::ProductResolverIndex > const & | putTokenIndexToProductResolverIndex () const |
|
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
|
std::function< void(BranchDescription const &)> | registrationCallback () const |
| used by the fwk to register list of products More...
|
|
void | resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel) |
|
| ~ProducerBase () noexcept(false) override |
|
std::vector< ConsumesInfo > | consumesInfo () const |
|
void | convertCurrentProcessAlias (std::string const &processName) |
| Convert "@currentProcess" in InputTag process names to the actual current process name. More...
|
|
| EDConsumerBase () |
|
| EDConsumerBase (EDConsumerBase const &)=delete |
|
| EDConsumerBase (EDConsumerBase &&)=default |
|
ESProxyIndex const * | esGetTokenIndices (edm::Transition iTrans) const |
|
ProductResolverIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
std::vector< ProductResolverIndexAndSkipBit > const & | itemsToGetFrom (BranchType iType) const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
void | updateLookup (eventsetup::ESRecordsToProxyIndices const &) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
|
void | beginJob () override |
|
void | dqmEndJob (DQMStore::IBooker &, DQMStore::IGetter &) override |
|
void | dqmEndLuminosityBlock (DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &) override |
|
ProducesCollector | producesCollector () |
|
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) |
|
Definition at line 10 of file RPCEventSummary.h.
Definition at line 177 of file RPCEventSummary.cc.
References ztail::d, DEAD, doEndcapCertification_, eventInfoPath_, dqm::impl::MonitorElement::Fill(), dqm::dqmstoreimpl::DQMStore::IGetter::get(), dqm::impl::MonitorElement::getBinContent(), dqm::impl::MonitorElement::getNbinsX(), dqm::impl::MonitorElement::getNbinsY(), globalFolder_, mps_fire::i, minimumEvents_, numberDisk_, PARTIALLY_DEAD, prefixFolder_, alignCSCRings::r, alignCSCRings::s, fileinputsource_cfi::sec, dqm::impl::MonitorElement::setBinContent(), w, and y.
Referenced by dqmEndJob(), and dqmEndLuminosityBlock().
188 std::stringstream meName;
198 float barrelFactor = 0;
200 for (
int w = -2;
w < 3;
w++) {
202 meName <<
globalFolder_ <<
"/RPCChamberQuality_Roll_vs_Sector_Wheel" <<
w;
203 myMe = igetter.get(meName.str());
206 float wheelFactor = 0;
209 float sectorFactor = 0;
210 int rollInSector = 0;
213 if ((
s != 4 &&
r > 17) || ((
s == 9 ||
s == 10) &&
r > 15))
224 if (rollInSector != 0)
225 sectorFactor = sectorFactor / rollInSector;
229 wheelFactor += sectorFactor;
233 wheelFactor = wheelFactor / myMe->
getNbinsX();
236 meName << eventInfoPath_ +
"/reportSummaryContents/RPC_Wheel" <<
w;
237 globalMe = igetter.get(meName.str());
239 globalMe->
Fill(wheelFactor);
241 barrelFactor += wheelFactor;
245 barrelFactor = barrelFactor / 5;
247 float endcapFactor = 0;
256 meName <<
globalFolder_ <<
"/RPCChamberQuality_Ring_vs_Segment_Disk" <<
d;
257 myMe = igetter.get(meName.str());
260 float diskFactor = 0;
262 float sectorFactor[6] = {0, 0, 0, 0, 0, 0};
264 for (
int i = 0;
i < 6;
i++) {
265 int firstSeg = (
i * 6) + 1;
266 int lastSeg = firstSeg + 6;
267 int rollInSector = 0;
268 for (
int seg = firstSeg; seg < lastSeg; seg++) {
272 sectorFactor[
i] += 0.8;
274 sectorFactor[
i] += 0;
276 sectorFactor[
i] += 1;
279 sectorFactor[
i] = sectorFactor[
i] / rollInSector;
283 diskFactor += sectorFactor[
sec];
292 diskFactor = diskFactor / 6;
295 meName << eventInfoPath_ +
"/reportSummaryContents/RPC_Disk" <<
d;
296 globalMe = igetter.get(meName.str());
298 globalMe->
Fill(diskFactor);
300 endcapFactor += diskFactor;
308 float rpcFactor = barrelFactor;
310 rpcFactor = (barrelFactor + endcapFactor) / 2;
313 globalMe = igetter.get(eventInfoPath_ +
"/reportSummary");
315 globalMe->
Fill(rpcFactor);
std::string eventInfoPath_
virtual int getNbinsY() const
get # of bins in Y-axis
bool doEndcapCertification_
std::string globalFolder_
virtual int getNbinsX() const
get # of bins in X-axis
virtual double getBinContent(int binx) const
get content of bin (1-D)
virtual void setBinContent(int binx, double content)
set content of bin (1-D)
std::string prefixFolder_
Reimplemented from DQMEDHarvester.
Definition at line 48 of file RPCEventSummary.cc.
References CentralityFilter_cfi::BinLabel, dqm::dqmstoreimpl::DQMStore::IBooker::book2D(), dqm::dqmstoreimpl::DQMStore::IBooker::bookFloat(), clientOperation(), eventInfoPath_, f, FEDRange_, dqm::impl::MonitorElement::Fill(), edm::eventsetup::heterocontainer::HCTypeTag::findType(), HltBtagPostValidation_cff::histoName, mps_fire::i, init_, isIn_, dqmiolumiharvest::j, lumiCounter_, RunInfo::m_fed_in, hlt_dqm_clientPB-live_cfg::me, numberDisk_, offlineDQM_, prescaleFactor_, dqm::impl::MonitorElement::setBinContent(), dqm::impl::MonitorElement::setBinLabel(), dqm::dqmstoreimpl::DQMStore::IBooker::setCurrentFolder(), AlCaHLTBitMon_QueryRunRegistry::string, and edm::EventSetup::tryToGet().
67 runInfoRec->get(sumFED);
68 std::vector<int> FedsInIds = sumFED->
m_fed_in;
71 while (!
isIn_ && f < FedsInIds.size()) {
72 int fedID = FedsInIds[
f];
89 me = ibooker.bookFloat(histoName);
90 me->
Fill(defaultValue);
94 me = ibooker.book2D(
"reportSummaryMap",
"RPC Report Summary Map", 15, -7.5, 7.5, 12, 0.5, 12.5);
98 for (
int i = 1;
i <= 15;
i++) {
101 BinLabel <<
"Sec" <<
i;
107 BinLabel <<
"Disk" << i - 5;
109 BinLabel <<
"Disk" << i - 11;
110 else if (i == 11 || i == 5)
113 BinLabel <<
"Wheel" << i - 8;
119 for (
int i = 1; i <= 15; i++) {
120 for (
int j = 1;
j <= 12;
j++) {
121 if (i == 5 || i == 11 || (
j > 6 && (i < 6 || i > 10)))
129 for (
int j = 1;
j <= 12;
j++) {
136 ibooker.setCurrentFolder(
eventInfoPath_ +
"/reportSummaryContents");
138 std::stringstream segName;
139 std::vector<std::string> segmentNames;
140 for (
int i = -2; i <= 2; i++) {
142 segName <<
"RPC_Wheel" <<
i;
143 segmentNames.push_back(segName.str());
150 segName <<
"RPC_Disk" <<
i;
151 segmentNames.push_back(segName.str());
154 for (
unsigned int i = 0; i < segmentNames.size(); i++) {
156 me = ibooker.bookFloat(segmentNames[i]);
157 me->
Fill(defaultValue);
std::string eventInfoPath_
static HCTypeTag findType(char const *iTypeName)
find a type based on the types name, if not found will return default HCTypeTag
std::vector< int > m_fed_in
virtual void setBinLabel(int bin, const std::string &label, int axis=1)
set bin label for x, y or z axis (axis=1, 2, 3 respectively)
void clientOperation(DQMStore::IGetter &igetter)
virtual void setBinContent(int binx, double content)
set content of bin (1-D)
std::pair< int, int > FEDRange_