CMS 3D CMS Logo

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

#include <SiPixelDigiSource.h>

Inheritance diagram for SiPixelDigiSource:
DQMEDAnalyzer edm::one::EDProducer< edm::Accumulator, edm::EndLuminosityBlockProducer, edm::EndRunProducer, edm::one::WatchLuminosityBlocks, edm::one::WatchRuns > edm::one::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Types

typedef edm::DetSet< PixelDigi >::const_iterator DigiIterator
 
- Public Types inherited from edm::one::EDProducerBase
typedef EDProducerBase ModuleType
 
- Public Types inherited from edm::ProducerBase
using ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex >>
 
typedef ProductRegistryHelper::TypeLabelList TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 

Public Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 
void beginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) override
 
void bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
 
virtual void bookMEs (DQMStore::IBooker &, const edm::EventSetup &iSetup)
 
virtual void buildStructure (edm::EventSetup const &)
 
virtual void CountZeroROCsInSubstructure (bool, bool &, SiPixelDigiModule *)
 
void dqmBeginRun (const edm::Run &, edm::EventSetup const &) override
 
void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) override
 
 SiPixelDigiSource (const edm::ParameterSet &conf)
 
 ~SiPixelDigiSource () override
 
- Public Member Functions inherited from DQMEDAnalyzer
void accumulate (edm::Event const &ev, edm::EventSetup const &es) final
 
virtual void analyze (edm::Event const &, edm::EventSetup const &)
 
void beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) override
 
void beginRun (edm::Run const &run, edm::EventSetup const &setup) final
 
virtual void dqmBeginRun (edm::Run const &, edm::EventSetup const &)
 
 DQMEDAnalyzer ()
 
 DQMEDAnalyzer (DQMEDAnalyzer const &)=delete
 
 DQMEDAnalyzer (DQMEDAnalyzer &&)=delete
 
void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) override
 
void endLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &setup) final
 
void endRun (edm::Run const &run, edm::EventSetup const &setup) override
 
void endRunProduce (edm::Run &run, edm::EventSetup const &setup) override
 
 ~DQMEDAnalyzer () override=default
 
- Public Member Functions inherited from edm::one::EDProducer< edm::Accumulator, edm::EndLuminosityBlockProducer, edm::EndRunProducer, edm::one::WatchLuminosityBlocks, edm::one::WatchRuns >
 EDProducer ()=default
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
bool hasAbilityToProduceInLumis () const final
 
bool hasAbilityToProduceInRuns () const final
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
- Public Member Functions inherited from edm::one::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~EDProducerBase () override
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
std::vector< edm::ProductResolverIndex > const & indiciesForPutProducts (BranchType iBranchType) const
 
 ProducerBase ()
 
std::vector< edm::ProductResolverIndex > const & putTokenIndexToProductResolverIndex () const
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription const &)> registrationCallback () const
 used by the fwk to register list of products More...
 
void resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel)
 
 ~ProducerBase () override
 
- 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
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
virtual ~EDConsumerBase () noexcept(false)
 

Public Attributes

std::string topFolderName_
 

Private Attributes

MonitorElementaverageDigiOccupancy
 
MonitorElementavgBarrelFedOccvsLumi
 
MonitorElementavgEndcapFedOccvsLumi
 
MonitorElementavgfedDigiOccvsLumi
 
MonitorElementbigEventRate
 
int bigEventSize
 
bool bladeOn
 
edm::ParameterSet conf_
 
bool diskOn
 
bool DoZeroRocsBMI1
 
bool DoZeroRocsBMI2
 
bool DoZeroRocsBMI3
 
bool DoZeroRocsBMO1
 
bool DoZeroRocsBMO2
 
bool DoZeroRocsBMO3
 
bool DoZeroRocsBPI1
 
bool DoZeroRocsBPI2
 
bool DoZeroRocsBPI3
 
bool DoZeroRocsBPO1
 
bool DoZeroRocsBPO2
 
bool DoZeroRocsBPO3
 
bool DoZeroRocsFMI1
 
bool DoZeroRocsFMI2
 
bool DoZeroRocsFMO1
 
bool DoZeroRocsFMO2
 
bool DoZeroRocsFPI1
 
bool DoZeroRocsFPI2
 
bool DoZeroRocsFPO1
 
bool DoZeroRocsFPO2
 
bool firstRun
 
bool hiRes
 
unsigned int I_detId [1856]
 
int I_fedId [1856]
 
int I_linkId1 [1856]
 
int I_linkId2 [1856]
 
std::string I_name [1856]
 
bool isPIB
 
bool isUpgrade
 
bool ladOn
 
bool layOn
 
MonitorElementloOccROCsBarrel
 
MonitorElementloOccROCsEndcap
 
MonitorElementmeNDigisCHANBarrel_
 
MonitorElementmeNDigisCHANBarrelCh10_
 
MonitorElementmeNDigisCHANBarrelCh11_
 
MonitorElementmeNDigisCHANBarrelCh12_
 
MonitorElementmeNDigisCHANBarrelCh13_
 
MonitorElementmeNDigisCHANBarrelCh14_
 
MonitorElementmeNDigisCHANBarrelCh15_
 
MonitorElementmeNDigisCHANBarrelCh16_
 
MonitorElementmeNDigisCHANBarrelCh17_
 
MonitorElementmeNDigisCHANBarrelCh18_
 
MonitorElementmeNDigisCHANBarrelCh19_
 
MonitorElementmeNDigisCHANBarrelCh1_
 
MonitorElementmeNDigisCHANBarrelCh20_
 
MonitorElementmeNDigisCHANBarrelCh21_
 
MonitorElementmeNDigisCHANBarrelCh22_
 
MonitorElementmeNDigisCHANBarrelCh23_
 
MonitorElementmeNDigisCHANBarrelCh24_
 
MonitorElementmeNDigisCHANBarrelCh25_
 
MonitorElementmeNDigisCHANBarrelCh26_
 
MonitorElementmeNDigisCHANBarrelCh27_
 
MonitorElementmeNDigisCHANBarrelCh28_
 
MonitorElementmeNDigisCHANBarrelCh29_
 
MonitorElementmeNDigisCHANBarrelCh2_
 
MonitorElementmeNDigisCHANBarrelCh30_
 
MonitorElementmeNDigisCHANBarrelCh31_
 
MonitorElementmeNDigisCHANBarrelCh32_
 
MonitorElementmeNDigisCHANBarrelCh33_
 
MonitorElementmeNDigisCHANBarrelCh34_
 
MonitorElementmeNDigisCHANBarrelCh35_
 
MonitorElementmeNDigisCHANBarrelCh36_
 
MonitorElementmeNDigisCHANBarrelCh3_
 
MonitorElementmeNDigisCHANBarrelCh4_
 
MonitorElementmeNDigisCHANBarrelCh5_
 
MonitorElementmeNDigisCHANBarrelCh6_
 
MonitorElementmeNDigisCHANBarrelCh7_
 
MonitorElementmeNDigisCHANBarrelCh8_
 
MonitorElementmeNDigisCHANBarrelCh9_
 
std::vector< MonitorElement * > meNDigisCHANBarrelLs_
 
MonitorElementmeNDigisCHANEndcap_
 
std::vector< MonitorElement * > meNDigisCHANEndcapDms_
 
std::vector< MonitorElement * > meNDigisCHANEndcapDps_
 
MonitorElementmeNDigisCOMBBarrel_
 
MonitorElementmeNDigisCOMBEndcap_
 
bool modOn
 
int nBigEvents
 
int nBPIXDigis
 
int nDigisA
 
int nDigisB
 
int nDigisPerChan [1152]
 
int nDigisPerDisk [6]
 
int nDigisPerFed [40]
 
int nDM1P1M1
 
int nDM1P1M2
 
int nDM1P1M3
 
int nDM1P1M4
 
int nDM1P2M1
 
int nDM1P2M2
 
int nDM1P2M3
 
int nDM2P1M1
 
int nDM2P1M2
 
int nDM2P1M3
 
int nDM2P1M4
 
int nDM2P2M1
 
int nDM2P2M2
 
int nDM2P2M3
 
int nDM3P1M1
 
int nDM3P2M1
 
int nDP1P1M1
 
int nDP1P1M2
 
int nDP1P1M3
 
int nDP1P1M4
 
int nDP1P2M1
 
int nDP1P2M2
 
int nDP1P2M3
 
int nDP2P1M1
 
int nDP2P1M2
 
int nDP2P1M3
 
int nDP2P1M4
 
int nDP2P2M1
 
int nDP2P2M2
 
int nDP2P2M3
 
int nDP3P1M1
 
int nDP3P2M1
 
int nFPIXDigis
 
int nL1M1
 
int nL1M2
 
int nL1M3
 
int nL1M4
 
int nL2M1
 
int nL2M2
 
int nL2M3
 
int nL2M4
 
int nL3M1
 
int nL3M2
 
int nL3M3
 
int nL3M4
 
int nL4M1
 
int nL4M2
 
int nL4M3
 
int nL4M4
 
int NloEffROCs [2]
 
MonitorElementnoOccROCsBarrel
 
MonitorElementnoOccROCsEndcap
 
int noOfDisks
 
int noOfLayers
 
int numberOfDigis [336]
 
int NzeroROCs [2]
 
bool phiOn
 
MonitorElementpixEventRate
 
MonitorElementpixEvtsPerBX
 
bool reducedSet
 
bool ringOn
 
bool ROCMapToReset
 
bool saveFile
 
bool slowDown
 
edm::InputTag src_
 
edm::EDGetTokenT< edm::DetSetVector< PixelDigi > > srcToken_
 
std::map< uint32_t, SiPixelDigiModule * > thePixelStructure
 
bool twoDimModOn
 
bool twoDimOn
 
bool twoDimOnlyLayDisk
 

Additional Inherited Members

- Static Public Member Functions inherited from edm::one::EDProducerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- 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 DQMEDAnalyzer
edm::EDPutTokenT< DQMTokenlumiToken_
 
edm::EDPutTokenT< DQMTokenrunToken_
 

Detailed Description

Description: <one line="" class="" summary>="">

Usage: <usage>

Definition at line 48 of file SiPixelDigiSource.h.

Member Typedef Documentation

Definition at line 53 of file SiPixelDigiSource.h.

Constructor & Destructor Documentation

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

Definition at line 49 of file SiPixelDigiSource.cc.

References conf_, firstRun, edm::ParameterSet::getParameter(), I_detId, I_fedId, I_linkId1, I_linkId2, I_name, recoMuon::in, isUpgrade, srcToken_, AlCaHLTBitMon_QueryRunRegistry::string, and topFolderName_.

49  :
50  conf_(iConfig),
51  src_( conf_.getParameter<edm::InputTag>( "src" ) ),
52  saveFile( conf_.getUntrackedParameter<bool>("saveFile",false) ),
53  isPIB( conf_.getUntrackedParameter<bool>("isPIB",false) ),
54  slowDown( conf_.getUntrackedParameter<bool>("slowDown",false) ),
55  modOn( conf_.getUntrackedParameter<bool>("modOn",true) ),
56  twoDimOn( conf_.getUntrackedParameter<bool>("twoDimOn",true) ),
57  twoDimModOn( conf_.getUntrackedParameter<bool>("twoDimModOn",true) ),
58  twoDimOnlyLayDisk( conf_.getUntrackedParameter<bool>("twoDimOnlyLayDisk",false) ),
59  hiRes( conf_.getUntrackedParameter<bool>("hiRes",false) ),
60  reducedSet( conf_.getUntrackedParameter<bool>("reducedSet",false) ),
61  ladOn( conf_.getUntrackedParameter<bool>("ladOn",false) ),
62  layOn( conf_.getUntrackedParameter<bool>("layOn",false) ),
63  phiOn( conf_.getUntrackedParameter<bool>("phiOn",false) ),
64  ringOn( conf_.getUntrackedParameter<bool>("ringOn",false) ),
65  bladeOn( conf_.getUntrackedParameter<bool>("bladeOn",false) ),
66  diskOn( conf_.getUntrackedParameter<bool>("diskOn",false) ),
67  bigEventSize( conf_.getUntrackedParameter<int>("bigEventSize",1000) ),
68  isUpgrade( conf_.getUntrackedParameter<bool>("isUpgrade",false) ),
69  noOfLayers(0),
70  noOfDisks(0)
71 {
72  //set Token(-s)
73  srcToken_ = consumes<edm::DetSetVector<PixelDigi> >(conf_.getParameter<edm::InputTag>( "src" ));
74 
75  topFolderName_ = conf_.getParameter<std::string>("TopFolderName");
76 
77  firstRun = true;
78  // find a FED# for the current detId:
79  ifstream infile(edm::FileInPath("DQM/SiPixelMonitorClient/test/detId.dat").fullPath().c_str(),ios::in);
80  int nModsInFile=0;
81  assert(!infile.fail());
82  int nTOTmodules;
83  if (isUpgrade) { nTOTmodules=1856; } else { nTOTmodules=1440; }
84  while(!infile.eof()&&nModsInFile<nTOTmodules) {
85  infile >> I_name[nModsInFile] >> I_detId[nModsInFile] >> I_fedId[nModsInFile] >> I_linkId1[nModsInFile] >> I_linkId2[nModsInFile];
86  nModsInFile++;
87  }
88  infile.close();
89 
90  LogInfo ("PixelDQM") << "SiPixelDigiSource::SiPixelDigiSource: Got DQM BackEnd interface"<<endl;
91 }
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
std::string topFolderName_
edm::EDGetTokenT< edm::DetSetVector< PixelDigi > > srcToken_
unsigned int I_detId[1856]
edm::ParameterSet conf_
edm::InputTag src_
std::string I_name[1856]
SiPixelDigiSource::~SiPixelDigiSource ( )
override

Definition at line 94 of file SiPixelDigiSource.cc.

95 {
96  // do anything here that needs to be done at desctruction time
97  // (e.g. close files, deallocate resources etc.)
98  LogInfo ("PixelDQM") << "SiPixelDigiSource::~SiPixelDigiSource: Destructor"<<endl;
99 }

Member Function Documentation

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

Definition at line 311 of file SiPixelDigiSource.cc.

References Reference_intrackfit_cff::barrel, bigEventRate, bigEventSize, PixelEndcapName::bladeName(), bladeOn, edm::EventBase::bunchCrossing(), CountZeroROCsInSubstructure(), PixelEndcapName::diskName(), diskOn, DoZeroRocsBMI1, DoZeroRocsBMI2, DoZeroRocsBMI3, DoZeroRocsBMO1, DoZeroRocsBMO2, DoZeroRocsBMO3, DoZeroRocsBPI1, DoZeroRocsBPI2, DoZeroRocsBPI3, DoZeroRocsBPO1, DoZeroRocsBPO2, DoZeroRocsBPO3, DoZeroRocsFMI1, DoZeroRocsFMI2, DoZeroRocsFMO1, DoZeroRocsFMO2, DoZeroRocsFPI1, DoZeroRocsFPI2, DoZeroRocsFPO1, DoZeroRocsFPO2, makeMuonMisalignmentScenario::endcap, MonitorElement::Fill(), edm::EventSetup::get(), edm::Event::getByToken(), PixelEndcapName::halfCylinder(), mps_fire::i, I_detId, I_fedId, I_linkId1, I_linkId2, input, createfilelist::int, isUpgrade, edm::HandleBase::isValid(), ladOn, PixelBarrelName::layerName(), layOn, loOccROCsBarrel, loOccROCsEndcap, edm::EventBase::luminosityBlock(), meNDigisCHANBarrel_, meNDigisCHANBarrelCh10_, meNDigisCHANBarrelCh11_, meNDigisCHANBarrelCh12_, meNDigisCHANBarrelCh13_, meNDigisCHANBarrelCh14_, meNDigisCHANBarrelCh15_, meNDigisCHANBarrelCh16_, meNDigisCHANBarrelCh17_, meNDigisCHANBarrelCh18_, meNDigisCHANBarrelCh19_, meNDigisCHANBarrelCh1_, meNDigisCHANBarrelCh20_, meNDigisCHANBarrelCh21_, meNDigisCHANBarrelCh22_, meNDigisCHANBarrelCh23_, meNDigisCHANBarrelCh24_, meNDigisCHANBarrelCh25_, meNDigisCHANBarrelCh26_, meNDigisCHANBarrelCh27_, meNDigisCHANBarrelCh28_, meNDigisCHANBarrelCh29_, meNDigisCHANBarrelCh2_, meNDigisCHANBarrelCh30_, meNDigisCHANBarrelCh31_, meNDigisCHANBarrelCh32_, meNDigisCHANBarrelCh33_, meNDigisCHANBarrelCh34_, meNDigisCHANBarrelCh35_, meNDigisCHANBarrelCh36_, meNDigisCHANBarrelCh3_, meNDigisCHANBarrelCh4_, meNDigisCHANBarrelCh5_, meNDigisCHANBarrelCh6_, meNDigisCHANBarrelCh7_, meNDigisCHANBarrelCh8_, meNDigisCHANBarrelCh9_, meNDigisCHANBarrelLs_, meNDigisCHANEndcap_, meNDigisCHANEndcapDms_, meNDigisCHANEndcapDps_, meNDigisCOMBBarrel_, meNDigisCOMBEndcap_, PixelEndcapName::mI, PixelBarrelName::mI, PixelBarrelName::mO, PixelEndcapName::mO, modOn, nBPIXDigis, nDigisA, nDigisB, nDigisPerChan, nDigisPerDisk, nDigisPerFed, nDM1P1M1, nDM1P1M2, nDM1P1M3, nDM1P1M4, nDM1P2M1, nDM1P2M2, nDM1P2M3, nDM2P1M1, nDM2P1M2, nDM2P1M3, nDM2P1M4, nDM2P2M1, nDM2P2M2, nDM2P2M3, nDM3P1M1, nDM3P2M1, nDP1P1M1, nDP1P1M2, nDP1P1M3, nDP1P1M4, nDP1P2M1, nDP1P2M2, nDP1P2M3, nDP2P1M1, nDP2P1M2, nDP2P1M3, nDP2P1M4, nDP2P2M1, nDP2P2M2, nDP2P2M3, nDP3P1M1, nDP3P2M1, nFPIXDigis, NloEffROCs, noOccROCsBarrel, noOccROCsEndcap, noOfDisks, numberOfDigis, NzeroROCs, PixelEndcapName::pannelName(), phiOn, PixelEndcapName::pI, PixelBarrelName::pI, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, pixEventRate, pixEvtsPerBX, PixelEndcapName::plaquetteName(), PixelEndcapName::pO, PixelBarrelName::pO, edm::ESHandle< T >::product(), reducedSet, ringOn, ROCMapToReset, MonitorElement::setBinContent(), PixelBarrelName::shell(), slowDown, srcToken_, DetId::subdetId(), thePixelStructure, twoDimModOn, twoDimOn, and twoDimOnlyLayDisk.

