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:
one::DQMEDAnalyzer< T > HistogramManagerHolder one::dqmimplementation::DQMBaseClass< T... > SiPixelPhase1DigisV SiPixelPhase1GeometryDebug SiPixelPhase1HitsV SiPixelPhase1RecHitsV SiPixelPhase1TrackClustersV SiPixelPhase1TrackingParticleV

Public Member Functions

void analyze (edm::Event const &e, edm::EventSetup const &eSetup) override=0
 
void bookHistograms (DQMStore::IBooker &iBooker, edm::Run const &run, edm::EventSetup const &iSetup) override
 
 SiPixelPhase1Base (const edm::ParameterSet &iConfig)
 
 ~SiPixelPhase1Base () override
 
- Public Member Functions inherited from one::DQMEDAnalyzer< T >
 DQMEDAnalyzer ()=default
 
 DQMEDAnalyzer (DQMEDAnalyzer< T... > const &)=delete
 
 DQMEDAnalyzer (DQMEDAnalyzer< T... > &&)=delete
 
 ~DQMEDAnalyzer () override=default
 
- Public Member Functions inherited from HistogramManagerHolder
 HistogramManagerHolder (const edm::ParameterSet &iConfig)
 

Protected Types

enum  { DCS }
 

Protected Member Functions

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

Private Attributes

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

Additional Inherited Members

- Protected Attributes inherited from HistogramManagerHolder
GeometryInterface geometryInterface
 
std::vector< HistogramManagerhisto
 

Detailed Description

Definition at line 42 of file SiPixelPhase1Base.h.

Member Enumeration Documentation

anonymous enum
protected
Enumerator
DCS 

Definition at line 60 of file SiPixelPhase1Base.h.

Constructor & Destructor Documentation

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

Definition at line 14 of file SiPixelPhase1Base.cc.

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

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

Definition at line 53 of file SiPixelPhase1Base.h.

References iEvent.

53 {};

Member Function Documentation

void SiPixelPhase1Base::analyze ( edm::Event const &  e,
edm::EventSetup const &  eSetup 
)
overridepure virtual
void SiPixelPhase1Base::bookHistograms ( DQMStore::IBooker iBooker,
edm::Run const &  run,
edm::EventSetup const &  iSetup 
)
override

Definition at line 28 of file SiPixelPhase1Base.cc.

References HistogramManagerHolder::histo, and triggerlist.

32 {
33  for( HistogramManager& histoman : histo ){
34  histoman.book( iBooker, iSetup );
35  }
36 
37  // Running trigger flag initialization (per run)
38  for( auto& trigger : triggerlist ){
39  if( trigger->on() ){
40  trigger->initRun( run, iSetup );
41  }
42  }
43 }
std::vector< std::unique_ptr< GenericTriggerEventFlag > > triggerlist
std::vector< HistogramManager > histo
bool SiPixelPhase1Base::checktrigger ( const edm::Event iEvent,
const edm::EventSetup iSetup,
const unsigned  trgidx 
) const
protected

Definition at line 47 of file SiPixelPhase1Base.cc.

References edm::EventBase::isRealData(), and triggerlist.

51 {
52  //true if no trigger, MC, off, or accepted
53 
54  return triggerlist.empty() || !iEvent.isRealData() ||
55  !triggerlist.at(trgidx)->on() || triggerlist.at(trgidx)->accept( iEvent, iSetup );
56 }
std::vector< std::unique_ptr< GenericTriggerEventFlag > > triggerlist
bool isRealData() const
Definition: EventBase.h:64

Member Data Documentation

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

Definition at line 64 of file SiPixelPhase1Base.h.

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