65 for(
int i=0;
i<73;
i++) {
66 for(
int j=0;
j<43;
j++) {
94 myTree =
new TTree(
"RecJet",
"RecJet Tree");
95 myTree->Branch(
"mydet", &
mydet,
"mydet/I");
96 myTree->Branch(
"mysubd", &
mysubd,
"mysubd/I");
97 myTree->Branch(
"depth", &
depth,
"depth/I");
98 myTree->Branch(
"ieta", &
ieta,
"ieta/I");
99 myTree->Branch(
"iphi", &
iphi,
"iphi/I");
100 myTree->Branch(
"eta", &
eta,
"eta/F");
101 myTree->Branch(
"phi", &
phi,
"phi/F");
103 myTree->Branch(
"mom0_MB", &
mom0_MB,
"mom0_MB/F");
104 myTree->Branch(
"mom1_MB", &
mom1_MB,
"mom1_MB/F");
105 myTree->Branch(
"mom2_MB", &
mom2_MB,
"mom2_MB/F");
106 myTree->Branch(
"mom4_MB", &
mom4_MB,
"mom4_MB/F");
108 myTree->Branch(
"mom0_Noise", &
mom0_Noise,
"mom0_Noise/F");
109 myTree->Branch(
"mom1_Noise", &
mom1_Noise,
"mom1_Noise/F");
110 myTree->Branch(
"mom2_Noise", &
mom2_Noise,
"mom2_Noise/F");
111 myTree->Branch(
"mom4_Noise", &
mom4_Noise,
"mom4_Noise/F");
113 myTree->Branch(
"mom0_Diff", &
mom0_Diff,
"mom0_Diff/F");
114 myTree->Branch(
"mom1_Diff", &
mom1_Diff,
"mom1_Diff/F");
115 myTree->Branch(
"mom2_Diff", &
mom2_Diff,
"mom2_Diff/F");
117 myTree->Branch(
"occup", &
occup,
"occup/F");
131 hHBHEsize_vs_run =
new TH2F(
"hHBHEsize_vs_run",
"hHBHEsize_vs_run",500,111500.,112000.,6101,-100.5,6000.5);
132 hHFsize_vs_run =
new TH2F(
"hHFsize_vs_run",
"hHFsize_vs_run",500,111500.,112000.,6101,-100.5,6000.5);
134 for(
int i=1;
i<73;
i++){
135 for(
int j=1;
j<43;
j++){
142 sprintf(str0,
"mpl%d",k);
143 sprintf(str1,
"mmin%d",k);
145 sprintf(str10,
"vpl%d",k);
146 sprintf(str11,
"vmin%d",k);
150 hCalo1[
i][
j] =
new TH1F(str0,
"h0", 320, -10., 10.);
151 hCalo2[
i][
j] =
new TH1F(str1,
"h1", 320, -10., 10.);
154 hCalo1mom2[
i][
j] =
new TH1F(str10,
"h10", 320, 0., 20.);
155 hCalo2mom2[
i][
j] =
new TH1F(str11,
"h11", 320, 0., 20.);
161 hCalo1[
i][
j] =
new TH1F(str0,
"h0", 320, -10., 10.);
162 hCalo2[
i][
j] =
new TH1F(str1,
"h1", 320, -10., 10.);
165 hCalo1mom2[
i][
j] =
new TH1F(str10,
"h10", 320, 0., 40.);
166 hCalo2mom2[
i][
j] =
new TH1F(str11,
"h11", 320, 0., 40.);
168 hCalo1[
i][
j] =
new TH1F(str0,
"h0" , 320, -10., 10.);
169 hCalo2[
i][
j] =
new TH1F(str1,
"h1", 320, -10., 10.);
172 hCalo1mom2[
i][
j] =
new TH1F(str10,
"h10", 320, 0., 120.);
173 hCalo2mom2[
i][
j] =
new TH1F(str11,
"h11", 320, 0., 120.);
182 hbheNoiseE =
new TH1F(
"hbheNoiseE",
"hbheNoiseE", 320, -10., 10.);
183 hfNoiseE =
new TH1F(
"hfNoiseE",
"hfNoiseE", 320, -10., 10.);
184 hbheSignalE =
new TH1F(
"hbheSignalE",
"hbheSignalE", 320, -10., 10.);
185 hfSignalE =
new TH1F(
"hfSignalE",
"hfSignalE", 320, -10., 10.);
196 for (
int i=0;
i<5;
i++) {
197 for (
int j=0;
j<5;
j++) {
198 for (
int k=0; k<73;k++) {
199 for (
int l=0;
l<43;
l++) {
240 for (
int i=1;
i<5;
i++) {
241 for (
int j=1;
j<5;
j++) {
242 for (
int k=1;
k<73;
k++) {
243 for (
int l=1;
l<43;
l++) {
308 for(
int i=1;
i<73;
i++){
309 for(
int j=1;
j<43;
j++){
343 float rnnum = (float)iEvent.
run();
345 std::vector<Provenance const*> theProvenance;
348 for( std::vector<Provenance const*>::const_iterator ip = theProvenance.begin();
349 ip != theProvenance.end(); ip++) {
350 edm::LogInfo(
"AnalyzerMB")<<
" Print all process/modulelabel/product names "
351 <<(**ip).processName()<<
" , "<<(**ip).moduleLabel()<<
" , "
352 <<(**ip).productInstanceName();
442 myRecalib = recalibCorrs.
product();
448 double tmpNSFillDetMapPl1[5][5][73][43];
449 double tmpNSFillDetMapMin1[5][5][73][43];
451 for (
int i=0;
i<5;
i++) {
452 for (
int j=0;
j<5;
j++) {
453 for (
int k=0;
k<73;
k++) {
454 for (
int l=0;
l<43;
l++) {
455 tmpNSFillDetMapPl1[
i][
j][
k][
l] = 0.;
456 tmpNSFillDetMapMin1[
i][
j][
k][
l] = 0.;
464 if(!hbheNormal.isValid()){
467 edm::LogInfo(
"AnalyzerMB")<<
" The size of the normal collection "<<hbheNormal->size();
475 if(!hbheNS.isValid()){
476 edm::LogWarning(
"AnalyzerMB") <<
"HcalCalibAlgos: Error! can't get hbhe"
477 <<
" product! No HBHE MS ";
483 edm::LogInfo(
"AnalyzerMB")<<
" HBHE NS size of collection "<<HithbheNS.size();
486 if(HithbheNS.size()!= 5184) {
487 edm::LogWarning(
"AnalyzerMB")<<
" HBHE problem "<<rnnum<<
" "<<HithbheNS.size();
493 if(!hbheMB.isValid()){
494 edm::LogWarning(
"AnalyzerMB")<<
"HcalCalibAlgos: Error! can't get hbhe"
495 <<
" product! No HBHE MB";
500 edm::LogInfo(
"AnalyzerMB")<<
" HBHE MB size of collection "<<HithbheMB.size();
501 if(HithbheMB.size()!= 5184) {
502 edm::LogWarning(
"AnalyzerMB")<<
" HBHE problem "<<rnnum<<
" "<<HithbheMB.size();
511 <<
" product! No HF NS ";
516 edm::LogInfo(
"AnalyzerMB")<<
" HFE NS size of collection "<<HithfNS.size();
518 if(HithfNS.size()!= 1728) {
519 edm::LogWarning(
"AnalyzerMB")<<
" HF problem "<<rnnum<<
" "<<HithfNS.size();
528 <<
" product! No HF MB";
533 edm::LogInfo(
"AnalyzerMB")<<
" HF MB size of collection "<<HithfMB.size();
534 if(HithfMB.size()!= 1728) {
535 edm::LogWarning(
"AnalyzerMB")<<
" HF problem "<<rnnum<<
" "<<HithfMB.size();
545 if(
theRecalib ) icalconst=myRecalib->getValues(mydetid)->getValue();
547 HBHERecHit aHit(hbheItr->id(),hbheItr->energy()*icalconst,hbheItr->time());
549 double energyhit = aHit.
energy();
551 DetId id = (*hbheItr).detid();
556 int mysu = ((hid).rawId()>>25)&0x7;
557 if( hid.
ieta() > 0 ) {
563 tmpNSFillDetMapPl1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()] = energyhit;
573 tmpNSFillDetMapMin1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()] = energyhit;
577 if(hid.
depth() == 1) {
580 if(energyhit<-2.)
edm::LogInfo(
"AnalyzerMB")<<
" Run "<<rnnum<<
" ieta,iphi "<<hid.
ieta()<<
" "<<hid.
iphi()<<energyhit;
603 if(
theRecalib ) icalconst=myRecalib->getValues(mydetid)->getValue();
605 HBHERecHit aHit(hbheItr->id(),hbheItr->energy()*icalconst,hbheItr->time());
607 double energyhit = aHit.
energy();
609 DetId id = (*hbheItr).detid();
612 int mysu = ((hid).rawId()>>25)&0x7;
613 if( hid.
ieta() > 0 ) {
618 float mydiff = energyhit - tmpNSFillDetMapPl1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()];
630 float mydiff = energyhit - tmpNSFillDetMapMin1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()];
636 if(hid.
depth() == 1) {
640 if( hid.
ieta() > 0 ) {
659 if(
theRecalib ) icalconst=myRecalib->getValues(mydetid)->getValue();
661 HFRecHit aHit(hbheItr->id(),hbheItr->energy()*icalconst,hbheItr->time());
663 double energyhit = aHit.
energy();
667 DetId id = (*hbheItr).detid();
674 if(fabs(energyhit) > 40. )
continue;
676 int mysu = ((hid).rawId()>>25)&0x7;
677 if( hid.
ieta() > 0 ) {
683 tmpNSFillDetMapPl1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()] = energyhit;
693 tmpNSFillDetMapMin1[mysu][hid.
depth()][hid.
iphi()][hid.
ieta()] = energyhit;
697 if(hid.
depth() == 1) {
719 if(
theRecalib ) icalconst=myRecalib->getValues(mydetid)->getValue();
721 HFRecHit aHit(hbheItr->id(),hbheItr->energy()*icalconst,hbheItr->time());
723 double energyhit = aHit.
energy();
727 if(fabs(energyhit) > 40. )
continue;
729 DetId id = (*hbheItr).detid();
732 int mysu = ((hid).rawId()>>25)&0x7;
733 if( hid.
ieta() > 0 ) {
755 if(hid.
depth() == 1) {
758 if( hid.
ieta() > 0 ) {
double theMBFillDetMapMin0[5][5][73][43]
double theMBFillDetMapMin2[5][5][73][43]
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
void getAllProvenance(std::vector< Provenance const * > &provenances) const
double theDFFillDetMapPl2[5][5][73][43]
double theMBFillDetMapMin1[5][5][73][43]
std::string fOutputFileName
double theNSFillDetMapPl4[5][5][73][43]
double theNSFillDetMapPl0[5][5][73][43]
double theNSFillDetMapMin0[5][5][73][43]
double theMBFillDetMapPl0[5][5][73][43]
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
TH1F * hCalo2mom2[73][43]
edm::EDGetTokenT< HORecHitCollection > tok_hoNoise_
std::vector< HBHERecHit >::const_iterator const_iterator
double theDFFillDetMapPl1[5][5][73][43]
virtual void beginRun(const edm::Run &r, const edm::EventSetup &iSetup)
std::ofstream * myout_hcal
edm::EDGetTokenT< HFRecHitCollection > tok_hf_
virtual void endRun(const edm::Run &r, const edm::EventSetup &iSetup)
edm::EDGetTokenT< L1GlobalTriggerReadoutRecord > tok_gtRec_
double meannoise_pl[73][43]
edm::EDGetTokenT< HBHERecHitCollection > tok_hbheNoise_
double theNSFillDetMapPl2[5][5][73][43]
double theDFFillDetMapMin2[5][5][73][43]
TH1F * hCalo1mom2[73][43]
edm::EDGetTokenT< HFRecHitCollection > tok_hfNoise_
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
Analyzer_minbias(const edm::ParameterSet &)
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
double theDFFillDetMapPl0[5][5][73][43]
edm::EDGetTokenT< HBHERecHitCollection > tok_hbhe_
int ieta() const
get the cell ieta
Abs< T >::type abs(const T &t)
double theMBFillDetMapPl4[5][5][73][43]
double theNSFillDetMapMin1[5][5][73][43]
double theNSFillDetMapMin4[5][5][73][43]
double theDFFillDetMapMin0[5][5][73][43]
double theMBFillDetMapPl2[5][5][73][43]
edm::EDGetTokenT< HBHERecHitCollection > tok_hbheNorm_
int iphi() const
get the cell iphi
virtual void analyze(const edm::Event &, const edm::EventSetup &)
edm::EDGetTokenT< FEDRawDataCollection > tok_data_
T const * product() const
double theMBFillDetMapMin4[5][5][73][43]
return(e1-e2)*(e1-e2)+dp *dp
double meannoise_min[73][43]
edm::EDGetTokenT< HORecHitCollection > tok_ho_
double theNSFillDetMapMin2[5][5][73][43]
double theDFFillDetMapMin1[5][5][73][43]
Power< A, B >::type pow(const A &a, const B &b)