337 float rnnum = (float)iEvent.
run();
353 if (!gtRecord.isValid()) {
360 cout<<
" No L1 trigger record "<<endl;
370 myRecalib = recalibCorrs.
product();
376 double tmpNSFillDetMapPl1[5][5][73][43];
377 double tmpNSFillDetMapPl2[5][5][73][43];
378 double tmpNSFillDetMapMin1[5][5][73][43];
379 double tmpNSFillDetMapMin2[5][5][73][43];
381 for (
int i=0;
i<5;
i++)
383 for (
int j=0;
j<5;
j++)
385 for (
int k=0;
k<73;
k++)
387 for (
int l=0;
l<43;
l++)
389 tmpNSFillDetMapPl1[
i][
j][
k][
l] = 0.;
390 tmpNSFillDetMapPl2[
i][
j][
k][
l] = 0.;
391 tmpNSFillDetMapMin1[
i][
j][
k][
l] = 0.;
392 tmpNSFillDetMapMin2[
i][
j][
k][
l] = 0.;
399 if(!hbheNormal.isValid()){
400 cout<<
" hbheNormal failed "<<endl;
402 cout<<
" The size of the normal collection "<<hbheNormal->size()<<endl;
410 if(!hbheNS.isValid()){
411 LogDebug(
"") <<
"HcalCalibAlgos: Error! can't get hbhe product!" << std::endl;
412 cout<<
" No HBHE MS "<<endl;
418 cout<<
" HBHE NS size of collection "<<HithbheNS.size()<<endl;
421 if(HithbheNS.size()!= 5184) {
422 cout<<
" HBHE problem "<<rnnum<<
" "<<HithbheNS.size()<<endl;
428 if(!hbheMB.isValid()){
429 LogDebug(
"") <<
"HcalCalibAlgos: Error! can't get hbhe product!" << std::endl;
430 cout<<
" No HBHE MB"<<endl;
435 cout<<
" HBHE MB size of collection "<<HithbheMB.size()<<endl;
436 if(HithbheMB.size()!= 5184) {
437 cout<<
" HBHE problem "<<rnnum<<
" "<<HithbheMB.size()<<endl;
445 LogDebug(
"") <<
"HcalCalibAlgos: Error! can't get hbhe product!" << std::endl;
446 cout<<
" No HF NS "<<endl;
451 cout<<
" HFE NS size of collection "<<HithfNS.size()<<endl;
453 if(HithfNS.size()!= 1728) {
454 cout<<
" HF problem "<<rnnum<<
" "<<HithfNS.size()<<endl;
462 LogDebug(
"") <<
"HcalCalibAlgos: Error! can't get hbhe product!" << std::endl;
463 cout<<
" No HBHE MB"<<endl;
468 cout<<
" HF MB size of collection "<<HithfMB.size()<<endl;
469 if(HithfMB.size()!= 1728) {
470 cout<<
" HF problem "<<rnnum<<
" "<<HithfMB.size()<<endl;
481 if(
theRecalib ) icalconst=myRecalib->getValues(mydetid)->getValue();
483 HBHERecHit aHit(hbheItr->id(),hbheItr->energy()*icalconst,hbheItr->time());
485 double energyhit = aHit.
energy();
487 DetId id = (*hbheItr).detid();
490 int mysu = ((hid).rawId()>>25)&0x7;
491 if( hid.
ieta() > 0 ) {
497 tmpNSFillDetMapPl1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()] = energyhit;
498 tmpNSFillDetMapPl2[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()] =
pow(energyhit,2);
508 tmpNSFillDetMapMin1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()] = energyhit;
509 tmpNSFillDetMapMin2[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()] =
pow(energyhit,2);
513 if(hid.
depth() == 1) {
514 if( hid.
ieta() > 0 ) {
533 if(
theRecalib ) icalconst=myRecalib->getValues(mydetid)->getValue();
535 HBHERecHit aHit(hbheItr->id(),hbheItr->energy()*icalconst,hbheItr->time());
537 double energyhit = aHit.
energy();
539 DetId id = (*hbheItr).detid();
542 int mysu = ((hid).rawId()>>25)&0x7;
543 if( hid.
ieta() > 0 ) {
548 float mydiff = energyhit - tmpNSFillDetMapPl1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()];
560 float mydiff = energyhit - tmpNSFillDetMapMin1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()];
566 if(hid.
depth() == 1) {
567 if( hid.
ieta() > 0 ) {
584 if(
theRecalib ) icalconst=myRecalib->getValues(mydetid)->getValue();
586 HFRecHit aHit(hbheItr->id(),hbheItr->energy()*icalconst,hbheItr->time());
588 double energyhit = aHit.
energy();
590 DetId id = (*hbheItr).detid();
593 int mysu = ((hid).rawId()>>25)&0x7;
594 if( hid.
ieta() > 0 ) {
600 tmpNSFillDetMapPl1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()] = energyhit;
601 tmpNSFillDetMapPl2[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()] =
pow(energyhit,2);
611 tmpNSFillDetMapMin1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()] = energyhit;
612 tmpNSFillDetMapMin2[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()] =
pow(energyhit,2);
616 if(hid.
depth() == 1) {
617 if( hid.
ieta() > 0 ) {
635 if(
theRecalib ) icalconst=myRecalib->getValues(mydetid)->getValue();
637 HFRecHit aHit(hbheItr->id(),hbheItr->energy()*icalconst,hbheItr->time());
639 double energyhit = aHit.
energy();
641 DetId id = (*hbheItr).detid();
644 int mysu = ((hid).rawId()>>25)&0x7;
645 if( hid.
ieta() > 0 ) {
667 if(hid.
depth() == 1) {
668 if( hid.
ieta() > 0 ) {
678 std::cout<<
" Event is finished "<<std::endl;
double theMBFillDetMapMin0[5][5][73][43]
double theMBFillDetMapMin2[5][5][73][43]
double theDFFillDetMapPl2[5][5][73][43]
double theMBFillDetMapMin1[5][5][73][43]
edm::InputTag hbherecoNoise
double theNSFillDetMapPl4[5][5][73][43]
double theNSFillDetMapPl0[5][5][73][43]
double theNSFillDetMapMin0[5][5][73][43]
double theMBFillDetMapPl0[5][5][73][43]
TH1F * hCalo2mom2[73][43]
std::vector< T >::const_iterator const_iterator
double theDFFillDetMapPl1[5][5][73][43]
edm::InputTag hfrecoNoise
double theNSFillDetMapPl2[5][5][73][43]
double theDFFillDetMapMin2[5][5][73][43]
TH1F * hCalo1mom2[73][43]
double theNSFillDetMapPl1[5][5][73][43]
uint32_t rawId() const
get the raw id
double theMBFillDetMapPl1[5][5][73][43]
int depth() const
get the tower depth
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
int ieta() const
get the cell ieta
double theMBFillDetMapPl4[5][5][73][43]
double theNSFillDetMapMin1[5][5][73][43]
double theNSFillDetMapMin4[5][5][73][43]
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
double theMBFillDetMapPl2[5][5][73][43]
int iphi() const
get the cell iphi
T const * product() const
double theMBFillDetMapMin4[5][5][73][43]
double theNSFillDetMapMin2[5][5][73][43]
double theDFFillDetMapMin1[5][5][73][43]
Power< A, B >::type pow(const A &a, const B &b)