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
void declareHistograms ()
 
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.)
 
void fillEventInfo (int proc, int strk, int ntrkr)
 
void fillRecHistograms (const RecTrack_t &r)
 
void fillSimHistograms (const SimTrack_t &s)
 
void fillVzeroHistograms (const RecVzero_t &r, int part)
 
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)
 
 Histograms (const edm::ParameterSet &pset)
 
virtual void SetWeight (double weight)
 
void writeHistograms ()
 
virtual ~Histograms ()
 
 ~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 600 of file Histograms.h.

Constructor & Destructor Documentation

HPartVSPhi::HPartVSPhi ( const TString &  name)
inline

Definition at line 603 of file Histograms.h.

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

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

Definition at line 631 of file Histograms.h.

References hMassVSPhi_, hMassVSPhi_prof_, hPtVSPhi_, and hPtVSPhi_prof_.

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

Member Function Documentation

virtual void HPartVSPhi::Clear ( )
inlinevirtual

Implements Histograms.

Definition at line 713 of file Histograms.h.

References hMassVSPhi_, hMassVSPhi_prof_, hPtVSPhi_, and hPtVSPhi_prof_.

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

Reimplemented from Histograms.

Definition at line 646 of file Histograms.h.

References histoStyle::weight.

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

Reimplemented from Histograms.

Definition at line 650 of file Histograms.h.

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

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

Implements Histograms.

Definition at line 665 of file Histograms.h.

References hMassVSPhi_, hMassVSPhi_prof_, hPtVSPhi_, and hPtVSPhi_prof_.

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

Member Data Documentation

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().