359 float rnnum = (float)iEvent.
run();
380 if (!gtRecord.isValid()) {
387 cout<<
" No L1 trigger record "<<endl;
392 for (
CItAlgo itAlgo = bitMap.begin(); itAlgo != bitMap.end(); itAlgo++)
394 bool decision=menu->gtAlgorithmResult(itAlgo->first,dWord);
395 if(decision == 1)
std::cout<<
" Trigger "<<itAlgo->first<<
" "<<decision<<std::endl;
405 myRecalib = recalibCorrs.
product();
411 double tmpNSFillDetMapPl1[5][5][73][43];
412 double tmpNSFillDetMapMin1[5][5][73][43];
414 for (
int i=0;
i<5;
i++)
416 for (
int j=0;
j<5;
j++)
418 for (
int k=0;
k<73;
k++)
420 for (
int l=0;
l<43;
l++)
422 tmpNSFillDetMapPl1[
i][
j][
k][
l] = 0.;
423 tmpNSFillDetMapMin1[
i][
j][
k][
l] = 0.;
430 if(!hbheNormal.isValid()){
431 cout<<
" hbheNormal failed "<<endl;
433 cout<<
" The size of the normal collection "<<hbheNormal->size()<<endl;
441 if(!hbheNS.isValid()){
442 LogDebug(
"") <<
"HcalCalibAlgos: Error! can't get hbhe product!" << std::endl;
443 cout<<
" No HBHE MS "<<endl;
449 cout<<
" HBHE NS size of collection "<<HithbheNS.size()<<endl;
452 if(HithbheNS.size()!= 5184) {
453 cout<<
" HBHE problem "<<rnnum<<
" "<<HithbheNS.size()<<endl;
459 if(!hbheMB.isValid()){
460 LogDebug(
"") <<
"HcalCalibAlgos: Error! can't get hbhe product!" << std::endl;
461 cout<<
" No HBHE MB"<<endl;
466 cout<<
" HBHE MB size of collection "<<HithbheMB.size()<<endl;
467 if(HithbheMB.size()!= 5184) {
468 cout<<
" HBHE problem "<<rnnum<<
" "<<HithbheMB.size()<<endl;
476 LogDebug(
"") <<
"HcalCalibAlgos: Error! can't get hbhe product!" << std::endl;
477 cout<<
" No HF NS "<<endl;
482 cout<<
" HFE NS size of collection "<<HithfNS.size()<<endl;
484 if(HithfNS.size()!= 1728) {
485 cout<<
" HF problem "<<rnnum<<
" "<<HithfNS.size()<<endl;
493 LogDebug(
"") <<
"HcalCalibAlgos: Error! can't get hbhe product!" << std::endl;
494 cout<<
" No HBHE MB"<<endl;
499 cout<<
" HF MB size of collection "<<HithfMB.size()<<endl;
500 if(HithfMB.size()!= 1728) {
501 cout<<
" HF problem "<<rnnum<<
" "<<HithfMB.size()<<endl;
512 if(
theRecalib ) icalconst=myRecalib->getValues(mydetid)->getValue();
514 HBHERecHit aHit(hbheItr->id(),hbheItr->energy()*icalconst,hbheItr->time());
516 double energyhit = aHit.
energy();
518 DetId id = (*hbheItr).detid();
523 int mysu = ((hid).rawId()>>25)&0x7;
524 if( hid.
ieta() > 0 ) {
530 tmpNSFillDetMapPl1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()] = energyhit;
540 tmpNSFillDetMapMin1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()] = energyhit;
544 if(hid.
depth() == 1) {
547 if(energyhit<-2.)
std::cout<<
" Run "<<rnnum<<
" ieta,iphi "<<hid.
ieta()<<
" "<<hid.
iphi()<<energyhit<<std::endl;
571 if(
theRecalib ) icalconst=myRecalib->getValues(mydetid)->getValue();
573 HBHERecHit aHit(hbheItr->id(),hbheItr->energy()*icalconst,hbheItr->time());
575 double energyhit = aHit.
energy();
577 DetId id = (*hbheItr).detid();
580 int mysu = ((hid).rawId()>>25)&0x7;
581 if( hid.
ieta() > 0 ) {
586 float mydiff = energyhit - tmpNSFillDetMapPl1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()];
598 float mydiff = energyhit - tmpNSFillDetMapMin1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()];
604 if(hid.
depth() == 1) {
608 if( hid.
ieta() > 0 ) {
628 if(
theRecalib ) icalconst=myRecalib->getValues(mydetid)->getValue();
630 HFRecHit aHit(hbheItr->id(),hbheItr->energy()*icalconst,hbheItr->time());
632 double energyhit = aHit.
energy();
636 if(fabs(energyhit) > 40. )
continue;
638 DetId id = (*hbheItr).detid();
641 int mysu = ((hid).rawId()>>25)&0x7;
642 if( hid.
ieta() > 0 ) {
648 tmpNSFillDetMapPl1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()] = energyhit;
658 tmpNSFillDetMapMin1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()] = energyhit;
662 if(hid.
depth() == 1) {
685 if(
theRecalib ) icalconst=myRecalib->getValues(mydetid)->getValue();
687 HFRecHit aHit(hbheItr->id(),hbheItr->energy()*icalconst,hbheItr->time());
689 double energyhit = aHit.
energy();
693 if(fabs(energyhit) > 40. )
continue;
695 DetId id = (*hbheItr).detid();
698 int mysu = ((hid).rawId()>>25)&0x7;
699 if( hid.
ieta() > 0 ) {
721 if(hid.
depth() == 1) {
738 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)
std::vector< bool > DecisionWord
typedefs
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)