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 one::DQMEDAnalyzer< T > HistogramManagerHolder one::dqmimplementation::DQMBaseClass< T... >

Public Member Functions

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

Private Types

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

Private Attributes

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

Additional Inherited Members

- Protected Types inherited from SiPixelPhase1Base
enum  { DCS }
 
- Protected Member Functions inherited from SiPixelPhase1Base
bool checktrigger (const edm::Event &iEvent, const edm::EventSetup &iSetup, const unsigned trgidx) const
 
- 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
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 ( const edm::ParameterSet conf)
explicit

Definition at line 23 of file SiPixelPhase1DigisV.cc.

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

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

Member Function Documentation

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

Definition at line 29 of file SiPixelPhase1DigisV.cc.

References ADC, COLUMN, DEFINE_FWK_MODULE, edm::Event::getByToken(), HistogramManagerHolder::histo, input, edm::HandleBase::isValid(), NDIGIS, ROW, and srcToken_.

29  {
30 
32  iEvent.getByToken(srcToken_, input);
33  if (!input.isValid()) return;
34 
36  for (it = input->begin(); it != input->end(); ++it) {
37  for(PixelDigi const& digi : *it) {
38  histo[ADC].fill((double) digi.adc(), DetId(it->detId()), &iEvent);
39  histo[NDIGIS ].fill(DetId(it->detId()), &iEvent); // count
40  histo[ROW].fill((double) digi.row(), DetId(it->detId()), &iEvent);
41  histo[COLUMN].fill((double) digi.column(), DetId(it->detId()), &iEvent);
42  }
43  }
44  histo[NDIGIS ].executePerEventHarvesting(&iEvent);
45 }
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:579
static std::string const input
Definition: EdmProvDump.cc:45
bool isValid() const
Definition: HandleBase.h:74
edm::EDGetTokenT< edm::DetSetVector< PixelDigi > > srcToken_
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> > SiPixelPhase1DigisV::srcToken_
private

Definition at line 35 of file SiPixelPhase1DigisV.h.

Referenced by analyze(), and SiPixelPhase1DigisV().