CMS 3D CMS Logo

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

#include <SiPixelPhase1DigisV.h>

Inheritance diagram for SiPixelPhase1DigisV:
SiPixelPhase1Base DQMEDAnalyzer HistogramManagerHolder edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >

Public Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 
 SiPixelPhase1DigisV (const edm::ParameterSet &conf)
 
- Public Member Functions inherited from SiPixelPhase1Base
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
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
- Public Member Functions inherited from HistogramManagerHolder
 HistogramManagerHolder (const edm::ParameterSet &iConfig, edm::ConsumesCollector &&iC, edm::Transition transition=edm::Transition::BeginRun)
 

Private Types

enum  {
  ADC, NDIGIS, ROW, COLUMN,
  MAX_HIST
}
 

Private Attributes

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

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 >
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
 
- 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 Types inherited from SiPixelPhase1Base
enum  { DCS }
 
- Protected Member Functions inherited from SiPixelPhase1Base
bool checktrigger (const edm::Event &iEvent, const edm::EventSetup &, const unsigned trgidx) const
 
- Protected Member Functions inherited from DQMEDAnalyzer
uint64_t meId () 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 19 of file SiPixelPhase1DigisV.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
ADC 
NDIGIS 
ROW 
COLUMN 
MAX_HIST 

Definition at line 21 of file SiPixelPhase1DigisV.h.

21  {
22  ADC, // digi ADC readouts
23  NDIGIS, // number of digis per event and module
24  ROW, // number of digis per row
25  COLUMN, // number of digis per column
26 
27  MAX_HIST // a sentinel that gives the number of quantities (not a plot).
28  };

Constructor & Destructor Documentation

◆ SiPixelPhase1DigisV()

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

Definition at line 23 of file SiPixelPhase1DigisV.cc.

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

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

Member Function Documentation

◆ analyze()

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

Implements SiPixelPhase1Base.

Definition at line 27 of file SiPixelPhase1DigisV.cc.

27  {
29  iEvent.getByToken(srcToken_, input);
30  if (!input.isValid())
31  return;
32 
34  for (it = input->begin(); it != input->end(); ++it) {
35  for (PixelDigi const &digi : *it) {
36  histo[ADC].fill((double)digi.adc(), DetId(it->detId()), &iEvent);
37  histo[NDIGIS].fill(DetId(it->detId()), &iEvent); // count
38  histo[ROW].fill((double)digi.row(), DetId(it->detId()), &iEvent);
39  histo[COLUMN].fill((double)digi.column(), DetId(it->detId()), &iEvent);
40  }
41  }
42  histo[NDIGIS].executePerEventHarvesting(&iEvent);
43 }

References ADC, COLUMN, HistogramManagerHolder::histo, iEvent, input, NDIGIS, ROW, and srcToken_.

Member Data Documentation

◆ srcToken_

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

Definition at line 36 of file SiPixelPhase1DigisV.h.

Referenced by analyze(), and SiPixelPhase1DigisV().

SiPixelPhase1DigisV::ADC
Definition: SiPixelPhase1DigisV.h:22
input
static const std::string input
Definition: EdmProvDump.cc:48
SiPixelPhase1DigisV::NDIGIS
Definition: SiPixelPhase1DigisV.h:23
PixelDigi
Definition: PixelDigi.h:14
HistogramManagerHolder::histo
std::vector< HistogramManager > histo
Definition: SiPixelPhase1Base.h:37
edm::Handle
Definition: AssociativeIterator.h:50
SiPixelPhase1Base::SiPixelPhase1Base
SiPixelPhase1Base(const edm::ParameterSet &iConfig)
Definition: SiPixelPhase1Base.cc:14
DetId
Definition: DetId.h:17
SiPixelPhase1DigisV::MAX_HIST
Definition: SiPixelPhase1DigisV.h:27
SiPixelPhase1DigisV::ROW
Definition: SiPixelPhase1DigisV.h:24
SiPixelPhase1DigisV::COLUMN
Definition: SiPixelPhase1DigisV.h:25
edm::DetSetVector::const_iterator
collection_type::const_iterator const_iterator
Definition: DetSetVector.h:102
iEvent
int iEvent
Definition: GenABIO.cc:224
SiPixelPhase1DigisV::srcToken_
edm::EDGetTokenT< edm::DetSetVector< PixelDigi > > srcToken_
Definition: SiPixelPhase1DigisV.h:36
edm::InputTag
Definition: InputTag.h:15