CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
TriggerBxMonitor Class Reference
Inheritance diagram for TriggerBxMonitor:
DQMEDAnalyzer edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > > edm::stream::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

 TriggerBxMonitor (edm::ParameterSet const &)
 
 ~TriggerBxMonitor () override
 
- Public Member Functions inherited from DQMEDAnalyzer
void beginRun (edm::Run const &, edm::EventSetup const &) final
 
void beginStream (edm::StreamID id) final
 
 DQMEDAnalyzer (void)
 
void endLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, dqmDetails::NoCache *) const final
 
void endRunSummary (edm::Run const &, edm::EventSetup const &, dqmDetails::NoCache *) const final
 
uint32_t streamId () const
 
- Public Member Functions inherited from edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > >
 EDAnalyzer ()=default
 
- Public Member Functions inherited from edm::stream::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
 ~EDAnalyzerBase () override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () 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
 
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
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
virtual ~EDConsumerBase () noexcept(false)
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
- Static Public Member Functions inherited from DQMEDAnalyzer
static std::shared_ptr< dqmDetails::NoCacheglobalBeginLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *)
 
static std::shared_ptr< dqmDetails::NoCacheglobalBeginRunSummary (edm::Run const &, edm::EventSetup const &, RunContext const *)
 
static void globalEndLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *, dqmDetails::NoCache *)
 
static void globalEndRunSummary (edm::Run const &, edm::EventSetup const &, RunContext const *, dqmDetails::NoCache *)
 
- Static Public Member Functions inherited from edm::stream::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 

Private Member Functions

void analyze (edm::Event const &, edm::EventSetup const &) override
 
void bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
 
void dqmBeginRun (edm::Run const &, edm::EventSetup const &) override
 

Private Attributes

const std::string m_dqm_path
 
std::vector< TH1F * > m_hlt_bx
 
std::vector< TH2F * > m_hlt_bx_2d
 
TH2F * m_hlt_bx_all
 
const edm::EDGetTokenT< edm::TriggerResultsm_hlt_results
 
HLTConfigProvider m_hltConfig
 
std::vector< TH1F * > m_l1t_bx
 
std::vector< TH2F * > m_l1t_bx_2d
 
TH2F * m_l1t_bx_all
 
const edm::EDGetTokenT< GlobalAlgBlkBxCollectionm_l1t_results
 
L1TUtmTriggerMenu const * m_l1tMenu
 
const uint32_t m_ls_range
 
const bool m_make_1d_plots
 
const bool m_make_2d_plots
 
std::vector< TH1F * > m_tcds_bx
 
std::vector< TH2F * > m_tcds_bx_2d
 
TH2F * m_tcds_bx_all
 

Static Private Attributes

static const unsigned int s_bx_range = 3564
 
static const char *const s_tcds_trigger_types []
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > >
typedef CacheContexts< T... > CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T... > HasAbility
 
typedef CacheTypes::LuminosityBlockCache LuminosityBlockCache
 
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCacheLuminosityBlockContext
 
typedef CacheTypes::LuminosityBlockSummaryCache LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache, GlobalCacheRunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 
- Public Types inherited from edm::stream::EDAnalyzerBase
typedef EDAnalyzerAdaptorBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Protected Member Functions inherited from edm::EDConsumerBase
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 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)
 

Detailed Description

Definition at line 56 of file TriggerBxMonitor.cc.

Constructor & Destructor Documentation

TriggerBxMonitor::TriggerBxMonitor ( edm::ParameterSet const &  config)
explicit

Definition at line 133 of file TriggerBxMonitor.cc.

