CMS 3D CMS Logo

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

#include <Histograms.h>

Inherits Histograms.

Public Member Functions

void Clear () override
 
void Fill (const reco::Particle::LorentzVector &p4, const double &weight=1.) override
 
void Fill (const CLHEP::HepLorentzVector &momentum, const double &weight=1.) override
 
 HPartVSPhi (const TString &name)
 
void Write () override
 
 ~HPartVSPhi () override
 

Public Attributes

TH2F * hMassVSPhi_
 
TProfile * hMassVSPhi_prof_
 
TH2F * hPtVSPhi_
 
TProfile * hPtVSPhi_prof_
 
- Public Attributes inherited from Histograms
dqm::reco::MonitorElementlumiVsLS
 
dqm::reco::MonitorElementnumberOfPixelClustersVsLS
 
dqm::reco::MonitorElementnumberOfPixelClustersVsLumi
 
dqm::reco::MonitorElementpixelLumiVsLS
 
dqm::reco::MonitorElementpixelLumiVsLumi
 
dqm::reco::MonitorElementpuVsLS
 

Detailed Description

Definition at line 591 of file Histograms.h.

Constructor & Destructor Documentation

HPartVSPhi::HPartVSPhi ( const TString &  name)
inline

Definition at line 593 of file Histograms.h.

References hMassVSPhi_prof_, hPtVSPhi_prof_, and mergeVDriftHistosByStation::name.

593  {
594  name_ = name;
595  // hPtVSPhi_ = new TH2F (name+"_PtVSPhi", "transverse momentum vs phi angle",
596  // 12, -3.2, 3.2, 200, 0, 200);
597  // hMassVSPhi_ = new TH2F (name+"_MassVSPhi", "mass vs phi angle",
598  // 7, -3.2, 3.2, 40, 70, 110);
599  // hMassVSPhiF_ = new TH2F (name+"_MassVSPhiF", "mass vs phi F",
600  // 7, -3.2, 3.2, 40, 70, 110);
601  // hMassVSPhiWp2_ = new TH2F (name+"_MassVSPhiWp2", "mass vs phi Wp2",
602  // 7, -3.2, 3.2, 40, 70, 110);
603  // hMassVSPhiWp1_ = new TH2F (name+"_MassVSPhiWp1", "mass vs phi Wp1",
604  // 7, -3.2, 3.2, 40, 70, 110);
605  // hMassVSPhiW0_ = new TH2F (name+"_MassVSPhiW0", "mass vs phi W0",
606  // 7, -3.2, 3.2, 40, 70, 110);
607  // hMassVSPhiWm1_ = new TH2F (name+"_MassVSPhiWm1", "mass vs phi Wm1",
608  // 7, -3.2, 3.2, 40, 70, 110);
609  // hMassVSPhiWm2_ = new TH2F (name+"_MassVSPhiWm2", "mass vs phi Wm2",
610  // 7, -3.2, 3.2, 40, 70, 110);
611  // hMassVSPhiB_ = new TH2F (name+"_MassVSPhiB", "mass vs phi B",
612  // 7, -3.2, 3.2, 40, 70, 110);
613 
614  // TD profile histograms
615  hMassVSPhi_prof_ = new TProfile(name + "_MassVSPhi_prof", "mass vs phi angle", 16, -3.2, 3.2, 70, 110);
616  hPtVSPhi_prof_ = new TProfile(name + "_PtVSPhi_prof", "pt vs phi angle", 16, -3.2, 3.2, 0, 200);
617  }
TProfile * hMassVSPhi_prof_
Definition: Histograms.h:719
TProfile * hPtVSPhi_prof_
Definition: Histograms.h:720
HPartVSPhi::~HPartVSPhi ( )
inlineoverride

Definition at line 619 of file Histograms.h.

References hMassVSPhi_, hMassVSPhi_prof_, hPtVSPhi_, and hPtVSPhi_prof_.

