CMS 3D CMS Logo

List of all members | Public Member Functions | Private Types | Private Attributes
SiPixelPhase1Digis Class Reference

#include <SiPixelPhase1Digis.h>

Inheritance diagram for SiPixelPhase1Digis:
SiPixelPhase1Base DQMEDAnalyzer HistogramManagerHolder edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > > edm::stream::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

void analyze (const edm::Event &, const edm::EventSetup &)
 
 SiPixelPhase1Digis (const edm::ParameterSet &conf)
 
- Public Member Functions inherited from SiPixelPhase1Base
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
 
 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)
 

Private Types

enum  {
  ADC, NDIGIS, NDIGISINCLUSIVE, NDIGIS_FED,
  NDIGIS_FEDtrend, EVENT, MAP, OCCUPANCY,
  MAX_HIST
}
 

Private Attributes

edm::EDGetTokenT< edm::DetSetVector< PixelDigi > > srcToken_
 

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

Detailed Description

Definition at line 18 of file SiPixelPhase1Digis.h.

Member Enumeration Documentation

anonymous enum
private
Enumerator
ADC 
NDIGIS 
NDIGISINCLUSIVE 
NDIGIS_FED 
NDIGIS_FEDtrend 
EVENT 
MAP 
OCCUPANCY 
MAX_HIST 

Definition at line 20 of file SiPixelPhase1Digis.h.

20  {
21  ADC, // digi ADC readouts
22  NDIGIS, // number of digis per event and module
23  NDIGISINCLUSIVE, //Total number of digis in BPix and FPix
24  NDIGIS_FED, // number of digis per event and FED
25  NDIGIS_FEDtrend, // number of digis per event and FED
26  EVENT, // event frequency
27  MAP, // digi hitmap per module
28  OCCUPANCY, // like map but coarser
29 
30  MAX_HIST // a sentinel that gives the number of quantities (not a plot).
31  };

Constructor & Destructor Documentation

SiPixelPhase1Digis::SiPixelPhase1Digis ( const edm::ParameterSet conf)
explicit

Definition at line 22 of file SiPixelPhase1Digis.cc.

References edm::ParameterSet::getParameter(), and srcToken_.

22  :
23  SiPixelPhase1Base(iConfig)
24 {
25  srcToken_ = consumes<edm::DetSetVector<PixelDigi>>(iConfig.getParameter<edm::InputTag>("src"));
26 }
edm::EDGetTokenT< edm::DetSetVector< PixelDigi > > srcToken_
SiPixelPhase1Base(const edm::ParameterSet &iConfig)

Member Function Documentation

void SiPixelPhase1Digis::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)

Definition at line 28 of file SiPixelPhase1Digis.cc.

References ADC, DEFINE_FWK_MODULE, EVENT, edm::Event::getByToken(), HistogramManagerHolder::histo, input, edm::HandleBase::isValid(), MAP, NDIGIS, NDIGIS_FED, NDIGIS_FEDtrend, NDIGISINCLUSIVE, OCCUPANCY, and srcToken_.

28  {
29 
31  iEvent.getByToken(srcToken_, input);
32  if (!input.isValid()) return;
33  bool hasDigis=false;
34 
36  for (it = input->begin(); it != input->end(); ++it) {
37  for(PixelDigi const& digi : *it) {
38  hasDigis=true;
39  histo[ADC].fill((double) digi.adc(), DetId(it->detId()), &iEvent, digi.column(), digi.row());
40  histo[MAP].fill(DetId(it->detId()), &iEvent, digi.column(), digi.row());
41  histo[OCCUPANCY].fill(DetId(it->detId()), &iEvent, digi.column(), digi.row());
42  histo[NDIGIS ].fill(DetId(it->detId()), &iEvent); // count
43  histo[NDIGISINCLUSIVE].fill(DetId(it->detId()), &iEvent); // count
44  histo[NDIGIS_FED].fill(DetId(it->detId()), &iEvent);
45  histo[NDIGIS_FEDtrend].fill(DetId(it->detId()), &iEvent);
46  }
47  }
48  if (hasDigis) histo[EVENT].fill(DetId(0), &iEvent);
49  histo[NDIGIS ].executePerEventHarvesting(&iEvent);
50  histo[NDIGISINCLUSIVE].executePerEventHarvesting(&iEvent);
51  histo[NDIGIS_FED].executePerEventHarvesting(&iEvent);
52  histo[NDIGIS_FEDtrend].executePerEventHarvesting(&iEvent);
53 }
edm::EDGetTokenT< edm::DetSetVector< PixelDigi > > srcToken_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:460
static std::string const input
Definition: EdmProvDump.cc:44
bool isValid() const
Definition: HandleBase.h:74
Definition: DetId.h:18
std::vector< HistogramManager > histo
collection_type::const_iterator const_iterator
Definition: DetSetVector.h:104

Member Data Documentation

edm::EDGetTokenT<edm::DetSetVector<PixelDigi> > SiPixelPhase1Digis::srcToken_
private

Definition at line 38 of file SiPixelPhase1Digis.h.

Referenced by analyze(), and SiPixelPhase1Digis().