312 {
313 
314  edm::ESHandle<TrackerTopology> tTopoHandle;
315  iSetup.get<TrackerTopologyRcd>().get(tTopoHandle);
316  const TrackerTopology *pTT = tTopoHandle.product();
317 
318  // get input data
320  iEvent.getByToken(srcToken_, input);
321  if (!input.isValid()) return;
322 
323  int bx = iEvent.bunchCrossing();
324 
325  int lumiSection = (int)iEvent.luminosityBlock();
326  int nEventDigis = 0; int nActiveModules = 0;
327 
328  std::map<uint32_t,SiPixelDigiModule*>::iterator struct_iter;
329  for(int i=0; i!=192; i++) numberOfDigis[i]=0;
330  for(int i=0; i!=1152; i++) nDigisPerChan[i]=0;
331  for(int i=0; i!=4; i++) nDigisPerDisk[i]=0;
332 
333  for (struct_iter = thePixelStructure.begin() ; struct_iter != thePixelStructure.end() ; struct_iter++) {
334 
335  int numberOfDigisMod = (*struct_iter).second->fill(*input, iSetup,
337  modOn, ladOn, layOn, phiOn,
338  bladeOn, diskOn, ringOn,
341 
342 
343  bool barrel = DetId((*struct_iter).first).subdetId() == static_cast<int>(PixelSubdetector::PixelBarrel);
344  bool endcap = DetId((*struct_iter).first).subdetId() == static_cast<int>(PixelSubdetector::PixelEndcap);
345 
346  if(numberOfDigisMod>0){
347  nEventDigis = nEventDigis + numberOfDigisMod;
348  nActiveModules++;
349  int nBPiXmodules;
350  int nTOTmodules;
351  if (isUpgrade) {
352  nBPiXmodules=1184;
353  nTOTmodules=1856;
354  } else {
355  nBPiXmodules=768;
356  nTOTmodules=1440;
357  }
358  if(barrel){ // Barrel
359  int layer=PixelBarrelName(DetId((*struct_iter).first),pTT,isUpgrade).layerName();
360  PixelBarrelName::Shell shell=PixelBarrelName(DetId((*struct_iter).first),pTT,isUpgrade).shell();
361 
362  //Count Zero Occ Rocs in Barrel in the first event after each 10 Ls
364  if (DoZeroRocsBMO1 && layer==1) CountZeroROCsInSubstructure(barrel, DoZeroRocsBMO1,(*struct_iter).second);
365  if (DoZeroRocsBMO2 && layer==2) CountZeroROCsInSubstructure(barrel, DoZeroRocsBMO2,(*struct_iter).second);
366  if (DoZeroRocsBMO3 && layer==3) CountZeroROCsInSubstructure(barrel, DoZeroRocsBMO3,(*struct_iter).second);
367  } else if (ROCMapToReset && shell==PixelBarrelName::mI && twoDimOnlyLayDisk){
368  if (DoZeroRocsBMI1 && layer==1) CountZeroROCsInSubstructure(barrel, DoZeroRocsBMI1,(*struct_iter).second);
369  if (DoZeroRocsBMI2 && layer==2) CountZeroROCsInSubstructure(barrel, DoZeroRocsBMI2,(*struct_iter).second);
370  if (DoZeroRocsBMI3 && layer==3) CountZeroROCsInSubstructure(barrel, DoZeroRocsBMI3,(*struct_iter).second);
371  } else if (ROCMapToReset && shell==PixelBarrelName::pO && twoDimOnlyLayDisk){
372  if (DoZeroRocsBPO1 && layer==1) CountZeroROCsInSubstructure(barrel, DoZeroRocsBPO1,(*struct_iter).second);
373  if (DoZeroRocsBPO2 && layer==2) CountZeroROCsInSubstructure(barrel, DoZeroRocsBPO2,(*struct_iter).second);
374  if (DoZeroRocsBPO3 && layer==3) CountZeroROCsInSubstructure(barrel, DoZeroRocsBPO3,(*struct_iter).second);
375  } else if (ROCMapToReset && shell==PixelBarrelName::pI && twoDimOnlyLayDisk){
376  if (DoZeroRocsBPI1 && layer==1) CountZeroROCsInSubstructure(barrel, DoZeroRocsBPI1,(*struct_iter).second);
377  if (DoZeroRocsBPI2 && layer==2) CountZeroROCsInSubstructure(barrel, DoZeroRocsBPI2,(*struct_iter).second);
378  if (DoZeroRocsBPI3 && layer==3) CountZeroROCsInSubstructure(barrel, DoZeroRocsBPI3,(*struct_iter).second);
379  }
380 
381  nBPIXDigis = nBPIXDigis + numberOfDigisMod;
382  for(int i=0; i!=nBPiXmodules; ++i){
383  if((*struct_iter).first == I_detId[i]){
384  nDigisPerFed[I_fedId[i]]=nDigisPerFed[I_fedId[i]]+numberOfDigisMod;
385  int index1 = 0; int index2 = 0;
386  if(I_linkId1[i]>0) index1 = I_fedId[i]*36+(I_linkId1[i]-1);
387  if(I_linkId2[i]>0) index2 = I_fedId[i]*36+(I_linkId2[i]-1);
388  if(nDigisA>0 && I_linkId1[i]>0) nDigisPerChan[index1]=nDigisPerChan[index1]+nDigisA;
389  if(nDigisB>0 && I_linkId2[i]>0) nDigisPerChan[index2]=nDigisPerChan[index2]+nDigisB;
390  i=(nBPiXmodules-1);
391  }
392  }
393  }else if(endcap && !isUpgrade){ // Endcap
394  nFPIXDigis = nFPIXDigis + numberOfDigisMod;
395  PixelEndcapName::HalfCylinder side = PixelEndcapName(DetId((*struct_iter).first),pTT,isUpgrade).halfCylinder();
396  int disk = PixelEndcapName(DetId((*struct_iter).first),pTT,isUpgrade).diskName();
397  int blade = PixelEndcapName(DetId((*struct_iter).first),pTT,isUpgrade).bladeName();
398  int panel = PixelEndcapName(DetId((*struct_iter).first),pTT,isUpgrade).pannelName();
399  int module = PixelEndcapName(DetId((*struct_iter).first),pTT,isUpgrade).plaquetteName();
400  int iter=0; int i=0;
401 
402  //count Zero Occupancy ROCs in Endcap in the first event after each 10 Ls
404  if (DoZeroRocsFMO1 && disk==1) CountZeroROCsInSubstructure(barrel, DoZeroRocsFMO1,(*struct_iter).second);
405  if (DoZeroRocsFMO2 && disk==2) CountZeroROCsInSubstructure(barrel, DoZeroRocsFMO2,(*struct_iter).second);
406  } else if (ROCMapToReset && side==PixelEndcapName::mI && twoDimOnlyLayDisk){
407  if (DoZeroRocsFMI1 && disk==1) CountZeroROCsInSubstructure(barrel, DoZeroRocsFMI1,(*struct_iter).second);
408  if (DoZeroRocsFMI2 && disk==2) CountZeroROCsInSubstructure(barrel, DoZeroRocsFMI2,(*struct_iter).second);
409  } else if (ROCMapToReset && side==PixelEndcapName::pO && twoDimOnlyLayDisk){
410  if (DoZeroRocsFPO1 && disk==1) CountZeroROCsInSubstructure(barrel, DoZeroRocsFPO1,(*struct_iter).second);
411  if (DoZeroRocsFPO2 && disk==2) CountZeroROCsInSubstructure(barrel, DoZeroRocsFPO2,(*struct_iter).second);
412  } else if (ROCMapToReset && side==PixelEndcapName::pI && twoDimOnlyLayDisk){
413  if (DoZeroRocsFPI1 && disk==1) CountZeroROCsInSubstructure(barrel, DoZeroRocsFPI1,(*struct_iter).second);
414  if (DoZeroRocsFPI2 && disk==2) CountZeroROCsInSubstructure(barrel, DoZeroRocsFPI2,(*struct_iter).second);
415  }
416 
417  if(side==PixelEndcapName::mI){
418  if(disk==1){
419  i=0;
420  if(panel==1){ if(module==1) nDM1P1M1+=numberOfDigisMod;
421  else if(module==2) nDM1P1M2+=numberOfDigisMod;
422  else if(module==3) nDM1P1M3+=numberOfDigisMod;
423  else if(module==4) nDM1P1M4+=numberOfDigisMod;}
424  else if(panel==2){ if(module==1) nDM1P2M1+=numberOfDigisMod;
425  else if(module==2) nDM1P2M2+=numberOfDigisMod;
426  else if(module==3) nDM1P2M3+=numberOfDigisMod; }
427  if(blade<13 && blade>0 && (panel==1 || panel==2)) iter = i+2*(blade-1)+(panel-1);
428  }else if(disk==2){
429  i=24;
430  if(panel==1){ if(module==1) nDM2P1M1+=numberOfDigisMod;
431  else if(module==2) nDM2P1M2+=numberOfDigisMod;
432  else if(module==3) nDM2P1M3+=numberOfDigisMod;
433  else if(module==4) nDM2P1M4+=numberOfDigisMod;}
434  else if(panel==2){ if(module==1) nDM2P2M1+=numberOfDigisMod;
435  else if(module==2) nDM2P2M2+=numberOfDigisMod;
436  else if(module==3) nDM2P2M3+=numberOfDigisMod; }
437  if(blade<13 && blade>0 && (panel==1 || panel==2)) iter = i+2*(blade-1)+(panel-1);
438  }
439  }else if(side==PixelEndcapName::mO){
440  if(disk==1){
441  i=48;
442  if(panel==1){ if(module==1) nDM1P1M1+=numberOfDigisMod;
443  else if(module==2) nDM1P1M2+=numberOfDigisMod;
444  else if(module==3) nDM1P1M3+=numberOfDigisMod;
445  else if(module==4) nDM1P1M4+=numberOfDigisMod;}
446  else if(panel==2){ if(module==1) nDM1P2M1+=numberOfDigisMod;
447  else if(module==2) nDM1P2M2+=numberOfDigisMod;
448  else if(module==3) nDM1P2M3+=numberOfDigisMod; }
449  if(blade<13 && blade>0 && (panel==1 || panel==2)) iter = i+2*(blade-1)+(panel-1);
450  }else if(disk==2){
451  i=72;
452  if(panel==1){ if(module==1) nDM2P1M1+=numberOfDigisMod;
453  else if(module==2) nDM2P1M2+=numberOfDigisMod;
454  else if(module==3) nDM2P1M3+=numberOfDigisMod;
455  else if(module==4) nDM2P1M4+=numberOfDigisMod;}
456  else if(panel==2){ if(module==1) nDM2P2M1+=numberOfDigisMod;
457  else if(module==2) nDM2P2M2+=numberOfDigisMod;
458  else if(module==3) nDM2P2M3+=numberOfDigisMod; }
459  if(blade<13 && blade>0 && (panel==1 || panel==2)) iter = i+2*(blade-1)+(panel-1);
460  }
461  }else if(side==PixelEndcapName::pI){
462  if(disk==1){
463  i=96;
464  if(panel==1){ if(module==1) nDP1P1M1+=numberOfDigisMod;
465  else if(module==2) nDP1P1M2+=numberOfDigisMod;
466  else if(module==3) nDP1P1M3+=numberOfDigisMod;
467  else if(module==4) nDP1P1M4+=numberOfDigisMod;}
468  else if(panel==2){ if(module==1) nDP1P2M1+=numberOfDigisMod;
469  else if(module==2) nDP1P2M2+=numberOfDigisMod;
470  else if(module==3) nDP1P2M3+=numberOfDigisMod; }
471  if(blade<13 && blade>0 && (panel==1 || panel==2)) iter = i+2*(blade-1)+(panel-1);
472  }else if(disk==2){
473  i=120;
474  if(panel==1){ if(module==1) nDP2P1M1+=numberOfDigisMod;
475  else if(module==2) nDP2P1M2+=numberOfDigisMod;
476  else if(module==3) nDP2P1M3+=numberOfDigisMod;
477  else if(module==4) nDP2P1M4+=numberOfDigisMod;}
478  else if(panel==2){ if(module==1) nDP2P2M1+=numberOfDigisMod;
479  else if(module==2) nDP2P2M2+=numberOfDigisMod;
480  else if(module==3) nDP2P2M3+=numberOfDigisMod; }
481  if(blade<13 && blade>0 && (panel==1 || panel==2)) iter = i+2*(blade-1)+(panel-1);
482  }
483  }else if(side==PixelEndcapName::pO){
484  if(disk==1){
485  i=144;
486  if(panel==1){ if(module==1) nDP1P1M1+=numberOfDigisMod;
487  else if(module==2) nDP1P1M2+=numberOfDigisMod;
488  else if(module==3) nDP1P1M3+=numberOfDigisMod;
489  else if(module==4) nDP1P1M4+=numberOfDigisMod;}
490  else if(panel==2){ if(module==1) nDP1P2M1+=numberOfDigisMod;
491  else if(module==2) nDP1P2M2+=numberOfDigisMod;
492  else if(module==3) nDP1P2M3+=numberOfDigisMod; }
493  if(blade<13 && blade>0 && (panel==1 || panel==2)) iter = i+2*(blade-1)+(panel-1);
494  }else if(disk==2){
495  i=168;
496  if(panel==1){ if(module==1) nDP2P1M1+=numberOfDigisMod;
497  else if(module==2) nDP2P1M2+=numberOfDigisMod;
498  else if(module==3) nDP2P1M3+=numberOfDigisMod;
499  else if(module==4) nDP2P1M4+=numberOfDigisMod;}
500  else if(panel==2){ if(module==1) nDP2P2M1+=numberOfDigisMod;
501  else if(module==2) nDP2P2M2+=numberOfDigisMod;
502  else if(module==3) nDP2P2M3+=numberOfDigisMod; }
503  if(blade<13 && blade>0 && (panel==1 || panel==2)) iter = i+2*(blade-1)+(panel-1);
504  }
505  }
506  numberOfDigis[iter]=numberOfDigis[iter]+numberOfDigisMod;
507 
508  for(int i=nBPiXmodules; i!=nTOTmodules; i++){
509  if((*struct_iter).first == I_detId[i]){
510  nDigisPerFed[I_fedId[i]]=nDigisPerFed[I_fedId[i]]+numberOfDigisMod;
511  i=nTOTmodules-1;
512  }
513  }
514  } //endif Barrel/(Endcap && !isUpgrade)
515  else if (endcap && isUpgrade) {
516  nFPIXDigis = nFPIXDigis + numberOfDigisMod;
517  PixelEndcapName::HalfCylinder side = PixelEndcapName(DetId((*struct_iter).first),pTT,isUpgrade).halfCylinder();
518  int disk = PixelEndcapName(DetId((*struct_iter).first),pTT,isUpgrade).diskName();
519  int blade = PixelEndcapName(DetId((*struct_iter).first),pTT,isUpgrade).bladeName();
520  int panel = PixelEndcapName(DetId((*struct_iter).first),pTT,isUpgrade).pannelName();
521  int module = PixelEndcapName(DetId((*struct_iter).first),pTT,isUpgrade).plaquetteName();
522 
523  int iter=0; int i=0;
524  if(side==PixelEndcapName::mI){
525  if(disk==1){
526  i=0;
527  if(panel==1){ if(module==1) nDM1P1M1+=numberOfDigisMod; }
528  else if(panel==2){ if(module==1) nDM1P2M1+=numberOfDigisMod; }
529  if(blade<12 && blade>0 && (panel==1 || panel==2)) iter = i+2*(blade-1)+(panel-1);
530  }else if(disk==2){
531  i=22;
532  if(panel==1){ if(module==1) nDM2P1M1+=numberOfDigisMod; }
533  else if(panel==2){ if(module==1) nDM2P2M1+=numberOfDigisMod; }
534  if(blade<12 && blade>0 && (panel==1 || panel==2)) iter = i+2*(blade-1)+(panel-1);
535  }else if(disk==3){
536  i=44;
537  if(panel==1){ if(module==1) nDM3P1M1+=numberOfDigisMod; }
538  else if(panel==2){ if(module==1) nDM3P2M1+=numberOfDigisMod; }
539  if(blade<12 && blade>0 && (panel==1 || panel==2)) iter = i+2*(blade-1)+(panel-1);
540  }
541  }else if(side==PixelEndcapName::mO){
542  if(disk==1){
543  i=66;
544  if(panel==1){ if(module==1) nDM1P1M1+=numberOfDigisMod; }
545  else if(panel==2){ if(module==1) nDM1P2M1+=numberOfDigisMod; }
546  if(blade<18 && blade>0 && (panel==1 || panel==2)) iter = i+2*(blade-1)+(panel-1);
547  }else if(disk==2){
548  i=100;
549  if(panel==1){ if(module==1) nDM2P1M1+=numberOfDigisMod; }
550  else if(panel==2){ if(module==1) nDM2P2M1+=numberOfDigisMod; }
551  if(blade<18 && blade>0 && (panel==1 || panel==2)) iter = i+2*(blade-1)+(panel-1);
552  }else if (disk==3){
553  i=134;
554  if(panel==1){ if(module==1) nDM3P1M1+=numberOfDigisMod; }
555  else if(panel==2){ if(module==1) nDM3P2M1+=numberOfDigisMod; }
556  if(blade<18 && blade>0 && (panel==1 || panel==2)) iter = i+2*(blade-1)+(panel-1);
557  }
558  }else if(side==PixelEndcapName::pI){
559  if(disk==1){
560  i=168;
561  if(panel==1){ if(module==1) nDP1P1M1+=numberOfDigisMod; }
562  else if(panel==2){ if(module==1) nDP1P2M1+=numberOfDigisMod; }
563  if(blade<12 && blade>0 && (panel==1 || panel==2)) iter = i+2*(blade-1)+(panel-1);
564  }else if(disk==2){
565  i=190;
566  if(panel==1){ if(module==1) nDP2P1M1+=numberOfDigisMod; }
567  else if(panel==2){ if(module==1) nDP2P2M1+=numberOfDigisMod; }
568  if(blade<12 && blade>0 && (panel==1 || panel==2)) iter = i+2*(blade-1)+(panel-1);
569  }else if(disk==3){
570  i=212;
571  if(panel==1){ if(module==1) nDP3P1M1+=numberOfDigisMod; }
572  else if(panel==2){ if(module==1) nDP3P2M1+=numberOfDigisMod; }
573  if(blade<12 && blade>0 && (panel==1 || panel==2)) iter = i+2*(blade-1)+(panel-1);
574  }
575  }else if(side==PixelEndcapName::pO){
576  if(disk==1){
577  i=234;
578  if(panel==1){ if(module==1) nDP1P1M1+=numberOfDigisMod; }
579  else if(panel==2){ if(module==1) nDP1P2M1+=numberOfDigisMod; }
580  if(blade<18 && blade>0 && (panel==1 || panel==2)) iter = i+2*(blade-1)+(panel-1);
581  }else if(disk==2){
582  i=268;
583  if(panel==1){ if(module==1) nDP2P1M1+=numberOfDigisMod; }
584  else if(panel==2){ if(module==1) nDP2P2M1+=numberOfDigisMod; }
585  if(blade<18 && blade>0 && (panel==1 || panel==2)) iter = i+2*(blade-1)+(panel-1);
586  }else if(disk==3){
587  i=302;
588  if(panel==1){ if(module==1) nDP3P1M1+=numberOfDigisMod; }
589  else if(panel==2){ if(module==1) nDP3P2M1+=numberOfDigisMod; }
590  if(blade<18 && blade>0 && (panel==1 || panel==2)) iter = i+2*(blade-1)+(panel-1);
591  }
592  }
593  numberOfDigis[iter]=numberOfDigis[iter]+numberOfDigisMod;
594  for(int i=nBPiXmodules; i!=nTOTmodules; i++){
595  if((*struct_iter).first == I_detId[i]){
596  nDigisPerFed[I_fedId[i]]=nDigisPerFed[I_fedId[i]]+numberOfDigisMod;
597  i=nTOTmodules-1;
598  }
599  }
600  }//endif(Endcap && isUpgrade)
601  } // endif any digis in this module
602  } // endfor loop over all modules
603 
604 
605 
606  if (lumiSection%10==0 && ROCMapToReset) {
607  for (int i =0; i < 2; ++i) NloEffROCs[i] = NloEffROCs[i] - NzeroROCs[i];
608  if(noOccROCsBarrel) noOccROCsBarrel->setBinContent(lumiSection/10, NzeroROCs[0]);
609  if(loOccROCsBarrel) loOccROCsBarrel->setBinContent(lumiSection/10, NloEffROCs[0]);
610  if(noOccROCsEndcap) noOccROCsEndcap->setBinContent(lumiSection/10, NzeroROCs[1]);
611  if(loOccROCsEndcap) loOccROCsEndcap->setBinContent(lumiSection/10, NloEffROCs[1]);
612  ROCMapToReset=false; // in this way the ROC maps are reset for one event only (the first event in LS multiple of 10
613  }
614 
615  if (noOfDisks == 2) { // if (!isUpgrade)
616  if(meNDigisCHANEndcap_){ for(int j=0; j!=192; j++) if(numberOfDigis[j]>0) meNDigisCHANEndcap_->Fill((float)numberOfDigis[j]);}
617  if(meNDigisCHANEndcapDms_.at(0)){ for(int j=0; j!=72; j++) if((j<24||j>47)&&numberOfDigis[j]>0) meNDigisCHANEndcapDms_.at(0)->Fill((float)numberOfDigis[j]);}
618  if(meNDigisCHANEndcapDms_.at(1)){ for(int j=24; j!=96; j++) if((j<48||j>71)&&numberOfDigis[j]>0) meNDigisCHANEndcapDms_.at(1)->Fill((float)numberOfDigis[j]);}
619  if(meNDigisCHANEndcapDps_.at(0)){ for(int j=96; j!=168; j++) if((j<120||j>143)&&numberOfDigis[j]>0) meNDigisCHANEndcapDps_.at(0)->Fill((float)numberOfDigis[j]);}
620  if(meNDigisCHANEndcapDps_.at(1)){ for(int j=120; j!=192; j++) if((j<144||j>167)&&numberOfDigis[j]>0) meNDigisCHANEndcapDps_.at(1)->Fill((float)numberOfDigis[j]);}
621  }
622  else if (noOfDisks == 3) { // else if (isUpgrade)
623  if(meNDigisCHANEndcap_){ for(int j=0; j!=336; j++) if(numberOfDigis[j]>0) meNDigisCHANEndcap_->Fill((float)numberOfDigis[j]);}
624  if(meNDigisCHANEndcapDms_.at(0)){ for(int j=0; j!=100; j++) if((j<22||j>65)&&numberOfDigis[j]>0) meNDigisCHANEndcapDms_.at(0)->Fill((float)numberOfDigis[j]);}
625  if(meNDigisCHANEndcapDms_.at(1)){ for(int j=22; j!=134; j++) if((j<44||j>99)&&numberOfDigis[j]>0) meNDigisCHANEndcapDms_.at(1)->Fill((float)numberOfDigis[j]);}
626  if(meNDigisCHANEndcapDms_.at(2)){ for(int j=44; j!=168; j++) if((j<66||j>133)&&numberOfDigis[j]>0) meNDigisCHANEndcapDms_.at(2)->Fill((float)numberOfDigis[j]);}
627  if(meNDigisCHANEndcapDps_.at(0)){ for(int j=168; j!=268; j++) if((j<190||j>233)&&numberOfDigis[j]>0) meNDigisCHANEndcapDps_.at(0)->Fill((float)numberOfDigis[j]);}
628  if(meNDigisCHANEndcapDps_.at(1)){ for(int j=190; j!=302; j++) if((j<212||j>267)&&numberOfDigis[j]>0) meNDigisCHANEndcapDps_.at(1)->Fill((float)numberOfDigis[j]);}
629  if(meNDigisCHANEndcapDps_.at(2)){ for(int j=212; j!=336; j++) if((j<234||j>301)&&numberOfDigis[j]>0) meNDigisCHANEndcapDps_.at(2)->Fill((float)numberOfDigis[j]);}
630  }
631 
632  if(meNDigisCHANBarrelCh1_){ for(int i=0; i!=32; i++) if(nDigisPerChan[i*36+0]>0) meNDigisCHANBarrelCh1_->Fill((float)nDigisPerChan[i*36+0]);}
633  if(meNDigisCHANBarrelCh2_){ for(int i=0; i!=32; i++) if(nDigisPerChan[i*36+1]>0) meNDigisCHANBarrelCh2_->Fill((float)nDigisPerChan[i*36+1]);}
634  if(meNDigisCHANBarrelCh3_){ for(int i=0; i!=32; i++) if(nDigisPerChan[i*36+2]>0) meNDigisCHANBarrelCh3_->Fill((float)nDigisPerChan[i*36+2]);}
635  if(meNDigisCHANBarrelCh4_){ for(int i=0; i!=32; i++) if(nDigisPerChan[i*36+3]>0) meNDigisCHANBarrelCh4_->Fill((float)nDigisPerChan[i*36+3]);}
636  if(meNDigisCHANBarrelCh5_){ for(int i=0; i!=32; i++) if(nDigisPerChan[i*36+4]>0) meNDigisCHANBarrelCh5_->Fill((float)nDigisPerChan[i*36+4]);}
637  if(meNDigisCHANBarrelCh6_){ for(int i=0; i!=32; i++) if(nDigisPerChan[i*36+5]>0) meNDigisCHANBarrelCh6_->Fill((float)nDigisPerChan[i*36+5]);}
638  if(meNDigisCHANBarrelCh7_){ for(int i=0; i!=32; i++) if(nDigisPerChan[i*36+6]>0) meNDigisCHANBarrelCh7_->Fill((float)nDigisPerChan[i*36+6]);}
639  if(meNDigisCHANBarrelCh8_){ for(int i=0; i!=32; i++) if(nDigisPerChan[i*36+7]>0) meNDigisCHANBarrelCh8_->Fill((float)nDigisPerChan[i*36+7]);}
640  if(meNDigisCHANBarrelCh9_){ for(int i=0; i!=32; i++) if(nDigisPerChan[i*36+8]>0) meNDigisCHANBarrelCh9_->Fill((float)nDigisPerChan[i*36+8]);}
641  if(meNDigisCHANBarrelCh10_){ for(int i=0; i!=32; i++) if(nDigisPerChan[i*36+9]>0) meNDigisCHANBarrelCh10_->Fill((float)nDigisPerChan[i*36+9]);}
642  if(meNDigisCHANBarrelCh11_){ for(int i=0; i!=32; i++) if(nDigisPerChan[i*36+10]>0) meNDigisCHANBarrelCh11_->Fill((float)nDigisPerChan[i*36+10]);}
643  if(meNDigisCHANBarrelCh12_){ for(int i=0; i!=32; i++) if(nDigisPerChan[i*36+11]>0) meNDigisCHANBarrelCh12_->Fill((float)nDigisPerChan[i*36+11]);}
644  if(meNDigisCHANBarrelCh13_){ for(int i=0; i!=32; i++) if(nDigisPerChan[i*36+12]>0) meNDigisCHANBarrelCh13_->Fill((float)nDigisPerChan[i*36+12]);}
645  if(meNDigisCHANBarrelCh14_){ for(int i=0; i!=32; i++) if(nDigisPerChan[i*36+13]>0) meNDigisCHANBarrelCh14_->Fill((float)nDigisPerChan[i*36+13]);}
646  if(meNDigisCHANBarrelCh15_){ for(int i=0; i!=32; i++) if(nDigisPerChan[i*36+14]>0) meNDigisCHANBarrelCh15_->Fill((float)nDigisPerChan[i*36+14]);}
647  if(meNDigisCHANBarrelCh16_){ for(int i=0; i!=32; i++) if(nDigisPerChan[i*36+15]>0) meNDigisCHANBarrelCh16_->Fill((float)nDigisPerChan[i*36+15]);}
648  if(meNDigisCHANBarrelCh17_){ for(int i=0; i!=32; i++) if(nDigisPerChan[i*36+16]>0) meNDigisCHANBarrelCh17_->Fill((float)nDigisPerChan[i*36+16]);}
649  if(meNDigisCHANBarrelCh18_){ for(int i=0; i!=32; i++) if(nDigisPerChan[i*36+17]>0) meNDigisCHANBarrelCh18_->Fill((float)nDigisPerChan[i*36+17]);}
650  if(meNDigisCHANBarrelCh19_){ for(int i=0; i!=32; i++) if(nDigisPerChan[i*36+18]>0) meNDigisCHANBarrelCh19_->Fill((float)nDigisPerChan[i*36+18]);}
651  if(meNDigisCHANBarrelCh20_){ for(int i=0; i!=32; i++) if(nDigisPerChan[i*36+19]>0) meNDigisCHANBarrelCh20_->Fill((float)nDigisPerChan[i*36+19]);}
652  if(meNDigisCHANBarrelCh21_){ for(int i=0; i!=32; i++) if(nDigisPerChan[i*36+20]>0) meNDigisCHANBarrelCh21_->Fill((float)nDigisPerChan[i*36+20]);}
653  if(meNDigisCHANBarrelCh22_){ for(int i=0; i!=32; i++) if(nDigisPerChan[i*36+21]>0) meNDigisCHANBarrelCh22_->Fill((float)nDigisPerChan[i*36+21]);}
654  if(meNDigisCHANBarrelCh23_){ for(int i=0; i!=32; i++) if(nDigisPerChan[i*36+22]>0) meNDigisCHANBarrelCh23_->Fill((float)nDigisPerChan[i*36+22]);}
655  if(meNDigisCHANBarrelCh24_){ for(int i=0; i!=32; i++) if(nDigisPerChan[i*36+23]>0) meNDigisCHANBarrelCh24_->Fill((float)nDigisPerChan[i*36+23]);}
656  if(meNDigisCHANBarrelCh25_){ for(int i=0; i!=32; i++) if(nDigisPerChan[i*36+24]>0) meNDigisCHANBarrelCh25_->Fill((float)nDigisPerChan[i*36+24]);}
657  if(meNDigisCHANBarrelCh26_){ for(int i=0; i!=32; i++) if(nDigisPerChan[i*36+25]>0) meNDigisCHANBarrelCh26_->Fill((float)nDigisPerChan[i*36+25]);}
658  if(meNDigisCHANBarrelCh27_){ for(int i=0; i!=32; i++) if(nDigisPerChan[i*36+26]>0) meNDigisCHANBarrelCh27_->Fill((float)nDigisPerChan[i*36+26]);}
659  if(meNDigisCHANBarrelCh28_){ for(int i=0; i!=32; i++) if(nDigisPerChan[i*36+27]>0) meNDigisCHANBarrelCh28_->Fill((float)nDigisPerChan[i*36+27]);}
660  if(meNDigisCHANBarrelCh29_){ for(int i=0; i!=32; i++) if(nDigisPerChan[i*36+28]>0) meNDigisCHANBarrelCh29_->Fill((float)nDigisPerChan[i*36+28]);}
661  if(meNDigisCHANBarrelCh30_){ for(int i=0; i!=32; i++) if(nDigisPerChan[i*36+29]>0) meNDigisCHANBarrelCh30_->Fill((float)nDigisPerChan[i*36+29]);}
662  if(meNDigisCHANBarrelCh31_){ for(int i=0; i!=32; i++) if(nDigisPerChan[i*36+30]>0) meNDigisCHANBarrelCh31_->Fill((float)nDigisPerChan[i*36+30]);}
663  if(meNDigisCHANBarrelCh32_){ for(int i=0; i!=32; i++) if(nDigisPerChan[i*36+31]>0) meNDigisCHANBarrelCh32_->Fill((float)nDigisPerChan[i*36+31]);}
664  if(meNDigisCHANBarrelCh33_){ for(int i=0; i!=32; i++) if(nDigisPerChan[i*36+32]>0) meNDigisCHANBarrelCh33_->Fill((float)nDigisPerChan[i*36+32]);}
665  if(meNDigisCHANBarrelCh34_){ for(int i=0; i!=32; i++) if(nDigisPerChan[i*36+33]>0) meNDigisCHANBarrelCh34_->Fill((float)nDigisPerChan[i*36+33]);}
666  if(meNDigisCHANBarrelCh35_){ for(int i=0; i!=32; i++) if(nDigisPerChan[i*36+34]>0) meNDigisCHANBarrelCh35_->Fill((float)nDigisPerChan[i*36+34]);}
667  if(meNDigisCHANBarrelCh36_){ for(int i=0; i!=32; i++) if(nDigisPerChan[i*36+35]>0) meNDigisCHANBarrelCh36_->Fill((float)nDigisPerChan[i*36+35]);}
668 
669  // Rate of events with >N digis:
670  if(nEventDigis>bigEventSize){
671  if(bigEventRate) bigEventRate->Fill(lumiSection,1./23.);
672  }
673 
674  // Rate of pixel events and total number of pixel events per BX:
675  if(nActiveModules>=4){
676  if(pixEvtsPerBX) pixEvtsPerBX->Fill(float(bx));
677  if(pixEventRate) pixEventRate->Fill(lumiSection, 1./23.);
678  }
679 
680  if(slowDown) usleep(10000);
681 
682 }
int plaquetteName() const
plaquetteId (in pannel)
MonitorElement * meNDigisCHANBarrelCh19_
MonitorElement * meNDigisCHANBarrelCh35_
MonitorElement * meNDigisCHANBarrelCh2_
MonitorElement * meNDigisCHANBarrelCh30_
void setBinContent(int binx, double content)
set content of bin (1-D)
MonitorElement * meNDigisCHANBarrelCh31_
MonitorElement * meNDigisCHANBarrelCh8_
MonitorElement * meNDigisCHANBarrelCh36_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:519
MonitorElement * loOccROCsEndcap
MonitorElement * meNDigisCHANBarrelCh17_
MonitorElement * meNDigisCHANBarrelCh25_
MonitorElement * meNDigisCHANBarrelCh6_
MonitorElement * meNDigisCOMBBarrel_
int bunchCrossing() const
Definition: EventBase.h:66
edm::LuminosityBlockNumber_t luminosityBlock() const
Definition: EventBase.h:63
MonitorElement * meNDigisCOMBEndcap_
MonitorElement * meNDigisCHANBarrelCh14_
MonitorElement * meNDigisCHANBarrelCh12_
MonitorElement * meNDigisCHANBarrelCh29_
static std::string const input
Definition: EdmProvDump.cc:44
void Fill(long long x)
edm::EDGetTokenT< edm::DetSetVector< PixelDigi > > srcToken_
MonitorElement * meNDigisCHANBarrelCh27_
int bladeName() const
blade id
MonitorElement * meNDigisCHANBarrelCh3_
MonitorElement * meNDigisCHANBarrelCh9_
MonitorElement * meNDigisCHANBarrelCh4_
MonitorElement * meNDigisCHANBarrelCh34_
MonitorElement * meNDigisCHANBarrelCh26_
MonitorElement * noOccROCsBarrel
MonitorElement * meNDigisCHANEndcap_
MonitorElement * meNDigisCHANBarrelCh28_
MonitorElement * noOccROCsEndcap
MonitorElement * meNDigisCHANBarrel_
std::vector< MonitorElement * > meNDigisCHANEndcapDms_
MonitorElement * meNDigisCHANBarrelCh33_
MonitorElement * pixEventRate
MonitorElement * meNDigisCHANBarrelCh21_
unsigned int I_detId[1856]
bool isValid() const
Definition: HandleBase.h:74
int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:38
MonitorElement * meNDigisCHANBarrelCh32_
MonitorElement * meNDigisCHANBarrelCh10_
MonitorElement * loOccROCsBarrel
MonitorElement * meNDigisCHANBarrelCh1_
Definition: DetId.h:18
MonitorElement * meNDigisCHANBarrelCh5_
MonitorElement * meNDigisCHANBarrelCh7_
MonitorElement * meNDigisCHANBarrelCh15_
MonitorElement * meNDigisCHANBarrelCh13_
const T & get() const
Definition: EventSetup.h:59
MonitorElement * meNDigisCHANBarrelCh23_
int layerName() const
layer id
Shell shell() const
MonitorElement * meNDigisCHANBarrelCh18_
MonitorElement * bigEventRate
MonitorElement * meNDigisCHANBarrelCh20_
int pannelName() const
pannel id
MonitorElement * meNDigisCHANBarrelCh22_
int diskName() const
disk id
Definition: shell.py:1
std::vector< MonitorElement * > meNDigisCHANEndcapDps_
MonitorElement * pixEvtsPerBX
std::vector< MonitorElement * > meNDigisCHANBarrelLs_
std::map< uint32_t, SiPixelDigiModule * > thePixelStructure
HalfCylinder halfCylinder() const
MonitorElement * meNDigisCHANBarrelCh16_
MonitorElement * meNDigisCHANBarrelCh11_
T const * product() const
Definition: ESHandle.h:86
Definition: vlib.h:208
virtual void CountZeroROCsInSubstructure(bool, bool &, SiPixelDigiModule *)
MonitorElement * meNDigisCHANBarrelCh24_
void SiPixelDigiSource::beginLuminosityBlock ( edm::LuminosityBlock const &  ,
edm::EventSetup const &   
)
override

