18 m_h3_w=
new TH3F(
"h3_w",
"; #it{#eta}; #it{phi}; Sampling",100,-5,5,64,-TMath::Pi(),TMath::Pi(),24,-0.5,23.5);
19 m_h3_eta=
new TH3F(
"h3_eta",
"; #it{#eta}; #it{phi}; Sampling",100,-5,5,64,-TMath::Pi(),TMath::Pi(),24,-0.5,23.5);
20 m_h3_phi=
new TH3F(
"h3_phi",
"; #it{#eta}; #it{phi}; Sampling",100,-5,5,64,-TMath::Pi(),TMath::Pi(),24,-0.5,23.5);
21 m_h3_R=
new TH3F(
"h3_R",
"; #it{#eta}; #it{phi}; Sampling",100,-5,5,64,-TMath::Pi(),TMath::Pi(),24,-0.5,23.5);
22 m_h1_events=
new TH1F(
"h1_events",
"; Processed Events",1,0,1);
29 return StatusCode::SUCCESS;
38 return(StatusCode::FAILURE);
45 return(StatusCode::FAILURE);
52 for(
auto towerItr : *navInColl)
58 towerItr->fillToken(cellToken,
double(1.));
59 if ( cellToken.
size() == 0 )
continue;
61 cellItr != cellToken.
end(); ++cellItr )
64 int layer = (*cellItr)->caloDDE()->getSampling();
65 double cell_x=(*cellItr)->caloDDE()->x();
66 double cell_y=(*cellItr)->caloDDE()->y();
67 double cell_z=(*cellItr)->caloDDE()->z();
68 double cell_r2=cell_x*cell_x+cell_y*cell_y+cell_z*cell_z;
69 float deta=(*cellItr)->caloDDE()->deta();
70 float dphi=(*cellItr)->caloDDE()->dphi();
71 float area= std::abs(deta*dphi)*geoWeight;
72 m_h3_w->Fill(towerItr->eta(),towerItr->phi(),layer,
area);
73 m_h3_eta->Fill(towerItr->eta(),towerItr->phi(),layer,
area*(*cellItr)->eta());
74 m_h3_phi->Fill(towerItr->eta(),towerItr->phi(),layer,
area*(*cellItr)->phi());
75 m_h3_R->Fill(towerItr->eta(),towerItr->phi(),layer,
area*
area*cell_r2);
79 return StatusCode::SUCCESS;