|
| L1TRate (const edm::ParameterSet &ps) |
|
| ~L1TRate () override |
|
void | accumulate (edm::Event const &event, edm::EventSetup const &setup) override |
|
void | beginRun (edm::Run const &run, edm::EventSetup const &setup) final |
|
| DQMOneEDAnalyzer () |
|
void | endRun (edm::Run const &, edm::EventSetup const &) final |
|
void | endRunProduce (edm::Run &run, edm::EventSetup const &setup) final |
|
virtual bool | getCanSaveByLumi () |
|
| 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 |
|
std::vector< bool > const & | recordProvenanceList () 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) |
|
TypeLabelList const & | typeLabelList () const |
| used by the fwk to register the list of products of this module More...
|
|
| ~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 &&)=default |
|
| EDConsumerBase (EDConsumerBase const &)=delete |
|
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 & | operator= (EDConsumerBase &&)=default |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
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 | analyze (const edm::Event &e, const edm::EventSetup &c) override |
|
void | beginLuminosityBlock (edm::LuminosityBlock const &lumiBlock, edm::EventSetup const &c) override |
|
void | bookHistograms (DQMStore::IBooker &ibooker, const edm::Run &, const edm::EventSetup &) override |
|
void | dqmBeginRun (edm::Run const &, edm::EventSetup const &) override |
|
void | endLuminosityBlock (edm::LuminosityBlock const &lumiBlock, edm::EventSetup const &c) override |
|
virtual void | bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &)=0 |
|
virtual void | dqmEndRun (edm::Run const &, edm::EventSetup const &) |
|
template<class ProductType > |
BranchAliasSetterT< ProductType > | produces () |
| declare what type of product will make and with which optional label More...
|
|
template<typename ProductType , BranchType B> |
BranchAliasSetterT< ProductType > | produces () |
|
template<typename ProductType , Transition B> |
BranchAliasSetterT< ProductType > | produces () |
|
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
|
template<BranchType B> |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
|
template<Transition B> |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
|
template<typename ProductType , Transition B> |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
|
template<class ProductType > |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
|
template<typename ProductType , BranchType B> |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
|
ProducesCollector | producesCollector () |
|
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | consumes (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) |
|
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<BranchType B> |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
|
Definition at line 48 of file L1TRate.h.
Reimplemented from DQMOneEDAnalyzer< edm::one::WatchLuminosityBlocks >.
Definition at line 288 of file L1TRate.cc.
298 int EventRun =
iEvent.id().run();
299 unsigned int eventLS =
iEvent.id().luminosityBlock();
302 if (triggerScalers.
isValid()) {
303 Level1TriggerScalersCollection::const_iterator itL1TScalers = triggerScalers->begin();
311 cout <<
"[L1TRate:] Buffering GT Rates for LS=" << gtLS << endl;
313 map<TString, double> bufferRate;
317 string tTrigger = (*i).second;
320 if (tTrigger !=
"Undefined") {
321 unsigned int trigBit =
m_algoBit[tTrigger];
322 double trigRate = trigRates.gtAlgoCountsRate()[trigBit];
324 bufferRate[tTrigger] = trigRate;
332 if (colLScal.
isValid() && !colLScal->empty()) {
333 LumiScalersCollection::const_iterator itLScal = colLScal->begin();
334 unsigned int scalLS = itLScal->sectionNumber();
339 cout <<
"[L1TRate:] Buffering SCAL-HF Lumi for LS=" << scalLS << endl;
341 double instLumi = itLScal->instantLumi();
342 double deadTimeNormHF = itLScal->deadTimeNormalization();
348 if (deadTimeNormHF == 0) {
360 if (gtReadoutRecordData.
isValid()) {
364 cout <<
"[L1TRate:] Buffering Prescale Index for LS=" << eventLS << endl;
368 const vector<L1GtFdlWord>& gtFdlVectorData = gtReadoutRecordData->
gtFdlVector();
372 for (
unsigned int i = 0;
i < gtFdlVectorData.size();
i++) {
373 if (gtFdlVectorData[
i].bxInEvent() == 0) {
379 int CurrentPrescalesIndex = gtFdlVectorData[indexFDL].gtPrescaleFactorIndexAlgo();
References gather_cfg::cout, edm::ParameterSet::getUntrackedParameter(), Level1TriggerRates::gtAlgoCountsRate(), L1GlobalTriggerReadoutRecord::gtFdlVector(), mps_fire::i, iEvent, muonGEMDigis_cfi::instLumi, edm::HandleBase::isValid(), m_algoBit, m_l1GtDataDaqInputTag, m_lsLuminosity, m_lsPrescaleIndex, m_lsRates, m_lsShiftGTRates, m_parameters, m_scalersSource_colLScal, m_scalersSource_triggerScalers, m_selectedTriggers, and m_verbose.
Definition at line 81 of file L1TRate.cc.
92 ibooker.setCurrentFolder(
"L1T/L1TRate");
93 m_ErrorMonitor = ibooker.book1D(
"ErrorMonitor",
"ErrorMonitor", 5, 0, 5);
125 TString tCategory = (*i).first;
126 TString tTrigger = (*i).second;
128 TString tErrorMessage =
"";
133 }
else if (tTrigger ==
"Undefined") {
134 TString tFunc =
"-1";
135 tTestFunction =
new TF1(
"FitParametrization_" + tTrigger, tFunc, 0,
double(
m_maxNbins) - 0.5);
137 TString tFunc =
"-1";
138 tTestFunction =
new TF1(
"FitParametrization_" + tTrigger, tFunc, 0,
double(
m_maxNbins) - 0.5);
139 tErrorMessage =
" (Undefined Test Function)";
141 TString tFunc =
"-1";
142 tTestFunction =
new TF1(
"FitParametrization_" + tTrigger, tFunc, 0,
double(
m_maxNbins) - 0.5);
145 if (tTrigger !=
"Undefined") {
147 tErrorMessage +=
" WARNING: Default Prescale = ";
151 if (tCategory ==
"Mu" && myMenuHelper.
getEtaRangeByAlias(tCategory, tTrigger) != 4294967295) {
152 tErrorMessage +=
" WARNING: Eta Range = ";
154 }
else if (tCategory ==
"EG" && myMenuHelper.
getEtaRangeByAlias(tCategory, tTrigger) != 32639) {
155 tErrorMessage +=
" WARNING: Eta Range = ";
157 }
else if (tCategory ==
"IsoEG" && myMenuHelper.
getEtaRangeByAlias(tCategory, tTrigger) != 32639) {
158 tErrorMessage +=
" WARNING: Eta Range = ";
162 if (tCategory ==
"Mu" && myMenuHelper.
getQualityAlias(tCategory, tTrigger) != 240) {
163 tErrorMessage +=
" WARNING: Quality = ";
168 ibooker.setCurrentFolder(
"L1T/L1TRate/TriggerCrossSections");
170 "Cross Sec. vs Inst. Lumi Algo: " + tTrigger + tErrorMessage,
176 m_xSecVsInstLumi[tTrigger]->setAxisTitle(
"Instantaneous Luminosity [10^{30}cm^{-2}s^{-1}]", 1);
178 m_xSecVsInstLumi[tTrigger]->getTProfile()->GetListOfFunctions()->Add(tTestFunction);
181 ibooker.setCurrentFolder(
"L1T/L1TRate/Certification");
183 ibooker.book1D(tCategory,
"Algo: " + tTrigger + tErrorMessage,
m_maxNbins, -0.5,
double(
m_maxNbins) - 0.5);
References edm::EventSetup::get(), get, L1TMenuHelper::getEtaRangeByAlias(), L1TMenuHelper::getLUSOTrigger(), edm::ParameterSet::getParameter(), L1TMenuHelper::getPrescaleByAlias(), L1TMenuHelper::getQualityAlias(), getXSexFitsOMDS(), getXSexFitsPython(), L1GtPrescaleFactors::gtPrescaleFactors(), mps_fire::i, m_algoBit, m_ErrorMonitor, m_inputCategories, m_l1GtUtils, m_listsPrescaleFactors, m_maxNbins, m_parameters, m_refPrescaleSet, m_selectedTriggers, m_templateFunctions, m_xSecObservedToExpected, m_xSecVsInstLumi, L1TRate_cfi::maxInstantLuminosity, optionsL1T::menu, L1TRate_cfi::minInstantLuminosity, edm::ESHandle< T >::product(), L1GtUtils::retrieveL1EventSetup(), dqm::impl::MonitorElement::setBinLabel(), L1TRate_cfi::srcAlgoXSecFit, and tools::TF1.
Definition at line 203 of file L1TRate.cc.
204 int eventLS = lumiBlock.id().luminosityBlock();
206 cout <<
"[L1TRate:] Called endLuminosityBlock at LS=" << eventLS << endl;
216 bool isDefRate, isDefLumi, isDefPrescaleIndex;
217 map<TString, double>* rates =
nullptr;
219 int prescalesIndex = 0;
223 string tTrigger = (*i).second;
229 unsigned int ls = (*i).first;
230 rates = &(*i).second;
241 isDefPrescaleIndex =
false;
243 isDefPrescaleIndex =
true;
247 if (isDefRate && isDefLumi && isDefPrescaleIndex) {
248 const vector<int>& currentPrescaleFactors = (*m_listsPrescaleFactors).at(prescalesIndex);
251 string tTrigger = (*i).second;
255 if (tTrigger !=
"Undefined") {
256 unsigned int trigBit =
m_algoBit[tTrigger];
257 double trigPrescale = currentPrescaleFactors[trigBit];
258 double trigRate = (*rates)[tTrigger];
260 if (
lumi != 0 && trigPrescale != 0 && trigRate != 0) {
261 double AlgoXSec = (trigPrescale * trigRate) /
lumi;
262 double TemplateFunctionValue = tTestFunction->Eval(
lumi);
270 cout <<
"[L1TRate:] ls=" <<
ls <<
" Algo=" << tTrigger <<
" XSec=" << AlgoXSec
271 <<
" Test=" << AlgoXSec / TemplateFunctionValue << endl;
278 cout <<
"[L1TRate:] Algo=" << tTrigger <<
" XSec=Failed" << endl;
References gather_cfg::cout, mps_fire::i, edm::LuminosityBlockBase::id(), eostools::ls(), edm::LuminosityBlockID::luminosityBlock(), m_algoBit, m_lsLuminosity, m_lsPrescaleIndex, m_lsRates, m_selectedTriggers, m_verbose, m_xSecObservedToExpected, m_xSecVsInstLumi, genParticles_cff::map, and tools::TF1.
Definition at line 394 of file L1TRate.cc.
404 map<string, WbMTriggerXSecFit> wbmFits;
408 wbmFits = myOMDSHelper.getWbMAlgoXsecFits(errorRetrive);
413 string eName = myOMDSHelper.enumToStringError(errorRetrive);
418 string eName = myOMDSHelper.enumToStringError(conError);
427 string tTrigger = (*a).second;
430 if (tTrigger !=
"Undefined") {
431 if (wbmFits.find(tTrigger) != wbmFits.end()) {
434 vector<double> tParameters;
435 tParameters.push_back(tWbMParameters.
pm1);
436 tParameters.push_back(tWbMParameters.
p0);
437 tParameters.push_back(tWbMParameters.
p1);
438 tParameters.push_back(tWbMParameters.
p2);
References a, WbMTriggerXSecFit::bitName, L1TOMDSHelper::connect(), dqm::impl::MonitorElement::Fill(), WbMTriggerXSecFit::fitFunction, edm::ParameterSet::getParameter(), m_ErrorMonitor, m_parameters, m_selectedTriggers, m_templateFunctions, L1TRate_cfi::maxInstantLuminosity, L1TRate_cfi::minInstantLuminosity, L1TOMDSHelper::NO_ERROR, L1TBPTX_cfi::oracleDB, WbMTriggerXSecFit::p0, WbMTriggerXSecFit::p1, WbMTriggerXSecFit::p2, L1TBPTX_cfi::pathCondDB, WbMTriggerXSecFit::pm1, and tools::TF1.
Referenced by bookHistograms().
Definition at line 467 of file L1TRate.cc.
472 std::vector<edm::ParameterSet> m_fitParameters = ps.
getParameter<vector<ParameterSet> >(
"fitParameters");
479 string tTrigger = (*a).second;
482 if (tTrigger !=
"Undefined") {
483 bool foundFit =
false;
485 for (
unsigned int b = 0;
b < m_fitParameters.size();
b++) {
486 if (tTrigger == m_fitParameters[
b].getParameter<string>(
"AlgoName")) {
487 TString tAlgoName = m_fitParameters[
b].getParameter<
string>(
"AlgoName");
488 TString tTemplateFunction = m_fitParameters[
b].getParameter<
string>(
"TemplateFunction");
489 vector<double> tParameters = m_fitParameters[
b].getParameter<vector<double> >(
"Parameters");
504 string eName =
"WARNING_PY_MISSING_FIT";
References a, b, dqm::impl::MonitorElement::Fill(), edm::ParameterSet::getParameter(), m_ErrorMonitor, m_parameters, m_selectedTriggers, m_templateFunctions, L1TRate_cfi::maxInstantLuminosity, L1TRate_cfi::minInstantLuminosity, and tools::TF1.
Referenced by bookHistograms().