Definition at line 103 of file SiPixelDigiSource.cc.

References averageDigiOccupancy, DoZeroRocsBMI1, DoZeroRocsBMI2, DoZeroRocsBMI3, DoZeroRocsBMO1, DoZeroRocsBMO2, DoZeroRocsBMO3, DoZeroRocsBPI1, DoZeroRocsBPI2, DoZeroRocsBPI3, DoZeroRocsBPO1, DoZeroRocsBPO2, DoZeroRocsBPO3, DoZeroRocsFMI1, DoZeroRocsFMI2, DoZeroRocsFMO1, DoZeroRocsFMO2, DoZeroRocsFPI1, DoZeroRocsFPI2, DoZeroRocsFPO1, DoZeroRocsFPO2, mps_fire::i, edm::LuminosityBlockBase::id(), edm::LuminosityBlockID::luminosityBlock(), modOn, nBPIXDigis, nDigisPerFed, nFPIXDigis, NloEffROCs, NzeroROCs, and ROCMapToReset.

104 {
105 
106 
107  int thisls = lb.id().luminosityBlock();
108 
109  if(modOn && thisls % 10 == 0 && averageDigiOccupancy){
110  nBPIXDigis = 0;
111  nFPIXDigis = 0;
112  for(int i=0; i!=40; i++) nDigisPerFed[i]=0;
113  }
114  if(!modOn && averageDigiOccupancy){
115  nBPIXDigis = 0;
116  nFPIXDigis = 0;
117  for(int i=0; i!=40; i++) nDigisPerFed[i]=0;
118  }
119 
120  if (modOn && thisls % 10 == 0) {
121 
122  ROCMapToReset=true; //the ROC map is reset each 10 lumisections
123 
124  for (int i=0; i<2;i++) NzeroROCs[i]=0;
125  for (int i=0; i<2;i++) NloEffROCs[i]=0; //resetting also Zero and low eff. ROC counters
126 
127  NzeroROCs[1]=-672;
128  NloEffROCs[1]=-672;//this magic number derives by the way the endcap occupancy is filled, there are always 672 empty bins by construction
129 
130  //these bools are needed to count zero occupancy plots in the substructure only once each 10 LS
131  DoZeroRocsBMO1=true;
132  DoZeroRocsBMO2=true;
133  DoZeroRocsBMO3=true;
134 
135  DoZeroRocsBMI1=true;
136  DoZeroRocsBMI2=true;
137  DoZeroRocsBMI3=true;
138 
139  DoZeroRocsBPO1=true;
140  DoZeroRocsBPO2=true;
141  DoZeroRocsBPO3=true;
142 
143  DoZeroRocsBPI1=true;
144  DoZeroRocsBPI2=true;
145  DoZeroRocsBPI3=true;
146 
147  DoZeroRocsFPO1=true;
148  DoZeroRocsFPO2=true;
149 
150  DoZeroRocsFMO1=true;
151  DoZeroRocsFMO2=true;
152 
153  DoZeroRocsFPI1=true;
154  DoZeroRocsFPI2=true;
155 
156  DoZeroRocsFMI1=true;
157  DoZeroRocsFMI2=true;
158  }
159 
160 }
MonitorElement * averageDigiOccupancy
void SiPixelDigiSource::bookHistograms ( DQMStore::IBooker ,
edm::Run const &  ,
edm::EventSetup const &   
)
overridevirtual

