#include <Histograms.h>
Public Member Functions | |
virtual void | Clear () |
void | Fill (const CLHEP::HepLorentzVector &momentum, const double &weight=1.) |
void | Fill (const reco::Particle::LorentzVector &p4, const double &weight=1.) |
HPartVSPhi (const TString &name) | |
virtual void | Write () |
~HPartVSPhi () | |
Public Attributes | |
TH2F * | hMassVSPhi_ |
TProfile * | hMassVSPhi_prof_ |
TH2F * | hPtVSPhi_ |
TProfile * | hPtVSPhi_prof_ |
Definition at line 600 of file Histograms.h.
HPartVSPhi::HPartVSPhi | ( | const TString & | name | ) | [inline] |
Definition at line 603 of file Histograms.h.
References hMassVSPhi_prof_, hPtVSPhi_prof_, mergeVDriftHistosByStation::name, and Histograms::name_.
{ name_ = name; // hPtVSPhi_ = new TH2F (name+"_PtVSPhi", "transverse momentum vs phi angle", // 12, -3.2, 3.2, 200, 0, 200); // hMassVSPhi_ = new TH2F (name+"_MassVSPhi", "mass vs phi angle", // 7, -3.2, 3.2, 40, 70, 110); // hMassVSPhiF_ = new TH2F (name+"_MassVSPhiF", "mass vs phi F", // 7, -3.2, 3.2, 40, 70, 110); // hMassVSPhiWp2_ = new TH2F (name+"_MassVSPhiWp2", "mass vs phi Wp2", // 7, -3.2, 3.2, 40, 70, 110); // hMassVSPhiWp1_ = new TH2F (name+"_MassVSPhiWp1", "mass vs phi Wp1", // 7, -3.2, 3.2, 40, 70, 110); // hMassVSPhiW0_ = new TH2F (name+"_MassVSPhiW0", "mass vs phi W0", // 7, -3.2, 3.2, 40, 70, 110); // hMassVSPhiWm1_ = new TH2F (name+"_MassVSPhiWm1", "mass vs phi Wm1", // 7, -3.2, 3.2, 40, 70, 110); // hMassVSPhiWm2_ = new TH2F (name+"_MassVSPhiWm2", "mass vs phi Wm2", // 7, -3.2, 3.2, 40, 70, 110); // hMassVSPhiB_ = new TH2F (name+"_MassVSPhiB", "mass vs phi B", // 7, -3.2, 3.2, 40, 70, 110); // TD profile histograms hMassVSPhi_prof_ = new TProfile (name+"_MassVSPhi_prof", "mass vs phi angle", 16, -3.2, 3.2, 70, 110); hPtVSPhi_prof_ = new TProfile (name+"_PtVSPhi_prof", "pt vs phi angle", 16, -3.2, 3.2, 0, 200); }
HPartVSPhi::~HPartVSPhi | ( | ) | [inline] |
Definition at line 631 of file Histograms.h.
References hMassVSPhi_, hMassVSPhi_prof_, hPtVSPhi_, and hPtVSPhi_prof_.
{ delete hPtVSPhi_; delete hMassVSPhi_; delete hMassVSPhi_prof_; delete hPtVSPhi_prof_; // delete hMassVSPhiB_; // delete hMassVSPhiWm2_; // delete hMassVSPhiWm1_; // delete hMassVSPhiW0_; // delete hMassVSPhiWp1_; // delete hMassVSPhiWp2_; // delete hMassVSPhiF_; }
virtual void HPartVSPhi::Clear | ( | ) | [inline, virtual] |
Implements Histograms.
Definition at line 713 of file Histograms.h.
References hMassVSPhi_, hMassVSPhi_prof_, hPtVSPhi_, and hPtVSPhi_prof_.
{ hPtVSPhi_->Clear(); hMassVSPhi_->Clear(); hPtVSPhi_prof_->Clear(); hMassVSPhi_prof_->Clear(); // hMassVSPhiB_->Clear(); // hMassVSPhiWm2_->Clear(); // hMassVSPhiWm1_->Clear(); // hMassVSPhiW0_->Clear(); // hMassVSPhiWp1_->Clear(); // hMassVSPhiWp2_->Clear(); // hMassVSPhiF_->Clear(); }
void HPartVSPhi::Fill | ( | const CLHEP::HepLorentzVector & | momentum, |
const double & | weight = 1. |
||
) | [inline, virtual] |
Reimplemented from Histograms.
Definition at line 650 of file Histograms.h.
References hMassVSPhi_, hMassVSPhi_prof_, hPtVSPhi_, hPtVSPhi_prof_, and CommonMethods::weight().
{ hPtVSPhi_->Fill(momentum.phi(),momentum.perp(), weight); hMassVSPhi_->Fill(momentum.phi(),momentum.m(), weight); hMassVSPhi_prof_->Fill(momentum.phi(),momentum.m(), weight); hPtVSPhi_prof_->Fill(momentum.phi(),momentum.perp(), weight); // if (momentum.eta()<-1.2) hMassVSPhiB_->Fill(momentum.phi(),momentum.m(), weight); // else if (momentum.eta()<-0.8 && momentum.eta()>-1.2) hMassVSPhiWm2_->Fill(momentum.phi(),momentum.m(), weight); // else if (momentum.eta()<-0.3 && momentum.eta()>-0.8) hMassVSPhiWm1_->Fill(momentum.phi(),momentum.m(), weight); // else if ((fabs(momentum.eta())) < 0.3) hMassVSPhiW0_->Fill(momentum.phi(),momentum.m(), weight); // else if (momentum.eta()>0.3 && momentum.eta()<0.8) hMassVSPhiWp1_->Fill(momentum.phi(),momentum.m(), weight); // else if (momentum.eta()>0.8 && momentum.eta()<1.2) hMassVSPhiWp2_->Fill(momentum.phi(),momentum.m(), weight); // else if (momentum.eta()>1.2) hMassVSPhiF_->Fill(momentum.phi(),momentum.m(), weight); }
void HPartVSPhi::Fill | ( | const reco::Particle::LorentzVector & | p4, |
const double & | weight = 1. |
||
) | [inline, virtual] |
Reimplemented from Histograms.
Definition at line 646 of file Histograms.h.
References CommonMethods::weight().
virtual void HPartVSPhi::Write | ( | ) | [inline, virtual] |
Implements Histograms.
Definition at line 665 of file Histograms.h.
References hMassVSPhi_, hMassVSPhi_prof_, hPtVSPhi_, and hPtVSPhi_prof_.
{ hPtVSPhi_->Write(); hMassVSPhi_->Write(); hMassVSPhi_prof_->Write(); hPtVSPhi_prof_->Write(); // hMassVSPhiB_->Write(); // hMassVSPhiWm2_->Write(); // hMassVSPhiWm1_->Write(); // hMassVSPhiW0_->Write(); // hMassVSPhiWp1_->Write(); // hMassVSPhiWp2_->Write(); // hMassVSPhiF_->Write(); // std::vector<TGraphErrors*> graphs ((MuScleFitUtils::fitMass(hMassVSPhi_))); // for(std::vector<TGraphErrors*>::const_iterator graph = graphs.begin(); graph != graphs.end(); graph++){ // (*graph)->Write(); // } // std::vector<TGraphErrors*> graphsB ((MuScleFitUtils::fitMass(hMassVSPhiB_))); // for(std::vector<TGraphErrors*>::const_iterator graph = graphsB.begin(); graph != graphsB.end(); graph++){ // (*graph)->Write(); // } // std::vector<TGraphErrors*> graphsWm2 ((MuScleFitUtils::fitMass(hMassVSPhiWm2_))); // for(std::vector<TGraphErrors*>::const_iterator graph = graphsWm2.begin(); graph != graphsWm2.end(); graph++){ // (*graph)->Write(); // } // std::vector<TGraphErrors*> graphsWm1 ((MuScleFitUtils::fitMass(hMassVSPhiWm1_))); // for(std::vector<TGraphErrors*>::const_iterator graph = graphsWm1.begin(); graph != graphsWm1.end(); graph++){ // (*graph)->Write(); // } // std::vector<TGraphErrors*> graphsW0 ((MuScleFitUtils::fitMass(hMassVSPhiW0_))); // for(std::vector<TGraphErrors*>::const_iterator graph = graphsW0.begin(); graph != graphsW0.end(); graph++){ // (*graph)->Write(); // } // std::vector<TGraphErrors*> graphsWp1 ((MuScleFitUtils::fitMass(hMassVSPhiWp1_))); // for(std::vector<TGraphErrors*>::const_iterator graph = graphsWp1.begin(); graph != graphsWp1.end(); graph++){ // (*graph)->Write(); // } // std::vector<TGraphErrors*> graphsWp2 ((MuScleFitUtils::fitMass(hMassVSPhiWp2_))); // for(std::vector<TGraphErrors*>::const_iterator graph = graphsWp2.begin(); graph != graphsWp2.end(); graph++){ // (*graph)->Write(); // } // std::vector<TGraphErrors*> graphsF ((MuScleFitUtils::fitMass(hMassVSPhiF_))); // for(std::vector<TGraphErrors*>::const_iterator graph = graphsF.begin(); graph != graphsF.end(); graph++){ // (*graph)->Write(); // } }
TH2F* HPartVSPhi::hMassVSPhi_ |
Definition at line 730 of file Histograms.h.
Referenced by Clear(), Fill(), Write(), and ~HPartVSPhi().
TProfile* HPartVSPhi::hMassVSPhi_prof_ |
Definition at line 731 of file Histograms.h.
Referenced by Clear(), Fill(), HPartVSPhi(), Write(), and ~HPartVSPhi().
TH2F* HPartVSPhi::hPtVSPhi_ |
Definition at line 729 of file Histograms.h.
Referenced by Clear(), Fill(), Write(), and ~HPartVSPhi().
TProfile* HPartVSPhi::hPtVSPhi_prof_ |
Definition at line 732 of file Histograms.h.
Referenced by Clear(), Fill(), HPartVSPhi(), Write(), and ~HPartVSPhi().