Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:45:18

0001 void printParameters(const TString& fileName) {
0002   TFile* file = TFile::Open(fileName, "read");
0003   TTree* tree = static_cast<TTree*>(file->Get("zMuMuMassConstraintParameterFinder/di_muon_from_Z"));
0004   tree->Draw("di_muon_mass>>htemp", "in_mass_window");
0005   TH1F* htemp = static_cast<TH1F*>(gPad->GetPrimitive("htemp"));
0006 
0007   std::cout << "\n========================================\n";
0008   std::cout << "'Z -> mu mu' mass constraint parameters:\n";
0009   std::cout << "----------------------------------------\n";
0010   std::cout << "  PrimaryMass  = " << htemp->GetMean() << "\n";
0011   std::cout << "  PrimaryWidth = " << htemp->GetRMS() << "\n";
0012   std::cout << "========================================\n";
0013 }