|
| L1TRate_Offline (const edm::ParameterSet &ps) |
|
| ~L1TRate_Offline () 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 | hasAbilityToProduceInBeginProcessBlocks () const final |
|
bool | hasAbilityToProduceInBeginRuns () const final |
|
bool | hasAbilityToProduceInEndLumis () const final |
|
bool | hasAbilityToProduceInEndProcessBlocks () const final |
|
bool | hasAbilityToProduceInEndRuns () const final |
|
bool | wantsGlobalLuminosityBlocks () const final |
|
bool | wantsGlobalRuns () const final |
|
bool | wantsInputProcessBlocks () const final |
|
bool | wantsProcessBlocks () 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 |
|
std::vector< ESProxyIndex > const & | esGetTokenIndicesVector (edm::Transition iTrans) const |
|
std::vector< ESRecordIndex > const & | esGetTokenRecordIndicesVector (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::array< std::vector< ModuleDescription const * > *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, 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 &run, const edm::EventSetup &iSetup) override |
|
void | endLuminosityBlock (edm::LuminosityBlock const &lumiBlock, edm::EventSetup const &c) override |
|
bool | getXSexFitsPython (const edm::ParameterSet &ps) |
|
virtual void | dqmBeginRun (edm::Run const &, edm::EventSetup const &) |
|
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 = InEvent> |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
|
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<Transition Tr = Transition::Event> |
constexpr auto | esConsumes () noexcept |
|
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag const &tag) |
|
template<Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag tag) noexcept |
|
template<Transition Tr = Transition::Event> |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
| Used with EventSetupRecord::doGet. More...
|
|
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) |
|
|
std::map< TString, int > | m_algoBit |
|
std::map< TString, TF1 * > | m_algoFit |
|
std::map< TString, MonitorElement * > | m_CountsVsLS |
|
std::map< TString, MonitorElement * > | m_DelivLumiVsLS |
|
MonitorElement * | m_ErrorMonitor |
|
L1TMenuHelper::Tokens | m_helperTokens |
|
std::map< std::string, bool > | m_inputCategories |
|
std::map< TString, MonitorElement * > | m_InstLumiVsLS |
|
edm::EDGetTokenT< L1GlobalTriggerReadoutRecord > | m_l1GtDataDaqInputTag |
|
const edm::ESGetToken< L1GtPrescaleFactors, L1GtPrescaleFactorsAlgoTrigRcd > | m_l1GtPfAlgoToken |
|
L1GtUtils | m_l1GtUtils |
|
const std::vector< std::vector< int > > * | m_listsPrescaleFactors |
|
std::map< int, std::map< TString, double > > | m_lsCounts |
|
std::map< int, double > | m_lsDeadTime |
|
std::map< int, double > | m_lsLuminosity |
|
std::map< int, int > | m_lsPrescaleIndex |
|
std::map< int, std::map< TString, double > > | m_lsRates |
|
int | m_lsShiftGTRates |
|
int | m_maxNbins |
|
const edm::ESGetToken< L1GtTriggerMenu, L1GtTriggerMenuRcd > | m_menuToken |
|
std::string | m_outputFile |
|
edm::ParameterSet | m_parameters |
|
std::map< TString, MonitorElement * > | m_PrescIndexVsLS |
|
std::map< TString, MonitorElement * > | m_RecorLumiVsLS |
|
int | m_refPrescaleSet |
|
edm::EDGetTokenT< Level1TriggerScalersCollection > | m_scalersSource_L1TSCollection |
|
edm::EDGetTokenT< LumiScalersCollection > | m_scalersSource_LSCollection |
|
std::map< std::string, std::string > | m_selectedTriggers |
|
std::map< TString, TF1 * > | m_templateFunctions |
|
bool | m_verbose |
|
std::map< TString, MonitorElement * > | m_xSecObservedToExpected |
|
std::map< TString, MonitorElement * > | m_xSecObservedVsDelivLumi |
|
std::map< TString, MonitorElement * > | m_xSecObservedVsLS |
|
std::map< TString, MonitorElement * > | m_xSecObservedVsRecorLumi |
|
std::map< TString, MonitorElement * > | m_xSecVsInstLumi |
|
Definition at line 43 of file L1TRate_Offline.h.
Reimplemented from DQMOneEDAnalyzer< edm::one::WatchLuminosityBlocks >.
Definition at line 338 of file L1TRate_Offline.cc.
348 int EventRun =
iEvent.id().run();
349 unsigned int eventLS =
iEvent.id().luminosityBlock();
352 if (triggerScalers.
isValid() && !triggerScalers->empty()) {
353 Level1TriggerScalersCollection::const_iterator itL1TScalers = triggerScalers->begin();
359 double deadtime = trigRates.deadtimePercent();
362 const std::vector<unsigned int> gtAlgoCounts = itL1TScalers->gtAlgoCounts();
373 map<TString, double> bufferCount;
377 string tTrigger = (*i).second;
380 if (tTrigger !=
"Undefined") {
381 unsigned int trigBit =
m_algoBit[tTrigger];
382 double trigCount = gtAlgoCounts[trigBit];
384 bufferCount[tTrigger] = trigCount;
393 if (colLScal.
isValid() && !colLScal->empty()) {
394 LumiScalersCollection::const_iterator itLScal = colLScal->begin();
395 unsigned int scalLS = itLScal->sectionNumber();
400 cout <<
"[L1TRate_Offline:] Buffering SCAL-HF Lumi for LS=" << scalLS << endl;
403 itLScal->instantLumi();
404 double deadTimeNormHF = itLScal->deadTimeNormalization();
425 if (deadTimeNormHF == 0) {
437 if (gtReadoutRecordData.
isValid()) {
441 cout <<
"[L1TRate_Offline:] Buffering Prescale Index for LS=" << eventLS << endl;
445 const vector<L1GtFdlWord>& gtFdlVectorData = gtReadoutRecordData->
gtFdlVector();
449 for (
unsigned int i = 0;
i < gtFdlVectorData.size();
i++) {
450 if (gtFdlVectorData[
i].bxInEvent() == 0) {
456 if (!gtFdlVectorData.empty()) {
457 int CurrentPrescalesIndex =
458 gtFdlVectorData[indexFDL].gtPrescaleFactorIndexAlgo();
References gather_cfg::cout, Level1TriggerRates::deadtimePercent(), edm::ParameterSet::getUntrackedParameter(), L1GlobalTriggerReadoutRecord::gtFdlVector(), mps_fire::i, iEvent, muonGEMDigis_cfi::instLumi, edm::HandleBase::isValid(), m_algoBit, m_l1GtDataDaqInputTag, m_lsDeadTime, m_lsLuminosity, m_lsPrescaleIndex, m_lsRates, m_lsShiftGTRates, m_parameters, m_scalersSource_L1TSCollection, m_scalersSource_LSCollection, m_selectedTriggers, and m_verbose.
Implements DQMOneEDAnalyzer< edm::one::WatchLuminosityBlocks >.
Definition at line 64 of file L1TRate_Offline.cc.
66 cout <<
"[L1TRate_Offline:] Called beginRun." << endl;
93 for (
const auto&
algo :
menu.gtAlgorithmMap()) {
102 TString tCategory = (*i).first;
103 TString tTrigger = (*i).second;
105 TString tErrorMessage =
"";
110 }
else if (tTrigger ==
"Undefined") {
111 TString tFunc =
"-1";
112 tTestFunction =
new TF1(
"FitParametrization_" + tTrigger, tFunc, 0,
double(
m_maxNbins) - 0.5);
114 TString tFunc =
"-1";
115 tTestFunction =
new TF1(
"FitParametrization_" + tTrigger, tFunc, 0,
double(
m_maxNbins) - 0.5);
116 tErrorMessage =
" (Undefined Test Function)";
118 TString tFunc =
"-1";
119 tTestFunction =
new TF1(
"FitParametrization_" + tTrigger, tFunc, 0,
double(
m_maxNbins) - 0.5);
122 if (tTrigger !=
"Undefined") {
124 tErrorMessage +=
" WARNING: Default Prescale = ";
128 if (tCategory ==
"Mu" &&
130 tErrorMessage +=
" WARNING: Eta Range = ";
132 }
else if (tCategory ==
"EG" && myMenuHelper.
getEtaRangeByAlias(tCategory, tTrigger) != 32639) {
133 tErrorMessage +=
" WARNING: Eta Range = ";
135 }
else if (tCategory ==
"IsoEG" && myMenuHelper.
getEtaRangeByAlias(tCategory, tTrigger) != 32639) {
136 tErrorMessage +=
" WARNING: Eta Range = ";
140 if (tCategory ==
"Mu" && myMenuHelper.
getQualityAlias(tCategory, tTrigger) != 240) {
141 tErrorMessage +=
" WARNING: Quality = ";
148 "Cross Sec. vs Deliv. Lumi: " + tTrigger + tErrorMessage,
159 "Cross Sec. vs Recor. Lumi: " + tTrigger + tErrorMessage,
170 "Cross Sec. vs Inst. Lumi Algo: " + tTrigger + tErrorMessage,
176 m_CountsVsLS[tTrigger]->setAxisTitle(
"Instantaneous Luminosity [10^{30}cm^{-2}s^{-1}]", 1);
177 m_CountsVsLS[tTrigger]->setAxisTitle(
"Algorithm #sigma [#mu b]", 2);
178 m_CountsVsLS[tTrigger]->getTProfile()->GetListOfFunctions()->Add(tTestFunction);
179 m_CountsVsLS[tTrigger]->getTProfile()->SetMarkerStyle(23);
181 m_algoFit[tTrigger] = (TF1*)tTestFunction->Clone(
"Fit_" + tTrigger);
References dqm::implementation::IBooker::book1D(), dqm::implementation::IBooker::bookProfile(), gather_cfg::cout, edm::EventSetup::getData(), L1TMenuHelper::getEtaRangeByAlias(), L1TMenuHelper::getLUSOTrigger(), edm::ParameterSet::getParameter(), L1TMenuHelper::getPrescaleByAlias(), L1TMenuHelper::getQualityAlias(), getXSexFitsPython(), L1GtPrescaleFactors::gtPrescaleFactors(), mps_fire::i, m_algoBit, m_algoFit, m_CountsVsLS, m_DelivLumiVsLS, m_ErrorMonitor, m_helperTokens, m_inputCategories, m_l1GtPfAlgoToken, m_l1GtUtils, m_listsPrescaleFactors, m_maxNbins, m_menuToken, m_parameters, m_RecorLumiVsLS, m_refPrescaleSet, m_selectedTriggers, m_templateFunctions, m_verbose, m_xSecObservedToExpected, m_xSecObservedVsDelivLumi, m_xSecObservedVsLS, m_xSecObservedVsRecorLumi, L1TRate_cfi::maxInstantLuminosity, optionsL1T::menu, L1TRate_cfi::minInstantLuminosity, L1GtUtils::retrieveL1EventSetup(), dqm::impl::MonitorElement::setBinLabel(), dqm::implementation::NavigatorBase::setCurrentFolder(), UNKNOWN, and WARNING_PY_MISSING_FIT.
Definition at line 217 of file L1TRate_Offline.cc.
218 int eventLS = lumiBlock.id().luminosityBlock();
220 cout <<
"[L1TRate_Offline:] Called endLuminosityBlock at LS=" << eventLS << endl;
231 bool isDefLumi, isDefPrescaleIndex;
235 unsigned int prescalesIndex = 0;
238 map<TString, double>*
counts =
nullptr;
242 string tTrigger = (*i).second;
257 unsigned int lsOffline = (*j).first;
261 unsigned int lsPreInd;
271 lsPreInd = lsOffline + 1;
274 isDefPrescaleIndex =
false;
276 isDefPrescaleIndex =
true;
280 if (isDefCount && isDefLumi && isDefPrescaleIndex && (prescalesIndex < m_listsPrescaleFactors->
size())) {
281 const vector<int>& currentPrescaleFactors = (*m_listsPrescaleFactors).at(prescalesIndex);
284 string tTrigger = (*j).second;
285 double trigCount = (*counts)[tTrigger];
288 TF1* tTestFunction =
m_algoFit[tTrigger];
291 if (tTrigger !=
"Undefined") {
292 unsigned int trigBit =
m_algoBit[tTrigger];
293 double trigPrescale = currentPrescaleFactors[trigBit];
295 if (
lumi != 0 && trigCount != 0 && trigPrescale != 0) {
296 double RecLumi =
lumi * (1. - deadtime / 100.);
298 double AlgoXSec = (trigPrescale * trigCount) / RecLumi;
299 double TemplateFunctionValue = tTestFunction->Eval(
lumi);
References dqmiodumpmetadata::counts, gather_cfg::cout, mps_fire::i, edm::LuminosityBlockBase::id(), dqmiolumiharvest::j, edm::LuminosityBlockID::luminosityBlock(), m_algoBit, m_algoFit, m_CountsVsLS, m_DelivLumiVsLS, m_lsDeadTime, m_lsLuminosity, m_lsPrescaleIndex, m_lsRates, m_RecorLumiVsLS, m_selectedTriggers, m_verbose, m_xSecObservedToExpected, m_xSecObservedVsDelivLumi, m_xSecObservedVsLS, m_xSecObservedVsRecorLumi, genParticles_cff::map, and findQualityFiles::size.