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 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)
 
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 * hMassVSPhiB_
 
TH2F * hMassVSPhiF_
 
TH2F * hMassVSPhiW0_
 
TH2F * hMassVSPhiWm1_
 
TH2F * hMassVSPhiWm2_
 
TH2F * hMassVSPhiWp1_
 
TH2F * hMassVSPhiWp2_
 
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 495 of file Histograms.h.

Constructor & Destructor Documentation

HPartVSPhi::HPartVSPhi ( const TString &  name)
inline

Definition at line 498 of file Histograms.h.

References hMassVSPhi_, hMassVSPhi_prof_, hMassVSPhiB_, hMassVSPhiF_, hMassVSPhiW0_, hMassVSPhiWm1_, hMassVSPhiWm2_, hMassVSPhiWp1_, hMassVSPhiWp2_, hPtVSPhi_, hPtVSPhi_prof_, AlCaRecoCosmics_cfg::name, and Histograms::name_.

498  {
499  name_ = name;
500  hPtVSPhi_ = new TH2F (name+"_PtVSPhi", "transverse momentum vs phi angle",
501  12, -3.2, 3.2, 200, 0, 200);
502  hMassVSPhi_ = new TH2F (name+"_MassVSPhi", "mass vs phi angle",
503  7, -3.2, 3.2, 40, 70, 110);
504  hMassVSPhiF_ = new TH2F (name+"_MassVSPhiF", "mass vs phi F",
505  7, -3.2, 3.2, 40, 70, 110);
506  hMassVSPhiWp2_ = new TH2F (name+"_MassVSPhiWp2", "mass vs phi Wp2",
507  7, -3.2, 3.2, 40, 70, 110);
508  hMassVSPhiWp1_ = new TH2F (name+"_MassVSPhiWp1", "mass vs phi Wp1",
509  7, -3.2, 3.2, 40, 70, 110);
510  hMassVSPhiW0_ = new TH2F (name+"_MassVSPhiW0", "mass vs phi W0",
511  7, -3.2, 3.2, 40, 70, 110);
512  hMassVSPhiWm1_ = new TH2F (name+"_MassVSPhiWm1", "mass vs phi Wm1",
513  7, -3.2, 3.2, 40, 70, 110);
514  hMassVSPhiWm2_ = new TH2F (name+"_MassVSPhiWm2", "mass vs phi Wm2",
515  7, -3.2, 3.2, 40, 70, 110);
516  hMassVSPhiB_ = new TH2F (name+"_MassVSPhiB", "mass vs phi B",
517  7, -3.2, 3.2, 40, 70, 110);
518 
519  // TD profile histograms
520  hMassVSPhi_prof_ = new TProfile (name+"_MassVSPhi_prof", "mass vs phi angle",
521  12, -3.2, 3.2, 70, 110);
522  hPtVSPhi_prof_ = new TProfile (name+"_PtVSPhi_prof", "pt vs phi angle",
523  12, -3.2, 3.2, 0, 200);
524  }
TProfile * hMassVSPhi_prof_
Definition: Histograms.h:626
TH2F * hMassVSPhiWp2_
Definition: Histograms.h:634
TH2F * hPtVSPhi_
Definition: Histograms.h:624
TH2F * hMassVSPhiB_
Definition: Histograms.h:629
TH2F * hMassVSPhiWm2_
Definition: Histograms.h:630
TH2F * hMassVSPhiF_
Definition: Histograms.h:635
TH2F * hMassVSPhiWm1_
Definition: Histograms.h:631
TH2F * hMassVSPhiW0_
Definition: Histograms.h:632
TProfile * hPtVSPhi_prof_
Definition: Histograms.h:627
TString name_
Definition: Histograms.h:106
TH2F * hMassVSPhi_
Definition: Histograms.h:625
TH2F * hMassVSPhiWp1_
Definition: Histograms.h:633
HPartVSPhi::~HPartVSPhi ( )
inline

Definition at line 526 of file Histograms.h.