133  :
134  // module configuration
135  m_l1t_results( consumes<GlobalAlgBlkBxCollection>( config.getUntrackedParameter<edm::InputTag>( "l1tResults" ) ) ),
136  m_hlt_results( consumes<edm::TriggerResults>( config.getUntrackedParameter<edm::InputTag>( "hltResults" ) ) ),
137  m_dqm_path( config.getUntrackedParameter<std::string>( "dqmPath" ) ),
138  m_make_1d_plots( config.getUntrackedParameter<bool>( "make1DPlots" ) ),
139  m_make_2d_plots( config.getUntrackedParameter<bool>( "make2DPlots" ) ),
140  m_ls_range( config.getUntrackedParameter<uint32_t>( "lsRange" ) ),
141  // L1T and HLT configuration
142  m_l1tMenu(nullptr),
143  m_hltConfig(),
144  // L1T and HLT results
145  m_tcds_bx_all(nullptr),
146  m_l1t_bx_all(nullptr),
147  m_hlt_bx_all(nullptr),
148  m_tcds_bx(),
149  m_l1t_bx(),
150  m_hlt_bx(),
151  m_tcds_bx_2d(),
152  m_l1t_bx_2d(),
153  m_hlt_bx_2d()
154 {
155 }
HLTConfigProvider m_hltConfig
std::vector< TH2F * > m_hlt_bx_2d
const edm::EDGetTokenT< GlobalAlgBlkBxCollection > m_l1t_results
Definition: config.py:1
const edm::EDGetTokenT< edm::TriggerResults > m_hlt_results
std::vector< TH1F * > m_tcds_bx
std::vector< TH1F * > m_l1t_bx
const uint32_t m_ls_range
const std::string m_dqm_path
std::vector< TH2F * > m_tcds_bx_2d
L1TUtmTriggerMenu const * m_l1tMenu
const bool m_make_1d_plots
std::vector< TH1F * > m_hlt_bx
const bool m_make_2d_plots
std::vector< TH2F * > m_l1t_bx_2d
TriggerBxMonitor::~TriggerBxMonitor ( )
override

Definition at line 157 of file TriggerBxMonitor.cc.

158 {
159 }

Member Function Documentation

void TriggerBxMonitor::analyze ( edm::Event const &  event,
edm::EventSetup const &  setup 
)
overrideprivatevirtual

Implements edm::stream::EDAnalyzerBase.

Definition at line 278 of file TriggerBxMonitor.cc.

References DEFINE_FWK_MODULE, event(), HcalObjRepresent::Fill(), SelectingProcedure_cff::hltResults, mps_fire::i, HLTConfigProvider::inited(), eostools::ls(), m_hlt_bx, m_hlt_bx_2d, m_hlt_bx_all, m_hlt_results, m_hltConfig, m_l1t_bx, m_l1t_bx_2d, m_l1t_bx_all, m_l1t_results, m_l1tMenu, m_make_1d_plots, m_make_2d_plots, m_tcds_bx, m_tcds_bx_2d, m_tcds_bx_all, GlobalAlgBlk::maxPhysicsTriggers, mps_update::results, s_tcds_trigger_types, and findQualityFiles::size.

279 {
280  unsigned int bx = event.bunchCrossing();
281  unsigned int ls = event.luminosityBlock();
282 
283  // monitor the bx distribution for the TCDS trigger types
284  {
285  size_t size = sizeof(s_tcds_trigger_types) / sizeof(const char *);
286  unsigned int type = event.experimentType();
287  if (type < size) {
288  if (m_make_1d_plots and m_tcds_bx.at(type))
289  m_tcds_bx[type]->Fill(bx);
290  if (m_make_2d_plots and m_tcds_bx_2d.at(type))
291  m_tcds_bx_2d[type]->Fill(bx, ls);
292  }
293  m_tcds_bx_all->Fill(bx, type);
294  }
295 
296  // monitor the bx distribution for the L1 triggers
297  if (m_l1tMenu) {
298  auto const & bxvector = get<GlobalAlgBlkBxCollection>(event, m_l1t_results);
299  if (not bxvector.isEmpty(0)) {
300  auto const & results = bxvector.at(0, 0);
301  for (unsigned int i = 0; i < GlobalAlgBlk::maxPhysicsTriggers; ++i)
302  if (results.getAlgoDecisionFinal(i)) {
303  if (m_make_1d_plots and m_l1t_bx.at(i))
304  m_l1t_bx[i]->Fill(bx);
305  if (m_make_2d_plots and m_l1t_bx_2d.at(i))
306  m_l1t_bx_2d[i]->Fill(bx, ls);
307  m_l1t_bx_all->Fill(bx, i);
308  }
309  }
310  }
311 
312  // monitor the bx distribution for the HLT triggers
313  if (m_hltConfig.inited()) {
314  auto const & hltResults = get<edm::TriggerResults>(event, m_hlt_results);
315  for (unsigned int i = 0; i < hltResults.size(); ++i) {
316  if (hltResults.at(i).accept()) {
317  if (m_make_1d_plots and m_hlt_bx.at(i))
318  m_hlt_bx[i]->Fill(bx);
319  if (m_make_2d_plots and m_hlt_bx_2d.at(i))
320  m_hlt_bx_2d[i]->Fill(bx, ls);
321  m_hlt_bx_all->Fill(bx, i);
322  }
323  }
324  }
325 }
size
Write out results.
static const char *const s_tcds_trigger_types[]
HLTConfigProvider m_hltConfig
type
Definition: HCALResponse.h:21
std::vector< TH2F * > m_hlt_bx_2d
const edm::EDGetTokenT< GlobalAlgBlkBxCollection > m_l1t_results
const edm::EDGetTokenT< edm::TriggerResults > m_hlt_results
bool inited() const
Accessors (const methods)
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
std::vector< TH1F * > m_tcds_bx
std::vector< TH1F * > m_l1t_bx
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
std::vector< TH2F * > m_tcds_bx_2d
L1TUtmTriggerMenu const * m_l1tMenu
def ls(path, rec=False)
Definition: eostools.py:348
static unsigned int maxPhysicsTriggers
Definition: GlobalAlgBlk.h:52
const bool m_make_1d_plots
std::vector< TH1F * > m_hlt_bx
const bool m_make_2d_plots
std::vector< TH2F * > m_l1t_bx_2d
void TriggerBxMonitor::bookHistograms ( DQMStore::IBooker booker,
edm::Run const &  run,
edm::EventSetup const &  setup 
)
overrideprivatevirtual

