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

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

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

Definition at line 1083 of file Histograms.h.

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

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

Definition at line 1091 of file Histograms.h.

References hMassVSEta_, hMassVSPhiMinus_, hMassVSPhiPlus_, and hMassVSPt_.

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

Member Function Documentation

virtual void HMassVSPartProfile::Clear ( )
inlinevirtual

Implements Histograms.

Definition at line 1125 of file Histograms.h.

References hMassVSEta_, hMassVSPhiMinus_, hMassVSPhiPlus_, and hMassVSPt_.

1125  {
1126  hMassVSPt_->Clear();
1127  hMassVSEta_->Clear();
1128  hMassVSPhiPlus_->Clear();
1129  hMassVSPhiMinus_->Clear();
1130  }
TProfile2D * hMassVSPt_
Definition: Histograms.h:1133
TProfile2D * hMassVSPhiPlus_
Definition: Histograms.h:1135
TProfile2D * hMassVSEta_
Definition: Histograms.h:1134
TProfile2D * hMassVSPhiMinus_
Definition: Histograms.h:1136
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 1098 of file Histograms.h.

References CommonMethods::weight().

1098  {
1099  Fill(CLHEP::HepLorentzVector(p41.x(),p41.y(),p41.z(),p41.t()),
1100  CLHEP::HepLorentzVector(p42.x(),p42.y(),p42.z(),p42.t()), charge, weight);
1101  }
virtual void Fill(const reco::Particle::LorentzVector &p41, const reco::Particle::LorentzVector &p42, const int charge, const double &weight=1.)
Definition: Histograms.h:1098
double charge(const std::vector< uint8_t > &Ampls)
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 1103 of file Histograms.h.

References hMassVSEta_, hMassVSPhiMinus_, hMassVSPhiPlus_, hMassVSPt_, LogDebug, and CommonMethods::weight().

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

Implements Histograms.

Definition at line 1118 of file Histograms.h.

References hMassVSEta_, hMassVSPhiMinus_, hMassVSPhiPlus_, and hMassVSPt_.

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

Member Data Documentation

TProfile2D* HMassVSPartProfile::hMassVSEta_
protected

Definition at line 1134 of file Histograms.h.

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

TProfile2D* HMassVSPartProfile::hMassVSPhiMinus_
protected

Definition at line 1136 of file Histograms.h.

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

TProfile2D* HMassVSPartProfile::hMassVSPhiPlus_
protected

Definition at line 1135 of file Histograms.h.

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

TProfile2D* HMassVSPartProfile::hMassVSPt_
protected

Definition at line 1133 of file Histograms.h.

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