References hMassVSPhi_, hMassVSPhi_prof_, hMassVSPhiB_, hMassVSPhiF_, hMassVSPhiW0_, hMassVSPhiWm1_, hMassVSPhiWm2_, hMassVSPhiWp1_, hMassVSPhiWp2_, hPtVSPhi_, and hPtVSPhi_prof_.

526  {
527  delete hPtVSPhi_;
528  delete hMassVSPhi_;
529  delete hMassVSPhi_prof_;
530  delete hPtVSPhi_prof_;
531 
532  delete hMassVSPhiB_;
533  delete hMassVSPhiWm2_;
534  delete hMassVSPhiWm1_;
535  delete hMassVSPhiW0_;
536  delete hMassVSPhiWp1_;
537  delete hMassVSPhiWp2_;
538  delete hMassVSPhiF_;
539  }
TProfile * hMassVSPhi_prof_
Definition: Histograms.h:626
TH2F * hMassVSPhiWp2_
Definition: Histograms.h:634
TH2F * hPtVSPhi_
Definition: Histograms.h:624
TH2F * hMassVSPhiB_
Definition: Histograms.h:629
TH2F * hMassVSPhiWm2_
Definition: Histograms.h:630
TH2F * hMassVSPhiF_
Definition: Histograms.h:635
TH2F * hMassVSPhiWm1_
Definition: Histograms.h:631
TH2F * hMassVSPhiW0_
Definition: Histograms.h:632
TProfile * hPtVSPhi_prof_
Definition: Histograms.h:627
TH2F * hMassVSPhi_
Definition: Histograms.h:625
TH2F * hMassVSPhiWp1_
Definition: Histograms.h:633

Member Function Documentation

virtual void HPartVSPhi::Clear ( )
inlinevirtual

Implements Histograms.

Definition at line 608 of file Histograms.h.

References hMassVSPhi_, hMassVSPhi_prof_, hMassVSPhiB_, hMassVSPhiF_, hMassVSPhiW0_, hMassVSPhiWm1_, hMassVSPhiWm2_, hMassVSPhiWp1_, hMassVSPhiWp2_, hPtVSPhi_, and hPtVSPhi_prof_.

608  {
609  hPtVSPhi_->Clear();
610  hMassVSPhi_->Clear();
611  hPtVSPhi_prof_->Clear();
612  hMassVSPhi_prof_->Clear();
613 
614  hMassVSPhiB_->Clear();
615  hMassVSPhiWm2_->Clear();
616  hMassVSPhiWm1_->Clear();
617  hMassVSPhiW0_->Clear();
618  hMassVSPhiWp1_->Clear();
619  hMassVSPhiWp2_->Clear();
620  hMassVSPhiF_->Clear();
621  }
TProfile * hMassVSPhi_prof_
Definition: Histograms.h:626
TH2F * hMassVSPhiWp2_
Definition: Histograms.h:634
TH2F * hPtVSPhi_
Definition: Histograms.h:624
TH2F * hMassVSPhiB_
Definition: Histograms.h:629
TH2F * hMassVSPhiWm2_
Definition: Histograms.h:630
TH2F * hMassVSPhiF_
Definition: Histograms.h:635
TH2F * hMassVSPhiWm1_
Definition: Histograms.h:631
TH2F * hMassVSPhiW0_
Definition: Histograms.h:632
TProfile * hPtVSPhi_prof_
Definition: Histograms.h:627
TH2F * hMassVSPhi_
Definition: Histograms.h:625
TH2F * hMassVSPhiWp1_
Definition: Histograms.h:633
void HPartVSPhi::Fill ( const reco::Particle::LorentzVector p4,
const double &  weight = 1. 
)
inlinevirtual

Reimplemented from Histograms.

Definition at line 541 of file Histograms.h.

References CommonMethods::weight().

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

Reimplemented from Histograms.

Definition at line 545 of file Histograms.h.

References hMassVSPhi_, hMassVSPhi_prof_, hMassVSPhiB_, hMassVSPhiF_, hMassVSPhiW0_, hMassVSPhiWm1_, hMassVSPhiWm2_, hMassVSPhiWp1_, hMassVSPhiWp2_, hPtVSPhi_, hPtVSPhi_prof_, and CommonMethods::weight().