Implements DQMEDAnalyzer.

Definition at line 304 of file SiPixelDigiSource.cc.

References bookMEs().

304  {
305  bookMEs(iBooker, iSetup);
306 }
virtual void bookMEs(DQMStore::IBooker &, const edm::EventSetup &iSetup)
void SiPixelDigiSource::bookMEs ( DQMStore::IBooker iBooker,
const edm::EventSetup iSetup 
)
virtual

Create folder tree and book histograms

Definition at line 785 of file SiPixelDigiSource.cc.

References averageDigiOccupancy, avgBarrelFedOccvsLumi, avgEndcapFedOccvsLumi, avgfedDigiOccvsLumi, bigEventRate, bigEventSize, bladeOn, DQMStore::IBooker::book1D(), DQMStore::IBooker::book2D(), DQMStore::IBooker::bookProfile(), DQMStore::IBooker::cd(), conf_, diskOn, Exception, hiRes, mps_fire::i, isPIB, isUpgrade, ladOn, layOn, LogDebug, loOccROCsBarrel, loOccROCsEndcap, meNDigisCHANBarrel_, meNDigisCHANBarrelCh10_, meNDigisCHANBarrelCh11_, meNDigisCHANBarrelCh12_, meNDigisCHANBarrelCh13_, meNDigisCHANBarrelCh14_, meNDigisCHANBarrelCh15_, meNDigisCHANBarrelCh16_, meNDigisCHANBarrelCh17_, meNDigisCHANBarrelCh18_, meNDigisCHANBarrelCh19_, meNDigisCHANBarrelCh1_, meNDigisCHANBarrelCh20_, meNDigisCHANBarrelCh21_, meNDigisCHANBarrelCh22_, meNDigisCHANBarrelCh23_, meNDigisCHANBarrelCh24_, meNDigisCHANBarrelCh25_, meNDigisCHANBarrelCh26_, meNDigisCHANBarrelCh27_, meNDigisCHANBarrelCh28_, meNDigisCHANBarrelCh29_, meNDigisCHANBarrelCh2_, meNDigisCHANBarrelCh30_, meNDigisCHANBarrelCh31_, meNDigisCHANBarrelCh32_, meNDigisCHANBarrelCh33_, meNDigisCHANBarrelCh34_, meNDigisCHANBarrelCh35_, meNDigisCHANBarrelCh36_, meNDigisCHANBarrelCh3_, meNDigisCHANBarrelCh4_, meNDigisCHANBarrelCh5_, meNDigisCHANBarrelCh6_, meNDigisCHANBarrelCh7_, meNDigisCHANBarrelCh8_, meNDigisCHANBarrelCh9_, meNDigisCHANBarrelLs_, meNDigisCHANEndcap_, meNDigisCHANEndcapDms_, meNDigisCHANEndcapDps_, meNDigisCOMBBarrel_, meNDigisCOMBEndcap_, modOn, noOccROCsBarrel, noOccROCsEndcap, noOfDisks, noOfLayers, phiOn, pixEventRate, pixEvtsPerBX, reducedSet, ringOn, MonitorElement::setAxisTitle(), DQMStore::IBooker::setCurrentFolder(), MonitorElement::setLumiFlag(), SiPixelFolderOrganizer::setModuleFolder(), AlCaHLTBitMon_QueryRunRegistry::string, thePixelStructure, fftjetcommon_cfi::title, topFolderName_, twoDimModOn, twoDimOn, and twoDimOnlyLayDisk.

Referenced by bookHistograms().

