Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:32:09

0001 {
0002   TFile f("histos.root");
0003 
0004   TH1I *barrelHist = (TH1I*)f.Get("Barrel_energy");
0005   TH1I *barrel_fgvb = (TH1I*)f.Get("Barrel_fgvb");
0006   TH1I *barrel_ttf = (TH1I*)f.Get("Barrel_ttf");
0007   TH1I *endcapHist = (TH1I*)f.Get("Endcap_energy");
0008   TH1I *endcap_fgvb = (TH1I*)f.Get("Endcap_fgvb");
0009   TH1I *endcap_ttf = (TH1I*)f.Get("Endcap_ttf");
0010   
0011   std::cout <<std::endl;
0012   std::cout <<"[OVAL] Mean of Barrel energy histo "<<barrelHist->GetMean()<<std::endl;
0013   std::cout <<"[OVAL] Mean of barrel fgvb histo "<<barrel_fgvb->GetMean()<<std::endl;
0014   std::cout <<"[OVAL] Mean of barrel ttf histo " <<barrel_ttf->GetMean()<<std::endl;
0015   std::cout <<"[OVAL] Mean of Endcap energy histo "<<endcapHist->GetMean()<<std::endl;
0016   std::cout <<"[OVAL] Mean of Endcap fgvb histo "<<endcap_fgvb->GetMean()<<std::endl;
0017   std::cout <<"[OVAL] Mean of endcap ttf histo " <<endcap_ttf->GetMean()<<std::endl;
0018   return;
0019 }