545  {
546  hPtVSPhi_->Fill(momentum.phi(),momentum.perp(), weight);
547  hMassVSPhi_->Fill(momentum.phi(),momentum.m(), weight);
548  hMassVSPhi_prof_->Fill(momentum.phi(),momentum.m(), weight);
549  hPtVSPhi_prof_->Fill(momentum.phi(),momentum.perp(), weight);
550 
551  if (momentum.eta()<-1.2) hMassVSPhiB_->Fill(momentum.phi(),momentum.m(), weight);
552  else if (momentum.eta()<-0.8 && momentum.eta()>-1.2) hMassVSPhiWm2_->Fill(momentum.phi(),momentum.m(), weight);
553  else if (momentum.eta()<-0.3 && momentum.eta()>-0.8) hMassVSPhiWm1_->Fill(momentum.phi(),momentum.m(), weight);
554  else if ((fabs(momentum.eta())) < 0.3) hMassVSPhiW0_->Fill(momentum.phi(),momentum.m(), weight);
555  else if (momentum.eta()>0.3 && momentum.eta()<0.8) hMassVSPhiWp1_->Fill(momentum.phi(),momentum.m(), weight);
556  else if (momentum.eta()>0.8 && momentum.eta()<1.2) hMassVSPhiWp2_->Fill(momentum.phi(),momentum.m(), weight);
557  else if (momentum.eta()>1.2) hMassVSPhiF_->Fill(momentum.phi(),momentum.m(), weight);
558  }
TProfile * hMassVSPhi_prof_
Definition: Histograms.h:626
TH2F * hMassVSPhiWp2_
Definition: Histograms.h:634
TH2F * hPtVSPhi_
Definition: Histograms.h:624
TH2F * hMassVSPhiB_
Definition: Histograms.h:629
TH2F * hMassVSPhiWm2_
Definition: Histograms.h:630
TH2F * hMassVSPhiF_
Definition: Histograms.h:635
TH2F * hMassVSPhiWm1_
Definition: Histograms.h:631
TH2F * hMassVSPhiW0_
Definition: Histograms.h:632
TProfile * hPtVSPhi_prof_
Definition: Histograms.h:627
TH2F * hMassVSPhi_
Definition: Histograms.h:625
TH2F * hMassVSPhiWp1_
Definition: Histograms.h:633
virtual void HPartVSPhi::Write ( )
inlinevirtual

Implements Histograms.

Definition at line 560 of file Histograms.h.

References hMassVSPhi_, hMassVSPhi_prof_, hMassVSPhiB_, hMassVSPhiF_, hMassVSPhiW0_, hMassVSPhiWm1_, hMassVSPhiWm2_, hMassVSPhiWp1_, hMassVSPhiWp2_, hPtVSPhi_, and hPtVSPhi_prof_.

