CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
HPartVSPhi Class Reference

#include <Histograms.h>

Inheritance diagram for HPartVSPhi:
Histograms

Public Member Functions

virtual void Clear ()
 
void Fill (const reco::Particle::LorentzVector &p4, const double &weight=1.)
 
void Fill (const CLHEP::HepLorentzVector &momentum, const double &weight=1.)
 
 HPartVSPhi (const TString &name)
 
virtual void Write ()
 
 ~HPartVSPhi ()
 
- Public Member Functions inherited from Histograms
virtual void Fill (const reco::Particle::LorentzVector &p1, const reco::Particle::LorentzVector &p2)
 
virtual void Fill (const reco::Particle::LorentzVector &p1, const reco::Particle::LorentzVector &p2, const int charge, const double &weight=1.)
 
virtual void Fill (const CLHEP::HepLorentzVector &momentum1, const CLHEP::HepLorentzVector &momentum2)
 
virtual void Fill (const CLHEP::HepLorentzVector &momentum1, const CLHEP::HepLorentzVector &momentum2, const int charge, const double &weight=1.)
 
virtual void Fill (const CLHEP::HepLorentzVector &p1, const reco::Particle::LorentzVector &p2)
 
virtual void Fill (const reco::Particle::LorentzVector &p4, const int charge, const double &weight=1.)
 
virtual void Fill (const CLHEP::HepLorentzVector &momentum, const int charge, const double &weight=1.)
 
virtual void Fill (const reco::Particle::LorentzVector &p4, const double &resValue, const int charge)
 
virtual void Fill (const reco::Particle::LorentzVector &p4, const double &genValue, const double recValue, const int charge)
 
virtual void Fill (const unsigned int number)
 
virtual void Fill (const reco::Particle::LorentzVector &recoP1, const int charge1, const reco::Particle::LorentzVector &genP1, const reco::Particle::LorentzVector &recoP2, const int charge2, const reco::Particle::LorentzVector &genP2, const double &recoMass, const double &genMass)
 
virtual void Fill (const reco::Particle::LorentzVector &recoP1, const int charge1, const reco::Particle::LorentzVector &recoP2, const int charge2, const double &recoMass, const double &genMass)
 
virtual void Fill (const reco::Particle::LorentzVector &recoP1, const reco::Particle::LorentzVector &genP1, const reco::Particle::LorentzVector &recoP2, const reco::Particle::LorentzVector &genP2)
 
virtual void Fill (const double &x, const double &y)
 
virtual void Fill (const double &x, const double &y, const double &a, const double &b)
 
virtual void Fill (const reco::Particle::LorentzVector &p41, const reco::Particle::LorentzVector &p42, const reco::Particle::LorentzVector &p4Res, const double &weight=1.)
 
virtual void Fill (const CLHEP::HepLorentzVector &momentum1, const CLHEP::HepLorentzVector &momentum2, const CLHEP::HepLorentzVector &momentumRes, const double &weight=1.)
 
virtual double Get (const reco::Particle::LorentzVector &recoP1, const TString &covarianceName)
 
virtual TString GetName ()
 
 Histograms ()
 
 Histograms (const TString &name)
 
 Histograms (TFile *outputFile, const TString &name)
 
virtual void SetWeight (double weight)
 
virtual ~Histograms ()
 

Public Attributes

TH2F * hMassVSPhi_
 
TProfile * hMassVSPhi_prof_
 
TH2F * hPtVSPhi_
 
TProfile * hPtVSPhi_prof_
 

Additional Inherited Members

- Protected Attributes inherited from Histograms
TDirectory * histoDir_
 
TString name_
 
TFile * outputFile_
 
double theWeight_
 

Detailed Description

Definition at line 598 of file Histograms.h.

Constructor & Destructor Documentation

HPartVSPhi::HPartVSPhi ( const TString &  name)
inline

Definition at line 601 of file Histograms.h.

References hMassVSPhi_prof_, hPtVSPhi_prof_, mergeVDriftHistosByStation::name, and Histograms::name_.