619  {
620  delete hPtVSPhi_;
621  delete hMassVSPhi_;
622  delete hMassVSPhi_prof_;
623  delete hPtVSPhi_prof_;
624 
625  // delete hMassVSPhiB_;
626  // delete hMassVSPhiWm2_;
627  // delete hMassVSPhiWm1_;
628  // delete hMassVSPhiW0_;
629  // delete hMassVSPhiWp1_;
630  // delete hMassVSPhiWp2_;
631  // delete hMassVSPhiF_;
632  }
TProfile * hMassVSPhi_prof_
Definition: Histograms.h:719
TH2F * hPtVSPhi_
Definition: Histograms.h:717
TProfile * hPtVSPhi_prof_
Definition: Histograms.h:720
TH2F * hMassVSPhi_
Definition: Histograms.h:718

Member Function Documentation

void HPartVSPhi::Clear ( )
inlineoverride

Definition at line 701 of file Histograms.h.

References hMassVSPhi_, hMassVSPhi_prof_, hPtVSPhi_, and hPtVSPhi_prof_.

701  {
702  hPtVSPhi_->Clear();
703  hMassVSPhi_->Clear();
704  hPtVSPhi_prof_->Clear();
705  hMassVSPhi_prof_->Clear();
706 
707  // hMassVSPhiB_->Clear();
708  // hMassVSPhiWm2_->Clear();
709  // hMassVSPhiWm1_->Clear();
710  // hMassVSPhiW0_->Clear();
711  // hMassVSPhiWp1_->Clear();
712  // hMassVSPhiWp2_->Clear();
713  // hMassVSPhiF_->Clear();
714  }
TProfile * hMassVSPhi_prof_
Definition: Histograms.h:719
TH2F * hPtVSPhi_
Definition: Histograms.h:717
TProfile * hPtVSPhi_prof_
Definition: Histograms.h:720
TH2F * hMassVSPhi_
Definition: Histograms.h:718
void HPartVSPhi::Fill ( const reco::Particle::LorentzVector p4,
const double &  weight = 1. 
)
inlineoverride

Definition at line 634 of file Histograms.h.

References histoStyle::weight.

634  {
635  Fill(CLHEP::HepLorentzVector(p4.x(), p4.y(), p4.z(), p4.t()), weight);
636  }
void Fill(const reco::Particle::LorentzVector &p4, const double &weight=1.) override
Definition: Histograms.h:634
int weight
Definition: histoStyle.py:51
void HPartVSPhi::Fill ( const CLHEP::HepLorentzVector &  momentum,
const double &  weight = 1. 
)
inlineoverride

Definition at line 638 of file Histograms.h.

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

638  {
639  hPtVSPhi_->Fill(momentum.phi(), momentum.perp(), weight);
640  hMassVSPhi_->Fill(momentum.phi(), momentum.m(), weight);
641  hMassVSPhi_prof_->Fill(momentum.phi(), momentum.m(), weight);
642  hPtVSPhi_prof_->Fill(momentum.phi(), momentum.perp(), weight);
643 
644  // if (momentum.eta()<-1.2) hMassVSPhiB_->Fill(momentum.phi(),momentum.m(), weight);
645  // else if (momentum.eta()<-0.8 && momentum.eta()>-1.2) hMassVSPhiWm2_->Fill(momentum.phi(),momentum.m(), weight);
646  // else if (momentum.eta()<-0.3 && momentum.eta()>-0.8) hMassVSPhiWm1_->Fill(momentum.phi(),momentum.m(), weight);
647  // else if ((fabs(momentum.eta())) < 0.3) hMassVSPhiW0_->Fill(momentum.phi(),momentum.m(), weight);
648  // else if (momentum.eta()>0.3 && momentum.eta()<0.8) hMassVSPhiWp1_->Fill(momentum.phi(),momentum.m(), weight);
649  // else if (momentum.eta()>0.8 && momentum.eta()<1.2) hMassVSPhiWp2_->Fill(momentum.phi(),momentum.m(), weight);
650  // else if (momentum.eta()>1.2) hMassVSPhiF_->Fill(momentum.phi(),momentum.m(), weight);
651  }
TProfile * hMassVSPhi_prof_
Definition: Histograms.h:719
TH2F * hPtVSPhi_
Definition: Histograms.h:717
TProfile * hPtVSPhi_prof_
Definition: Histograms.h:720
TH2F * hMassVSPhi_
Definition: Histograms.h:718
int weight
Definition: histoStyle.py:51
void HPartVSPhi::Write ( )
inlineoverride