785  {
786 
787  // Get DQM interface
789  char title[80]; sprintf(title, "Rate of events with >%i digis;LumiSection;Rate [Hz]",bigEventSize);
790  bigEventRate = iBooker.book1D("bigEventRate",title,5000,0.,5000.);
791  char title1[80]; sprintf(title1, "Pixel events vs. BX;BX;# events");
792  pixEvtsPerBX = iBooker.book1D("pixEvtsPerBX",title1,3565,0.,3565.);
793  char title2[80]; sprintf(title2, "Rate of Pixel events;LumiSection;Rate [Hz]");
794  pixEventRate = iBooker.book1D("pixEventRate",title2,5000,0.,5000.);
795  char title3[80]; sprintf(title3, "Number of Zero-Occupancy Barrel ROCs;LumiSection;N_{ZERO-OCCUPANCY} Barrel ROCs");
796  noOccROCsBarrel = iBooker.book1D("noOccROCsBarrel",title3,500,0.,5000.);
797  char title4[80]; sprintf(title4, "Number of Low-Efficiency Barrel ROCs;LumiSection;N_{LO EFF} Barrel ROCs");
798  loOccROCsBarrel = iBooker.book1D("loOccROCsBarrel",title4,500,0.,5000.);
799  char title5[80]; sprintf(title5, "Number of Zero-Occupancy Endcap ROCs;LumiSection;N_{ZERO-OCCUPANCY} Endcap ROCs");
800  noOccROCsEndcap = iBooker.book1D("noOccROCsEndcap",title5,500,0.,5000.);
801  char title6[80]; sprintf(title6, "Number of Low-Efficiency Endcap ROCs;LumiSection;N_{LO EFF} Endcap ROCs");
802  loOccROCsEndcap = iBooker.book1D("loOccROCsEndcap",title6,500,0.,5000.);
803  char title7[80]; sprintf(title7, "Average digi occupancy per FED;FED;NDigis/<NDigis>");
804  char title8[80]; sprintf(title8, "FED Digi Occupancy (NDigis/<NDigis>) vs LumiSections;Lumi Section;FED");
805  if (modOn){
806  averageDigiOccupancy = iBooker.bookProfile("averageDigiOccupancy",title7,40,-0.5,39.5,0.,3.);
808  avgfedDigiOccvsLumi = iBooker.book2D ("avgfedDigiOccvsLumi", title8, 640,0., 3200., 40, -0.5, 39.5);
809  avgBarrelFedOccvsLumi = iBooker.book1D ("avgBarrelFedOccvsLumi",
810  "Average Barrel FED digi occupancy (<NDigis>) vs LumiSections;Lumi Section;Average digi occupancy per FED", 320,0., 3200.);
811  avgEndcapFedOccvsLumi = iBooker.book1D ("avgEndcapFedOccvsLumi",
812  "Average Endcap FED digi occupancy (<NDigis>) vs LumiSections;Lumi Section;Average digi occupancy per FED", 320,0., 3200.);
813  }
814  if (!modOn){
815  averageDigiOccupancy = iBooker.book1D("averageDigiOccupancy",title7,40,-0.5,39.5); //Book as TH1 for offline to ensure thread-safe behaviour
816  avgfedDigiOccvsLumi = iBooker.book2D ("avgfedDigiOccvsLumi", title8, 3200, 0., 3200., 40, -0.5, 39.5);
817  }
818  std::map<uint32_t,SiPixelDigiModule*>::iterator struct_iter;
819 
820  SiPixelFolderOrganizer theSiPixelFolder(false);
821 
822  for(struct_iter = thePixelStructure.begin(); struct_iter != thePixelStructure.end(); struct_iter++){
824  if(modOn){
825  if(theSiPixelFolder.setModuleFolder(iBooker,(*struct_iter).first,0,isUpgrade)){
826  (*struct_iter).second->book( conf_,iSetup,iBooker,0,twoDimOn,hiRes, reducedSet, twoDimModOn, isUpgrade);
827  } else {
828 
829  if(!isPIB) throw cms::Exception("LogicError")
830  << "[SiPixelDigiSource::bookMEs] Creation of DQM folder failed";
831  }
832  }
833  if(ladOn){
834  if(theSiPixelFolder.setModuleFolder(iBooker,(*struct_iter).first,1,isUpgrade)){
835  (*struct_iter).second->book( conf_,iSetup,iBooker,1,twoDimOn,hiRes, reducedSet, isUpgrade);
836  } else {
837  LogDebug ("PixelDQM") << "PROBLEM WITH LADDER-FOLDER\n";
838  }
839 
840  }
841  if(layOn || twoDimOnlyLayDisk){
842  if(theSiPixelFolder.setModuleFolder(iBooker,(*struct_iter).first,2,isUpgrade)){
843  (*struct_iter).second->book( conf_,iSetup,iBooker,2,twoDimOn,hiRes, reducedSet, twoDimOnlyLayDisk, isUpgrade);
844  } else {
845  LogDebug ("PixelDQM") << "PROBLEM WITH LAYER-FOLDER\n";
846  }
847  }
848 
849  if(phiOn){
850  if(theSiPixelFolder.setModuleFolder(iBooker,(*struct_iter).first,3,isUpgrade)){
851  (*struct_iter).second->book( conf_,iSetup,iBooker,3,twoDimOn,hiRes, reducedSet, isUpgrade);
852  } else {
853  LogDebug ("PixelDQM") << "PROBLEM WITH PHI-FOLDER\n";
854  }
855  }
856  if(bladeOn){
857  if(theSiPixelFolder.setModuleFolder(iBooker,(*struct_iter).first,4,isUpgrade)){
858  (*struct_iter).second->book( conf_,iSetup,iBooker,4,twoDimOn,hiRes, reducedSet, isUpgrade);
859  } else {
860  LogDebug ("PixelDQM") << "PROBLEM WITH BLADE-FOLDER\n";
861  }
862  }
863  if(diskOn || twoDimOnlyLayDisk){
864  if(theSiPixelFolder.setModuleFolder(iBooker,(*struct_iter).first,5,isUpgrade)){
865  (*struct_iter).second->book( conf_,iSetup,iBooker,5,twoDimOn,hiRes, reducedSet, twoDimOnlyLayDisk, isUpgrade);
866  } else {
867  LogDebug ("PixelDQM") << "PROBLEM WITH DISK-FOLDER\n";
868  }
869  }
870  if(ringOn){
871  if(theSiPixelFolder.setModuleFolder(iBooker,(*struct_iter).first,6,isUpgrade)){
872  (*struct_iter).second->book( conf_,iSetup,iBooker,6,twoDimOn,hiRes, reducedSet, isUpgrade);
873  } else {
874  LogDebug ("PixelDQM") << "PROBLEM WITH RING-FOLDER\n";
875  }
876  }
877  }
878  iBooker.cd(topFolderName_+"/Barrel");
879  meNDigisCOMBBarrel_ = iBooker.book1D("ALLMODS_ndigisCOMB_Barrel","Number of Digis",200,0.,400.);
880  meNDigisCOMBBarrel_->setAxisTitle("Number of digis per module per event",1);
881  meNDigisCHANBarrel_ = iBooker.book1D("ALLMODS_ndigisCHAN_Barrel","Number of Digis",100,0.,1000.);
882  meNDigisCHANBarrel_->setAxisTitle("Number of digis per FED channel per event",1);
883  std::stringstream ss1, ss2;
884  for (int i = 1; i <= noOfLayers; i++)
885  {
886  ss1.str(std::string()); ss1 << "ALLMODS_ndigisCHAN_BarrelL" << i;
887  ss2.str(std::string()); ss2 << "Number of Digis L" << i;
888  meNDigisCHANBarrelLs_.push_back(iBooker.book1D(ss1.str(),ss2.str(),100,0.,1000.));
889  meNDigisCHANBarrelLs_.at(i-1)->setAxisTitle("Number of digis per FED channel per event",1);
890  }
891  meNDigisCHANBarrelCh1_ = iBooker.book1D("ALLMODS_ndigisCHAN_BarrelCh1","Number of Digis Ch1",100,0.,1000.);
892  meNDigisCHANBarrelCh1_->setAxisTitle("Number of digis per FED channel per event",1);
893  meNDigisCHANBarrelCh2_ = iBooker.book1D("ALLMODS_ndigisCHAN_BarrelCh2","Number of Digis Ch2",100,0.,1000.);
894  meNDigisCHANBarrelCh2_->setAxisTitle("Number of digis per FED channel per event",1);
895  meNDigisCHANBarrelCh3_ = iBooker.book1D("ALLMODS_ndigisCHAN_BarrelCh3","Number of Digis Ch3",100,0.,1000.);
896  meNDigisCHANBarrelCh3_->setAxisTitle("Number of digis per FED channel per event",1);
897  meNDigisCHANBarrelCh4_ = iBooker.book1D("ALLMODS_ndigisCHAN_BarrelCh4","Number of Digis Ch4",100,0.,1000.);
898  meNDigisCHANBarrelCh4_->setAxisTitle("Number of digis per FED channel per event",1);
899  meNDigisCHANBarrelCh5_ = iBooker.book1D("ALLMODS_ndigisCHAN_BarrelCh5","Number of Digis Ch5",100,0.,1000.);
900  meNDigisCHANBarrelCh5_->setAxisTitle("Number of digis per FED channel per event",1);
901  meNDigisCHANBarrelCh6_ = iBooker.book1D("ALLMODS_ndigisCHAN_BarrelCh6","Number of Digis Ch6",100,0.,1000.);
902  meNDigisCHANBarrelCh6_->setAxisTitle("Number of digis per FED channel per event",1);
903  meNDigisCHANBarrelCh7_ = iBooker.book1D("ALLMODS_ndigisCHAN_BarrelCh7","Number of Digis Ch7",100,0.,1000.);
904  meNDigisCHANBarrelCh7_->setAxisTitle("Number of digis per FED channel per event",1);
905  meNDigisCHANBarrelCh8_ = iBooker.book1D("ALLMODS_ndigisCHAN_BarrelCh8","Number of Digis Ch8",100,0.,1000.);
906  meNDigisCHANBarrelCh8_->setAxisTitle("Number of digis per FED channel per event",1);
907  meNDigisCHANBarrelCh9_ = iBooker.book1D("ALLMODS_ndigisCHAN_BarrelCh9","Number of Digis Ch9",100,0.,1000.);
908  meNDigisCHANBarrelCh9_->setAxisTitle("Number of digis per FED channel per event",1);
909  meNDigisCHANBarrelCh10_ = iBooker.book1D("ALLMODS_ndigisCHAN_BarrelCh10","Number of Digis Ch10",100,0.,1000.);
910  meNDigisCHANBarrelCh10_->setAxisTitle("Number of digis per FED channel per event",1);
911  meNDigisCHANBarrelCh11_ = iBooker.book1D("ALLMODS_ndigisCHAN_BarrelCh11","Number of Digis Ch11",100,0.,1000.);
912  meNDigisCHANBarrelCh11_->setAxisTitle("Number of digis per FED channel per event",1);
913  meNDigisCHANBarrelCh12_ = iBooker.book1D("ALLMODS_ndigisCHAN_BarrelCh12","Number of Digis Ch12",100,0.,1000.);
914  meNDigisCHANBarrelCh12_->setAxisTitle("Number of digis per FED channel per event",1);
915  meNDigisCHANBarrelCh13_ = iBooker.book1D("ALLMODS_ndigisCHAN_BarrelCh13","Number of Digis Ch13",100,0.,1000.);
916  meNDigisCHANBarrelCh13_->setAxisTitle("Number of digis per FED channel per event",1);
917  meNDigisCHANBarrelCh14_ = iBooker.book1D("ALLMODS_ndigisCHAN_BarrelCh14","Number of Digis Ch14",100,0.,1000.);
918  meNDigisCHANBarrelCh14_->setAxisTitle("Number of digis per FED channel per event",1);
919  meNDigisCHANBarrelCh15_ = iBooker.book1D("ALLMODS_ndigisCHAN_BarrelCh15","Number of Digis Ch15",100,0.,1000.);
920  meNDigisCHANBarrelCh15_->setAxisTitle("Number of digis per FED channel per event",1);
921  meNDigisCHANBarrelCh16_ = iBooker.book1D("ALLMODS_ndigisCHAN_BarrelCh16","Number of Digis Ch16",100,0.,1000.);
922  meNDigisCHANBarrelCh16_->setAxisTitle("Number of digis per FED channel per event",1);
923  meNDigisCHANBarrelCh17_ = iBooker.book1D("ALLMODS_ndigisCHAN_BarrelCh17","Number of Digis Ch17",100,0.,1000.);
924  meNDigisCHANBarrelCh17_->setAxisTitle("Number of digis per FED channel per event",1);
925  meNDigisCHANBarrelCh18_ = iBooker.book1D("ALLMODS_ndigisCHAN_BarrelCh18","Number of Digis Ch18",100,0.,1000.);
926  meNDigisCHANBarrelCh18_->setAxisTitle("Number of digis per FED channel per event",1);
927  meNDigisCHANBarrelCh19_ = iBooker.book1D("ALLMODS_ndigisCHAN_BarrelCh19","Number of Digis Ch19",100,0.,1000.);
928  meNDigisCHANBarrelCh19_->setAxisTitle("Number of digis per FED channel per event",1);
929  meNDigisCHANBarrelCh20_ = iBooker.book1D("ALLMODS_ndigisCHAN_BarrelCh20","Number of Digis Ch20",100,0.,1000.);
930  meNDigisCHANBarrelCh20_->setAxisTitle("Number of digis per FED channel per event",1);
931  meNDigisCHANBarrelCh21_ = iBooker.book1D("ALLMODS_ndigisCHAN_BarrelCh21","Number of Digis Ch21",100,0.,1000.);
932  meNDigisCHANBarrelCh21_->setAxisTitle("Number of digis per FED channel per event",1);
933  meNDigisCHANBarrelCh22_ = iBooker.book1D("ALLMODS_ndigisCHAN_BarrelCh22","Number of Digis Ch22",100,0.,1000.);
934  meNDigisCHANBarrelCh22_->setAxisTitle("Number of digis per FED channel per event",1);
935  meNDigisCHANBarrelCh23_ = iBooker.book1D("ALLMODS_ndigisCHAN_BarrelCh23","Number of Digis Ch23",100,0.,1000.);
936  meNDigisCHANBarrelCh23_->setAxisTitle("Number of digis per FED channel per event",1);
937  meNDigisCHANBarrelCh24_ = iBooker.book1D("ALLMODS_ndigisCHAN_BarrelCh24","Number of Digis Ch24",100,0.,1000.);
938  meNDigisCHANBarrelCh24_->setAxisTitle("Number of digis per FED channel per event",1);
939  meNDigisCHANBarrelCh25_ = iBooker.book1D("ALLMODS_ndigisCHAN_BarrelCh25","Number of Digis Ch25",100,0.,1000.);
940  meNDigisCHANBarrelCh25_->setAxisTitle("Number of digis per FED channel per event",1);
941  meNDigisCHANBarrelCh26_ = iBooker.book1D("ALLMODS_ndigisCHAN_BarrelCh26","Number of Digis Ch26",100,0.,1000.);
942  meNDigisCHANBarrelCh26_->setAxisTitle("Number of digis per FED channel per event",1);
943  meNDigisCHANBarrelCh27_ = iBooker.book1D("ALLMODS_ndigisCHAN_BarrelCh27","Number of Digis Ch27",100,0.,1000.);
944  meNDigisCHANBarrelCh27_->setAxisTitle("Number of digis per FED channel per event",1);
945  meNDigisCHANBarrelCh28_ = iBooker.book1D("ALLMODS_ndigisCHAN_BarrelCh28","Number of Digis Ch28",100,0.,1000.);
946  meNDigisCHANBarrelCh28_->setAxisTitle("Number of digis per FED channel per event",1);
947  meNDigisCHANBarrelCh29_ = iBooker.book1D("ALLMODS_ndigisCHAN_BarrelCh29","Number of Digis Ch29",100,0.,1000.);
948  meNDigisCHANBarrelCh29_->setAxisTitle("Number of digis per FED channel per event",1);
949  meNDigisCHANBarrelCh30_ = iBooker.book1D("ALLMODS_ndigisCHAN_BarrelCh30","Number of Digis Ch30",100,0.,1000.);
950  meNDigisCHANBarrelCh30_->setAxisTitle("Number of digis per FED channel per event",1);
951  meNDigisCHANBarrelCh31_ = iBooker.book1D("ALLMODS_ndigisCHAN_BarrelCh31","Number of Digis Ch31",100,0.,1000.);
952  meNDigisCHANBarrelCh31_->setAxisTitle("Number of digis per FED channel per event",1);
953  meNDigisCHANBarrelCh32_ = iBooker.book1D("ALLMODS_ndigisCHAN_BarrelCh32","Number of Digis Ch32",100,0.,1000.);
954  meNDigisCHANBarrelCh32_->setAxisTitle("Number of digis per FED channel per event",1);
955  meNDigisCHANBarrelCh33_ = iBooker.book1D("ALLMODS_ndigisCHAN_BarrelCh33","Number of Digis Ch33",100,0.,1000.);
956  meNDigisCHANBarrelCh33_->setAxisTitle("Number of digis per FED channel per event",1);
957  meNDigisCHANBarrelCh34_ = iBooker.book1D("ALLMODS_ndigisCHAN_BarrelCh34","Number of Digis Ch34",100,0.,1000.);
958  meNDigisCHANBarrelCh34_->setAxisTitle("Number of digis per FED channel per event",1);
959  meNDigisCHANBarrelCh35_ = iBooker.book1D("ALLMODS_ndigisCHAN_BarrelCh35","Number of Digis Ch35",100,0.,1000.);
960  meNDigisCHANBarrelCh35_->setAxisTitle("Number of digis per FED channel per event",1);
961  meNDigisCHANBarrelCh36_ = iBooker.book1D("ALLMODS_ndigisCHAN_BarrelCh36","Number of Digis Ch36",100,0.,1000.);
962  meNDigisCHANBarrelCh36_->setAxisTitle("Number of digis per FED channel per event",1);
963  iBooker.cd(topFolderName_+"/Endcap");
964  meNDigisCOMBEndcap_ = iBooker.book1D("ALLMODS_ndigisCOMB_Endcap","Number of Digis",200,0.,400.);
965  meNDigisCOMBEndcap_->setAxisTitle("Number of digis per module per event",1);
966  meNDigisCHANEndcap_ = iBooker.book1D("ALLMODS_ndigisCHAN_Endcap","Number of Digis",100,0.,1000.);
967  meNDigisCHANEndcap_->setAxisTitle("Number of digis per FED channel per event",1);
968  for (int i = 1; i <= noOfDisks; i++)
969  {
970  ss1.str(std::string()); ss1 << "ALLMODS_ndigisCHAN_EndcapDp" << i;
971  ss2.str(std::string()); ss2 << "Number of Digis Disk p" << i;
972  meNDigisCHANEndcapDps_.push_back(iBooker.book1D(ss1.str(),ss2.str(),100,0.,1000.));
973  meNDigisCHANEndcapDps_.at(i-1)->setAxisTitle("Number of digis per FED channel per event",1);
974  }
975  for (int i = 1; i <= noOfDisks; i++)
976  {
977  ss1.str(std::string()); ss1 << "ALLMODS_ndigisCHAN_EndcapDm" << i;
978  ss2.str(std::string()); ss2 << "Number of Digis Disk m" << i;
979  meNDigisCHANEndcapDms_.push_back(iBooker.book1D(ss1.str(),ss2.str(),100,0.,1000.));
980  meNDigisCHANEndcapDms_.at(i-1)->setAxisTitle("Number of digis per FED channel per event",1);
981  }
982  iBooker.cd(topFolderName_);
983 }
#define LogDebug(id)
MonitorElement * meNDigisCHANBarrelCh19_
MonitorElement * meNDigisCHANBarrelCh35_
MonitorElement * meNDigisCHANBarrelCh2_
MonitorElement * meNDigisCHANBarrelCh30_
MonitorElement * meNDigisCHANBarrelCh31_
MonitorElement * meNDigisCHANBarrelCh8_
MonitorElement * bookProfile(Args &&...args)
Definition: DQMStore.h:160
MonitorElement * meNDigisCHANBarrelCh36_
MonitorElement * loOccROCsEndcap
MonitorElement * meNDigisCHANBarrelCh17_
MonitorElement * meNDigisCHANBarrelCh25_
MonitorElement * meNDigisCHANBarrelCh6_
MonitorElement * meNDigisCOMBBarrel_
std::string topFolderName_
MonitorElement * meNDigisCOMBEndcap_
MonitorElement * meNDigisCHANBarrelCh14_
MonitorElement * meNDigisCHANBarrelCh12_
MonitorElement * meNDigisCHANBarrelCh29_
MonitorElement * avgBarrelFedOccvsLumi
MonitorElement * meNDigisCHANBarrelCh27_
void setLumiFlag()
this ME is meant to be stored for each luminosity section
MonitorElement * meNDigisCHANBarrelCh3_
MonitorElement * meNDigisCHANBarrelCh9_
MonitorElement * meNDigisCHANBarrelCh4_
MonitorElement * meNDigisCHANBarrelCh34_
MonitorElement * meNDigisCHANBarrelCh26_
MonitorElement * noOccROCsBarrel
MonitorElement * meNDigisCHANEndcap_
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:118
MonitorElement * meNDigisCHANBarrelCh28_
MonitorElement * noOccROCsEndcap
MonitorElement * meNDigisCHANBarrel_
std::vector< MonitorElement * > meNDigisCHANEndcapDms_
MonitorElement * meNDigisCHANBarrelCh33_
MonitorElement * pixEventRate
MonitorElement * meNDigisCHANBarrelCh21_
MonitorElement * meNDigisCHANBarrelCh32_
MonitorElement * meNDigisCHANBarrelCh10_
MonitorElement * loOccROCsBarrel
MonitorElement * meNDigisCHANBarrelCh1_
MonitorElement * averageDigiOccupancy
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:279
MonitorElement * meNDigisCHANBarrelCh5_
MonitorElement * book2D(Args &&...args)
Definition: DQMStore.h:136
MonitorElement * meNDigisCHANBarrelCh7_
MonitorElement * meNDigisCHANBarrelCh15_
MonitorElement * meNDigisCHANBarrelCh13_
MonitorElement * meNDigisCHANBarrelCh23_
MonitorElement * meNDigisCHANBarrelCh18_
MonitorElement * bigEventRate
MonitorElement * meNDigisCHANBarrelCh20_
MonitorElement * avgfedDigiOccvsLumi
edm::ParameterSet conf_
MonitorElement * meNDigisCHANBarrelCh22_
MonitorElement * avgEndcapFedOccvsLumi
std::vector< MonitorElement * > meNDigisCHANEndcapDps_
MonitorElement * pixEvtsPerBX
std::vector< MonitorElement * > meNDigisCHANBarrelLs_
std::map< uint32_t, SiPixelDigiModule * > thePixelStructure
MonitorElement * meNDigisCHANBarrelCh16_
MonitorElement * meNDigisCHANBarrelCh11_
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
MonitorElement * meNDigisCHANBarrelCh24_
void SiPixelDigiSource::buildStructure ( edm::EventSetup const &  )
virtual

