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.

64 { DCS };

Constructor & Destructor Documentation

◆ SiPixelPhase1Base()

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

Definition at line 14 of file SiPixelPhase1Base.cc.

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 }

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

◆ ~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.

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 }

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

◆ 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.

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 }

References iEvent, and triggerlist.

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().

SiPixelPhase1Base::triggerlist
std::vector< std::unique_ptr< GenericTriggerEventFlag > > triggerlist
Definition: SiPixelPhase1Base.h:68
HistogramManager
Definition: HistogramManager.h:31
edm::VParameterSet
std::vector< ParameterSet > VParameterSet
Definition: ParameterSet.h:34
HistogramManagerHolder::histo
std::vector< HistogramManager > histo
Definition: SiPixelPhase1Base.h:37
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
DQMEDAnalyzer::DQMEDAnalyzer
DQMEDAnalyzer()
Definition: DQMEDAnalyzer.h:55
GenericTriggerEventFlag
Provides a code based selection for trigger and DCS information in order to have no failing filters i...
Definition: GenericTriggerEventFlag.h:42
HistogramManagerHolder::HistogramManagerHolder
HistogramManagerHolder(const edm::ParameterSet &iConfig, edm::ConsumesCollector &&iC, edm::Transition transition=edm::Transition::BeginRun)
Definition: SiPixelPhase1Base.h:29
iEvent
int iEvent
Definition: GenABIO.cc:224
writedatasetfile.run
run
Definition: writedatasetfile.py:27
SiPixelPhase1Base::DCS
Definition: SiPixelPhase1Base.h:64
trigger
Definition: HLTPrescaleTableCond.h:8
HLT_FULL_cff.flags
flags
Definition: HLT_FULL_cff.py:13168
RemoveAddSevLevel.flag
flag
Definition: RemoveAddSevLevel.py:117