Definition at line 653 of file Histograms.h.

References hMassVSPhi_, hMassVSPhi_prof_, hPtVSPhi_, and hPtVSPhi_prof_.

653  {
654  hPtVSPhi_->Write();
655  hMassVSPhi_->Write();
656  hMassVSPhi_prof_->Write();
657  hPtVSPhi_prof_->Write();
658 
659  // hMassVSPhiB_->Write();
660  // hMassVSPhiWm2_->Write();
661  // hMassVSPhiWm1_->Write();
662  // hMassVSPhiW0_->Write();
663  // hMassVSPhiWp1_->Write();
664  // hMassVSPhiWp2_->Write();
665  // hMassVSPhiF_->Write();
666 
667  // std::vector<TGraphErrors*> graphs ((MuScleFitUtils::fitMass(hMassVSPhi_)));
668  // for(std::vector<TGraphErrors*>::const_iterator graph = graphs.begin(); graph != graphs.end(); graph++){
669  // (*graph)->Write();
670  // }
671  // std::vector<TGraphErrors*> graphsB ((MuScleFitUtils::fitMass(hMassVSPhiB_)));
672  // for(std::vector<TGraphErrors*>::const_iterator graph = graphsB.begin(); graph != graphsB.end(); graph++){
673  // (*graph)->Write();
674  // }
675  // std::vector<TGraphErrors*> graphsWm2 ((MuScleFitUtils::fitMass(hMassVSPhiWm2_)));
676  // for(std::vector<TGraphErrors*>::const_iterator graph = graphsWm2.begin(); graph != graphsWm2.end(); graph++){
677  // (*graph)->Write();
678  // }
679  // std::vector<TGraphErrors*> graphsWm1 ((MuScleFitUtils::fitMass(hMassVSPhiWm1_)));
680  // for(std::vector<TGraphErrors*>::const_iterator graph = graphsWm1.begin(); graph != graphsWm1.end(); graph++){
681  // (*graph)->Write();
682  // }
683  // std::vector<TGraphErrors*> graphsW0 ((MuScleFitUtils::fitMass(hMassVSPhiW0_)));
684  // for(std::vector<TGraphErrors*>::const_iterator graph = graphsW0.begin(); graph != graphsW0.end(); graph++){
685  // (*graph)->Write();
686  // }
687  // std::vector<TGraphErrors*> graphsWp1 ((MuScleFitUtils::fitMass(hMassVSPhiWp1_)));
688  // for(std::vector<TGraphErrors*>::const_iterator graph = graphsWp1.begin(); graph != graphsWp1.end(); graph++){
689  // (*graph)->Write();
690  // }
691  // std::vector<TGraphErrors*> graphsWp2 ((MuScleFitUtils::fitMass(hMassVSPhiWp2_)));
692  // for(std::vector<TGraphErrors*>::const_iterator graph = graphsWp2.begin(); graph != graphsWp2.end(); graph++){
693  // (*graph)->Write();
694  // }
695  // std::vector<TGraphErrors*> graphsF ((MuScleFitUtils::fitMass(hMassVSPhiF_)));
696  // for(std::vector<TGraphErrors*>::const_iterator graph = graphsF.begin(); graph != graphsF.end(); graph++){
697  // (*graph)->Write();
698  // }
699  }
TProfile * hMassVSPhi_prof_
Definition: Histograms.h:719
TH2F * hPtVSPhi_
Definition: Histograms.h:717
TProfile * hPtVSPhi_prof_
Definition: Histograms.h:720
TH2F * hMassVSPhi_
Definition: Histograms.h:718

Member Data Documentation

TH2F* HPartVSPhi::hMassVSPhi_

Definition at line 718 of file Histograms.h.

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

TProfile* HPartVSPhi::hMassVSPhi_prof_

Definition at line 719 of file Histograms.h.

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

TH2F* HPartVSPhi::hPtVSPhi_

Definition at line 717 of file Histograms.h.

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

TProfile* HPartVSPhi::hPtVSPhi_prof_

Definition at line 720 of file Histograms.h.

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