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 599 of file Histograms.h.

Constructor & Destructor Documentation

HPartVSPhi::HPartVSPhi ( const TString &  name)
inline

Definition at line 602 of file Histograms.h.

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

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

Definition at line 630 of file Histograms.h.

References hMassVSPhi_, hMassVSPhi_prof_, hPtVSPhi_, and hPtVSPhi_prof_.

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

Member Function Documentation

virtual void HPartVSPhi::Clear ( )
inlinevirtual

Implements Histograms.

Definition at line 712 of file Histograms.h.

References hMassVSPhi_, hMassVSPhi_prof_, hPtVSPhi_, and hPtVSPhi_prof_.

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

Reimplemented from Histograms.

Definition at line 645 of file Histograms.h.

References puppiForMET_cff::weight.

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

Reimplemented from Histograms.

Definition at line 649 of file Histograms.h.

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

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

Implements Histograms.

Definition at line 664 of file Histograms.h.

References hMassVSPhi_, hMassVSPhi_prof_, hPtVSPhi_, and hPtVSPhi_prof_.

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

Member Data Documentation

TH2F* HPartVSPhi::hMassVSPhi_

Definition at line 729 of file Histograms.h.

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

TProfile* HPartVSPhi::hMassVSPhi_prof_

Definition at line 730 of file Histograms.h.

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

TH2F* HPartVSPhi::hPtVSPhi_

Definition at line 728 of file Histograms.h.

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

TProfile* HPartVSPhi::hPtVSPhi_prof_

Definition at line 731 of file Histograms.h.

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