Definition at line 687 of file SiPixelDigiSource.cc.

References PixelEndcapName::bladeName(), TrackerGeometry::dets(), TrackerGeometry::detTypes(), PixelEndcapName::diskName(), edm::EventSetup::get(), PixelEndcapName::halfCylinder(), TrackerGeometry::idToDetUnit(), isPIB, isUpgrade, PixelBarrelName::layerName(), LogDebug, RecoTauDiscriminantConfiguration::mask, trackingPlots::ncols, noOfDisks, noOfLayers, PixelEndcapName::pannelName(), PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, PixelEndcapName::plaquetteName(), edm::ESHandle< T >::product(), DetId::rawId(), PixelGeomDetUnit::specificTopology(), AlCaHLTBitMon_QueryRunRegistry::string, DetId::subdetId(), and thePixelStructure.

Referenced by dqmBeginRun().

687  {
688 
689  edm::ESHandle<TrackerTopology> tTopoHandle;
690  iSetup.get<TrackerTopologyRcd>().get(tTopoHandle);
691  const TrackerTopology *pTT = tTopoHandle.product();
692 
693  LogInfo ("PixelDQM") <<" SiPixelDigiSource::buildStructure" ;
695  iSetup.get<TrackerDigiGeometryRecord>().get( pDD );
696 
697  LogVerbatim ("PixelDQM") << " *** Geometry node for TrackerGeom is "<<&(*pDD)<<std::endl;
698  LogVerbatim ("PixelDQM") << " *** I have " << pDD->dets().size() <<" detectors"<<std::endl;
699  LogVerbatim ("PixelDQM") << " *** I have " << pDD->detTypes().size() <<" types"<<std::endl;
700 
701  for(TrackerGeometry::DetContainer::const_iterator it = pDD->dets().begin(); it != pDD->dets().end(); it++){
702 
703  if(dynamic_cast<PixelGeomDetUnit const *>((*it))!=nullptr){
704 
705  DetId detId = (*it)->geographicalId();
706  const GeomDetUnit * geoUnit = pDD->idToDetUnit( detId );
707  const PixelGeomDetUnit * pixDet = dynamic_cast<const PixelGeomDetUnit*>(geoUnit);
708  int nrows = (pixDet->specificTopology()).nrows();
709  int ncols = (pixDet->specificTopology()).ncolumns();
710 
711  if(detId.subdetId() == static_cast<int>(PixelSubdetector::PixelBarrel)) {
712  if(isPIB) continue;
713  LogDebug ("PixelDQM") << " ---> Adding Barrel Module " << detId.rawId() << endl;
714  uint32_t id = detId();
715  int layer = PixelBarrelName(DetId(id),pTT,isUpgrade).layerName();
716  if (layer > noOfLayers) noOfLayers = layer;
717  SiPixelDigiModule* theModule = new SiPixelDigiModule(id, ncols, nrows);
718  thePixelStructure.insert(pair<uint32_t,SiPixelDigiModule*> (id,theModule));
719 
720  } else if((detId.subdetId() == static_cast<int>(PixelSubdetector::PixelEndcap)) && (!isUpgrade)) {
721  LogDebug ("PixelDQM") << " ---> Adding Endcap Module " << detId.rawId() << endl;
722  uint32_t id = detId();
723  SiPixelDigiModule* theModule = new SiPixelDigiModule(id, ncols, nrows);
724 
726  int disk = PixelEndcapName(DetId(id),pTT,isUpgrade).diskName();
727  if (disk > noOfDisks) noOfDisks = disk;
728  int blade = PixelEndcapName(DetId(id),pTT,isUpgrade).bladeName();
729  int panel = PixelEndcapName(DetId(id),pTT,isUpgrade).pannelName();
731 
732  char sside[80]; sprintf(sside, "HalfCylinder_%i",side);
733  char sdisk[80]; sprintf(sdisk, "Disk_%i",disk);
734  char sblade[80]; sprintf(sblade, "Blade_%02i",blade);
735  char spanel[80]; sprintf(spanel, "Panel_%i",panel);
736  char smodule[80];sprintf(smodule,"Module_%i",module);
737  std::string side_str = sside;
738  std::string disk_str = sdisk;
739  bool mask = side_str.find("HalfCylinder_1")!=string::npos||
740  side_str.find("HalfCylinder_2")!=string::npos||
741  side_str.find("HalfCylinder_4")!=string::npos||
742  disk_str.find("Disk_2")!=string::npos;
743  // clutch to take all of FPIX, but no BPIX:
744  mask = false;
745  if(isPIB && mask) continue;
746 
747  thePixelStructure.insert(pair<uint32_t,SiPixelDigiModule*> (id,theModule));
748  } else if( (detId.subdetId() == static_cast<int>(PixelSubdetector::PixelEndcap)) && (isUpgrade)) {
749  LogDebug ("PixelDQM") << " ---> Adding Endcap Module " << detId.rawId() << endl;
750  uint32_t id = detId();
751  SiPixelDigiModule* theModule = new SiPixelDigiModule(id, ncols, nrows);
752 
754  int disk = PixelEndcapName(DetId(id),pTT,isUpgrade).diskName();
755  if (disk > noOfDisks) noOfDisks = disk;
756  int blade = PixelEndcapName(DetId(id),pTT,isUpgrade).bladeName();
757  int panel = PixelEndcapName(DetId(id),pTT,isUpgrade).pannelName();
758  int module = PixelEndcapName(DetId(id),pTT,isUpgrade).plaquetteName();
759 
760  char sside[80]; sprintf(sside, "HalfCylinder_%i",side);
761  char sdisk[80]; sprintf(sdisk, "Disk_%i",disk);
762  char sblade[80]; sprintf(sblade, "Blade_%02i",blade);
763  char spanel[80]; sprintf(spanel, "Panel_%i",panel);
764  char smodule[80];sprintf(smodule,"Module_%i",module);
765  std::string side_str = sside;
766  std::string disk_str = sdisk;
767  bool mask = side_str.find("HalfCylinder_1")!=string::npos||
768  side_str.find("HalfCylinder_2")!=string::npos||
769  side_str.find("HalfCylinder_4")!=string::npos||
770  disk_str.find("Disk_2")!=string::npos;
771  // clutch to take all of FPIX, but no BPIX:
772  mask = false;
773  if(isPIB && mask) continue;
774 
775  thePixelStructure.insert(pair<uint32_t,SiPixelDigiModule*> (id,theModule));
776  }//end_elseif(isUpgrade)
777 
778  }
779  }
780  LogInfo ("PixelDQM") << " *** Pixel Structure Size " << thePixelStructure.size() << endl;
781 }
#define LogDebug(id)
int plaquetteName() const
plaquetteId (in pannel)
const DetTypeContainer & detTypes() const override
Return a vector of all det types.
uint32_t rawId() const
get the raw id
Definition: DetId.h:44
int bladeName() const
blade id
const DetContainer & dets() const override
Returm a vector of all GeomDet (including all GeomDetUnits)
const TrackerGeomDet * idToDetUnit(DetId) const override
Return the pointer to the GeomDetUnit corresponding to a given DetId.
int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:38
Definition: DetId.h:18
virtual const PixelTopology & specificTopology() const
Returns a reference to the pixel proxy topology.
int layerName() const
layer id
int pannelName() const
pannel id
int diskName() const
disk id
std::map< uint32_t, SiPixelDigiModule * > thePixelStructure
HalfCylinder halfCylinder() const
T const * product() const
Definition: ESHandle.h:86
Definition: vlib.h:208
void SiPixelDigiSource::CountZeroROCsInSubstructure ( bool  barrel,
bool &  DoZeroRocs,
SiPixelDigiModule mod 
)
virtual

Definition at line 985 of file SiPixelDigiSource.cc.

References DEFINE_FWK_MODULE, SiPixelDigiModule::getZeroLoEffROCs(), NloEffROCs, NzeroROCs, and SiPixelDigiModule::resetRocMap().

Referenced by analyze().

985  {
986 
987  std::pair<int,int> tempPair = mod->getZeroLoEffROCs();
988 
989  if (barrel){
990  NzeroROCs[0] += tempPair.first;
991  NloEffROCs[0] += tempPair.second;
992  }
993  else {
994  NzeroROCs[1] += tempPair.first;
995  NloEffROCs[1] += tempPair.second;
996  }
997 
998  DoZeroRocs=false;
999  mod->resetRocMap(); //once got the number of ZeroOccupancy Rocs, reset the ROC map of the corresponding Pixel substructure
1000 }
std::pair< int, int > getZeroLoEffROCs()
void SiPixelDigiSource::dqmBeginRun ( const edm::Run ,
edm::EventSetup const &   
)
override

Definition at line 201 of file SiPixelDigiSource.cc.

References bladeOn, buildStructure(), diskOn, DoZeroRocsBMI1, DoZeroRocsBMI2, DoZeroRocsBMI3, DoZeroRocsBMO1, DoZeroRocsBMO2, DoZeroRocsBMO3, DoZeroRocsBPI1, DoZeroRocsBPI2, DoZeroRocsBPI3, DoZeroRocsBPO1, DoZeroRocsBPO2, DoZeroRocsBPO3, DoZeroRocsFMI1, DoZeroRocsFMI2, DoZeroRocsFMO1, DoZeroRocsFMO2, DoZeroRocsFPI1, DoZeroRocsFPI2, DoZeroRocsFPO1, DoZeroRocsFPO2, firstRun, hiRes, mps_fire::i, ladOn, layOn, modOn, nBigEvents, nBPIXDigis, nDigisPerDisk, nDigisPerFed, nDM1P1M1, nDM1P1M2, nDM1P1M3, nDM1P1M4, nDM1P2M1, nDM1P2M2, nDM1P2M3, nDM2P1M1, nDM2P1M2, nDM2P1M3, nDM2P1M4, nDM2P2M1, nDM2P2M2, nDM2P2M3, nDM3P1M1, nDM3P2M1, nDP1P1M1, nDP1P1M2, nDP1P1M3, nDP1P1M4, nDP1P2M1, nDP1P2M2, nDP1P2M3, nDP2P1M1, nDP2P1M2, nDP2P1M3, nDP2P1M4, nDP2P2M1, nDP2P2M2, nDP2P2M3, nDP3P1M1, nDP3P2M1, nFPIXDigis, nL1M1, nL1M2, nL1M3, nL1M4, nL2M1, nL2M2, nL2M3, nL2M4, nL3M1, nL3M2, nL3M3, nL3M4, nL4M1, nL4M2, nL4M3, nL4M4, NloEffROCs, NzeroROCs, phiOn, ringOn, ROCMapToReset, and twoDimOn.

201  {
202  LogInfo ("PixelDQM") << " SiPixelDigiSource::beginJob - Initialisation ... " << std::endl;
203  LogInfo ("PixelDQM") << "Mod/Lad/Lay/Phi " << modOn << "/" << ladOn << "/"
204  << layOn << "/" << phiOn << std::endl;
205  LogInfo ("PixelDQM") << "Blade/Disk/Ring" << bladeOn << "/" << diskOn << "/"
206  << ringOn << std::endl;
207  LogInfo ("PixelDQM") << "2DIM IS " << twoDimOn << " and set to high resolution? " << hiRes << "\n";
208 
209  if(firstRun){
210  nBigEvents = 0;
211  nBPIXDigis = 0;
212  nFPIXDigis = 0;
213  for(int i=0; i!=40; i++) nDigisPerFed[i]=0;
214  for(int i=0; i!=4; i++) nDigisPerDisk[i]=0;
215  nDP1P1M1 = 0;
216  nDP1P1M2 = 0;
217  nDP1P1M3 = 0;
218  nDP1P1M4 = 0;
219  nDP1P2M1 = 0;
220  nDP1P2M2 = 0;
221  nDP1P2M3 = 0;
222  nDP2P1M1 = 0;
223  nDP2P1M2 = 0;
224  nDP2P1M3 = 0;
225  nDP2P1M4 = 0;
226  nDP2P2M1 = 0;
227  nDP2P2M2 = 0;
228  nDP2P2M3 = 0;
229  nDP3P1M1 = 0;
230  nDP3P2M1 = 0;
231  nDM1P1M1 = 0;
232  nDM1P1M2 = 0;
233  nDM1P1M3 = 0;
234  nDM1P1M4 = 0;
235  nDM1P2M1 = 0;
236  nDM1P2M2 = 0;
237  nDM1P2M3 = 0;
238  nDM2P1M1 = 0;
239  nDM2P1M2 = 0;
240  nDM2P1M3 = 0;
241  nDM2P1M4 = 0;
242  nDM2P2M1 = 0;
243  nDM2P2M2 = 0;
244  nDM2P2M3 = 0;
245  nDM3P1M1 = 0;
246  nDM3P2M1 = 0;
247  nL1M1 = 0;
248  nL1M2 = 0;
249  nL1M3 = 0;
250  nL1M4 = 0;
251  nL2M1 = 0;
252  nL2M2 = 0;
253  nL2M3 = 0;
254  nL2M4 = 0;
255  nL3M1 = 0;
256  nL3M2 = 0;
257  nL3M3 = 0;
258  nL3M4 = 0;
259  nL4M1 = 0;
260  nL4M2 = 0;
261  nL4M3 = 0;
262  nL4M4 = 0;
263 
264  ROCMapToReset=false;
265 
266  DoZeroRocsBMO1=false;
267  DoZeroRocsBMO2=false;
268  DoZeroRocsBMO3=false;
269 
270  DoZeroRocsBMI1=false;
271  DoZeroRocsBMI2=false;
272  DoZeroRocsBMI3=false;
273 
274  DoZeroRocsBPO1=false;
275  DoZeroRocsBPO2=false;
276  DoZeroRocsBPO3=false;
277 
278  DoZeroRocsBPI1=false;
279  DoZeroRocsBPI2=false;
280  DoZeroRocsBPI3=false;
281 
282  DoZeroRocsFPO1=false;
283  DoZeroRocsFPO2=false;
284 
285  DoZeroRocsFMO1=false;
286  DoZeroRocsFMO2=false;
287 
288  DoZeroRocsFPI1=false;
289  DoZeroRocsFPI2=false;
290 
291  DoZeroRocsFMI1=false;
292  DoZeroRocsFMI2=false;
293 
294  for (int i=0; i<2; i++) NzeroROCs[i]=0;
295  for (int i=0; i<2;i++) NloEffROCs[i]=0;
296 
297  // Build map
298  buildStructure(iSetup);
299  // Book Monitoring Elements
300  firstRun = false;
301  }
302 }
virtual void buildStructure(edm::EventSetup const &)
void SiPixelDigiSource::endLuminosityBlock ( edm::LuminosityBlock const &  ,
edm::EventSetup const &   
)
override

