CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Types | Protected Member Functions | Private Attributes
SiPixelPhase1Base Class Referenceabstract

#include <SiPixelPhase1Base.h>

Inheritance diagram for SiPixelPhase1Base:
DQMEDAnalyzer HistogramManagerHolder edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator > SiPixelPhase1DigisV SiPixelPhase1GeometryDebug SiPixelPhase1HitsV SiPixelPhase1RecHitsV SiPixelPhase1TrackClustersV SiPixelPhase1TrackingParticleV

Public Member Functions

void analyze (edm::Event const &e, edm::EventSetup const &) override=0
 
void bookHistograms (DQMStore::IBooker &iBooker, edm::Run const &run, edm::EventSetup const &) override
 
 SiPixelPhase1Base (const edm::ParameterSet &iConfig)
 
 ~SiPixelPhase1Base () override
 
- Public Member Functions inherited from DQMEDAnalyzer
void accumulate (edm::Event const &event, edm::EventSetup const &setup) final
 
void beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final
 
void beginRun (edm::Run const &run, edm::EventSetup const &setup) final
 
void beginStream (edm::StreamID id) final
 
virtual void dqmBeginRun (edm::Run const &, edm::EventSetup const &)
 
 DQMEDAnalyzer ()
 
void endLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final
 
void endRun (edm::Run const &run, edm::EventSetup const &setup) final
 
virtual bool getCanSaveByLumi ()
 
- Public Member Functions inherited from edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >
 EDProducer ()=default
 
 EDProducer (const EDProducer &)=delete
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
const EDProduceroperator= (const EDProducer &)=delete
 
- Public Member Functions inherited from HistogramManagerHolder
 HistogramManagerHolder (const edm::ParameterSet &iConfig, edm::ConsumesCollector &&iC, edm::Transition transition=edm::Transition::BeginRun)
 

Protected Types

enum  { DCS }
 

Protected Member Functions

bool checktrigger (const edm::Event &iEvent, const edm::EventSetup &, const unsigned trgidx) const
 
- Protected Member Functions inherited from DQMEDAnalyzer
uint64_t meId () const
 

Private Attributes

std::vector< std::unique_ptr< GenericTriggerEventFlag > > triggerlist
 

Additional Inherited Members

- Public Types inherited from DQMEDAnalyzer
typedef dqm::reco::DQMStore DQMStore
 
typedef dqm::reco::MonitorElement MonitorElement
 
- Public Types inherited from edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >
using CacheTypes = CacheContexts< T... >
 
using GlobalCache = typename CacheTypes::GlobalCache
 
using HasAbility = AbilityChecker< T... >
 
using InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache
 
using LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache
 
using LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache >
 
using LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache
 
using RunCache = typename CacheTypes::RunCache
 
using RunContext = RunContextT< RunCache, GlobalCache >
 
using RunSummaryCache = typename CacheTypes::RunSummaryCache
 
- Static Public Member Functions inherited from DQMEDAnalyzer
static void globalEndJob (DQMEDAnalyzerGlobalCache const *)
 
static void globalEndLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &setup, LuminosityBlockContext const *context)
 
static void globalEndRunProduce (edm::Run &run, edm::EventSetup const &setup, RunContext const *context)
 
static std::unique_ptr< DQMEDAnalyzerGlobalCacheinitializeGlobalCache (edm::ParameterSet const &)
 
- Protected Attributes inherited from DQMEDAnalyzer
edm::EDPutTokenT< DQMTokenlumiToken_
 
edm::EDPutTokenT< DQMTokenrunToken_
 
unsigned int streamId_
 
- Protected Attributes inherited from HistogramManagerHolder
GeometryInterface geometryInterface
 
std::vector< HistogramManagerhisto
 

Detailed Description

Definition at line 46 of file SiPixelPhase1Base.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protected
Enumerator
DCS 

Definition at line 64 of file SiPixelPhase1Base.h.

Constructor & Destructor Documentation

◆ SiPixelPhase1Base()

SiPixelPhase1Base::SiPixelPhase1Base ( const edm::ParameterSet iConfig)

Definition at line 14 of file SiPixelPhase1Base.cc.

References RemoveAddSevLevel::flag, HLT_2024v13_cff::flags, edm::ParameterSet::getUntrackedParameter(), and triggerlist.

15  : DQMEDAnalyzer(), HistogramManagerHolder(iConfig, consumesCollector()) {
16  // Flags will default to empty vector if not specified in configuration file
17  auto flags = iConfig.getUntrackedParameter<edm::VParameterSet>("triggerflags", {});
18 
19  for (auto& flag : flags) {
20  triggerlist.emplace_back(new GenericTriggerEventFlag(flag, consumesCollector(), *this));
21  }
22 }
HistogramManagerHolder(const edm::ParameterSet &iConfig, edm::ConsumesCollector &&iC, edm::Transition transition=edm::Transition::BeginRun)
std::vector< ParameterSet > VParameterSet
Definition: ParameterSet.h:35
std::vector< std::unique_ptr< GenericTriggerEventFlag > > triggerlist
Provides a code based selection for trigger and DCS information in order to have no failing filters i...
T getUntrackedParameter(std::string const &, T const &) const

◆ ~SiPixelPhase1Base()

SiPixelPhase1Base::~SiPixelPhase1Base ( )
inlineoverride

Definition at line 57 of file SiPixelPhase1Base.h.

57 {};

Member Function Documentation

◆ analyze()

void SiPixelPhase1Base::analyze ( edm::Event const &  e,
edm::EventSetup const &   
)
overridepure virtual

◆ bookHistograms()

void SiPixelPhase1Base::bookHistograms ( DQMStore::IBooker iBooker,
edm::Run const &  run,
edm::EventSetup const &  iSetup 
)
overridevirtual

Implements DQMEDAnalyzer.

Definition at line 25 of file SiPixelPhase1Base.cc.

References HistogramManagerHolder::histo, writedatasetfile::run, and triggerlist.

25  {
26  for (HistogramManager& histoman : histo) {
27  histoman.book(iBooker, iSetup);
28  }
29 
30  // Running trigger flag initialization (per run)
31  for (auto& trigger : triggerlist) {
32  if (trigger->on()) {
33  trigger->initRun(run, iSetup);
34  }
35  }
36 }
std::vector< std::unique_ptr< GenericTriggerEventFlag > > triggerlist
std::vector< HistogramManager > histo

◆ checktrigger()

bool SiPixelPhase1Base::checktrigger ( const edm::Event iEvent,
const edm::EventSetup iSetup,
const unsigned  trgidx 
) const
protected

Definition at line 39 of file SiPixelPhase1Base.cc.

References iEvent, and triggerlist.

41  {
42  //true if no trigger, MC, off, or accepted
43 
44  return triggerlist.empty() || !iEvent.isRealData() || !triggerlist.at(trgidx)->on() ||
45  triggerlist.at(trgidx)->accept(iEvent, iSetup);
46 }
std::vector< std::unique_ptr< GenericTriggerEventFlag > > triggerlist
int iEvent
Definition: GenABIO.cc:224

Member Data Documentation

◆ triggerlist

std::vector<std::unique_ptr<GenericTriggerEventFlag> > SiPixelPhase1Base::triggerlist
private

Definition at line 68 of file SiPixelPhase1Base.h.

Referenced by bookHistograms(), checktrigger(), and SiPixelPhase1Base().