560  {
561  hPtVSPhi_->Write();
562  hMassVSPhi_->Write();
563  hMassVSPhi_prof_->Write();
564  hPtVSPhi_prof_->Write();
565 
566  hMassVSPhiB_->Write();
567  hMassVSPhiWm2_->Write();
568  hMassVSPhiWm1_->Write();
569  hMassVSPhiW0_->Write();
570  hMassVSPhiWp1_->Write();
571  hMassVSPhiWp2_->Write();
572  hMassVSPhiF_->Write();
573 
574 // std::vector<TGraphErrors*> graphs ((MuScleFitUtils::fitMass(hMassVSPhi_)));
575 // for(std::vector<TGraphErrors*>::const_iterator graph = graphs.begin(); graph != graphs.end(); graph++){
576 // (*graph)->Write();
577 // }
578 // std::vector<TGraphErrors*> graphsB ((MuScleFitUtils::fitMass(hMassVSPhiB_)));
579 // for(std::vector<TGraphErrors*>::const_iterator graph = graphsB.begin(); graph != graphsB.end(); graph++){
580 // (*graph)->Write();
581 // }
582 // std::vector<TGraphErrors*> graphsWm2 ((MuScleFitUtils::fitMass(hMassVSPhiWm2_)));
583 // for(std::vector<TGraphErrors*>::const_iterator graph = graphsWm2.begin(); graph != graphsWm2.end(); graph++){
584 // (*graph)->Write();
585 // }
586 // std::vector<TGraphErrors*> graphsWm1 ((MuScleFitUtils::fitMass(hMassVSPhiWm1_)));
587 // for(std::vector<TGraphErrors*>::const_iterator graph = graphsWm1.begin(); graph != graphsWm1.end(); graph++){
588 // (*graph)->Write();
589 // }
590 // std::vector<TGraphErrors*> graphsW0 ((MuScleFitUtils::fitMass(hMassVSPhiW0_)));
591 // for(std::vector<TGraphErrors*>::const_iterator graph = graphsW0.begin(); graph != graphsW0.end(); graph++){
592 // (*graph)->Write();
593 // }
594 // std::vector<TGraphErrors*> graphsWp1 ((MuScleFitUtils::fitMass(hMassVSPhiWp1_)));
595 // for(std::vector<TGraphErrors*>::const_iterator graph = graphsWp1.begin(); graph != graphsWp1.end(); graph++){
596 // (*graph)->Write();
597 // }
598 // std::vector<TGraphErrors*> graphsWp2 ((MuScleFitUtils::fitMass(hMassVSPhiWp2_)));
599 // for(std::vector<TGraphErrors*>::const_iterator graph = graphsWp2.begin(); graph != graphsWp2.end(); graph++){
600 // (*graph)->Write();
601 // }
602 // std::vector<TGraphErrors*> graphsF ((MuScleFitUtils::fitMass(hMassVSPhiF_)));
603 // for(std::vector<TGraphErrors*>::const_iterator graph = graphsF.begin(); graph != graphsF.end(); graph++){
604 // (*graph)->Write();
605 // }
606  }
TProfile * hMassVSPhi_prof_
Definition: Histograms.h:626
TH2F * hMassVSPhiWp2_
Definition: Histograms.h:634
TH2F * hPtVSPhi_
Definition: Histograms.h:624
TH2F * hMassVSPhiB_
Definition: Histograms.h:629
TH2F * hMassVSPhiWm2_
Definition: Histograms.h:630
TH2F * hMassVSPhiF_
Definition: Histograms.h:635
TH2F * hMassVSPhiWm1_
Definition: Histograms.h:631
TH2F * hMassVSPhiW0_
Definition: Histograms.h:632
TProfile * hPtVSPhi_prof_
Definition: Histograms.h:627
TH2F * hMassVSPhi_
Definition: Histograms.h:625
TH2F * hMassVSPhiWp1_
Definition: Histograms.h:633

Member Data Documentation

TH2F* HPartVSPhi::hMassVSPhi_

Definition at line 625 of file Histograms.h.

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

TProfile* HPartVSPhi::hMassVSPhi_prof_

Definition at line 626 of file Histograms.h.

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

TH2F* HPartVSPhi::hMassVSPhiB_

Definition at line 629 of file Histograms.h.

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

TH2F* HPartVSPhi::hMassVSPhiF_

Definition at line 635 of file Histograms.h.

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

TH2F* HPartVSPhi::hMassVSPhiW0_

Definition at line 632 of file Histograms.h.

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

TH2F* HPartVSPhi::hMassVSPhiWm1_

Definition at line 631 of file Histograms.h.

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

TH2F* HPartVSPhi::hMassVSPhiWm2_

Definition at line 630 of file Histograms.h.

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

TH2F* HPartVSPhi::hMassVSPhiWp1_

Definition at line 633 of file Histograms.h.

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

TH2F* HPartVSPhi::hMassVSPhiWp2_

Definition at line 634 of file Histograms.h.

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

TH2F* HPartVSPhi::hPtVSPhi_

Definition at line 624 of file Histograms.h.

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

TProfile* HPartVSPhi::hPtVSPhi_prof_

Definition at line 627 of file Histograms.h.

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