CMS 3D CMS Logo

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

#include <Histograms.h>

Inheritance diagram for HMassVSPartProfile:
Histograms

Public Member Functions

virtual void Clear ()
 
virtual void Fill (const reco::Particle::LorentzVector &p41, const reco::Particle::LorentzVector &p42, const int charge, const double &weight=1.)
 
virtual void Fill (const CLHEP::HepLorentzVector &momentum1, const CLHEP::HepLorentzVector &momentum2, const int charge, const double &weight=1.)
 
 HMassVSPartProfile (const TString &name, const double &minMass=0., const double &maxMass=150., const double maxPt=100.)
 
 HMassVSPartProfile (const TString &name, TFile *file)
 
virtual void Write ()
 
 ~HMassVSPartProfile ()
 
- 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 CLHEP::HepLorentzVector &momentum1, const CLHEP::HepLorentzVector &momentum2)
 
virtual void Fill (const CLHEP::HepLorentzVector &p1, const reco::Particle::LorentzVector &p2)
 
virtual void Fill (const reco::Particle::LorentzVector &p4, const double &weight=1.)
 
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 CLHEP::HepLorentzVector &p, const double &likeValue)
 
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 ()
 

Protected Attributes

TProfile2D * hMassVSEta_
 
TProfile2D * hMassVSPhiMinus_
 
TProfile2D * hMassVSPhiPlus_
 
TProfile2D * hMassVSPt_
 
- Protected Attributes inherited from Histograms
TDirectory * histoDir_
 
TString name_
 
TFile * outputFile_
 
double theWeight_
 

Detailed Description

Definition at line 1068 of file Histograms.h.

Constructor & Destructor Documentation

HMassVSPartProfile::HMassVSPartProfile ( const TString &  name,
const double &  minMass = 0.,
const double &  maxMass = 150.,
const double  maxPt = 100. 
)
inline

Definition at line 1071 of file Histograms.h.

References hMassVSEta_, hMassVSPhiMinus_, hMassVSPhiPlus_, hMassVSPt_, mergeVDriftHistosByStation::name, and Histograms::name_.

1071  {
1072  name_ = name;
1073 
1074  // Kinematical variables
1075  // ---------------------
1076  hMassVSPt_ = new TProfile2D( name+"_MassVSPt", "resonance mass vs muon transverse momentum", 200, 0., maxPt, 6000, minMass, maxMass, 0., 100. );
1077  hMassVSEta_ = new TProfile2D( name+"_MassVSEta", "resonance mass vs muon pseudorapidity", 64, -6.4, 6.4, 6000, minMass, maxMass, 0., 100. );
1078  hMassVSPhiPlus_ = new TProfile2D( name+"_MassVSPhiPlus", "resonance mass vs muon+ phi angle", 64, -3.2, 3.2, 6000, minMass, maxMass, 0., 100. );
1079  hMassVSPhiMinus_ = new TProfile2D( name+"_MassVSPhiMinus", "resonance mass vs muon- phi angle", 64, -3.2, 3.2, 6000, minMass, maxMass, 0., 100. );
1080  }
TProfile2D * hMassVSPt_
Definition: Histograms.h:1132
TProfile2D * hMassVSPhiPlus_
Definition: Histograms.h:1134
TString name_
Definition: Histograms.h:123
TProfile2D * hMassVSEta_
Definition: Histograms.h:1133
TProfile2D * hMassVSPhiMinus_
Definition: Histograms.h:1135
HMassVSPartProfile::HMassVSPartProfile ( const TString &  name,
TFile *  file 
)
inline

Definition at line 1082 of file Histograms.h.

References hMassVSEta_, hMassVSPhiMinus_, hMassVSPhiPlus_, hMassVSPt_, mergeVDriftHistosByStation::name, and Histograms::name_.

1082  {
1083  name_=name;
1084  hMassVSPt_ = (TProfile2D *) file->Get(name+"_MassVSPt");
1085  hMassVSEta_ = (TProfile2D *) file->Get(name+"_MassVSEta");
1086  hMassVSPhiPlus_ = (TProfile2D *) file->Get(name+"_MassVSPhiPlus");
1087  hMassVSPhiMinus_ = (TProfile2D *) file->Get(name+"_MassVSPhiMinus");
1088  }
TProfile2D * hMassVSPt_
Definition: Histograms.h:1132
TProfile2D * hMassVSPhiPlus_
Definition: Histograms.h:1134
TString name_
Definition: Histograms.h:123
TProfile2D * hMassVSEta_
Definition: Histograms.h:1133
TProfile2D * hMassVSPhiMinus_
Definition: Histograms.h:1135
HMassVSPartProfile::~HMassVSPartProfile ( )
inline

Definition at line 1090 of file Histograms.h.

References hMassVSEta_, hMassVSPhiMinus_, hMassVSPhiPlus_, and hMassVSPt_.

