CMS 3D CMS Logo

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

#include <SiPixelPhase1Base.h>

Inheritance diagram for SiPixelPhase1Base:
DQMEDAnalyzer HistogramManagerHolder edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > > edm::stream::EDAnalyzerBase edm::EDConsumerBase SiPixelPhase1Clusters SiPixelPhase1Digis SiPixelPhase1GeometryDebug SiPixelPhase1RawData SiPixelPhase1RecHits SiPixelPhase1TrackEfficiency SiPixelPhase1TrackResiduals

Public Member Functions

void analyze (edm::Event const &e, edm::EventSetup const &eSetup)=0
 
void bookHistograms (DQMStore::IBooker &iBooker, edm::Run const &run, edm::EventSetup const &iSetup)
 
 SiPixelPhase1Base (const edm::ParameterSet &iConfig)
 
virtual ~SiPixelPhase1Base ()
 
- Public Member Functions inherited from DQMEDAnalyzer
virtual void beginRun (edm::Run const &, edm::EventSetup const &) final
 
virtual void beginStream (edm::StreamID id) final
 
virtual void dqmBeginRun (edm::Run const &, edm::EventSetup const &)
 
 DQMEDAnalyzer (void)
 
virtual void endLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, dqmDetails::NoCache *) const final
 
virtual 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
 
virtual ~EDAnalyzerBase ()
 
- 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)
 
- Public Member Functions inherited from HistogramManagerHolder
 HistogramManagerHolder (const edm::ParameterSet &iConfig)
 

Protected Member Functions

bool checktrigger (const edm::Event &iEvent, const edm::EventSetup &iSetup, const unsigned trgidx) const
 
- 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)
 

Private Attributes

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

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
 
- 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)
 
- Protected Attributes inherited from HistogramManagerHolder
GeometryInterface geometryInterface
 
std::vector< HistogramManagerhisto
 

Detailed Description

Definition at line 42 of file SiPixelPhase1Base.h.

Constructor & Destructor Documentation

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

Definition at line 14 of file SiPixelPhase1Base.cc.

References edm::EDConsumerBase::consumesCollector(), 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...
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
HistogramManagerHolder(const edm::ParameterSet &iConfig)
virtual SiPixelPhase1Base::~SiPixelPhase1Base ( )
inlinevirtual

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 
)
pure virtual
void SiPixelPhase1Base::bookHistograms ( DQMStore::IBooker iBooker,
edm::Run const &  run,
edm::EventSetup const &  iSetup 
)
virtual

Implements DQMEDAnalyzer.

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  // Always return true for MC
53  if( !iEvent.isRealData() ) { return true; }
54 
55  // Always return true is flag is not on;
56  if( !triggerlist.at(trgidx)->on() ) { return true; }
57 
58  return triggerlist.at(trgidx)->accept( iEvent, iSetup );
59 }
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 61 of file SiPixelPhase1Base.h.

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