Fill histograms.
330 bool isHalfModule =
false;
331 uint32_t DBladder = 0;
339 unsigned int numberOfDigisMod = 0;
341 if (isUpgrade) {msize=10;}
else {msize=8;}
342 int numberOfDigis[msize];
for(
int i=0;
i!=msize;
i++) numberOfDigis[
i]=0;
343 nDigisA=0; nDigisB=0;
344 if( isearch != input.
end() ) {
348 for(di = isearch->data.
begin(); di != isearch->data.
end(); di++) {
350 int col = di->column();
364 numberOfDigis[0]++; nDigisA++;
365 if(DBlayer==1) numberOfDigis[2]++;
366 if(DBlayer==2) numberOfDigis[3]++;
367 if(DBlayer==3) numberOfDigis[4]++;
370 numberOfDigis[1]++; nDigisB++;
371 if(DBlayer==1) numberOfDigis[5]++;
372 if(DBlayer==2) numberOfDigis[6]++;
373 if(DBlayer==3) numberOfDigis[7]++;
377 numberOfDigis[0]++; nDigisA++;
378 if(DBlayer==1) numberOfDigis[2]++;
379 if(DBlayer==2) numberOfDigis[3]++;
380 if(DBlayer==3) numberOfDigis[4]++;
382 numberOfDigis[1]++; nDigisB++;
383 if(DBlayer==1) numberOfDigis[5]++;
384 if(DBlayer==2) numberOfDigis[6]++;
385 if(DBlayer==3) numberOfDigis[7]++;
389 }
else if (isUpgrade) {
394 numberOfDigis[0]++; nDigisA++;
395 if(DBlayer==1) numberOfDigis[2]++;
396 if(DBlayer==2) numberOfDigis[3]++;
397 if(DBlayer==3) numberOfDigis[4]++;
398 if(DBlayer==4) numberOfDigis[5]++;
400 numberOfDigis[1]++; nDigisB++;
401 if(DBlayer==1) numberOfDigis[6]++;
402 if(DBlayer==2) numberOfDigis[7]++;
403 if(DBlayer==3) numberOfDigis[8]++;
404 if(DBlayer==4) numberOfDigis[9]++;
431 if((layon || twoDimOnlyLayDisk) &&
barrel){
434 if((layon && twoD) || twoDimOnlyLayDisk){
436 float rocx = (
float)col/52. + 8.0*
float(DBmodule-1);
437 float rocy = (
float)row/160.+
float(DBladder);
439 if(DBladder==1) rocy = rocy + 0.5;
442 if(isHalfModule && DBladder==1){
447 if((layon && !twoD) && !twoDimOnlyLayDisk){
449 if(isHalfModule && DBladder==1) {
461 if(isHalfModule && DBladder==1){
468 if(isHalfModule && DBladder==1) {
475 if(bladeon && endcap){
479 if((diskon || twoDimOnlyLayDisk) &&
endcap){
481 if(twoDimOnlyLayDisk){
490 for (
int i = DBpanel;
i < DBmodule; ++
i) {offx = offx +
float(5+DBpanel-
i);}
491 float rocx = (
float)col/52. + offx + 14.0*
float(DBpanel-1);
492 float rocy = (
float)row/160.+
float(DBblade);
496 if(ringon && endcap){
510 if(layon && barrel && !twoDimOnlyLayDisk) (
meNDigisLay_)->
Fill((
float)numberOfDigisMod);
513 if(diskon && endcap && !twoDimOnlyLayDisk) (
meNDigisDisk_)->
Fill((
float)numberOfDigisMod);
516 if(combBarrel) combBarrel->
Fill((
float)numberOfDigisMod);
517 if(chanBarrel){
if(numberOfDigis[0]>0) chanBarrel->
Fill((
float)numberOfDigis[0]);
if(numberOfDigis[1]>0) chanBarrel->
Fill((
float)numberOfDigis[1]); }
519 for (std::vector<MonitorElement*>::iterator
i = chanBarrelL.begin();
i != chanBarrelL.end();
i++)
521 if(numberOfDigis[j]>0) (*i)->Fill((
float)numberOfDigis[j]);
525 if(combEndcap) combEndcap->
Fill((
float)numberOfDigisMod);
530 return numberOfDigisMod;
int adc(sample_type sample)
get the ADC sample (12 bits)
MonitorElement * meNDigisRing_
MonitorElement * mePixDigisLad_py_
MonitorElement * mePixDigis_
MonitorElement * mePixDigisPhi_py_
iterator find(det_id_type id)
int moduleName() const
module id (index in z)
MonitorElement * meADCRing_
MonitorElement * meNDigis_
MonitorElement * mePixDigisRing_px_
MonitorElement * mePixDigis_py_
MonitorElement * mePixDigisDisk_
MonitorElement * meNDigisBlade_
int bladeName() const
blade id
MonitorElement * meADCDisk_
MonitorElement * mePixDigisPhi_px_
bool isHalfModule() const
full or half module
MonitorElement * mePixDigisRing_py_
MonitorElement * mePixRocsDisk_
MonitorElement * mePixRocsLay_
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
MonitorElement * mePixDigisLay_py_
MonitorElement * meADCLad_
MonitorElement * meADCBlade_
MonitorElement * meNDigisLay_
MonitorElement * mePixDigisLad_
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
iterator end()
Return the off-the-end iterator.
MonitorElement * meADCLay_
int ladderName() const
ladder id (index in phi)
MonitorElement * mePixDigis_px_
int layerName() const
layer id
MonitorElement * mePixDigisLad_px_
MonitorElement * mePixDigisLay_
MonitorElement * meNDigisPhi_
int pannelName() const
pannel id
MonitorElement * mePixDigisRing_
MonitorElement * meADCPhi_
iterator begin()
Return an iterator to the first DetSet.
MonitorElement * mePixDigisPhi_
collection_type::const_iterator const_iterator
collection_type::const_iterator const_iterator
MonitorElement * meNDigisDisk_
T const * product() const
MonitorElement * meNDigisLad_
MonitorElement * mePixDigisLay_px_