Implements DQMEDAnalyzer.

Definition at line 207 of file TriggerBxMonitor.cc.

References DQMStore::IBooker::book1D(), DQMStore::IBooker::book2D(), cmsPerfStripChart::format, L1TUtmTriggerMenu::getAlgorithmMap(), MonitorElement::getTH1F(), MonitorElement::getTH2F(), mps_fire::i, HLTConfigProvider::inited(), m_dqm_path, m_hlt_bx, m_hlt_bx_2d, m_hlt_bx_all, m_hltConfig, m_l1t_bx, m_l1t_bx_2d, m_l1t_bx_all, m_l1tMenu, m_ls_range, m_make_1d_plots, m_make_2d_plots, m_tcds_bx, m_tcds_bx_2d, m_tcds_bx_all, GlobalAlgBlk::maxPhysicsTriggers, dataset::name, s_bx_range, s_tcds_trigger_types, DQMStore::IBooker::setCurrentFolder(), HLTConfigProvider::size(), findQualityFiles::size, harvestTrackValidationPlots::str, AlCaHLTBitMon_QueryRunRegistry::string, and HLTConfigProvider::triggerName().

208 {
209  // TCDS trigger type plots
210  {
211  size_t size = sizeof(s_tcds_trigger_types) / sizeof(const char *);
212 
213  // book 2D histogram to monitor all TCDS trigger types in a single plot
214  booker.setCurrentFolder( m_dqm_path );
215  m_tcds_bx_all = booker.book2D("TCDS Trigger Types", "TCDS Trigger Types vs. bunch crossing", s_bx_range + 1, -0.5, s_bx_range + 0.5, size, -0.5, size - 0.5)->getTH2F();
216 
217  // book the individual histograms for the known TCDS trigger types
218  booker.setCurrentFolder( m_dqm_path + "/TCDS" );
219  for (unsigned int i = 0; i < size; ++i) {
220  if (s_tcds_trigger_types[i]) {
221  if (m_make_1d_plots) {
222  m_tcds_bx.at(i) = booker.book1D(s_tcds_trigger_types[i], s_tcds_trigger_types[i], s_bx_range + 1, -0.5, s_bx_range + 0.5)->getTH1F();
223  }
224  if (m_make_2d_plots) {
225  std::string const & name_ls = std::string(s_tcds_trigger_types[i]) + " vs LS";
226  m_tcds_bx_2d.at(i) = booker.book2D(name_ls, name_ls, s_bx_range + 1, -0.5, s_bx_range + 0.5, m_ls_range, 0.5, m_ls_range + 0.5)->getTH2F();
227  }
228  m_tcds_bx_all->GetYaxis()->SetBinLabel(i+1, s_tcds_trigger_types[i]);
229  }
230  }
231  }
232 
233  // L1T plots
234  if (m_l1tMenu) {
235  // book 2D histogram to monitor all L1 triggers in a single plot
236  booker.setCurrentFolder( m_dqm_path );
237  m_l1t_bx_all = booker.book2D("Level 1 Triggers", "Level 1 Triggers vs. bunch crossing", s_bx_range + 1, -0.5, s_bx_range + 0.5, GlobalAlgBlk::maxPhysicsTriggers, -0.5, GlobalAlgBlk::maxPhysicsTriggers - 0.5)->getTH2F();
238 
239  // book the individual histograms for the L1 triggers that are included in the L1 menu
240  booker.setCurrentFolder( m_dqm_path + "/L1T" );
241  for (auto const & keyval: m_l1tMenu->getAlgorithmMap()) {
242  unsigned int bit = keyval.second.getIndex();
243  std::string const & name = (boost::format("%s (bit %d)") % keyval.first % bit).str();
244  if (m_make_1d_plots) {
245  m_l1t_bx.at(bit) = booker.book1D(name, name, s_bx_range + 1, -0.5, s_bx_range + 0.5)->getTH1F();
246  }
247  if (m_make_2d_plots) {
248  std::string const & name_ls = name + " vs LS";
249  m_l1t_bx_2d.at(bit) = booker.book2D(name_ls, name_ls, s_bx_range + 1, -0.5, s_bx_range + 0.5, m_ls_range, 0.5, m_ls_range + 0.5)->getTH2F();
250  }
251  m_l1t_bx_all->GetYaxis()->SetBinLabel(bit+1, keyval.first.c_str());
252  }
253  }
254 
255  // HLT plots
256  if (m_hltConfig.inited()) {
257  // book 2D histogram to monitor all HLT paths in a single plot
258  booker.setCurrentFolder( m_dqm_path );
259  m_hlt_bx_all = booker.book2D("High Level Triggers", "High Level Triggers vs. bunch crossing", s_bx_range + 1, -0.5, s_bx_range + 0.5, m_hltConfig.size(), -0.5, m_hltConfig.size() - 0.5)->getTH2F();
260 
261  // book the individual HLT triggers histograms
262  booker.setCurrentFolder( m_dqm_path + "/HLT" );
263  for (unsigned int i = 0; i < m_hltConfig.size(); ++i) {
264  std::string const & name = m_hltConfig.triggerName(i);
265  if (m_make_1d_plots) {
266  m_hlt_bx[i] = booker.book1D(name, name, s_bx_range + 1, -0.5, s_bx_range + 0.5)->getTH1F();
267  }
268  if (m_make_2d_plots) {
269  std::string const & name_ls = name + " vs LS";
270  m_hlt_bx_2d[i] = booker.book2D(name_ls, name_ls, s_bx_range + 1, -0.5, s_bx_range + 0.5, m_ls_range, 0.5, m_ls_range + 0.5)->getTH2F();
271  }
272  m_hlt_bx_all->GetYaxis()->SetBinLabel(i+1, name.c_str());
273  }
274  }
275 }
unsigned int size() const
number of trigger paths in trigger table
size
Write out results.
static const char *const s_tcds_trigger_types[]
HLTConfigProvider m_hltConfig
const std::string & triggerName(unsigned int triggerIndex) const
std::vector< TH2F * > m_hlt_bx_2d
bool inited() const
Accessors (const methods)
std::vector< TH1F * > m_tcds_bx
std::vector< TH1F * > m_l1t_bx
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:115
format
Some error handling for the usage.
const uint32_t m_ls_range
const std::string m_dqm_path
std::vector< TH2F * > m_tcds_bx_2d
L1TUtmTriggerMenu const * m_l1tMenu
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:277
static unsigned int maxPhysicsTriggers
Definition: GlobalAlgBlk.h:52
MonitorElement * book2D(Args &&...args)
Definition: DQMStore.h:133
const bool m_make_1d_plots
static const unsigned int s_bx_range
TH1F * getTH1F(void) const
std::vector< TH1F * > m_hlt_bx
const std::map< std::string, L1TUtmAlgorithm > & getAlgorithmMap() const
TH2F * getTH2F(void) const
const bool m_make_2d_plots
std::vector< TH2F * > m_l1t_bx_2d
void TriggerBxMonitor::dqmBeginRun ( edm::Run const &  run,
edm::EventSetup const &  setup 
)
overrideprivatevirtual