601  {
602  name_ = name;
603 // hPtVSPhi_ = new TH2F (name+"_PtVSPhi", "transverse momentum vs phi angle",
604 // 12, -3.2, 3.2, 200, 0, 200);
605 // hMassVSPhi_ = new TH2F (name+"_MassVSPhi", "mass vs phi angle",
606 // 7, -3.2, 3.2, 40, 70, 110);
607 // hMassVSPhiF_ = new TH2F (name+"_MassVSPhiF", "mass vs phi F",
608 // 7, -3.2, 3.2, 40, 70, 110);
609 // hMassVSPhiWp2_ = new TH2F (name+"_MassVSPhiWp2", "mass vs phi Wp2",
610 // 7, -3.2, 3.2, 40, 70, 110);
611 // hMassVSPhiWp1_ = new TH2F (name+"_MassVSPhiWp1", "mass vs phi Wp1",
612 // 7, -3.2, 3.2, 40, 70, 110);
613 // hMassVSPhiW0_ = new TH2F (name+"_MassVSPhiW0", "mass vs phi W0",
614 // 7, -3.2, 3.2, 40, 70, 110);
615 // hMassVSPhiWm1_ = new TH2F (name+"_MassVSPhiWm1", "mass vs phi Wm1",
616 // 7, -3.2, 3.2, 40, 70, 110);
617 // hMassVSPhiWm2_ = new TH2F (name+"_MassVSPhiWm2", "mass vs phi Wm2",
618 // 7, -3.2, 3.2, 40, 70, 110);
619 // hMassVSPhiB_ = new TH2F (name+"_MassVSPhiB", "mass vs phi B",
620 // 7, -3.2, 3.2, 40, 70, 110);
621 
622  // TD profile histograms
623  hMassVSPhi_prof_ = new TProfile (name+"_MassVSPhi_prof", "mass vs phi angle",
624  16, -3.2, 3.2, 70, 110);
625  hPtVSPhi_prof_ = new TProfile (name+"_PtVSPhi_prof", "pt vs phi angle",
626  16, -3.2, 3.2, 0, 200);
627  }
TProfile * hMassVSPhi_prof_
Definition: Histograms.h:729
TProfile * hPtVSPhi_prof_
Definition: Histograms.h:730
TString name_
Definition: Histograms.h:121
HPartVSPhi::~HPartVSPhi ( )
inline

Definition at line 629 of file Histograms.h.

References hMassVSPhi_, hMassVSPhi_prof_, hPtVSPhi_, and hPtVSPhi_prof_.

629  {
630  delete hPtVSPhi_;
631  delete hMassVSPhi_;
632  delete hMassVSPhi_prof_;
633  delete hPtVSPhi_prof_;
634 
635  // delete hMassVSPhiB_;
636 // delete hMassVSPhiWm2_;
637 // delete hMassVSPhiWm1_;
638 // delete hMassVSPhiW0_;
639 // delete hMassVSPhiWp1_;
640 // delete hMassVSPhiWp2_;
641 // delete hMassVSPhiF_;
642  }
TProfile * hMassVSPhi_prof_
Definition: Histograms.h:729
TH2F * hPtVSPhi_
Definition: Histograms.h:727
TProfile * hPtVSPhi_prof_
Definition: Histograms.h:730
TH2F * hMassVSPhi_
Definition: Histograms.h:728

Member Function Documentation

virtual void HPartVSPhi::Clear ( )
inlinevirtual

Implements Histograms.

Definition at line 711 of file Histograms.h.

References hMassVSPhi_, hMassVSPhi_prof_, hPtVSPhi_, and hPtVSPhi_prof_.