Definition at line 163 of file SiPixelDigiSource.cc.

References averageDigiOccupancy, avgBarrelFedOccvsLumi, avgEndcapFedOccvsLumi, avgfedDigiOccvsLumi, MonitorElement::Fill(), objects.autophobj::float, mps_fire::i, edm::LuminosityBlockBase::id(), edm::LuminosityBlockID::luminosityBlock(), modOn, nBPIXDigis, nDigisPerFed, nFPIXDigis, and MonitorElement::setBinContent().

164 {
165  int thisls = lb.id().luminosityBlock();
166 
167  float averageBPIXFed = float(nBPIXDigis)/32.;
168  float averageFPIXFed = float(nFPIXDigis)/8.;
169 
171 
172  for(int i=0; i!=40; i++){
173 
174  float averageOcc = 0.;
175  if(i<32){
176  if(averageBPIXFed>0.) averageOcc = nDigisPerFed[i]/averageBPIXFed;
177  }else{
178  if(averageFPIXFed>0.) averageOcc = nDigisPerFed[i]/averageFPIXFed;
179  }
180  if (!modOn){
181  averageDigiOccupancy->Fill(i,nDigisPerFed[i]); //In offline we fill all digis and normalise at the end of the run for thread safe behaviour.
182  avgfedDigiOccvsLumi->setBinContent(thisls, i+1, nDigisPerFed[i]); //Same plot vs lumi section
183  }
184  if ( modOn ){
185  if (thisls % 10 == 0)
186  averageDigiOccupancy->Fill(i,averageOcc); // "modOn" basically mean Online DQM, in this case fill histos with actual value of digi fraction per fed for each ten lumisections
187  if (avgfedDigiOccvsLumi && thisls % 5 == 0)
188  avgfedDigiOccvsLumi->setBinContent(int(thisls / 5), i+1, averageOcc); //fill with the mean over 5 lumisections, previous code was filling this histo only with last event of each 10th lumisection
189  }
190  }
191 
192  if(modOn && thisls % 10 == 0) {
193  avgBarrelFedOccvsLumi->setBinContent(int(thisls / 10), averageBPIXFed); //<NDigis> vs lumisection for barrel, filled every 10 lumi sections
194  avgEndcapFedOccvsLumi->setBinContent(int(thisls / 10), averageFPIXFed); //<NDigis> vs lumisection for endcap, filled every 10 lumi sections
195  }
196  }
197 }
void setBinContent(int binx, double content)
set content of bin (1-D)
MonitorElement * avgBarrelFedOccvsLumi
void Fill(long long x)
MonitorElement * averageDigiOccupancy
MonitorElement * avgfedDigiOccvsLumi
MonitorElement * avgEndcapFedOccvsLumi

Member Data Documentation

MonitorElement* SiPixelDigiSource::averageDigiOccupancy
private

Definition at line 145 of file SiPixelDigiSource.h.

Referenced by beginLuminosityBlock(), bookMEs(), and endLuminosityBlock().

MonitorElement* SiPixelDigiSource::avgBarrelFedOccvsLumi
private

Definition at line 146 of file SiPixelDigiSource.h.

Referenced by bookMEs(), and endLuminosityBlock().

MonitorElement* SiPixelDigiSource::avgEndcapFedOccvsLumi
private

Definition at line 147 of file SiPixelDigiSource.h.

Referenced by bookMEs(), and endLuminosityBlock().

MonitorElement* SiPixelDigiSource::avgfedDigiOccvsLumi
private

Definition at line 148 of file SiPixelDigiSource.h.

Referenced by bookMEs(), and endLuminosityBlock().

MonitorElement* SiPixelDigiSource::bigEventRate
private

Definition at line 138 of file SiPixelDigiSource.h.

Referenced by analyze(), and bookMEs().

int SiPixelDigiSource::bigEventSize
private

Definition at line 227 of file SiPixelDigiSource.h.

Referenced by analyze(), and bookMEs().

bool SiPixelDigiSource::bladeOn
private

Definition at line 84 of file SiPixelDigiSource.h.

Referenced by analyze(), bookMEs(), and dqmBeginRun().

edm::ParameterSet SiPixelDigiSource::conf_
private

Definition at line 70 of file SiPixelDigiSource.h.

Referenced by bookMEs(), and SiPixelDigiSource().

bool SiPixelDigiSource::diskOn
private

Definition at line 84 of file SiPixelDigiSource.h.

Referenced by analyze(), bookMEs(), and dqmBeginRun().

bool SiPixelDigiSource::DoZeroRocsBMI1
private

Definition at line 203 of file SiPixelDigiSource.h.

Referenced by analyze(), beginLuminosityBlock(), and dqmBeginRun().

bool SiPixelDigiSource::DoZeroRocsBMI2
private

Definition at line 204 of file SiPixelDigiSource.h.

Referenced by analyze(), beginLuminosityBlock(), and dqmBeginRun().

bool SiPixelDigiSource::DoZeroRocsBMI3
private

Definition at line 205 of file SiPixelDigiSource.h.

Referenced by analyze(), beginLuminosityBlock(), and dqmBeginRun().

bool SiPixelDigiSource::DoZeroRocsBMO1
private

Definition at line 199 of file SiPixelDigiSource.h.

Referenced by analyze(), beginLuminosityBlock(), and dqmBeginRun().

bool SiPixelDigiSource::DoZeroRocsBMO2
private

Definition at line 200 of file SiPixelDigiSource.h.

Referenced by analyze(), beginLuminosityBlock(), and dqmBeginRun().

bool SiPixelDigiSource::DoZeroRocsBMO3
private

Definition at line 201 of file SiPixelDigiSource.h.

Referenced by analyze(), beginLuminosityBlock(), and dqmBeginRun().

bool SiPixelDigiSource::DoZeroRocsBPI1
private

Definition at line 211 of file SiPixelDigiSource.h.

Referenced by analyze(), beginLuminosityBlock(), and dqmBeginRun().

bool SiPixelDigiSource::DoZeroRocsBPI2
private

Definition at line 212 of file SiPixelDigiSource.h.

Referenced by analyze(), beginLuminosityBlock(), and dqmBeginRun().

bool SiPixelDigiSource::DoZeroRocsBPI3
private

Definition at line 213 of file SiPixelDigiSource.h.

Referenced by analyze(), beginLuminosityBlock(), and dqmBeginRun().

bool SiPixelDigiSource::DoZeroRocsBPO1
private

Definition at line 207 of file SiPixelDigiSource.h.

Referenced by analyze(), beginLuminosityBlock(), and dqmBeginRun().

bool SiPixelDigiSource::DoZeroRocsBPO2
private

Definition at line 208 of file SiPixelDigiSource.h.

Referenced by analyze(), beginLuminosityBlock(), and dqmBeginRun().

bool SiPixelDigiSource::DoZeroRocsBPO3
private

Definition at line 209 of file SiPixelDigiSource.h.

Referenced by analyze(), beginLuminosityBlock(), and dqmBeginRun().

bool SiPixelDigiSource::DoZeroRocsFMI1
private

Definition at line 224 of file SiPixelDigiSource.h.

Referenced by analyze(), beginLuminosityBlock(), and dqmBeginRun().

bool SiPixelDigiSource::DoZeroRocsFMI2
private

Definition at line 225 of file SiPixelDigiSource.h.

Referenced by analyze(), beginLuminosityBlock(), and dqmBeginRun().

bool SiPixelDigiSource::DoZeroRocsFMO1
private

Definition at line 218 of file SiPixelDigiSource.h.

Referenced by analyze(), beginLuminosityBlock(), and dqmBeginRun().

bool SiPixelDigiSource::DoZeroRocsFMO2
private

Definition at line 219 of file SiPixelDigiSource.h.

Referenced by analyze(), beginLuminosityBlock(), and dqmBeginRun().

bool SiPixelDigiSource::DoZeroRocsFPI1
private

Definition at line 221 of file SiPixelDigiSource.h.

Referenced by analyze(), beginLuminosityBlock(), and dqmBeginRun().

bool SiPixelDigiSource::DoZeroRocsFPI2
private

Definition at line 222 of file SiPixelDigiSource.h.

Referenced by analyze(), beginLuminosityBlock(), and dqmBeginRun().

bool SiPixelDigiSource::DoZeroRocsFPO1
private

Definition at line 215 of file SiPixelDigiSource.h.

Referenced by analyze(), beginLuminosityBlock(), and dqmBeginRun().

bool SiPixelDigiSource::DoZeroRocsFPO2
private

Definition at line 216 of file SiPixelDigiSource.h.

Referenced by analyze(), beginLuminosityBlock(), and dqmBeginRun().

bool SiPixelDigiSource::firstRun
private

Definition at line 229 of file SiPixelDigiSource.h.

Referenced by dqmBeginRun(), and SiPixelDigiSource().

bool SiPixelDigiSource::hiRes
private

Definition at line 79 of file SiPixelDigiSource.h.

Referenced by bookMEs(), and dqmBeginRun().

unsigned int SiPixelDigiSource::I_detId[1856]
private

Definition at line 232 of file SiPixelDigiSource.h.

Referenced by analyze(), and SiPixelDigiSource().

int SiPixelDigiSource::I_fedId[1856]
private

Definition at line 233 of file SiPixelDigiSource.h.

Referenced by analyze(), and SiPixelDigiSource().

int SiPixelDigiSource::I_linkId1[1856]
private

Definition at line 234 of file SiPixelDigiSource.h.

Referenced by analyze(), and SiPixelDigiSource().

int SiPixelDigiSource::I_linkId2[1856]
private

Definition at line 235 of file SiPixelDigiSource.h.

Referenced by analyze(), and SiPixelDigiSource().

std::string SiPixelDigiSource::I_name[1856]
private

Definition at line 231 of file SiPixelDigiSource.h.

Referenced by SiPixelDigiSource().

bool SiPixelDigiSource::isPIB
private

Definition at line 73 of file SiPixelDigiSource.h.

Referenced by bookMEs(), and buildStructure().

bool SiPixelDigiSource::isUpgrade
private

Definition at line 228 of file SiPixelDigiSource.h.

Referenced by analyze(), bookMEs(), buildStructure(), and SiPixelDigiSource().

bool SiPixelDigiSource::ladOn
private

Definition at line 82 of file SiPixelDigiSource.h.

Referenced by analyze(), bookMEs(), and dqmBeginRun().

bool SiPixelDigiSource::layOn
private

Definition at line 82 of file SiPixelDigiSource.h.

Referenced by analyze(), bookMEs(), and dqmBeginRun().

MonitorElement* SiPixelDigiSource::loOccROCsBarrel
private

Definition at line 142 of file SiPixelDigiSource.h.

Referenced by analyze(), and bookMEs().

MonitorElement* SiPixelDigiSource::loOccROCsEndcap
private

Definition at line 144 of file SiPixelDigiSource.h.

Referenced by analyze(), and bookMEs().

MonitorElement* SiPixelDigiSource::meNDigisCHANBarrel_
private

Definition at line 151 of file SiPixelDigiSource.h.

Referenced by analyze(), and bookMEs().

MonitorElement* SiPixelDigiSource::meNDigisCHANBarrelCh10_
private

Definition at line 162 of file SiPixelDigiSource.h.

Referenced by analyze(), and bookMEs().

MonitorElement* SiPixelDigiSource::meNDigisCHANBarrelCh11_
private

Definition at line 163 of file SiPixelDigiSource.h.

Referenced by analyze(), and bookMEs().

MonitorElement* SiPixelDigiSource::meNDigisCHANBarrelCh12_
private

Definition at line 164 of file SiPixelDigiSource.h.

Referenced by analyze(), and bookMEs().

MonitorElement* SiPixelDigiSource::meNDigisCHANBarrelCh13_
private

Definition at line 165 of file SiPixelDigiSource.h.

Referenced by analyze(), and bookMEs().

MonitorElement* SiPixelDigiSource::meNDigisCHANBarrelCh14_
private

Definition at line 166 of file SiPixelDigiSource.h.

Referenced by analyze(), and bookMEs().

MonitorElement* SiPixelDigiSource::meNDigisCHANBarrelCh15_
private

Definition at line 167 of file SiPixelDigiSource.h.

Referenced by analyze(), and bookMEs().

MonitorElement* SiPixelDigiSource::meNDigisCHANBarrelCh16_
private

Definition at line 168 of file SiPixelDigiSource.h.

Referenced by analyze(), and bookMEs().

MonitorElement* SiPixelDigiSource::meNDigisCHANBarrelCh17_
private

Definition at line 169 of file SiPixelDigiSource.h.

Referenced by analyze(), and bookMEs().

MonitorElement* SiPixelDigiSource::meNDigisCHANBarrelCh18_
private

Definition at line 170 of file SiPixelDigiSource.h.

Referenced by analyze(), and bookMEs().

MonitorElement* SiPixelDigiSource::meNDigisCHANBarrelCh19_
private

Definition at line 171 of file SiPixelDigiSource.h.

Referenced by analyze(), and bookMEs().

MonitorElement* SiPixelDigiSource::meNDigisCHANBarrelCh1_
private

Definition at line 153 of file SiPixelDigiSource.h.

Referenced by analyze(), and bookMEs().

MonitorElement* SiPixelDigiSource::meNDigisCHANBarrelCh20_
private

Definition at line 172 of file SiPixelDigiSource.h.

Referenced by analyze(), and bookMEs().

MonitorElement* SiPixelDigiSource::meNDigisCHANBarrelCh21_
private

Definition at line 173 of file SiPixelDigiSource.h.

Referenced by analyze(), and bookMEs().

MonitorElement* SiPixelDigiSource::meNDigisCHANBarrelCh22_
private

Definition at line 174 of file SiPixelDigiSource.h.

Referenced by analyze(), and bookMEs().

MonitorElement* SiPixelDigiSource::meNDigisCHANBarrelCh23_
private

Definition at line 175 of file SiPixelDigiSource.h.

Referenced by analyze(), and bookMEs().

MonitorElement* SiPixelDigiSource::meNDigisCHANBarrelCh24_
private

Definition at line 176 of file SiPixelDigiSource.h.

Referenced by analyze(), and bookMEs().

MonitorElement* SiPixelDigiSource::meNDigisCHANBarrelCh25_
private

Definition at line 177 of file SiPixelDigiSource.h.

Referenced by analyze(), and bookMEs().

MonitorElement* SiPixelDigiSource::meNDigisCHANBarrelCh26_
private

Definition at line 178 of file SiPixelDigiSource.h.

Referenced by analyze(), and bookMEs().

MonitorElement* SiPixelDigiSource::meNDigisCHANBarrelCh27_
private

Definition at line 179 of file SiPixelDigiSource.h.