Reimplemented from DQMEDAnalyzer.

Definition at line 161 of file TriggerBxMonitor.cc.

References HLTConfigProvider::init(), tablePrinter::labels, edm::EDConsumerBase::labelsForToken(), m_hlt_bx, m_hlt_bx_2d, m_hlt_results, m_hltConfig, m_l1t_bx, m_l1t_bx_2d, m_l1tMenu, m_make_1d_plots, m_make_2d_plots, m_tcds_bx, m_tcds_bx_2d, GlobalAlgBlk::maxPhysicsTriggers, nullptr, edm::ProductLabels::process, s_tcds_trigger_types, GeneralSetup::setup(), and HLTConfigProvider::size().

162 {
163  // initialise the TCDS vector
164  if (m_make_1d_plots) {
165  m_tcds_bx.clear();
166  m_tcds_bx.resize(sizeof(s_tcds_trigger_types) / sizeof(const char *), nullptr);
167  }
168  if (m_make_2d_plots) {
169  m_tcds_bx_2d.clear();
170  m_tcds_bx_2d.resize(sizeof(s_tcds_trigger_types) / sizeof(const char *), nullptr);
171  }
172 
173  // cache the L1 trigger menu
174  m_l1tMenu = & get<L1TUtmTriggerMenuRcd, L1TUtmTriggerMenu>(setup);
175  if (m_l1tMenu) {
176  if (m_make_1d_plots) {
177  m_l1t_bx.clear();
179  }
180  if (m_make_2d_plots) {
181  m_l1t_bx_2d.clear();
183  }
184  } else {
185  edm::LogError("TriggerBxMonitor") << "failed to read the L1 menu from the EventSetup, the L1 trigger bx distribution will not be monitored";
186  }
187 
188  // initialise the HLTConfigProvider
189  bool changed = true;
191  labelsForToken(m_hlt_results, labels);
192  if (m_hltConfig.init(run, setup, labels.process, changed)) {
193  if (m_make_1d_plots) {
194  m_hlt_bx.clear();
195  m_hlt_bx.resize( m_hltConfig.size(), nullptr );
196  }
197  if (m_make_2d_plots) {
198  m_hlt_bx_2d.clear();
199  m_hlt_bx_2d.resize( m_hltConfig.size(), nullptr );
200  }
201  } else {
202  // HLTConfigProvider not initialised, skip the the HLT monitoring
203  edm::LogError("TriggerBxMonitor") << "failed to initialise HLTConfigProvider, the HLT bx distribution will not be monitored";
204  }
205 }
unsigned int size() const
number of trigger paths in trigger table
static const char *const s_tcds_trigger_types[]
HLTConfigProvider m_hltConfig
std::vector< TH2F * > m_hlt_bx_2d
def setup(process, global_tag, zero_tesla=False)
Definition: GeneralSetup.py:1
const edm::EDGetTokenT< edm::TriggerResults > m_hlt_results
#define nullptr
char const * process
Definition: ProductLabels.h:7
std::vector< TH1F * > m_tcds_bx
std::vector< TH1F * > m_l1t_bx
std::vector< TH2F * > m_tcds_bx_2d
L1TUtmTriggerMenu const * m_l1tMenu
static unsigned int maxPhysicsTriggers
Definition: GlobalAlgBlk.h:52
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d&#39;tor
const bool m_make_1d_plots
std::vector< TH1F * > m_hlt_bx
void labelsForToken(EDGetToken iToken, Labels &oLabels) const
const bool m_make_2d_plots
std::vector< TH2F * > m_l1t_bx_2d
void TriggerBxMonitor::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 120 of file TriggerBxMonitor.cc.