711  {
712  hPtVSPhi_->Clear();
713  hMassVSPhi_->Clear();
714  hPtVSPhi_prof_->Clear();
715  hMassVSPhi_prof_->Clear();
716 
717 // hMassVSPhiB_->Clear();
718 // hMassVSPhiWm2_->Clear();
719 // hMassVSPhiWm1_->Clear();
720 // hMassVSPhiW0_->Clear();
721 // hMassVSPhiWp1_->Clear();
722 // hMassVSPhiWp2_->Clear();
723 // hMassVSPhiF_->Clear();
724  }
TProfile * hMassVSPhi_prof_
Definition: Histograms.h:729
TH2F * hPtVSPhi_
Definition: Histograms.h:727
TProfile * hPtVSPhi_prof_
Definition: Histograms.h:730
TH2F * hMassVSPhi_
Definition: Histograms.h:728
void HPartVSPhi::Fill ( const reco::Particle::LorentzVector p4,
const double &  weight = 1. 
)
inlinevirtual

Reimplemented from Histograms.

Definition at line 644 of file Histograms.h.

References histoStyle::weight.

644  {
645  Fill(CLHEP::HepLorentzVector(p4.x(),p4.y(),p4.z(),p4.t()), weight);
646  }
double p4[4]
Definition: TauolaWrapper.h:92
void Fill(const reco::Particle::LorentzVector &p4, const double &weight=1.)
Definition: Histograms.h:644
int weight
Definition: histoStyle.py:50
void HPartVSPhi::Fill ( const CLHEP::HepLorentzVector &  momentum,
const double &  weight = 1. 
)
inlinevirtual

Reimplemented from Histograms.

Definition at line 648 of file Histograms.h.

References hMassVSPhi_, hMassVSPhi_prof_, hPtVSPhi_, hPtVSPhi_prof_, and histoStyle::weight.

648  {
649  hPtVSPhi_->Fill(momentum.phi(),momentum.perp(), weight);
650  hMassVSPhi_->Fill(momentum.phi(),momentum.m(), weight);
651  hMassVSPhi_prof_->Fill(momentum.phi(),momentum.m(), weight);
652  hPtVSPhi_prof_->Fill(momentum.phi(),momentum.perp(), weight);
653 
654 // if (momentum.eta()<-1.2) hMassVSPhiB_->Fill(momentum.phi(),momentum.m(), weight);
655 // else if (momentum.eta()<-0.8 && momentum.eta()>-1.2) hMassVSPhiWm2_->Fill(momentum.phi(),momentum.m(), weight);
656 // else if (momentum.eta()<-0.3 && momentum.eta()>-0.8) hMassVSPhiWm1_->Fill(momentum.phi(),momentum.m(), weight);
657 // else if ((fabs(momentum.eta())) < 0.3) hMassVSPhiW0_->Fill(momentum.phi(),momentum.m(), weight);
658 // else if (momentum.eta()>0.3 && momentum.eta()<0.8) hMassVSPhiWp1_->Fill(momentum.phi(),momentum.m(), weight);
659 // else if (momentum.eta()>0.8 && momentum.eta()<1.2) hMassVSPhiWp2_->Fill(momentum.phi(),momentum.m(), weight);
660 // else if (momentum.eta()>1.2) hMassVSPhiF_->Fill(momentum.phi(),momentum.m(), weight);
661  }
TProfile * hMassVSPhi_prof_
Definition: Histograms.h:729
TH2F * hPtVSPhi_
Definition: Histograms.h:727
TProfile * hPtVSPhi_prof_
Definition: Histograms.h:730
TH2F * hMassVSPhi_
Definition: Histograms.h:728
int weight
Definition: histoStyle.py:50
virtual void HPartVSPhi::Write ( )
inlinevirtual

Implements Histograms.

Definition at line 663 of file Histograms.h.

References hMassVSPhi_, hMassVSPhi_prof_, hPtVSPhi_, and hPtVSPhi_prof_.

