Implements edm::stream::EDAnalyzerBase.
Definition at line 177 of file SiPixelDigiSource.cc.
References averageDigiOccupancy, avgfedDigiOccvsLumi, Reference_intrackfit_cff::barrel, bigEventRate, bigEventSize, PixelEndcapNameUpgrade::bladeName(), PixelEndcapName::bladeName(), bladeOn, edm::EventBase::bunchCrossing(), PixelEndcapNameUpgrade::diskName(), PixelEndcapName::diskName(), diskOn, Reference_intrackfit_cff::endcap, eventNo, MonitorElement::Fill(), edm::Event::getByToken(), PixelEndcapNameUpgrade::halfCylinder(), PixelEndcapName::halfCylinder(), i, I_detId, I_fedId, I_linkId1, I_linkId2, input, isUpgrade, edm::HandleBase::isValid(), getDQMSummary::iter, j, ladOn, 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_, meNDigisCHANBarrelL1_, meNDigisCHANBarrelL2_, meNDigisCHANBarrelL3_, meNDigisCHANBarrelL4_, meNDigisCHANEndcap_, meNDigisCHANEndcapDm1_, meNDigisCHANEndcapDm2_, meNDigisCHANEndcapDm3_, meNDigisCHANEndcapDp1_, meNDigisCHANEndcapDp2_, meNDigisCHANEndcapDp3_, meNDigisCOMBBarrel_, meNDigisCOMBEndcap_, PixelEndcapName::mI, PixelEndcapNameUpgrade::mI, PixelEndcapName::mO, PixelEndcapNameUpgrade::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, noOccROCsBarrel, noOccROCsEndcap, numberOfDigis, PixelEndcapNameUpgrade::pannelName(), PixelEndcapName::pannelName(), phiOn, PixelEndcapNameUpgrade::pI, PixelEndcapName::pI, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, pixEventRate, pixEvtsPerBX, PixelEndcapName::plaquetteName(), PixelEndcapNameUpgrade::plaquetteName(), PixelEndcapNameUpgrade::pO, PixelEndcapName::pO, reducedSet, MonitorElement::Reset(), ringOn, MonitorElement::setBinContent(), slowDown, srcToken_, DetId::subdetId(), thePixelStructure, twoDimModOn, twoDimOn, and twoDimOnlyLayDisk.
190 int nEventDigis = 0;
int nActiveModules = 0;
209 std::map<uint32_t,SiPixelDigiModule*>::iterator struct_iter;
213 int NzeroROCs[2] = {0,-672};
214 int NloEffROCs[2] = {0,-672};
216 int numberOfDigisMod = (*struct_iter).second->fill(*input,
226 if(numberOfDigisMod>0){
227 nEventDigis = nEventDigis + numberOfDigisMod;
240 for(
int i=0;
i!=nBPiXmodules; ++
i){
241 if((*struct_iter).first ==
I_detId[
i]){
243 int index1 = 0;
int index2 = 0;
262 if(panel==1){
if(module==1)
nDM1P1M1+=numberOfDigisMod;
263 else if(module==2)
nDM1P1M2+=numberOfDigisMod;
264 else if(module==3)
nDM1P1M3+=numberOfDigisMod;
265 else if(module==4)
nDM1P1M4+=numberOfDigisMod;}
266 else if(panel==2){
if(module==1)
nDM1P2M1+=numberOfDigisMod;
267 else if(module==2)
nDM1P2M2+=numberOfDigisMod;
268 else if(module==3)
nDM1P2M3+=numberOfDigisMod; }
269 if(blade<13 && blade>0 && (panel==1 || panel==2)) iter = i+2*(blade-1)+(panel-1);
272 if(panel==1){
if(module==1)
nDM2P1M1+=numberOfDigisMod;
273 else if(module==2)
nDM2P1M2+=numberOfDigisMod;
274 else if(module==3)
nDM2P1M3+=numberOfDigisMod;
275 else if(module==4)
nDM2P1M4+=numberOfDigisMod;}
276 else if(panel==2){
if(module==1)
nDM2P2M1+=numberOfDigisMod;
277 else if(module==2)
nDM2P2M2+=numberOfDigisMod;
278 else if(module==3)
nDM2P2M3+=numberOfDigisMod; }
279 if(blade<13 && blade>0 && (panel==1 || panel==2)) iter = i+2*(blade-1)+(panel-1);
284 if(panel==1){
if(module==1)
nDM1P1M1+=numberOfDigisMod;
285 else if(module==2)
nDM1P1M2+=numberOfDigisMod;
286 else if(module==3)
nDM1P1M3+=numberOfDigisMod;
287 else if(module==4)
nDM1P1M4+=numberOfDigisMod;}
288 else if(panel==2){
if(module==1)
nDM1P2M1+=numberOfDigisMod;
289 else if(module==2)
nDM1P2M2+=numberOfDigisMod;
290 else if(module==3)
nDM1P2M3+=numberOfDigisMod; }
291 if(blade<13 && blade>0 && (panel==1 || panel==2)) iter = i+2*(blade-1)+(panel-1);
294 if(panel==1){
if(module==1)
nDM2P1M1+=numberOfDigisMod;
295 else if(module==2)
nDM2P1M2+=numberOfDigisMod;
296 else if(module==3)
nDM2P1M3+=numberOfDigisMod;
297 else if(module==4)
nDM2P1M4+=numberOfDigisMod;}
298 else if(panel==2){
if(module==1)
nDM2P2M1+=numberOfDigisMod;
299 else if(module==2)
nDM2P2M2+=numberOfDigisMod;
300 else if(module==3)
nDM2P2M3+=numberOfDigisMod; }
301 if(blade<13 && blade>0 && (panel==1 || panel==2)) iter = i+2*(blade-1)+(panel-1);
306 if(panel==1){
if(module==1)
nDP1P1M1+=numberOfDigisMod;
307 else if(module==2)
nDP1P1M2+=numberOfDigisMod;
308 else if(module==3)
nDP1P1M3+=numberOfDigisMod;
309 else if(module==4)
nDP1P1M4+=numberOfDigisMod;}
310 else if(panel==2){
if(module==1)
nDP1P2M1+=numberOfDigisMod;
311 else if(module==2)
nDP1P2M2+=numberOfDigisMod;
312 else if(module==3)
nDP1P2M3+=numberOfDigisMod; }
313 if(blade<13 && blade>0 && (panel==1 || panel==2)) iter = i+2*(blade-1)+(panel-1);
316 if(panel==1){
if(module==1)
nDP2P1M1+=numberOfDigisMod;
317 else if(module==2)
nDP2P1M2+=numberOfDigisMod;
318 else if(module==3)
nDP2P1M3+=numberOfDigisMod;
319 else if(module==4)
nDP2P1M4+=numberOfDigisMod;}
320 else if(panel==2){
if(module==1)
nDP2P2M1+=numberOfDigisMod;
321 else if(module==2)
nDP2P2M2+=numberOfDigisMod;
322 else if(module==3)
nDP2P2M3+=numberOfDigisMod; }
323 if(blade<13 && blade>0 && (panel==1 || panel==2)) iter = i+2*(blade-1)+(panel-1);
328 if(panel==1){
if(module==1)
nDP1P1M1+=numberOfDigisMod;
329 else if(module==2)
nDP1P1M2+=numberOfDigisMod;
330 else if(module==3)
nDP1P1M3+=numberOfDigisMod;
331 else if(module==4)
nDP1P1M4+=numberOfDigisMod;}
332 else if(panel==2){
if(module==1)
nDP1P2M1+=numberOfDigisMod;
333 else if(module==2)
nDP1P2M2+=numberOfDigisMod;
334 else if(module==3)
nDP1P2M3+=numberOfDigisMod; }
335 if(blade<13 && blade>0 && (panel==1 || panel==2)) iter = i+2*(blade-1)+(panel-1);
338 if(panel==1){
if(module==1)
nDP2P1M1+=numberOfDigisMod;
339 else if(module==2)
nDP2P1M2+=numberOfDigisMod;
340 else if(module==3)
nDP2P1M3+=numberOfDigisMod;
341 else if(module==4)
nDP2P1M4+=numberOfDigisMod;}
342 else if(panel==2){
if(module==1)
nDP2P2M1+=numberOfDigisMod;
343 else if(module==2)
nDP2P2M2+=numberOfDigisMod;
344 else if(module==3)
nDP2P2M3+=numberOfDigisMod; }
345 if(blade<13 && blade>0 && (panel==1 || panel==2)) iter = i+2*(blade-1)+(panel-1);
350 for(
int i=nBPiXmodules; i!=nTOTmodules; i++){
351 if((*struct_iter).first ==
I_detId[i]){
369 if(panel==1){
if(module==1)
nDM1P1M1+=numberOfDigisMod; }
370 else if(panel==2){
if(module==1)
nDM1P2M1+=numberOfDigisMod; }
371 if(blade<12 && blade>0 && (panel==1 || panel==2)) iter = i+2*(blade-1)+(panel-1);
374 if(panel==1){
if(module==1)
nDM2P1M1+=numberOfDigisMod; }
375 else if(panel==2){
if(module==1)
nDM2P2M1+=numberOfDigisMod; }
376 if(blade<12 && blade>0 && (panel==1 || panel==2)) iter = i+2*(blade-1)+(panel-1);
379 if(panel==1){
if(module==1)
nDM3P1M1+=numberOfDigisMod; }
380 else if(panel==2){
if(module==1)
nDM3P2M1+=numberOfDigisMod; }
381 if(blade<12 && blade>0 && (panel==1 || panel==2)) iter = i+2*(blade-1)+(panel-1);
386 if(panel==1){
if(module==1)
nDM1P1M1+=numberOfDigisMod; }
387 else if(panel==2){
if(module==1)
nDM1P2M1+=numberOfDigisMod; }
388 if(blade<18 && blade>0 && (panel==1 || panel==2)) iter = i+2*(blade-1)+(panel-1);
391 if(panel==1){
if(module==1)
nDM2P1M1+=numberOfDigisMod; }
392 else if(panel==2){
if(module==1)
nDM2P2M1+=numberOfDigisMod; }
393 if(blade<18 && blade>0 && (panel==1 || panel==2)) iter = i+2*(blade-1)+(panel-1);
396 if(panel==1){
if(module==1)
nDM3P1M1+=numberOfDigisMod; }
397 else if(panel==2){
if(module==1)
nDM3P2M1+=numberOfDigisMod; }
398 if(blade<18 && blade>0 && (panel==1 || panel==2)) iter = i+2*(blade-1)+(panel-1);
403 if(panel==1){
if(module==1)
nDP1P1M1+=numberOfDigisMod; }
404 else if(panel==2){
if(module==1)
nDP1P2M1+=numberOfDigisMod; }
405 if(blade<12 && blade>0 && (panel==1 || panel==2)) iter = i+2*(blade-1)+(panel-1);
408 if(panel==1){
if(module==1)
nDP2P1M1+=numberOfDigisMod; }
409 else if(panel==2){
if(module==1)
nDP2P2M1+=numberOfDigisMod; }
410 if(blade<12 && blade>0 && (panel==1 || panel==2)) iter = i+2*(blade-1)+(panel-1);
413 if(panel==1){
if(module==1)
nDP3P1M1+=numberOfDigisMod; }
414 else if(panel==2){
if(module==1)
nDP3P2M1+=numberOfDigisMod; }
415 if(blade<12 && blade>0 && (panel==1 || panel==2)) iter = i+2*(blade-1)+(panel-1);
420 if(panel==1){
if(module==1)
nDP1P1M1+=numberOfDigisMod; }
421 else if(panel==2){
if(module==1)
nDP1P2M1+=numberOfDigisMod; }
422 if(blade<18 && blade>0 && (panel==1 || panel==2)) iter = i+2*(blade-1)+(panel-1);
425 if(panel==1){
if(module==1)
nDP2P1M1+=numberOfDigisMod; }
426 else if(panel==2){
if(module==1)
nDP2P2M1+=numberOfDigisMod; }
427 if(blade<18 && blade>0 && (panel==1 || panel==2)) iter = i+2*(blade-1)+(panel-1);
430 if(panel==1){
if(module==1)
nDP3P1M1+=numberOfDigisMod; }
431 else if(panel==2){
if(module==1)
nDP3P2M1+=numberOfDigisMod; }
432 if(blade<18 && blade>0 && (panel==1 || panel==2)) iter = i+2*(blade-1)+(panel-1);
436 for(
int i=nBPiXmodules; i!=nTOTmodules; i++){
437 if((*struct_iter).first ==
I_detId[i]){
445 std::pair<int,int> tempPair = (*struct_iter).second->getZeroLoEffROCs();
447 NzeroROCs[0] += tempPair.first;
448 NloEffROCs[0] += tempPair.second;
451 NzeroROCs[1] += tempPair.first;
452 NloEffROCs[1] += tempPair.second;
457 if (lumiSection%10> 2){
458 for (
int i =0; i < 2; ++
i) NloEffROCs[i] = NloEffROCs[i] - NzeroROCs[i];
524 if(nActiveModules>=4){
532 for(
int i=0; i!=32; i++){
535 for(
int i=0; i!=40; i++){
536 float averageOcc = 0.;
538 float averageBPIXFed = float(
nBPIXDigis-maxfed)/31.;
539 if(averageBPIXFed>0.) averageOcc =
nDigisPerFed[
i]/averageBPIXFed;
542 if(averageFPIXFed>0.) averageOcc =
nDigisPerFed[
i]/averageFPIXFed;
545 int lumiSections8 = int(lumiSection/8);
int plaquetteName() const
plaquetteId (in pannel)
MonitorElement * meNDigisCHANBarrelCh19_
MonitorElement * meNDigisCHANBarrelCh35_
MonitorElement * meNDigisCHANBarrelCh2_
MonitorElement * meNDigisCHANEndcapDm3_
MonitorElement * meNDigisCHANBarrelCh30_
void setBinContent(int binx, double content)
set content of bin (1-D)
MonitorElement * meNDigisCHANEndcapDp1_
MonitorElement * meNDigisCHANBarrelCh31_
MonitorElement * meNDigisCHANBarrelCh8_
MonitorElement * meNDigisCHANBarrelCh36_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
MonitorElement * loOccROCsEndcap
MonitorElement * meNDigisCHANBarrelCh17_
MonitorElement * meNDigisCHANBarrelCh25_
MonitorElement * meNDigisCHANBarrelCh6_
MonitorElement * meNDigisCOMBBarrel_
int bunchCrossing() const
MonitorElement * meNDigisCHANBarrelL4_
MonitorElement * meNDigisCHANEndcapDm1_
edm::LuminosityBlockNumber_t luminosityBlock() const
MonitorElement * meNDigisCOMBEndcap_
MonitorElement * meNDigisCHANBarrelCh14_
MonitorElement * meNDigisCHANBarrelCh12_
MonitorElement * meNDigisCHANBarrelL3_
MonitorElement * meNDigisCHANBarrelCh29_
int plaquetteName() const
plaquetteId (in pannel)
static std::string const input
edm::EDGetTokenT< edm::DetSetVector< PixelDigi > > srcToken_
MonitorElement * meNDigisCHANBarrelCh27_
int bladeName() const
blade id
MonitorElement * meNDigisCHANEndcapDm2_
MonitorElement * meNDigisCHANBarrelCh3_
MonitorElement * meNDigisCHANBarrelCh9_
MonitorElement * meNDigisCHANBarrelCh4_
MonitorElement * meNDigisCHANBarrelCh34_
MonitorElement * meNDigisCHANBarrelCh26_
MonitorElement * noOccROCsBarrel
MonitorElement * meNDigisCHANEndcap_
MonitorElement * meNDigisCHANBarrelCh28_
MonitorElement * noOccROCsEndcap
MonitorElement * meNDigisCHANBarrel_
int bladeName() const
blade id
MonitorElement * meNDigisCHANBarrelCh33_
MonitorElement * pixEventRate
MonitorElement * meNDigisCHANBarrelCh21_
unsigned int I_detId[1856]
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
MonitorElement * meNDigisCHANBarrelCh32_
MonitorElement * meNDigisCHANBarrelCh10_
MonitorElement * loOccROCsBarrel
int diskName() const
disk id
MonitorElement * meNDigisCHANBarrelCh1_
MonitorElement * averageDigiOccupancy
MonitorElement * meNDigisCHANBarrelCh5_
MonitorElement * meNDigisCHANBarrelCh7_
MonitorElement * meNDigisCHANBarrelCh15_
MonitorElement * meNDigisCHANBarrelCh13_
MonitorElement * meNDigisCHANBarrelCh23_
MonitorElement * meNDigisCHANBarrelCh18_
MonitorElement * meNDigisCHANEndcapDp2_
MonitorElement * meNDigisCHANEndcapDp3_
MonitorElement * bigEventRate
MonitorElement * meNDigisCHANBarrelCh20_
MonitorElement * avgfedDigiOccvsLumi
int pannelName() const
pannel id
MonitorElement * meNDigisCHANBarrelCh22_
int diskName() const
disk id
MonitorElement * pixEvtsPerBX
std::map< uint32_t, SiPixelDigiModule * > thePixelStructure
MonitorElement * meNDigisCHANBarrelL1_
HalfCylinder halfCylinder() const
MonitorElement * meNDigisCHANBarrelCh16_
HalfCylinder halfCylinder() const
MonitorElement * meNDigisCHANBarrelCh11_
int pannelName() const
pannel id
void Reset(void)
reset ME (ie. contents, errors, etc)
MonitorElement * meNDigisCHANBarrelL2_
MonitorElement * meNDigisCHANBarrelCh24_