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
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.)
 
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 ()
 

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

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

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

Definition at line 1080 of file Histograms.h.

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

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

Definition at line 1088 of file Histograms.h.

References hMassVSEta_, hMassVSPhiMinus_, hMassVSPhiPlus_, and hMassVSPt_.

1088  {
1089  delete hMassVSPt_;
1090  delete hMassVSEta_;
1091  delete hMassVSPhiPlus_;
1092  delete hMassVSPhiMinus_;
1093  }
TProfile2D * hMassVSPt_
Definition: Histograms.h:1130
TProfile2D * hMassVSPhiPlus_
Definition: Histograms.h:1132
TProfile2D * hMassVSEta_
Definition: Histograms.h:1131
TProfile2D * hMassVSPhiMinus_
Definition: Histograms.h:1133

Member Function Documentation

virtual void HMassVSPartProfile::Clear ( )
inlinevirtual

Implements Histograms.

Definition at line 1122 of file Histograms.h.

References hMassVSEta_, hMassVSPhiMinus_, hMassVSPhiPlus_, and hMassVSPt_.

1122  {
1123  hMassVSPt_->Clear();
1124  hMassVSEta_->Clear();
1125  hMassVSPhiPlus_->Clear();
1126  hMassVSPhiMinus_->Clear();
1127  }
TProfile2D * hMassVSPt_
Definition: Histograms.h:1130
TProfile2D * hMassVSPhiPlus_
Definition: Histograms.h:1132
TProfile2D * hMassVSEta_
Definition: Histograms.h:1131
TProfile2D * hMassVSPhiMinus_
Definition: Histograms.h:1133
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 1095 of file Histograms.h.

References histoStyle::weight.

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

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

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

Implements Histograms.

Definition at line 1115 of file Histograms.h.

References hMassVSEta_, hMassVSPhiMinus_, hMassVSPhiPlus_, and hMassVSPt_.

1115  {
1116  hMassVSPt_->Write();
1117  hMassVSEta_->Write();
1118  hMassVSPhiPlus_->Write();
1119  hMassVSPhiMinus_->Write();
1120  }
TProfile2D * hMassVSPt_
Definition: Histograms.h:1130
TProfile2D * hMassVSPhiPlus_
Definition: Histograms.h:1132
TProfile2D * hMassVSEta_
Definition: Histograms.h:1131
TProfile2D * hMassVSPhiMinus_
Definition: Histograms.h:1133

Member Data Documentation

TProfile2D* HMassVSPartProfile::hMassVSEta_
protected

Definition at line 1131 of file Histograms.h.

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

TProfile2D* HMassVSPartProfile::hMassVSPhiMinus_
protected

Definition at line 1133 of file Histograms.h.

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

TProfile2D* HMassVSPartProfile::hMassVSPhiPlus_
protected

Definition at line 1132 of file Histograms.h.

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

TProfile2D* HMassVSPartProfile::hMassVSPt_
protected

Definition at line 1130 of file Histograms.h.

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