Referenced by analyze(), and bookMEs().

MonitorElement* SiPixelDigiSource::meNDigisCHANBarrelCh28_
private

Definition at line 180 of file SiPixelDigiSource.h.

Referenced by analyze(), and bookMEs().

MonitorElement* SiPixelDigiSource::meNDigisCHANBarrelCh29_
private

Definition at line 181 of file SiPixelDigiSource.h.

Referenced by analyze(), and bookMEs().

MonitorElement* SiPixelDigiSource::meNDigisCHANBarrelCh2_
private

Definition at line 154 of file SiPixelDigiSource.h.

Referenced by analyze(), and bookMEs().

MonitorElement* SiPixelDigiSource::meNDigisCHANBarrelCh30_
private

Definition at line 182 of file SiPixelDigiSource.h.

Referenced by analyze(), and bookMEs().

MonitorElement* SiPixelDigiSource::meNDigisCHANBarrelCh31_
private

Definition at line 183 of file SiPixelDigiSource.h.

Referenced by analyze(), and bookMEs().

MonitorElement* SiPixelDigiSource::meNDigisCHANBarrelCh32_
private

Definition at line 184 of file SiPixelDigiSource.h.

Referenced by analyze(), and bookMEs().

MonitorElement* SiPixelDigiSource::meNDigisCHANBarrelCh33_
private

Definition at line 185 of file SiPixelDigiSource.h.

Referenced by analyze(), and bookMEs().

MonitorElement* SiPixelDigiSource::meNDigisCHANBarrelCh34_
private

Definition at line 186 of file SiPixelDigiSource.h.

Referenced by analyze(), and bookMEs().

MonitorElement* SiPixelDigiSource::meNDigisCHANBarrelCh35_
private

Definition at line 187 of file SiPixelDigiSource.h.

Referenced by analyze(), and bookMEs().

MonitorElement* SiPixelDigiSource::meNDigisCHANBarrelCh36_
private

Definition at line 188 of file SiPixelDigiSource.h.

Referenced by analyze(), and bookMEs().

MonitorElement* SiPixelDigiSource::meNDigisCHANBarrelCh3_
private

Definition at line 155 of file SiPixelDigiSource.h.

Referenced by analyze(), and bookMEs().

MonitorElement* SiPixelDigiSource::meNDigisCHANBarrelCh4_
private

Definition at line 156 of file SiPixelDigiSource.h.

Referenced by analyze(), and bookMEs().

MonitorElement* SiPixelDigiSource::meNDigisCHANBarrelCh5_
private

Definition at line 157 of file SiPixelDigiSource.h.

Referenced by analyze(), and bookMEs().

MonitorElement* SiPixelDigiSource::meNDigisCHANBarrelCh6_
private

Definition at line 158 of file SiPixelDigiSource.h.

Referenced by analyze(), and bookMEs().

MonitorElement* SiPixelDigiSource::meNDigisCHANBarrelCh7_
private

Definition at line 159 of file SiPixelDigiSource.h.

Referenced by analyze(), and bookMEs().

MonitorElement* SiPixelDigiSource::meNDigisCHANBarrelCh8_
private

Definition at line 160 of file SiPixelDigiSource.h.

Referenced by analyze(), and bookMEs().

MonitorElement* SiPixelDigiSource::meNDigisCHANBarrelCh9_
private

Definition at line 161 of file SiPixelDigiSource.h.

Referenced by analyze(), and bookMEs().

std::vector<MonitorElement*> SiPixelDigiSource::meNDigisCHANBarrelLs_
private

Definition at line 152 of file SiPixelDigiSource.h.

Referenced by analyze(), and bookMEs().

MonitorElement* SiPixelDigiSource::meNDigisCHANEndcap_
private

Definition at line 189 of file SiPixelDigiSource.h.

Referenced by analyze(), and bookMEs().

std::vector<MonitorElement*> SiPixelDigiSource::meNDigisCHANEndcapDms_
private

Definition at line 191 of file SiPixelDigiSource.h.

Referenced by analyze(), and bookMEs().

std::vector<MonitorElement*> SiPixelDigiSource::meNDigisCHANEndcapDps_
private

Definition at line 190 of file SiPixelDigiSource.h.

Referenced by analyze(), and bookMEs().

MonitorElement* SiPixelDigiSource::meNDigisCOMBBarrel_
private

Definition at line 149 of file SiPixelDigiSource.h.

Referenced by analyze(), and bookMEs().

MonitorElement* SiPixelDigiSource::meNDigisCOMBEndcap_
private

Definition at line 150 of file SiPixelDigiSource.h.

Referenced by analyze(), and bookMEs().

bool SiPixelDigiSource::modOn
private
int SiPixelDigiSource::nBigEvents
private

Definition at line 135 of file SiPixelDigiSource.h.

Referenced by dqmBeginRun().

int SiPixelDigiSource::nBPIXDigis
private
int SiPixelDigiSource::nDigisA
private

Definition at line 240 of file SiPixelDigiSource.h.

Referenced by analyze().

int SiPixelDigiSource::nDigisB
private

Definition at line 241 of file SiPixelDigiSource.h.

Referenced by analyze().

int SiPixelDigiSource::nDigisPerChan[1152]
private

Definition at line 237 of file SiPixelDigiSource.h.

Referenced by analyze().

int SiPixelDigiSource::nDigisPerDisk[6]
private

Definition at line 238 of file SiPixelDigiSource.h.

Referenced by analyze(), and dqmBeginRun().

int SiPixelDigiSource::nDigisPerFed[40]
private
int SiPixelDigiSource::nDM1P1M1
private

Definition at line 103 of file SiPixelDigiSource.h.

Referenced by analyze(), and dqmBeginRun().

int SiPixelDigiSource::nDM1P1M2
private

Definition at line 104 of file SiPixelDigiSource.h.

Referenced by analyze(), and dqmBeginRun().

int SiPixelDigiSource::nDM1P1M3
private

Definition at line 105 of file SiPixelDigiSource.h.

Referenced by analyze(), and dqmBeginRun().

int SiPixelDigiSource::nDM1P1M4
private

Definition at line 106 of file SiPixelDigiSource.h.

Referenced by analyze(), and dqmBeginRun().

int SiPixelDigiSource::nDM1P2M1
private

Definition at line 107 of file SiPixelDigiSource.h.

Referenced by analyze(), and dqmBeginRun().

int SiPixelDigiSource::nDM1P2M2
private

Definition at line 108 of file SiPixelDigiSource.h.

Referenced by analyze(), and dqmBeginRun().

int SiPixelDigiSource::nDM1P2M3
private

Definition at line 109 of file SiPixelDigiSource.h.

Referenced by analyze(), and dqmBeginRun().

int SiPixelDigiSource::nDM2P1M1
private

Definition at line 110 of file SiPixelDigiSource.h.

Referenced by analyze(), and dqmBeginRun().

int SiPixelDigiSource::nDM2P1M2
private

Definition at line 111 of file SiPixelDigiSource.h.

Referenced by analyze(), and dqmBeginRun().

int SiPixelDigiSource::nDM2P1M3
private

Definition at line 112 of file SiPixelDigiSource.h.

Referenced by analyze(), and dqmBeginRun().

int SiPixelDigiSource::nDM2P1M4
private

Definition at line 113 of file SiPixelDigiSource.h.

Referenced by analyze(), and dqmBeginRun().

int SiPixelDigiSource::nDM2P2M1
private

Definition at line 114 of file SiPixelDigiSource.h.

Referenced by analyze(), and dqmBeginRun().

int SiPixelDigiSource::nDM2P2M2
private

Definition at line 115 of file SiPixelDigiSource.h.

Referenced by analyze(), and dqmBeginRun().

int SiPixelDigiSource::nDM2P2M3
private

Definition at line 116 of file SiPixelDigiSource.h.

Referenced by analyze(), and dqmBeginRun().

int SiPixelDigiSource::nDM3P1M1
private

Definition at line 117 of file SiPixelDigiSource.h.

Referenced by analyze(), and dqmBeginRun().

int SiPixelDigiSource::nDM3P2M1
private

Definition at line 118 of file SiPixelDigiSource.h.

Referenced by analyze(), and dqmBeginRun().

int SiPixelDigiSource::nDP1P1M1
private

Definition at line 87 of file SiPixelDigiSource.h.

Referenced by analyze(), and dqmBeginRun().

int SiPixelDigiSource::nDP1P1M2
private

Definition at line 88 of file SiPixelDigiSource.h.

Referenced by analyze(), and dqmBeginRun().

int SiPixelDigiSource::nDP1P1M3
private

Definition at line 89 of file SiPixelDigiSource.h.

Referenced by analyze(), and dqmBeginRun().

int SiPixelDigiSource::nDP1P1M4
private

Definition at line 90 of file SiPixelDigiSource.h.

Referenced by analyze(), and dqmBeginRun().

int SiPixelDigiSource::nDP1P2M1
private

Definition at line 91 of file SiPixelDigiSource.h.

Referenced by analyze(), and dqmBeginRun().

int SiPixelDigiSource::nDP1P2M2
private

Definition at line 92 of file SiPixelDigiSource.h.

Referenced by analyze(), and dqmBeginRun().

int SiPixelDigiSource::nDP1P2M3
private

Definition at line 93 of file SiPixelDigiSource.h.

Referenced by analyze(), and dqmBeginRun().

int SiPixelDigiSource::nDP2P1M1
private

Definition at line 94 of file SiPixelDigiSource.h.

Referenced by analyze(), and dqmBeginRun().

int SiPixelDigiSource::nDP2P1M2
private

Definition at line 95 of file SiPixelDigiSource.h.

Referenced by analyze(), and dqmBeginRun().

int SiPixelDigiSource::nDP2P1M3
private

Definition at line 96 of file SiPixelDigiSource.h.

Referenced by analyze(), and dqmBeginRun().

int SiPixelDigiSource::nDP2P1M4
private

Definition at line 97 of file SiPixelDigiSource.h.

Referenced by analyze(), and dqmBeginRun().

int SiPixelDigiSource::nDP2P2M1
private

Definition at line 98 of file SiPixelDigiSource.h.

Referenced by analyze(), and dqmBeginRun().

int SiPixelDigiSource::nDP2P2M2
private

Definition at line 99 of file SiPixelDigiSource.h.

Referenced by analyze(), and dqmBeginRun().

int SiPixelDigiSource::nDP2P2M3
private

Definition at line 100 of file SiPixelDigiSource.h.

Referenced by analyze(), and dqmBeginRun().

int SiPixelDigiSource::nDP3P1M1
private

Definition at line 101 of file SiPixelDigiSource.h.

Referenced by analyze(), and dqmBeginRun().

int SiPixelDigiSource::nDP3P2M1
private

Definition at line 102 of file SiPixelDigiSource.h.

Referenced by analyze(), and dqmBeginRun().

int SiPixelDigiSource::nFPIXDigis
private
int SiPixelDigiSource::nL1M1
private

Definition at line 119 of file SiPixelDigiSource.h.

Referenced by dqmBeginRun().

int SiPixelDigiSource::nL1M2
private

Definition at line 120 of file SiPixelDigiSource.h.

Referenced by dqmBeginRun().

int SiPixelDigiSource::nL1M3
private

Definition at line 121 of file SiPixelDigiSource.h.

Referenced by dqmBeginRun().

int SiPixelDigiSource::nL1M4
private

Definition at line 122 of file SiPixelDigiSource.h.

Referenced by dqmBeginRun().

int SiPixelDigiSource::nL2M1
private

Definition at line 123 of file SiPixelDigiSource.h.

Referenced by dqmBeginRun().

int SiPixelDigiSource::nL2M2
private

Definition at line 124 of file SiPixelDigiSource.h.

Referenced by dqmBeginRun().

int SiPixelDigiSource::nL2M3
private

Definition at line 125 of file SiPixelDigiSource.h.

Referenced by dqmBeginRun().

int SiPixelDigiSource::nL2M4
private

Definition at line 126 of file SiPixelDigiSource.h.

Referenced by dqmBeginRun().

int SiPixelDigiSource::nL3M1
private

Definition at line 127 of file SiPixelDigiSource.h.

Referenced by dqmBeginRun().

int SiPixelDigiSource::nL3M2
private

Definition at line 128 of file SiPixelDigiSource.h.

Referenced by dqmBeginRun().

int SiPixelDigiSource::nL3M3
private

Definition at line 129 of file SiPixelDigiSource.h.

Referenced by dqmBeginRun().

int SiPixelDigiSource::nL3M4
private

Definition at line 130 of file SiPixelDigiSource.h.

Referenced by dqmBeginRun().

int SiPixelDigiSource::nL4M1
private

Definition at line 131 of file SiPixelDigiSource.h.

Referenced by dqmBeginRun().

int SiPixelDigiSource::nL4M2
private

Definition at line 132 of file SiPixelDigiSource.h.

Referenced by dqmBeginRun().

int SiPixelDigiSource::nL4M3
private

Definition at line 133 of file SiPixelDigiSource.h.

Referenced by dqmBeginRun().

int SiPixelDigiSource::nL4M4
private

Definition at line 134 of file SiPixelDigiSource.h.

Referenced by dqmBeginRun().

int SiPixelDigiSource::NloEffROCs[2]
private
MonitorElement* SiPixelDigiSource::noOccROCsBarrel
private

Definition at line 141 of file SiPixelDigiSource.h.

Referenced by analyze(), and bookMEs().

MonitorElement* SiPixelDigiSource::noOccROCsEndcap
private

Definition at line 143 of file SiPixelDigiSource.h.

Referenced by analyze(), and bookMEs().

int SiPixelDigiSource::noOfDisks
private

Definition at line 246 of file SiPixelDigiSource.h.

Referenced by analyze(), bookMEs(), and buildStructure().

int SiPixelDigiSource::noOfLayers
private

Definition at line 245 of file SiPixelDigiSource.h.

Referenced by bookMEs(), and buildStructure().

int SiPixelDigiSource::numberOfDigis[336]
private

Definition at line 239 of file SiPixelDigiSource.h.

Referenced by analyze().

int SiPixelDigiSource::NzeroROCs[2]
private
bool SiPixelDigiSource::phiOn
private

Definition at line 82 of file SiPixelDigiSource.h.

Referenced by analyze(), bookMEs(), and dqmBeginRun().

MonitorElement* SiPixelDigiSource::pixEventRate
private

Definition at line 140 of file SiPixelDigiSource.h.

Referenced by analyze(), and bookMEs().

MonitorElement* SiPixelDigiSource::pixEvtsPerBX
private

Definition at line 139 of file SiPixelDigiSource.h.

Referenced by analyze(), and bookMEs().

bool SiPixelDigiSource::reducedSet
private

Definition at line 80 of file SiPixelDigiSource.h.

Referenced by analyze(), and bookMEs().

bool SiPixelDigiSource::ringOn
private

Definition at line 84 of file SiPixelDigiSource.h.

Referenced by analyze(), bookMEs(), and dqmBeginRun().

bool SiPixelDigiSource::ROCMapToReset
private

Definition at line 196 of file SiPixelDigiSource.h.

Referenced by analyze(), beginLuminosityBlock(), and dqmBeginRun().

bool SiPixelDigiSource::saveFile
private

Definition at line 72 of file SiPixelDigiSource.h.

bool SiPixelDigiSource::slowDown
private

Definition at line 74 of file SiPixelDigiSource.h.

Referenced by analyze().

edm::InputTag SiPixelDigiSource::src_
private

Definition at line 71 of file SiPixelDigiSource.h.

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

Definition at line 244 of file SiPixelDigiSource.h.

Referenced by analyze(), and SiPixelDigiSource().

std::map<uint32_t,SiPixelDigiModule*> SiPixelDigiSource::thePixelStructure
private

Definition at line 85 of file SiPixelDigiSource.h.

Referenced by analyze(), bookMEs(), and buildStructure().

std::string SiPixelDigiSource::topFolderName_

Definition at line 67 of file SiPixelDigiSource.h.

Referenced by bookMEs(), and SiPixelDigiSource().

bool SiPixelDigiSource::twoDimModOn
private

Definition at line 77 of file SiPixelDigiSource.h.

Referenced by analyze(), and bookMEs().

bool SiPixelDigiSource::twoDimOn
private

Definition at line 76 of file SiPixelDigiSource.h.

Referenced by analyze(), bookMEs(), and dqmBeginRun().

bool SiPixelDigiSource::twoDimOnlyLayDisk
private

Definition at line 78 of file SiPixelDigiSource.h.

Referenced by analyze(), and bookMEs().