References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::addUntracked(), and AlCaHLTBitMon_QueryRunRegistry::string.

121 {
123  desc.addUntracked<edm::InputTag>( "l1tResults", edm::InputTag("gtStage2Digis"));
124  desc.addUntracked<edm::InputTag>( "hltResults", edm::InputTag("TriggerResults"));
125  desc.addUntracked<std::string>( "dqmPath", "HLT/TriggerBx" );
126  desc.addUntracked<bool>( "make1DPlots", true);
127  desc.addUntracked<bool>( "make2DPlots", false);
128  desc.addUntracked<uint32_t>( "lsRange", 4000);
129  descriptions.add("triggerBxMonitor", desc);
130 }
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)

Member Data Documentation

const std::string TriggerBxMonitor::m_dqm_path
private

Definition at line 95 of file TriggerBxMonitor.cc.

Referenced by bookHistograms().

std::vector<TH1F *> TriggerBxMonitor::m_hlt_bx
private

Definition at line 110 of file TriggerBxMonitor.cc.

Referenced by analyze(), bookHistograms(), and dqmBeginRun().

std::vector<TH2F *> TriggerBxMonitor::m_hlt_bx_2d
private

Definition at line 113 of file TriggerBxMonitor.cc.

Referenced by analyze(), bookHistograms(), and dqmBeginRun().

