40 histfile_ =
new TFile(
"histos.root",
"RECREATE");
41 tree_ =
new TTree(
"TPGtree",
"TPGtree");
60 eTTmapToken_ = esConsumes<EcalTrigTowerConstituentsMap, IdealGeometryRecord>();
69 hTPvsTow_eta_ =
new TH2F(
"TP_vs_Tow_eta",
"TP vs Tow eta ; #eta(tow); #eta(tp)", 50, -2.5, 2.5, 50, -2.5, 2.5);
70 hAllTPperEvt_ =
new TH1F(
"AllTPperEvt",
"TP per Event; N_{TP}; ", 100, 0., 20000.);
71 hTPperEvt_ =
new TH1F(
"TPperEvt",
"N_{TP} per Event; N_{TP}; ", 100, 0., 500.);
72 hTP_iphiVsieta_ =
new TH2F(
"TP_iphiVsieta",
"TP i#phi vs i#eta ; i#eta(tp); i#phi(tp)", 10, 70, 80, 10, 340, 350);
74 new TH2F(
"TP_iphiVsieta_fullrange",
"TP i#phi vs i#eta ; i#eta(tp); i#phi(tp)", 200, -100, 100, 350, 0, 350);
78 new TH2F(
"TP_vs_Tow_ieta",
"TP vs Tow ieta ; i#eta(tow); i#eta(tp)", 200, -100, 100, 200, -100, 100);
80 hTPvsRechit_ =
new TH2F(
"TP_vs_RecHit",
"TP vs rechit Et;E_{T}(rh) (GeV);E_{T}(tp) (GeV)", 100, 0, 50, 100, 0, 50);
81 hDeltaEt_ =
new TH1F(
"DeltaEt",
"[Et(rh)-Et(TP)]/Et(rh); [E_{T}(rh)-E_{T}(tp)]/E_{T}(rh); Counts", 200, -1, 1);
82 hTPoverRechit_ =
new TH1F(
"TP_over_RecHit",
"Et(TP/rechit); E_{T}(tp)/E_{T}(rh); Counts", 200, 0, 2);
83 hRechitEt_ =
new TH1F(
"RecHitEt",
"E_{T};E_{T}(rh) (GeV);Counts", 100, 0, 50);
84 hTPEt_ =
new TH1F(
"TPEt",
"E_{T}{tp);E_{T}(rh) (GeV);Count", 100, 0, 50);
85 hRatioEt_ =
new TH1F(
"RatioTPoverRH",
"Et", 100, 0, 50);
88 hRH_iphiVsieta_ =
new TH2F(
"RH_iphiVsieta",
"RH i#phi vs i#eta ; i#eta(rh); i#phi(rh)", 10, 70, 80, 10, 340, 350);
90 new TH2F(
"RH_iphiVsieta_fullrange",
"RH i#phi vs i#eta ; i#eta(rh); i#phi(rh)", 200, -100, 100, 350, 0, 350);
128 for (
unsigned int i = 0;
i <
tp.product()->size();
i++) {
148 std::cout <<
" TP analyzer =================> Treating event " <<
iEvent.id() <<
" Number of TPs "
149 <<
tp.product()->size() << std::endl;
165 for (
unsigned int i = 0;
i <
tp.product()->size();
i++) {
176 float Et =
d.encodedEt() / 8.;
182 std::cout <<
" TP digi size " <<
d.size() << std::endl;
183 for (
int iBx = 0; iBx <
d.size(); iBx++) {
184 std::cout <<
" TP samples " <<
d.sample(iBx) << std::endl;
202 for (
unsigned int j = 0;
j < rechit_EB_col.
product()->
size();
j++) {
208 std::cout <<
" Analyzer same cristal " << myid1 <<
" " << TPid << std::endl;
229 std::cout <<
" TP compressed et " <<
d.encodedEt() <<
" Et in GeV " << Et <<
" RH Et " << rhEt
230 <<
" Et/rhEt " << Et / rhEt << std::endl;
249 for (
unsigned int j = 0;
j < rechit_EB_col.
product()->
size();
j++) {