73 static constexpr
int netamx = 30;
74 static constexpr
int nphimx = 72;
75 static constexpr
int ringmx = 5;
76 static constexpr
int ncut = 14;
78 const char* varcrit[3] = {
"All",
"steps",
"n-1"};
80 const double elosfact = (14.9 + 0.96 * fabs(
log(8 * 2.8)) + 0.033 * 8 * (1.0 -
pow(8, -0.33)));
82 int getHOieta(
int ij) {
return (ij < netamx / 2) ? -netamx / 2 + ij : -netamx / 2 + ij + 1; }
83 int invert_HOieta(
int ieta) {
return (ieta < 0) ? netamx / 2 + ieta : netamx / 2 + ieta - 1; }
99 TH1F* ho_indenergy[netamx][nphimx];
114 TH2F* sig_eta_evt[3 * netamx][ncut];
115 TH2F* sigvsevt[3 * netamx][ncut];
116 TH1F* variab[3 * netamx][ncut];
118 TH2F* mu_projection[ncut + 1];
123 float inslumi, trkdr, trkdz, trkvx, trkvy,
trkvz, trkmm, trkth, trkph, chisq, therr, pherr, hodx, hody, hoang, htime,
124 hosig[9], hocorsig[18], hocro, hbhesig[9], caloen[3];
130 float ncount[ringmx][ncut + 10];
160 for (
int ij = 0; ij < 10; ij++) {
176 T1 = fs->
make<TTree>(
"T1",
"HOSignal");
178 T1->Branch(
"irun", &irun,
"irun/I");
179 T1->Branch(
"ievt", &ievt,
"ievt/i");
181 T1->Branch(
"isect", &isect,
"isect/I");
182 T1->Branch(
"isect2", &isect2,
"isect2/I");
183 T1->Branch(
"ndof", &
ndof,
"ndof/I");
184 T1->Branch(
"nmuon", &nmuon,
"nmuon/I");
186 T1->Branch(
"ilumi", &ilumi,
"ilumi/I");
188 T1->Branch(
"inslumi", &inslumi,
"inslumi/F");
189 T1->Branch(
"nprim", &nprim,
"nprim/I");
190 T1->Branch(
"tkpt03", &tkpt03,
" tkpt03/F");
191 T1->Branch(
"ecal03", &ecal03,
" ecal03/F");
192 T1->Branch(
"hcal03", &hcal03,
" hcal03/F");
195 T1->Branch(
"trkdr", &trkdr,
"trkdr/F");
196 T1->Branch(
"trkdz", &trkdz,
"trkdz/F");
198 T1->Branch(
"trkvx", &trkvx,
"trkvx/F");
199 T1->Branch(
"trkvy", &trkvy,
"trkvy/F");
200 T1->Branch(
"trkvz", &trkvz,
"trkvz/F");
201 T1->Branch(
"trkmm", &trkmm,
"trkmm/F");
202 T1->Branch(
"trkth", &trkth,
"trkth/F");
203 T1->Branch(
"trkph", &trkph,
"trkph/F");
205 T1->Branch(
"chisq", &chisq,
"chisq/F");
206 T1->Branch(
"therr", &therr,
"therr/F");
207 T1->Branch(
"pherr", &pherr,
"pherr/F");
208 T1->Branch(
"hodx", &hodx,
"hodx/F");
209 T1->Branch(
"hody", &hody,
"hody/F");
210 T1->Branch(
"hoang", &hoang,
"hoang/F");
212 T1->Branch(
"momatho", &momatho,
"momatho/F");
213 T1->Branch(
"hoflag", &hoflag,
"hoflag/i");
214 T1->Branch(
"htime", &htime,
"htime/F");
215 T1->Branch(
"hosig", hosig,
"hosig[9]/F");
216 T1->Branch(
"hocro", &hocro,
"hocro/F");
217 T1->Branch(
"hocorsig", hocorsig,
"hocorsig[18]/F");
218 T1->Branch(
"caloen", caloen,
"caloen[3]/F");
224 for (
int ij = 0; ij < netamx; ij++) {
225 int ieta = getHOieta(ij);
226 for (
int jk = 0; jk < nphimx; jk++) {
227 sprintf(name,
"ho_indenergy_%i_%i", ij, jk);
228 sprintf(title,
"ho IndEnergy (GeV) i#eta=%i i#phi=%i", ieta, jk + 1);
229 ho_indenergy[ij][jk] = fs->make<TH1F>(
name,
title, 1200, m_low, m_ahigh);
234 muonnm = fs->make<TH1F>(
"muonnm",
"No of muon", 10, -0.5, 9.5);
235 muonmm = fs->make<TH1F>(
"muonmm",
"P_{mu}", 200, -100., 100.);
236 muonth = fs->make<TH1F>(
"muonth",
"{Theta}_{mu}", 180, 0., 180.);
237 muonph = fs->make<TH1F>(
"muonph",
"{Phi}_{mu}", 180, -180., 180.);
238 muonch = fs->make<TH1F>(
"muonch",
"{chi^2}/ndf", 100, 0., 1000.);
240 sel_muonnm = fs->make<TH1F>(
"sel_muonnm",
"No of muon(sel)", 10, -0.5, 9.5);
241 sel_muonmm = fs->make<TH1F>(
"sel_muonmm",
"P_{mu}(sel)", 200, -100., 100.);
242 sel_muonth = fs->make<TH1F>(
"sel_muonth",
"{Theta}_{mu}(sel)", 180, 0., 180.);
243 sel_muonph = fs->make<TH1F>(
"sel_muonph",
"{Phi}_{mu}(sel)", 180, -180., 180.);
244 sel_muonch = fs->make<TH1F>(
"sel_muonch",
"{chi^2}/ndf(sel)", 100, 0., 1000.);
246 float pival = acos(-1.);
249 const char* varnam[ncut] = {
"ndof",
263 int nbinxx[ncut] = {25, 60, 60, 60, 60, 60, 60, 120, 6, 60, 60, 120, 120, 60};
264 double alowxx[ncut] = {5.5, 0., 0., -pival, 0.0, 0.0, 0.0, 0., 0.5, 0.0, 0.0, -20., -32., -45.0};
265 double ahghxx[ncut] = {30.5, 40., pival, pival, 0.8, 0.02, 0.5, 300., 6.5, 10.0, 24.0, 20.0, 32.0, 45.0};
267 for (
int kl = 0; kl < ncut; kl++) {
268 for (
int jk = 0; jk < 3; jk++) {
269 for (
int ij = 0; ij < netamx; ij++) {
270 sprintf(name,
"sigeta_%i_%i_%i", kl, jk, ij);
271 sprintf(title,
"sigeta %s %s i#eta=%i", varnam[kl], varcrit[jk], getHOieta(ij));
272 sig_eta_evt[netamx * jk + ij][kl] =
273 fs->make<TH2F>(
name,
title, nbinxx[kl], alowxx[kl], ahghxx[kl], m_bins, m_low, m_ahigh);
278 for (
int kl = 0; kl < ncut; kl++) {
279 for (
int ij = 0; ij < ringmx * 3; ij++) {
280 int iring = ij % ringmx - 2;
281 int iset = ij / ringmx;
282 sprintf(name,
"sigring_%i_%i", kl, ij);
283 sprintf(title,
"Signal %s %s Ring%i", varnam[kl], varcrit[iset], iring);
284 sigvsevt[ij][kl] = fs->make<TH2F>(
name,
title, nbinxx[kl], alowxx[kl], ahghxx[kl], m_bins, m_low, m_ahigh);
288 for (
int kl = 0; kl < ncut; kl++) {
289 for (
int ij = 0; ij < ringmx * 3; ij++) {
290 int iring = ij % ringmx - 2;
291 int iset = ij / ringmx;
292 sprintf(name,
"varring_%i_%i", kl, ij);
293 sprintf(title,
"%s %s Ring%i", varnam[kl], varcrit[iset], iring);
294 variab[ij][kl] = fs->make<TH1F>(
name,
title, nbinxx[kl], alowxx[kl], ahghxx[kl]);
298 for (
int ij = 0; ij <= ncut; ij++) {
299 sprintf(name,
"mu_projection_%i", ij);
301 sprintf(title,
"All projected muon");
303 sprintf(title,
"Projected muon with selection %s", varnam[ij - 1]);
306 fs->make<TH2F>(
name,
title, netamx + 1, -netamx / 2 - 0.5, netamx / 2 + 0.5, nphimx, 0.5, nphimx + 0.5);
309 for (
int ij = 0; ij < 31; ij++) {
310 mypow_2[ij] =
pow(2, ij);
312 for (
int ij = 0; ij < ringmx; ij++) {
313 for (
int jk = 0; jk < ncut + 10; jk++) {
314 ncount[ij][jk] = 0.0;
325 <<
" " << setw(7) <<
nevents[5] <<
" Selected events # is " << ipass;
338 float pival = acos(-1.);
350 <<
" " << setw(7) <<
nevents[5];
352 << int(HOCalib.isValid()) <<
" " << ipass;
355 if (HOCalib.isValid()) {
357 nmuon = (*HOCalib).size();
359 for (HOCalibVariableCollection::const_iterator hoC = (*HOCalib).begin(); hoC != (*HOCalib).end(); hoC++) {
360 trkdr = (*hoC).trkdr;
361 trkdz = (*hoC).trkdz;
363 trkvx = (*hoC).trkvx;
364 trkvy = (*hoC).trkvy;
365 trkvz = (*hoC).trkvz;
367 trkmm = (*hoC).trkmm;
368 trkth = (*hoC).trkth;
369 trkph = (*hoC).trkph;
371 ndof = (int)(*hoC).ndof;
372 chisq = (*hoC).chisq;
373 momatho = (*hoC).momatho;
375 therr = (*hoC).therr;
376 pherr = (*hoC).pherr;
377 trkph = (*hoC).trkph;
380 nprim = (*hoC).nprim;
381 inslumi = (*hoC).inslumi;
382 tkpt03 = (*hoC).tkpt03;
383 ecal03 = (*hoC).ecal03;
384 hcal03 = (*hoC).hcal03;
387 isect = (*hoC).isect;
388 isect2 = (*hoC).isect2;
391 hoang = (*hoC).hoang;
393 tmphoang =
sin(trkth) - hoang;
395 htime = (*hoC).htime;
396 hoflag = (*hoC).hoflag;
397 for (
int ij = 0; ij < 9; ij++) {
398 hosig[ij] = (*hoC).hosig[ij];
403 for (
int ij = 0; ij < 18; ij++) {
404 hocorsig[ij] = (*hoC).hocorsig[ij];
409 hocro = (*hoC).hocro;
410 for (
int ij = 0; ij < 3; ij++) {
411 caloen[ij] = (*hoC).caloen[ij];
431 bool isZSps = (hosig[4] < -99.0) ?
false :
true;
433 if ((!m_cosmic) && fabs(trkmm) < momatho)
437 if (fabs(trkth - pival / 2) < 0.000001)
441 int ieta = int((
abs(isect) % 10000) / 100.) - 50;
445 int iphi =
abs(isect) % 100;
447 int tmpsect = int((iphi + 1) / 6.) + 1;
453 int iring2 = iring + 2;
455 double abshoang = (m_cosmic) ? fabs(hoang) : hoang;
460 elos *= ((14.9 + 0.96 * fabs(
log(momatho * 2.8)) + 0.033 * momatho * (1.0 -
pow(momatho, -0.33))) / elosfact);
467 if (chisq > 0 && chisq < 12) {
472 if (trkth > 0.3 && trkth < pival - 0.3) {
476 if (trkph > -pival + 0.1 && trkph < -0.1) {
485 if (pherr < 0.0002) {
489 if (abshoang > 0.60 && abshoang < 1.0) {
494 if (m_zeroField || (fabs(momatho) > 5.0 && fabs(momatho) < 2000.0)) {
499 if (nmuon >= 1 && nmuon <= 3) {
512 if (fabs(hodx) < 100 && fabs(hodx) > 2 && fabs(hocorsig[8]) < 40 && fabs(hocorsig[8]) > 2) {
517 if (fabs(hody) < 100 && fabs(hody) > 2 && fabs(hocorsig[9]) < 40 && fabs(hocorsig[9]) > 2) {
523 if (fabs(hodx) < 100 && fabs(hodx) > 2) {
528 if (fabs(hody) < 100 && fabs(hody) > 2) {
536 if (htime > -60 && htime < 60) {
542 if (htime > -60 && htime < 60) {
548 if (htime > -60 && htime < 60) {
554 if (htime > -60 && htime < 60) {
560 if (htime > -60 && htime < 60) {
566 if (htime > -100 && htime < 100) {
576 if (chisq > 0 && chisq < 10) {
581 if (fabs(trkth - pival / 2) < 21.5) {
585 if (fabs(trkph + pival / 2) < 21.5) {
590 if (therr < 0.00002) {
594 if (pherr < 0.000002) {
599 if (tmphoang < 0.065) {
604 if (fabs(momatho) < 250.0 && fabs(momatho) > 15.0) {
609 if ((iring2 == 1 || iring2 == 3) && fabs(momatho) > 17.0) {
613 if ((iring2 == 0 || iring2 == 4) && fabs(momatho) > 20.0) {
619 if (nmuon >= 1 && nmuon <= 3) {
624 if (
ndof > 0 && caloen[0] < 15.0) {
634 if (fabs(hodx) < 100 && fabs(hodx) > 2 && fabs(hocorsig[8]) < 40 && fabs(hocorsig[8]) > 2) {
639 if (fabs(hody) < 100 && fabs(hody) > 2 && fabs(hocorsig[9]) < 40 && fabs(hocorsig[9]) > 2) {
645 if (fabs(hodx) < 100 && fabs(hodx) > 2) {
650 if (fabs(hody) < 100 && fabs(hody) > 2) {
657 if (htime > -20 && htime < 20) {
663 if (htime > -20 && htime < 20) {
669 if (htime > -30 && htime < 20) {
675 if (htime > -20 && htime < 20) {
681 if (htime > -20 && htime < 20) {
687 int tmpxet = invert_HOieta(ieta);
688 double nomHOSig = hosig[4] /
elos;
690 if (ipsall - ips0 == mypow_2[ncut] - mypow_2[0] - 1) {
692 sigvsevt[iring2][0]->Fill(
abs(
ndof), nomHOSig);
693 sig_eta_evt[tmpxet][0]->Fill(
abs(
ndof), nomHOSig);
695 variab[iring2][0]->Fill(
abs(
ndof));
697 if (ipsall - ips1 == mypow_2[ncut] - mypow_2[1] - 1) {
699 sigvsevt[iring2][1]->Fill(chisq, nomHOSig);
700 sig_eta_evt[tmpxet][1]->Fill(chisq, nomHOSig);
702 variab[iring2][1]->Fill(chisq);
704 if (ipsall - ips2 == mypow_2[ncut] - mypow_2[2] - 1) {
706 sigvsevt[iring2][2]->Fill(trkth, nomHOSig);
707 sig_eta_evt[tmpxet][2]->Fill(trkth, nomHOSig);
709 variab[iring2][2]->Fill(trkth);
711 if (ipsall - ips3 == mypow_2[ncut] - mypow_2[3] - 1) {
713 sigvsevt[iring2][3]->Fill(trkph, nomHOSig);
714 sig_eta_evt[tmpxet][3]->Fill(trkph, nomHOSig);
716 variab[iring2][3]->Fill(trkph);
718 if (ipsall - ips4 == mypow_2[ncut] - mypow_2[4] - 1) {
720 sigvsevt[iring2][4]->Fill(1000 * therr, nomHOSig);
721 sig_eta_evt[tmpxet][4]->Fill(1000 * therr, nomHOSig);
723 variab[iring2][4]->Fill(1000 * therr);
725 if (ipsall - ips5 == mypow_2[ncut] - mypow_2[5] - 1) {
727 sigvsevt[iring2][5]->Fill(1000 * pherr, nomHOSig);
728 sig_eta_evt[tmpxet][5]->Fill(1000 * pherr, nomHOSig);
730 variab[iring2][5]->Fill(1000 * pherr);
732 if (ipsall - ips6 == mypow_2[ncut] - mypow_2[6] - 1) {
734 sigvsevt[iring2][6]->Fill(tmphoang, (nomHOSig)*abshoang);
735 sig_eta_evt[tmpxet][6]->Fill(tmphoang, (nomHOSig)*abshoang);
737 variab[iring2][6]->Fill(tmphoang);
739 if (ipsall - ips7 == mypow_2[ncut] - mypow_2[7] - 1) {
741 sigvsevt[iring2][7]->Fill(fabs(trkmm), nomHOSig);
742 sig_eta_evt[tmpxet][7]->Fill(fabs(trkmm), nomHOSig);
744 variab[iring2][7]->Fill(fabs(trkmm));
746 if (ipsall - ips8 == mypow_2[ncut] - mypow_2[8] - 1) {
748 sigvsevt[iring2][8]->Fill(nmuon, nomHOSig);
749 sig_eta_evt[tmpxet][8]->Fill(nmuon, nomHOSig);
751 variab[iring2][8]->Fill(nmuon);
754 if (ipsall - ips9 == mypow_2[ncut] - mypow_2[9] - 1) {
756 sigvsevt[iring2][9]->Fill(caloen[0], nomHOSig);
757 sig_eta_evt[tmpxet][9]->Fill(caloen[0], nomHOSig);
759 variab[iring2][9]->Fill(caloen[0]);
762 if (ipsall - ips10 == mypow_2[ncut] - mypow_2[10] - 1) {
764 sigvsevt[iring2][10]->Fill(tkpt03, nomHOSig);
765 sig_eta_evt[tmpxet][10]->Fill(tkpt03, nomHOSig);
767 variab[iring2][10]->Fill(tkpt03);
769 if (ipsall - ips11 == mypow_2[ncut] - mypow_2[11] - 1) {
771 sigvsevt[iring2][11]->Fill(hodx, nomHOSig);
772 sig_eta_evt[tmpxet][11]->Fill(hodx, nomHOSig);
774 variab[iring2][11]->Fill(hodx);
776 if (ipsall - ips12 == mypow_2[ncut] - mypow_2[12] - 1) {
778 sigvsevt[iring2][12]->Fill(hody, nomHOSig);
779 sig_eta_evt[tmpxet][12]->Fill(hody, nomHOSig);
781 variab[iring2][12]->Fill(hody);
784 if (ipsall - ips13 == mypow_2[ncut] - mypow_2[13] - 1) {
786 sigvsevt[iring2][13]->Fill(htime, nomHOSig);
787 sig_eta_evt[tmpxet][13]->Fill(htime, nomHOSig);
789 variab[iring2][13]->Fill(htime);
793 sigvsevt[iring2 + ringmx][0]->Fill(
abs(
ndof), nomHOSig);
794 sig_eta_evt[netamx + tmpxet][0]->Fill(
abs(
ndof), nomHOSig);
796 variab[iring2 + 5][0]->Fill(
abs(
ndof));
804 ncount[iring2][10]++;
805 sigvsevt[iring2 + ringmx][1]->Fill(chisq, nomHOSig);
806 sig_eta_evt[netamx + tmpxet][1]->Fill(chisq, nomHOSig);
808 variab[iring2 + ringmx][1]->Fill(chisq);
809 mu_projection[1]->Fill(ieta, iphi);
812 ncount[iring2][11]++;
813 sigvsevt[iring2 + ringmx][2]->Fill(trkth, nomHOSig);
814 sig_eta_evt[netamx + tmpxet][2]->Fill(trkth, nomHOSig);
816 variab[iring2 + ringmx][2]->Fill(trkth);
817 mu_projection[2]->Fill(ieta, iphi);
820 ncount[iring2][12]++;
821 sigvsevt[iring2 + ringmx][3]->Fill(trkph, nomHOSig);
822 sig_eta_evt[netamx + tmpxet][3]->Fill(trkph, nomHOSig);
824 variab[iring2 + ringmx][3]->Fill(trkph);
825 mu_projection[3]->Fill(ieta, iphi);
828 ncount[iring2][13]++;
829 sigvsevt[iring2 + ringmx][4]->Fill(1000 * therr, nomHOSig);
830 sig_eta_evt[netamx + tmpxet][4]->Fill(1000 * therr, nomHOSig);
832 variab[iring2 + ringmx][4]->Fill(1000 * therr);
833 mu_projection[4]->Fill(ieta, iphi);
836 ncount[iring2][14]++;
837 sigvsevt[iring2 + ringmx][5]->Fill(1000 * pherr, nomHOSig);
838 sig_eta_evt[netamx + tmpxet][5]->Fill(1000 * pherr, nomHOSig);
840 variab[iring2 + ringmx][5]->Fill(1000 * pherr);
841 mu_projection[5]->Fill(ieta, iphi);
844 ncount[iring2][15]++;
845 sigvsevt[iring2 + ringmx][6]->Fill(tmphoang, (nomHOSig)*abshoang);
846 sig_eta_evt[netamx + tmpxet][6]->Fill(tmphoang, (nomHOSig)*abshoang);
848 variab[iring2 + ringmx][6]->Fill(tmphoang);
849 mu_projection[6]->Fill(ieta, iphi);
852 ncount[iring2][16]++;
853 sigvsevt[iring2 + ringmx][7]->Fill(fabs(trkmm), nomHOSig);
854 sig_eta_evt[netamx + tmpxet][7]->Fill(fabs(trkmm), nomHOSig);
856 variab[iring2 + ringmx][7]->Fill(fabs(trkmm));
857 mu_projection[7]->Fill(ieta, iphi);
861 ncount[iring2][17]++;
862 sigvsevt[iring2 + ringmx][8]->Fill(nmuon, nomHOSig);
863 sig_eta_evt[netamx + tmpxet][8]->Fill(nmuon, nomHOSig);
865 variab[iring2 + ringmx][8]->Fill(nmuon);
866 mu_projection[8]->Fill(ieta, iphi);
870 ncount[iring2][18]++;
871 sigvsevt[iring2 + ringmx][9]->Fill(caloen[0], nomHOSig);
872 sig_eta_evt[netamx + tmpxet][9]->Fill(caloen[0], nomHOSig);
874 variab[iring2 + ringmx][9]->Fill(caloen[0]);
875 mu_projection[9]->Fill(ieta, iphi);
879 ncount[iring2][19]++;
880 sigvsevt[iring2 + ringmx][10]->Fill(tkpt03, nomHOSig);
881 sig_eta_evt[netamx + tmpxet][10]->Fill(tkpt03, nomHOSig);
883 variab[iring2 + ringmx][10]->Fill(tkpt03);
884 mu_projection[10]->Fill(ieta, iphi);
888 ncount[iring2][20]++;
889 sigvsevt[iring2 + ringmx][11]->Fill(hodx, nomHOSig);
890 sig_eta_evt[netamx + tmpxet][11]->Fill(hodx, nomHOSig);
892 variab[iring2 + ringmx][11]->Fill(hodx);
893 mu_projection[11]->Fill(ieta, iphi);
897 ncount[iring2][21]++;
898 sigvsevt[iring2 + ringmx][12]->Fill(hody, nomHOSig);
899 sig_eta_evt[netamx + tmpxet][12]->Fill(hody, nomHOSig);
901 variab[iring2 + ringmx][12]->Fill(hody);
902 mu_projection[12]->Fill(ieta, iphi);
907 ncount[iring2][22]++;
908 sigvsevt[iring2 + ringmx][13]->Fill(htime, nomHOSig);
909 sig_eta_evt[tmpxet + ringmx][13]->Fill(htime, nomHOSig);
911 variab[iring2 + ringmx][13]->Fill(htime);
912 mu_projection[13]->Fill(ieta, iphi);
916 ncount[iring2][23]++;
917 mu_projection[14]->Fill(ieta, iphi);
934 sigvsevt[iring2 + 2 * ringmx][0]->Fill(
abs(
ndof), nomHOSig);
935 sigvsevt[iring2 + 2 * ringmx][1]->Fill(chisq, nomHOSig);
936 sigvsevt[iring2 + 2 * ringmx][2]->Fill(trkth, nomHOSig);
937 sigvsevt[iring2 + 2 * ringmx][3]->Fill(trkph, nomHOSig);
938 sigvsevt[iring2 + 2 * ringmx][4]->Fill(1000 * therr, nomHOSig);
939 sigvsevt[iring2 + 2 * ringmx][5]->Fill(1000 * pherr, nomHOSig);
940 if (abshoang > 0.01) {
941 sigvsevt[iring2 + 2 * ringmx][6]->Fill(tmphoang, (nomHOSig)*abshoang);
943 sigvsevt[iring2 + 2 * ringmx][7]->Fill(fabs(trkmm), nomHOSig);
944 sigvsevt[iring2 + 2 * ringmx][8]->Fill(nmuon, nomHOSig);
946 sigvsevt[iring2 + 2 * ringmx][9]->Fill(caloen[0], nomHOSig);
947 sigvsevt[iring2 + 2 * ringmx][10]->Fill(tkpt03, nomHOSig);
948 sigvsevt[iring2 + 2 * ringmx][11]->Fill(hodx, nomHOSig);
949 sigvsevt[iring2 + 2 * ringmx][12]->Fill(hody, nomHOSig);
950 sigvsevt[iring2 + 2 * ringmx][13]->Fill(htime, nomHOSig);
952 sig_eta_evt[2 * netamx + tmpxet][0]->Fill(
abs(
ndof), nomHOSig);
953 sig_eta_evt[2 * netamx + tmpxet][1]->Fill(chisq, nomHOSig);
954 sig_eta_evt[2 * netamx + tmpxet][2]->Fill(trkth, nomHOSig);
955 sig_eta_evt[2 * netamx + tmpxet][3]->Fill(trkph, nomHOSig);
956 sig_eta_evt[2 * netamx + tmpxet][4]->Fill(1000 * therr, nomHOSig);
957 sig_eta_evt[2 * netamx + tmpxet][5]->Fill(1000 * pherr, nomHOSig);
958 if (abshoang > 0.01) {
959 sig_eta_evt[2 * netamx + tmpxet][6]->Fill(tmphoang, (nomHOSig)*abshoang);
961 sig_eta_evt[2 * netamx + tmpxet][7]->Fill(fabs(trkmm), nomHOSig);
962 sig_eta_evt[2 * netamx + tmpxet][8]->Fill(nmuon, nomHOSig);
964 sig_eta_evt[2 * netamx + tmpxet][9]->Fill(caloen[0], nomHOSig);
965 sig_eta_evt[2 * netamx + tmpxet][10]->Fill(tkpt03, nomHOSig);
966 sig_eta_evt[2 * netamx + tmpxet][11]->Fill(hodx, nomHOSig);
967 sig_eta_evt[2 * netamx + tmpxet][12]->Fill(hody, nomHOSig);
968 sig_eta_evt[2 * netamx + tmpxet][13]->Fill(htime, nomHOSig);
971 variab[iring2 + 2 * ringmx][0]->Fill(
abs(
ndof));
972 variab[iring2 + 2 * ringmx][1]->Fill(chisq);
973 variab[iring2 + 2 * ringmx][2]->Fill(trkth);
974 variab[iring2 + 2 * ringmx][3]->Fill(trkph);
975 variab[iring2 + 2 * ringmx][4]->Fill(1000 * therr);
976 variab[iring2 + 2 * ringmx][5]->Fill(1000 * pherr);
977 variab[iring2 + 2 * ringmx][6]->Fill(tmphoang);
978 variab[iring2 + 2 * ringmx][7]->Fill(fabs(trkmm));
979 variab[iring2 + 2 * ringmx][8]->Fill(nmuon);
981 variab[iring2 + 2 * ringmx][9]->Fill(caloen[0]);
982 variab[iring2 + 2 * ringmx][10]->Fill(tkpt03);
983 variab[iring2 + 2 * ringmx][11]->Fill(hodx);
984 variab[iring2 + 2 * ringmx][12]->Fill(hody);
985 variab[iring2 + 2 * ringmx][13]->Fill(htime);
989 muonth->Fill(trkth * 180 / pival);
990 muonph->Fill(trkph * 180 / pival);
993 int iselect = (ipsall == mypow_2[ncut] - 1) ? 1 : 0;
997 sel_muonnm->Fill(nmuon);
998 sel_muonmm->Fill(trkmm);
999 sel_muonth->Fill(trkth * 180 / pival);
1000 sel_muonph->Fill(trkph * 180 / pival);
1001 sel_muonch->Fill(chisq);
1002 if (m_histFill && tmpxet >= 0 && tmpxet < netamx && iphi >= 0 && iphi < nphimx) {
1003 ho_indenergy[tmpxet][iphi - 1]->Fill(nomHOSig);
static const std::string kSharedResource
Log< level::Info, true > LogVerbatim
EventNumber_t event() const
T getUntrackedParameter(std::string const &, T const &) const
static std::vector< std::string > checklist log
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
HOCalibAnalyzer(const edm::ParameterSet &)
Sin< T >::type sin(const T &t)
edm::LuminosityBlockNumber_t luminosityBlock() const
T * make(const Args &...args) const
make new ROOT object
void analyze(const edm::Event &, const edm::EventSetup &) override
edm::InputTag hoCalibVariableCollectionTag
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
if(conf_.getParameter< bool >("UseStripCablingDB"))
Abs< T >::type abs(const T &t)
int invert_HOieta(int ieta)
T getParameter(std::string const &) const
edm::EDGetTokenT< HORecHitCollection > tok_allho_
edm::EDGetTokenT< HOCalibVariableCollection > tok_ho_
~HOCalibAnalyzer() override
Power< A, B >::type pow(const A &a, const B &b)