1090  {
1091  delete hMassVSPt_;
1092  delete hMassVSEta_;
1093  delete hMassVSPhiPlus_;
1094  delete hMassVSPhiMinus_;
1095  }
TProfile2D * hMassVSPt_
Definition: Histograms.h:1132
TProfile2D * hMassVSPhiPlus_
Definition: Histograms.h:1134
TProfile2D * hMassVSEta_
Definition: Histograms.h:1133
TProfile2D * hMassVSPhiMinus_
Definition: Histograms.h:1135

Member Function Documentation

virtual void HMassVSPartProfile::Clear ( )
inlinevirtual

Implements Histograms.

Definition at line 1124 of file Histograms.h.

References hMassVSEta_, hMassVSPhiMinus_, hMassVSPhiPlus_, and hMassVSPt_.

1124  {
1125  hMassVSPt_->Clear();
1126  hMassVSEta_->Clear();
1127  hMassVSPhiPlus_->Clear();
1128  hMassVSPhiMinus_->Clear();
1129  }
TProfile2D * hMassVSPt_
Definition: Histograms.h:1132
TProfile2D * hMassVSPhiPlus_
Definition: Histograms.h:1134
TProfile2D * hMassVSEta_
Definition: Histograms.h:1133
TProfile2D * hMassVSPhiMinus_
Definition: Histograms.h:1135
virtual void HMassVSPartProfile::Fill ( const reco::Particle::LorentzVector p41,
const reco::Particle::LorentzVector p42,
const int  charge,
const double &  weight = 1. 
)
inlinevirtual

Reimplemented from Histograms.

Definition at line 1097 of file Histograms.h.

References histoStyle::weight.

1097  {
1098  Fill(CLHEP::HepLorentzVector(p41.x(),p41.y(),p41.z(),p41.t()),
1099  CLHEP::HepLorentzVector(p42.x(),p42.y(),p42.z(),p42.t()), charge, weight);
1100  }
virtual void Fill(const reco::Particle::LorentzVector &p41, const reco::Particle::LorentzVector &p42, const int charge, const double &weight=1.)
Definition: Histograms.h:1097
double charge(const std::vector< uint8_t > &Ampls)
int weight
Definition: histoStyle.py:50
virtual void HMassVSPartProfile::Fill ( const CLHEP::HepLorentzVector &  momentum1,
const CLHEP::HepLorentzVector &  momentum2,
const int  charge,
const double &  weight = 1. 
)
inlinevirtual

Reimplemented from Histograms.

Definition at line 1102 of file Histograms.h.

References hMassVSEta_, hMassVSPhiMinus_, hMassVSPhiPlus_, hMassVSPt_, LogDebug, and histoStyle::weight.

1102  {
1103  hMassVSPt_->Fill(momentum1.perp(),momentum2.m(), weight);
1104  hMassVSEta_->Fill(momentum1.eta(),momentum2.m(), weight);
1105  if(charge>0){
1106  hMassVSPhiPlus_->Fill(momentum1.phi(), momentum2.m(), weight);
1107  }
1108  else if(charge<0){
1109  hMassVSPhiMinus_->Fill(momentum1.phi(), momentum2.m(), weight);
1110  }
1111  else {
1112  LogDebug("Histograms") << "HMassVSPartProfile: wrong charge value = " << charge << std::endl;
1113  abort();
1114  }
1115  }
#define LogDebug(id)
TProfile2D * hMassVSPt_
Definition: Histograms.h:1132
TProfile2D * hMassVSPhiPlus_
Definition: Histograms.h:1134
double charge(const std::vector< uint8_t > &Ampls)
TProfile2D * hMassVSEta_
Definition: Histograms.h:1133
TProfile2D * hMassVSPhiMinus_
Definition: Histograms.h:1135
int weight
Definition: histoStyle.py:50
virtual void HMassVSPartProfile::Write ( )
inlinevirtual

Implements Histograms.

Definition at line 1117 of file Histograms.h.

References hMassVSEta_, hMassVSPhiMinus_, hMassVSPhiPlus_, and hMassVSPt_.

1117  {
1118  hMassVSPt_->Write();
1119  hMassVSEta_->Write();
1120  hMassVSPhiPlus_->Write();
1121  hMassVSPhiMinus_->Write();
1122  }
TProfile2D * hMassVSPt_
Definition: Histograms.h:1132
TProfile2D * hMassVSPhiPlus_
Definition: Histograms.h:1134
TProfile2D * hMassVSEta_
Definition: Histograms.h:1133
TProfile2D * hMassVSPhiMinus_
Definition: Histograms.h:1135

Member Data Documentation

TProfile2D* HMassVSPartProfile::hMassVSEta_
protected

Definition at line 1133 of file Histograms.h.

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

TProfile2D* HMassVSPartProfile::hMassVSPhiMinus_
protected

Definition at line 1135 of file Histograms.h.

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

TProfile2D* HMassVSPartProfile::hMassVSPhiPlus_
protected

Definition at line 1134 of file Histograms.h.

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

TProfile2D* HMassVSPartProfile::hMassVSPt_
protected

Definition at line 1132 of file Histograms.h.

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