Fill histograms.
329 bool isHalfModule =
false;
330 uint32_t DBladder = 0;
338 unsigned int numberOfDigisMod = 0;
340 if (isUpgrade) {msize=10;}
else {msize=8;}
341 int numberOfDigis[msize];
for(
int i=0;
i!=msize;
i++) numberOfDigis[
i]=0;
342 nDigisA=0; nDigisB=0;
343 if( isearch != input.
end() ) {
347 for(di = isearch->data.
begin(); di != isearch->data.
end(); di++) {
349 int col = di->column();
363 numberOfDigis[0]++; nDigisA++;
364 if(DBlayer==1) numberOfDigis[2]++;
365 if(DBlayer==2) numberOfDigis[3]++;
366 if(DBlayer==3) numberOfDigis[4]++;
369 numberOfDigis[1]++; nDigisB++;
370 if(DBlayer==1) numberOfDigis[5]++;
371 if(DBlayer==2) numberOfDigis[6]++;
372 if(DBlayer==3) numberOfDigis[7]++;
376 numberOfDigis[0]++; nDigisA++;
377 if(DBlayer==1) numberOfDigis[2]++;
378 if(DBlayer==2) numberOfDigis[3]++;
379 if(DBlayer==3) numberOfDigis[4]++;
381 numberOfDigis[1]++; nDigisB++;
382 if(DBlayer==1) numberOfDigis[5]++;
383 if(DBlayer==2) numberOfDigis[6]++;
384 if(DBlayer==3) numberOfDigis[7]++;
388 }
else if (isUpgrade) {
393 numberOfDigis[0]++; nDigisA++;
394 if(DBlayer==1) numberOfDigis[2]++;
395 if(DBlayer==2) numberOfDigis[3]++;
396 if(DBlayer==3) numberOfDigis[4]++;
397 if(DBlayer==4) numberOfDigis[5]++;
399 numberOfDigis[1]++; nDigisB++;
400 if(DBlayer==1) numberOfDigis[6]++;
401 if(DBlayer==2) numberOfDigis[7]++;
402 if(DBlayer==3) numberOfDigis[8]++;
403 if(DBlayer==4) numberOfDigis[9]++;
430 if((layon || twoDimOnlyLayDisk) &&
barrel){
433 if((layon && twoD) || twoDimOnlyLayDisk){
435 float rocx = (float)col/52. + 8.0*
float(DBmodule-1);
436 float rocy = (float)row/160.+
float(DBladder);
438 if(DBladder==1) rocy = rocy + 0.5;
441 if(isHalfModule && DBladder==1){
446 if((layon && !twoD) && !twoDimOnlyLayDisk){
448 if(isHalfModule && DBladder==1) {
460 if(isHalfModule && DBladder==1){
467 if(isHalfModule && DBladder==1) {
474 if(bladeon && endcap){
478 if((diskon || twoDimOnlyLayDisk) &&
endcap){
480 if(twoDimOnlyLayDisk){
489 for (
int i = DBpanel;
i < DBmodule; ++
i) {offx = offx + float(5+DBpanel-
i);}
490 float rocx = (float)col/52. + offx + 14.0*
float(DBpanel-1);
491 float rocy = (float)row/160.+
float(DBblade);
495 if(ringon && endcap){
509 if(layon && barrel && !twoDimOnlyLayDisk) (
meNDigisLay_)->
Fill((
float)numberOfDigisMod);
512 if(diskon && endcap && !twoDimOnlyLayDisk) (
meNDigisDisk_)->
Fill((
float)numberOfDigisMod);
515 if(combBarrel) combBarrel->
Fill((
float)numberOfDigisMod);
516 if(chanBarrel){
if(numberOfDigis[0]>0) chanBarrel->
Fill((
float)numberOfDigis[0]);
if(numberOfDigis[1]>0) chanBarrel->
Fill((
float)numberOfDigis[1]); }
518 for (std::vector<MonitorElement*>::iterator
i = chanBarrelL.begin();
i != chanBarrelL.end();
i++)
520 if(numberOfDigis[j]>0) (*i)->Fill((
float)numberOfDigis[j]);
524 if(combEndcap) combEndcap->
Fill((
float)numberOfDigisMod);
529 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
T const * product() const
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_
MonitorElement * meNDigisLad_
MonitorElement * mePixDigisLay_px_