663  {
664  hPtVSPhi_->Write();
665  hMassVSPhi_->Write();
666  hMassVSPhi_prof_->Write();
667  hPtVSPhi_prof_->Write();
668 
669  // hMassVSPhiB_->Write();
670 // hMassVSPhiWm2_->Write();
671 // hMassVSPhiWm1_->Write();
672 // hMassVSPhiW0_->Write();
673 // hMassVSPhiWp1_->Write();
674 // hMassVSPhiWp2_->Write();
675 // hMassVSPhiF_->Write();
676 
677 // std::vector<TGraphErrors*> graphs ((MuScleFitUtils::fitMass(hMassVSPhi_)));
678 // for(std::vector<TGraphErrors*>::const_iterator graph = graphs.begin(); graph != graphs.end(); graph++){
679 // (*graph)->Write();
680 // }
681 // std::vector<TGraphErrors*> graphsB ((MuScleFitUtils::fitMass(hMassVSPhiB_)));
682 // for(std::vector<TGraphErrors*>::const_iterator graph = graphsB.begin(); graph != graphsB.end(); graph++){
683 // (*graph)->Write();
684 // }
685 // std::vector<TGraphErrors*> graphsWm2 ((MuScleFitUtils::fitMass(hMassVSPhiWm2_)));
686 // for(std::vector<TGraphErrors*>::const_iterator graph = graphsWm2.begin(); graph != graphsWm2.end(); graph++){
687 // (*graph)->Write();
688 // }
689 // std::vector<TGraphErrors*> graphsWm1 ((MuScleFitUtils::fitMass(hMassVSPhiWm1_)));
690 // for(std::vector<TGraphErrors*>::const_iterator graph = graphsWm1.begin(); graph != graphsWm1.end(); graph++){
691 // (*graph)->Write();
692 // }
693 // std::vector<TGraphErrors*> graphsW0 ((MuScleFitUtils::fitMass(hMassVSPhiW0_)));
694 // for(std::vector<TGraphErrors*>::const_iterator graph = graphsW0.begin(); graph != graphsW0.end(); graph++){
695 // (*graph)->Write();
696 // }
697 // std::vector<TGraphErrors*> graphsWp1 ((MuScleFitUtils::fitMass(hMassVSPhiWp1_)));
698 // for(std::vector<TGraphErrors*>::const_iterator graph = graphsWp1.begin(); graph != graphsWp1.end(); graph++){
699 // (*graph)->Write();
700 // }
701 // std::vector<TGraphErrors*> graphsWp2 ((MuScleFitUtils::fitMass(hMassVSPhiWp2_)));
702 // for(std::vector<TGraphErrors*>::const_iterator graph = graphsWp2.begin(); graph != graphsWp2.end(); graph++){
703 // (*graph)->Write();
704 // }
705 // std::vector<TGraphErrors*> graphsF ((MuScleFitUtils::fitMass(hMassVSPhiF_)));
706 // for(std::vector<TGraphErrors*>::const_iterator graph = graphsF.begin(); graph != graphsF.end(); graph++){
707 // (*graph)->Write();
708 // }
709  }
TProfile * hMassVSPhi_prof_
Definition: Histograms.h:729
TH2F * hPtVSPhi_
Definition: Histograms.h:727
TProfile * hPtVSPhi_prof_
Definition: Histograms.h:730
TH2F * hMassVSPhi_
Definition: Histograms.h:728

Member Data Documentation

TH2F* HPartVSPhi::hMassVSPhi_

Definition at line 728 of file Histograms.h.

Referenced by Clear(), Fill(), Write(), and ~HPartVSPhi().

TProfile* HPartVSPhi::hMassVSPhi_prof_

Definition at line 729 of file Histograms.h.

Referenced by Clear(), Fill(), HPartVSPhi(), Write(), and ~HPartVSPhi().

TH2F* HPartVSPhi::hPtVSPhi_

Definition at line 727 of file Histograms.h.

Referenced by Clear(), Fill(), Write(), and ~HPartVSPhi().

TProfile* HPartVSPhi::hPtVSPhi_prof_

Definition at line 730 of file Histograms.h.

Referenced by Clear(), Fill(), HPartVSPhi(), Write(), and ~HPartVSPhi().