TH2F* TriggerBxMonitor::m_hlt_bx_all
private

Definition at line 107 of file TriggerBxMonitor.cc.

Referenced by analyze(), and bookHistograms().

const edm::EDGetTokenT<edm::TriggerResults> TriggerBxMonitor::m_hlt_results
private

Definition at line 94 of file TriggerBxMonitor.cc.

Referenced by analyze(), and dqmBeginRun().

HLTConfigProvider TriggerBxMonitor::m_hltConfig
private

Definition at line 102 of file TriggerBxMonitor.cc.

Referenced by analyze(), bookHistograms(), and dqmBeginRun().

std::vector<TH1F *> TriggerBxMonitor::m_l1t_bx
private

Definition at line 109 of file TriggerBxMonitor.cc.

Referenced by analyze(), bookHistograms(), and dqmBeginRun().

std::vector<TH2F *> TriggerBxMonitor::m_l1t_bx_2d
private

Definition at line 112 of file TriggerBxMonitor.cc.

Referenced by analyze(), bookHistograms(), and dqmBeginRun().

TH2F* TriggerBxMonitor::m_l1t_bx_all
private

Definition at line 106 of file TriggerBxMonitor.cc.

Referenced by analyze(), and bookHistograms().

const edm::EDGetTokenT<GlobalAlgBlkBxCollection> TriggerBxMonitor::m_l1t_results
private

Definition at line 93 of file TriggerBxMonitor.cc.

Referenced by analyze().

L1TUtmTriggerMenu const* TriggerBxMonitor::m_l1tMenu
private

Definition at line 101 of file TriggerBxMonitor.cc.

Referenced by analyze(), bookHistograms(), and dqmBeginRun().

const uint32_t TriggerBxMonitor::m_ls_range
private

Definition at line 98 of file TriggerBxMonitor.cc.

Referenced by bookHistograms().

const bool TriggerBxMonitor::m_make_1d_plots
private

Definition at line 96 of file TriggerBxMonitor.cc.

Referenced by analyze(), bookHistograms(), and dqmBeginRun().

const bool TriggerBxMonitor::m_make_2d_plots
private

Definition at line 97 of file TriggerBxMonitor.cc.

Referenced by analyze(), bookHistograms(), and dqmBeginRun().

std::vector<TH1F *> TriggerBxMonitor::m_tcds_bx
private

Definition at line 108 of file TriggerBxMonitor.cc.

Referenced by analyze(), bookHistograms(), and dqmBeginRun().

std::vector<TH2F *> TriggerBxMonitor::m_tcds_bx_2d
private

Definition at line 111 of file TriggerBxMonitor.cc.

Referenced by analyze(), bookHistograms(), and dqmBeginRun().

TH2F* TriggerBxMonitor::m_tcds_bx_all
private

Definition at line 105 of file TriggerBxMonitor.cc.

Referenced by analyze(), and bookHistograms().

const unsigned int TriggerBxMonitor::s_bx_range = 3564
staticprivate

Definition at line 69 of file TriggerBxMonitor.cc.

Referenced by bookHistograms().

const char *const TriggerBxMonitor::s_tcds_trigger_types
staticprivate
Initial value:
= {
"Empty",
"Physics",
"Calibration",
"Random",
"Auxiliary",
0 ,
0 ,
0 ,
"Cyclic",
"Bunch-pattern",
"Software",
"TTS",
0 ,
0 ,
0 ,
0
}

Definition at line 73 of file TriggerBxMonitor.cc.

Referenced by analyze(), bookHistograms(), and dqmBeginRun().