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
HResolutionVSPart Class Reference

A set of histograms for resolution. More...

#include <Histograms.h>

Inheritance diagram for HResolutionVSPart:
Histograms

Public Member Functions

virtual void Clear ()
 
virtual void Fill (const reco::Particle::LorentzVector &p4, const double &resValue, const int charge)
 
 HResolutionVSPart (TFile *outputFile, const TString &name, const double maxPt=100, const double &yMinEta=0., const double &yMaxEta=2., const double &yMinPt=0., const double &yMaxPt=2., const bool doProfiles=false)
 
 HResolutionVSPart (const TString &name, TFile *file)
 
virtual void Write ()
 
 ~HResolutionVSPart ()
 
- Public Member Functions inherited from Histograms
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 &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 &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 ()
 

Public Attributes

bool doProfiles_
 
TH1F * hAbsReso_
 
TH2F * hAbsResoVSEta_
 
TH2F * hAbsResoVSPhi_
 
TH2F * hAbsResoVSPt_
 
TH1F * hReso_
 
TH2F * hResoVSEta_
 
TProfile * hResoVSEta_prof_
 
TProfile * hResoVSPhi_prof_
 
TH2F * hResoVSPhiMinus_
 
TH2F * hResoVSPhiPlus_
 
TH2F * hResoVSPt_
 
TH2F * hResoVSPt_Bar_
 
TProfile * hResoVSPt_Bar_prof_
 
TH2F * hResoVSPt_Endc_17_
 
TProfile * hResoVSPt_Endc_17_prof_
 
TH2F * hResoVSPt_Endc_20_
 
TProfile * hResoVSPt_Endc_20_prof_
 
TH2F * hResoVSPt_Endc_24_
 
TProfile * hResoVSPt_Endc_24_prof_
 
TH2F * hResoVSPt_Ovlap_
 
TProfile * hResoVSPt_Ovlap_prof_
 
TProfile * hResoVSPt_prof_
 
TH2F * hResoVSPtEta_
 
TH2F * hResoVSTheta_
 

Additional Inherited Members

- Protected Attributes inherited from Histograms
TDirectory * histoDir_
 
TString name_
 
TFile * outputFile_
 
double theWeight_
 

Detailed Description

A set of histograms for resolution.

Definition at line 1139 of file Histograms.h.

Constructor & Destructor Documentation

HResolutionVSPart::HResolutionVSPart ( TFile *  outputFile,
const TString &  name,
const double  maxPt = 100,
const double &  yMinEta = 0.,
const double &  yMaxEta = 2.,
const double &  yMinPt = 0.,
const double &  yMaxPt = 2.,
const bool  doProfiles = false 
)
inline

Definition at line 1142 of file Histograms.h.

References doProfiles_, hAbsReso_, hAbsResoVSEta_, hAbsResoVSPhi_, hAbsResoVSPt_, hReso_, hResoVSEta_, hResoVSEta_prof_, hResoVSPhi_prof_, hResoVSPhiMinus_, hResoVSPhiPlus_, hResoVSPt_, hResoVSPt_Bar_, hResoVSPt_Bar_prof_, hResoVSPt_Endc_17_, hResoVSPt_Endc_17_prof_, hResoVSPt_Endc_20_, hResoVSPt_Endc_20_prof_, hResoVSPt_Endc_24_, hResoVSPt_Endc_24_prof_, hResoVSPt_Ovlap_, hResoVSPt_Ovlap_prof_, hResoVSPt_prof_, hResoVSPtEta_, hResoVSTheta_, and Pi.

1145  : Histograms(outputFile, name), doProfiles_(doProfiles)
1146  {
1147  // Kinematical variables
1148 
1149  // hReso = new TH1F (name+"_Reso", "resolution", 4000, -1, 1);
1150  // hResoVSPtEta = new TH2F (name+"_ResoVSPtEta", "resolution VS pt and #eta", 200, 0, 200, 60, -3, 3);
1151  // hResoVSPt = new TH2F (name+"_ResoVSPt", "resolution VS pt", 200, 0, 200, 8000, -1, 1);
1152  // //hResoVSPt_prof = new TProfile (name+"_ResoVSPt_prof", "resolution VS pt", 100, 0, 200, -1, 1);
1153  // hResoVSEta = new TH2F (name+"_ResoVSEta", "resolution VS eta", 60, -3, 3, 8000, yMinEta, yMaxEta);
1154  // hResoVSTheta = new TH2F (name+"_ResoVSTheta", "resolution VS theta", 30, 0, TMath::Pi(), 8000, -1, 1);
1155  // //hResoVSEta_prof = new TProfile (name+"_ResoVSEta_prof", "resolution VS eta", 10, -2.5, 2.5, -1, 1);
1156  // hResoVSPhiPlus = new TH2F (name+"_ResoVSPhiPlus", "resolution VS phi mu+", 14, -3.2, 3.2, 8000, -1, 1);
1157  // hResoVSPhiMinus = new TH2F (name+"_ResoVSPhiMinus", "resolution VS phi mu-", 14, -3.2, 3.2, 8000, -1, 1);
1158  // //hResoVSPhi_prof = new TProfile (name+"_ResoVSPhi_prof", "resolution VS phi", 14, -3.2, 3.2, -1, 1);
1159  // hAbsReso = new TH1F (name+"_AbsReso", "resolution", 100, 0, 1);
1160  // hAbsResoVSPt = new TH2F (name+"_AbsResoVSPt", "Abs resolution VS pt", 200, 0, 500, 100, 0, 1);
1161  // hAbsResoVSEta = new TH2F (name+"_AbsResoVSEta", "Abs resolution VS eta", 60, -3, 3, 100, 0, 1);
1162  // hAbsResoVSPhi = new TH2F (name+"_AbsResoVSPhi", "Abs resolution VS phi", 14, -3.2, 3.2, 100, 0, 1);
1163 
1164  hReso_ = new TH1F( name+"_Reso", "resolution", 200, -1, 1 );
1165  hResoVSPtEta_ = new TH2F( name+"_ResoVSPtEta", "resolution VS pt and #eta", 200, 0, maxPt, 60, -3, 3 );
1166  hResoVSPt_ = new TH2F( name+"_ResoVSPt", "resolution VS pt", 200, 0, maxPt, 200, yMinPt, yMaxPt );
1167  hResoVSPt_Bar_ = new TH2F( name+"_ResoVSPt_Bar", "resolution VS pt Barrel", 200, 0, maxPt, 200, yMinPt, yMaxPt );
1168  hResoVSPt_Endc_17_ = new TH2F( name+"_ResoVSPt_Endc_1.7", "resolution VS pt Endcap (1.4<eta<1.7)", 200, 0, maxPt, 200, yMinPt, yMaxPt );
1169  hResoVSPt_Endc_20_ = new TH2F( name+"_ResoVSPt_Endc_2.0", "resolution VS pt Endcap (1.7<eta<2.0)", 200, 0, maxPt, 200, yMinPt, yMaxPt );
1170  hResoVSPt_Endc_24_ = new TH2F( name+"_ResoVSPt_Endc_2.4", "resolution VS pt Endcap (2.0<eta<2.4)", 200, 0, maxPt, 200, yMinPt, yMaxPt );
1171  hResoVSPt_Ovlap_ = new TH2F( name+"_ResoVSPt_Ovlap", "resolution VS pt overlap", 200, 0, maxPt, 200, yMinPt, yMaxPt );
1172  hResoVSEta_ = new TH2F( name+"_ResoVSEta", "resolution VS eta", 200, -3, 3, 200, yMinEta, yMaxEta );
1173  hResoVSTheta_ = new TH2F( name+"_ResoVSTheta", "resolution VS theta", 30, 0, TMath::Pi(), 200, yMinEta, yMaxEta );
1174  hResoVSPhiPlus_ = new TH2F( name+"_ResoVSPhiPlus", "resolution VS phi mu+", 16, -3.2, 3.2, 200, -1, 1 );
1175  hResoVSPhiMinus_ = new TH2F( name+"_ResoVSPhiMinus", "resolution VS phi mu-", 16, -3.2, 3.2, 200, -1, 1 );
1176  hAbsReso_ = new TH1F( name+"_AbsReso", "resolution", 100, 0, 1 );
1177  hAbsResoVSPt_ = new TH2F( name+"_AbsResoVSPt", "Abs resolution VS pt", 200, 0, maxPt, 100, 0, 1 );
1178  hAbsResoVSEta_ = new TH2F( name+"_AbsResoVSEta", "Abs resolution VS eta", 64, -3.2, 3.2, 100, 0, 1 );
1179  hAbsResoVSPhi_ = new TH2F( name+"_AbsResoVSPhi", "Abs resolution VS phi", 16, -3.2, 3.2, 100, 0, 1 );
1180  if( doProfiles_ ) {
1181  hResoVSPt_prof_ = new TProfile(name+"_ResoVSPt_prof", "resolution VS pt", 100, 0, maxPt, yMinPt, yMaxPt );
1182  hResoVSPt_Bar_prof_ = new TProfile(name+"_ResoVSPt_Bar_prof", "resolution VS pt Barrel", 100, 0, maxPt, yMinPt, yMaxPt );
1183  hResoVSPt_Endc_17_prof_ = new TProfile(name+"_ResoVSPt_Endc_1.7_prof", "resolution VS pt Endcap (1.4<eta<1.7)", 100, 0, maxPt, yMinPt, yMaxPt );
1184  hResoVSPt_Endc_20_prof_ = new TProfile(name+"_ResoVSPt_Endc_2.0_prof", "resolution VS pt Endcap (1.7<eta<2.0)", 100, 0, maxPt, yMinPt, yMaxPt );
1185  hResoVSPt_Endc_24_prof_ = new TProfile(name+"_ResoVSPt_Endc_2.4_prof", "resolution VS pt Endcap (2.0<eta<2.4)", 100, 0, maxPt, yMinPt, yMaxPt );
1186  hResoVSPt_Ovlap_prof_ = new TProfile(name+"_ResoVSPt_Ovlap_prof", "resolution VS pt Overlap", 100, 0, maxPt, yMinPt, yMaxPt );
1187  hResoVSEta_prof_ = new TProfile(name+"_ResoVSEta_prof", "resolution VS eta", 200, -3.0, 3.0, yMinEta, yMaxEta );
1188  hResoVSPhi_prof_ = new TProfile(name+"_ResoVSPhi_prof", "resolution VS phi", 16, -3.2, 3.2, -1, 1 );
1189  }
1190  }
const double Pi
TH2F * hResoVSPt_Endc_17_
Definition: Histograms.h:1361
TProfile * hResoVSPhi_prof_
Definition: Histograms.h:1376
TH2F * hResoVSPhiMinus_
Definition: Histograms.h:1374
TH2F * hResoVSPhiPlus_
Definition: Histograms.h:1375
TProfile * hResoVSPt_Endc_17_prof_
Definition: Histograms.h:1367
TProfile * hResoVSPt_Ovlap_prof_
Definition: Histograms.h:1370
TH2F * hResoVSPt_Ovlap_
Definition: Histograms.h:1364
TH2F * hResoVSPt_Endc_24_
Definition: Histograms.h:1363
TProfile * hResoVSPt_prof_
Definition: Histograms.h:1365
TH2F * hResoVSPt_Endc_20_
Definition: Histograms.h:1362
TProfile * hResoVSPt_Endc_24_prof_
Definition: Histograms.h:1369
TProfile * hResoVSPt_Bar_prof_
Definition: Histograms.h:1366
TProfile * hResoVSPt_Endc_20_prof_
Definition: Histograms.h:1368
TProfile * hResoVSEta_prof_
Definition: Histograms.h:1373
HResolutionVSPart::HResolutionVSPart ( const TString &  name,
TFile *  file 
)
inline

Definition at line 1192 of file Histograms.h.

References doProfiles_, hAbsReso_, hAbsResoVSEta_, hAbsResoVSPhi_, hAbsResoVSPt_, hReso_, hResoVSEta_, hResoVSEta_prof_, hResoVSPhi_prof_, hResoVSPhiMinus_, hResoVSPhiPlus_, hResoVSPt_, hResoVSPt_Bar_, hResoVSPt_Bar_prof_, hResoVSPt_Endc_17_, hResoVSPt_Endc_17_prof_, hResoVSPt_Endc_20_, hResoVSPt_Endc_20_prof_, hResoVSPt_Endc_24_, hResoVSPt_Endc_24_prof_, hResoVSPt_Ovlap_, hResoVSPt_Ovlap_prof_, hResoVSPt_prof_, hResoVSPtEta_, hResoVSTheta_, mergeVDriftHistosByStation::name, and Histograms::name_.

1192  {
1193  name_=name;
1194  hReso_ = (TH1F *) file->Get(name+"_Reso");
1195  hResoVSPtEta_ = (TH2F *) file->Get(name+"_ResoVSPtEta");
1196  hResoVSPt_ = (TH2F *) file->Get(name+"_ResoVSPt");
1197  hResoVSPt_Bar_ = (TH2F *) file->Get(name+"_ResoVSPt");
1198  hResoVSPt_Endc_17_ = (TH2F *) file->Get(name+"_ResoVSPt");
1199  hResoVSPt_Endc_20_ = (TH2F *) file->Get(name+"_ResoVSPt");
1200  hResoVSPt_Endc_24_ = (TH2F *) file->Get(name+"_ResoVSPt");
1201  hResoVSPt_Ovlap_ = (TH2F *) file->Get(name+"_ResoVSPt");
1202  hResoVSEta_ = (TH2F *) file->Get(name+"_ResoVSEta");
1203  hResoVSTheta_ = (TH2F *) file->Get(name+"_ResoVSTheta");
1204  hResoVSPhiPlus_ = (TH2F *) file->Get(name+"_ResoVSPhiPlus");
1205  hResoVSPhiMinus_ = (TH2F *) file->Get(name+"_ResoVSPhiMinus");
1206  hAbsReso_ = (TH1F *) file->Get(name+"_AbsReso");
1207  hAbsResoVSPt_ = (TH2F *) file->Get(name+"_AbsResoVSPt");
1208  hAbsResoVSEta_ = (TH2F *) file->Get(name+"_AbsResoVSEta");
1209  hAbsResoVSPhi_ = (TH2F *) file->Get(name+"_AbsResoVSPhi");
1210  if( doProfiles_ ) {
1211  hResoVSPt_prof_ = (TProfile *) file->Get(name+"_ResoVSPt_prof");
1212  hResoVSPt_Bar_prof_ = (TProfile *) file->Get(name+"_ResoVSPt_prof");
1213  hResoVSPt_Endc_17_prof_ = (TProfile *) file->Get(name+"_ResoVSPt_1.7_prof");
1214  hResoVSPt_Endc_20_prof_ = (TProfile *) file->Get(name+"_ResoVSPt_2.0_prof");
1215  hResoVSPt_Endc_24_prof_ = (TProfile *) file->Get(name+"_ResoVSPt_2.4_prof");
1216  hResoVSPt_Ovlap_prof_= (TProfile *) file->Get(name+"_ResoVSPt_prof");
1217  hResoVSEta_prof_ = (TProfile *) file->Get(name+"_ResoVSEta_prof");
1218  hResoVSPhi_prof_ = (TProfile *) file->Get(name+"_ResoVSPhi_prof");
1219  }
1220  }
TH2F * hResoVSPt_Endc_17_
Definition: Histograms.h:1361
TProfile * hResoVSPhi_prof_
Definition: Histograms.h:1376
TH2F * hResoVSPhiMinus_
Definition: Histograms.h:1374
TH2F * hResoVSPhiPlus_
Definition: Histograms.h:1375
TString name_
Definition: Histograms.h:122
TProfile * hResoVSPt_Endc_17_prof_
Definition: Histograms.h:1367
TProfile * hResoVSPt_Ovlap_prof_
Definition: Histograms.h:1370
TH2F * hResoVSPt_Ovlap_
Definition: Histograms.h:1364
TH2F * hResoVSPt_Endc_24_
Definition: Histograms.h:1363
TProfile * hResoVSPt_prof_
Definition: Histograms.h:1365
TH2F * hResoVSPt_Endc_20_
Definition: Histograms.h:1362
TProfile * hResoVSPt_Endc_24_prof_
Definition: Histograms.h:1369
TProfile * hResoVSPt_Bar_prof_
Definition: Histograms.h:1366
TProfile * hResoVSPt_Endc_20_prof_
Definition: Histograms.h:1368
TProfile * hResoVSEta_prof_
Definition: Histograms.h:1373
HResolutionVSPart::~HResolutionVSPart ( )
inline

Definition at line 1222 of file Histograms.h.

References doProfiles_, hAbsReso_, hAbsResoVSEta_, hAbsResoVSPhi_, hAbsResoVSPt_, hReso_, hResoVSEta_, hResoVSEta_prof_, hResoVSPhi_prof_, hResoVSPhiMinus_, hResoVSPhiPlus_, hResoVSPt_, hResoVSPt_Bar_, hResoVSPt_Bar_prof_, hResoVSPt_Endc_17_, hResoVSPt_Endc_17_prof_, hResoVSPt_Endc_20_, hResoVSPt_Endc_20_prof_, hResoVSPt_Endc_24_, hResoVSPt_Endc_24_prof_, hResoVSPt_Ovlap_, hResoVSPt_Ovlap_prof_, hResoVSPt_prof_, hResoVSPtEta_, and hResoVSTheta_.

1222  {
1223  delete hReso_;
1224  delete hResoVSPtEta_;
1225  delete hResoVSPt_;
1226  delete hResoVSPt_Bar_;
1227  delete hResoVSPt_Endc_17_;
1228  delete hResoVSPt_Endc_20_;
1229  delete hResoVSPt_Endc_24_;
1230  delete hResoVSPt_Ovlap_;
1231  delete hResoVSEta_;
1232  delete hResoVSTheta_;
1233  delete hResoVSPhiMinus_;
1234  delete hResoVSPhiPlus_;
1235  delete hAbsReso_;
1236  delete hAbsResoVSPt_;
1237  delete hAbsResoVSEta_;
1238  delete hAbsResoVSPhi_;
1239  if( doProfiles_ ) {
1240  delete hResoVSPt_prof_;
1241  delete hResoVSPt_Bar_prof_;
1242  delete hResoVSPt_Endc_17_prof_;
1243  delete hResoVSPt_Endc_20_prof_;
1244  delete hResoVSPt_Endc_24_prof_;
1245  delete hResoVSPt_Ovlap_prof_;
1246  delete hResoVSEta_prof_;
1247  delete hResoVSPhi_prof_;
1248  }
1249  }
TH2F * hResoVSPt_Endc_17_
Definition: Histograms.h:1361
TProfile * hResoVSPhi_prof_
Definition: Histograms.h:1376
TH2F * hResoVSPhiMinus_
Definition: Histograms.h:1374
TH2F * hResoVSPhiPlus_
Definition: Histograms.h:1375
TProfile * hResoVSPt_Endc_17_prof_
Definition: Histograms.h:1367
TProfile * hResoVSPt_Ovlap_prof_
Definition: Histograms.h:1370
TH2F * hResoVSPt_Ovlap_
Definition: Histograms.h:1364
TH2F * hResoVSPt_Endc_24_
Definition: Histograms.h:1363
TProfile * hResoVSPt_prof_
Definition: Histograms.h:1365
TH2F * hResoVSPt_Endc_20_
Definition: Histograms.h:1362
TProfile * hResoVSPt_Endc_24_prof_
Definition: Histograms.h:1369
TProfile * hResoVSPt_Bar_prof_
Definition: Histograms.h:1366
TProfile * hResoVSPt_Endc_20_prof_
Definition: Histograms.h:1368
TProfile * hResoVSEta_prof_
Definition: Histograms.h:1373

Member Function Documentation

virtual void HResolutionVSPart::Clear ( )
inlinevirtual

Implements Histograms.

Definition at line 1327 of file Histograms.h.

References doProfiles_, hAbsReso_, hAbsResoVSEta_, hAbsResoVSPhi_, hAbsResoVSPt_, hReso_, hResoVSEta_, hResoVSEta_prof_, hResoVSPhi_prof_, hResoVSPhiMinus_, hResoVSPhiPlus_, hResoVSPt_, hResoVSPt_Bar_, hResoVSPt_Bar_prof_, hResoVSPt_Endc_17_, hResoVSPt_Endc_17_prof_, hResoVSPt_Endc_20_, hResoVSPt_Endc_20_prof_, hResoVSPt_Endc_24_, hResoVSPt_Endc_24_prof_, hResoVSPt_Ovlap_, hResoVSPt_Ovlap_prof_, hResoVSPt_prof_, hResoVSPtEta_, and hResoVSTheta_.

1327  {
1328  hReso_->Clear();
1329  hResoVSPtEta_->Clear();
1330  hResoVSPt_->Clear();
1331  hResoVSPt_Bar_->Clear();
1332  hResoVSPt_Endc_17_->Clear();
1333  hResoVSPt_Endc_20_->Clear();
1334  hResoVSPt_Endc_24_->Clear();
1335  hResoVSPt_Ovlap_->Clear();
1336  hResoVSEta_->Clear();
1337  hResoVSTheta_->Clear();
1338  hResoVSPhiPlus_->Clear();
1339  hResoVSPhiMinus_->Clear();
1340  hAbsReso_->Clear();
1341  hAbsResoVSPt_->Clear();
1342  hAbsResoVSEta_->Clear();
1343  hAbsResoVSPhi_->Clear();
1344  if( doProfiles_ ) {
1345  hResoVSPt_prof_->Clear();
1346  hResoVSPt_Bar_prof_->Clear();
1347  hResoVSPt_Endc_17_prof_->Clear();
1348  hResoVSPt_Endc_20_prof_->Clear();
1349  hResoVSPt_Endc_24_prof_->Clear();
1350  hResoVSPt_Ovlap_prof_->Clear();
1351  hResoVSEta_prof_->Clear();
1352  hResoVSPhi_prof_->Clear();
1353  }
1354  }
TH2F * hResoVSPt_Endc_17_
Definition: Histograms.h:1361
TProfile * hResoVSPhi_prof_
Definition: Histograms.h:1376
TH2F * hResoVSPhiMinus_
Definition: Histograms.h:1374
TH2F * hResoVSPhiPlus_
Definition: Histograms.h:1375
TProfile * hResoVSPt_Endc_17_prof_
Definition: Histograms.h:1367
TProfile * hResoVSPt_Ovlap_prof_
Definition: Histograms.h:1370
TH2F * hResoVSPt_Ovlap_
Definition: Histograms.h:1364
TH2F * hResoVSPt_Endc_24_
Definition: Histograms.h:1363
TProfile * hResoVSPt_prof_
Definition: Histograms.h:1365
TH2F * hResoVSPt_Endc_20_
Definition: Histograms.h:1362
TProfile * hResoVSPt_Endc_24_prof_
Definition: Histograms.h:1369
TProfile * hResoVSPt_Bar_prof_
Definition: Histograms.h:1366
TProfile * hResoVSPt_Endc_20_prof_
Definition: Histograms.h:1368
TProfile * hResoVSEta_prof_
Definition: Histograms.h:1373
virtual void HResolutionVSPart::Fill ( const reco::Particle::LorentzVector p4,
const double &  resValue,
const int  charge 
)
inlinevirtual

Reimplemented from Histograms.

Definition at line 1251 of file Histograms.h.

References doProfiles_, eta, hAbsReso_, hAbsResoVSEta_, hAbsResoVSPhi_, hAbsResoVSPt_, hReso_, hResoVSEta_, hResoVSEta_prof_, hResoVSPhi_prof_, hResoVSPhiMinus_, hResoVSPhiPlus_, hResoVSPt_, hResoVSPt_Bar_, hResoVSPt_Bar_prof_, hResoVSPt_Endc_17_, hResoVSPt_Endc_17_prof_, hResoVSPt_Endc_20_, hResoVSPt_Endc_20_prof_, hResoVSPt_Endc_24_, hResoVSPt_Endc_24_prof_, hResoVSPt_Ovlap_, hResoVSPt_Ovlap_prof_, hResoVSPt_prof_, hResoVSPtEta_, hResoVSTheta_, and EnergyCorrector::pt.

1251  {
1252  double pt = p4.Pt();
1253  double eta = p4.Eta();
1254  hReso_->Fill(resValue);
1255  hResoVSPtEta_->Fill(pt, eta,resValue);
1256  hResoVSPt_->Fill(pt,resValue);
1257  if(fabs(eta)<=0.9)
1258  hResoVSPt_Bar_->Fill(pt,resValue);
1259  else if(fabs(eta)>0.9 && fabs(eta)<=1.4)
1260  hResoVSPt_Ovlap_->Fill(pt,resValue);
1261  else if(fabs(eta)>1.4 && fabs(eta)<=1.7)
1262  hResoVSPt_Endc_17_->Fill(pt,resValue);
1263  else if(fabs(eta)>1.7 && fabs(eta)<=2.0)
1264  hResoVSPt_Endc_20_->Fill(pt,resValue);
1265  else
1266  hResoVSPt_Endc_24_->Fill(pt,resValue);
1267 
1268  hResoVSEta_->Fill(eta,resValue);
1269  hResoVSTheta_->Fill(p4.Theta(),resValue);
1270  if(charge>0)
1271  hResoVSPhiPlus_->Fill(p4.Phi(),resValue);
1272  else if(charge<0)
1273  hResoVSPhiMinus_->Fill(p4.Phi(),resValue);
1274  hAbsReso_->Fill(fabs(resValue));
1275  hAbsResoVSPt_->Fill(pt,fabs(resValue));
1276  hAbsResoVSEta_->Fill(eta,fabs(resValue));
1277  hAbsResoVSPhi_->Fill(p4.Phi(),fabs(resValue));
1278  if( doProfiles_ ) {
1279  hResoVSPt_prof_->Fill(p4.Pt(),resValue);
1280  if(fabs(eta)<=0.9)
1281  hResoVSPt_Bar_prof_->Fill(p4.Pt(),resValue);
1282  else if(fabs(eta)>0.9 && fabs(eta)<=1.4)
1283  hResoVSPt_Ovlap_prof_->Fill(pt,resValue);
1284  else if(fabs(eta)>1.4 && fabs(eta)<=1.7)
1285  hResoVSPt_Endc_17_prof_->Fill(pt,resValue);
1286  else if(fabs(eta)>1.7 && fabs(eta)<=2.0)
1287  hResoVSPt_Endc_20_prof_->Fill(pt,resValue);
1288  else
1289  hResoVSPt_Endc_24_prof_->Fill(pt,resValue);
1290 
1291  hResoVSEta_prof_->Fill(p4.Eta(),resValue);
1292  hResoVSPhi_prof_->Fill(p4.Phi(),resValue);
1293  }
1294  }
TH2F * hResoVSPt_Endc_17_
Definition: Histograms.h:1361
TProfile * hResoVSPhi_prof_
Definition: Histograms.h:1376
TH2F * hResoVSPhiMinus_
Definition: Histograms.h:1374
TH2F * hResoVSPhiPlus_
Definition: Histograms.h:1375
TProfile * hResoVSPt_Endc_17_prof_
Definition: Histograms.h:1367
TProfile * hResoVSPt_Ovlap_prof_
Definition: Histograms.h:1370
double p4[4]
Definition: TauolaWrapper.h:92
TH2F * hResoVSPt_Ovlap_
Definition: Histograms.h:1364
TH2F * hResoVSPt_Endc_24_
Definition: Histograms.h:1363
TProfile * hResoVSPt_prof_
Definition: Histograms.h:1365
TH2F * hResoVSPt_Endc_20_
Definition: Histograms.h:1362
TProfile * hResoVSPt_Endc_24_prof_
Definition: Histograms.h:1369
TProfile * hResoVSPt_Bar_prof_
Definition: Histograms.h:1366
TProfile * hResoVSPt_Endc_20_prof_
Definition: Histograms.h:1368
TProfile * hResoVSEta_prof_
Definition: Histograms.h:1373
virtual void HResolutionVSPart::Write ( )
inlinevirtual

Implements Histograms.

Definition at line 1296 of file Histograms.h.

References doProfiles_, hAbsReso_, hAbsResoVSEta_, hAbsResoVSPhi_, hAbsResoVSPt_, Histograms::histoDir_, hReso_, hResoVSEta_, hResoVSEta_prof_, hResoVSPhi_prof_, hResoVSPhiMinus_, hResoVSPhiPlus_, hResoVSPt_, hResoVSPt_Bar_, hResoVSPt_Bar_prof_, hResoVSPt_Endc_17_, hResoVSPt_Endc_17_prof_, hResoVSPt_Endc_20_, hResoVSPt_Endc_20_prof_, hResoVSPt_Endc_24_, hResoVSPt_Endc_24_prof_, hResoVSPt_Ovlap_, hResoVSPt_Ovlap_prof_, hResoVSPt_prof_, hResoVSPtEta_, and hResoVSTheta_.

1296  {
1297  if(histoDir_ != 0) histoDir_->cd();
1298 
1299  hReso_->Write();
1300  hResoVSPtEta_->Write();
1301  hResoVSPt_->Write();
1302  hResoVSPt_Bar_->Write();
1303  hResoVSPt_Endc_17_->Write();
1304  hResoVSPt_Endc_20_->Write();
1305  hResoVSPt_Endc_24_->Write();
1306  hResoVSPt_Ovlap_->Write();
1307  hResoVSEta_->Write();
1308  hResoVSTheta_->Write();
1309  hResoVSPhiMinus_->Write();
1310  hResoVSPhiPlus_->Write();
1311  hAbsReso_->Write();
1312  hAbsResoVSPt_->Write();
1313  hAbsResoVSEta_->Write();
1314  hAbsResoVSPhi_->Write();
1315  if( doProfiles_ ) {
1316  hResoVSPt_prof_->Write();
1317  hResoVSPt_Bar_prof_->Write();
1318  hResoVSPt_Endc_17_prof_->Write();
1319  hResoVSPt_Endc_20_prof_->Write();
1320  hResoVSPt_Endc_24_prof_->Write();
1321  hResoVSPt_Ovlap_prof_->Write();
1322  hResoVSEta_prof_->Write();
1323  hResoVSPhi_prof_->Write();
1324  }
1325  }
TH2F * hResoVSPt_Endc_17_
Definition: Histograms.h:1361
TProfile * hResoVSPhi_prof_
Definition: Histograms.h:1376
TH2F * hResoVSPhiMinus_
Definition: Histograms.h:1374
TH2F * hResoVSPhiPlus_
Definition: Histograms.h:1375
TProfile * hResoVSPt_Endc_17_prof_
Definition: Histograms.h:1367
TProfile * hResoVSPt_Ovlap_prof_
Definition: Histograms.h:1370
TDirectory * histoDir_
Definition: Histograms.h:124
TH2F * hResoVSPt_Ovlap_
Definition: Histograms.h:1364
TH2F * hResoVSPt_Endc_24_
Definition: Histograms.h:1363
TProfile * hResoVSPt_prof_
Definition: Histograms.h:1365
TH2F * hResoVSPt_Endc_20_
Definition: Histograms.h:1362
TProfile * hResoVSPt_Endc_24_prof_
Definition: Histograms.h:1369
TProfile * hResoVSPt_Bar_prof_
Definition: Histograms.h:1366
TProfile * hResoVSPt_Endc_20_prof_
Definition: Histograms.h:1368
TProfile * hResoVSEta_prof_
Definition: Histograms.h:1373

Member Data Documentation

bool HResolutionVSPart::doProfiles_

Definition at line 1381 of file Histograms.h.

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

TH1F* HResolutionVSPart::hAbsReso_

Definition at line 1377 of file Histograms.h.

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

TH2F* HResolutionVSPart::hAbsResoVSEta_

Definition at line 1379 of file Histograms.h.

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

TH2F* HResolutionVSPart::hAbsResoVSPhi_

Definition at line 1380 of file Histograms.h.

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

TH2F* HResolutionVSPart::hAbsResoVSPt_

Definition at line 1378 of file Histograms.h.

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

TH1F* HResolutionVSPart::hReso_

Definition at line 1357 of file Histograms.h.

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

TH2F* HResolutionVSPart::hResoVSEta_

Definition at line 1371 of file Histograms.h.

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

TProfile* HResolutionVSPart::hResoVSEta_prof_

Definition at line 1373 of file Histograms.h.

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

TProfile* HResolutionVSPart::hResoVSPhi_prof_

Definition at line 1376 of file Histograms.h.

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

TH2F* HResolutionVSPart::hResoVSPhiMinus_

Definition at line 1374 of file Histograms.h.

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

TH2F* HResolutionVSPart::hResoVSPhiPlus_

Definition at line 1375 of file Histograms.h.

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

TH2F* HResolutionVSPart::hResoVSPt_

Definition at line 1359 of file Histograms.h.

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

TH2F* HResolutionVSPart::hResoVSPt_Bar_

Definition at line 1360 of file Histograms.h.

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

TProfile* HResolutionVSPart::hResoVSPt_Bar_prof_

Definition at line 1366 of file Histograms.h.

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

TH2F* HResolutionVSPart::hResoVSPt_Endc_17_

Definition at line 1361 of file Histograms.h.

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

TProfile* HResolutionVSPart::hResoVSPt_Endc_17_prof_

Definition at line 1367 of file Histograms.h.

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

TH2F* HResolutionVSPart::hResoVSPt_Endc_20_

Definition at line 1362 of file Histograms.h.

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

TProfile* HResolutionVSPart::hResoVSPt_Endc_20_prof_

Definition at line 1368 of file Histograms.h.

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

TH2F* HResolutionVSPart::hResoVSPt_Endc_24_

Definition at line 1363 of file Histograms.h.

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

TProfile* HResolutionVSPart::hResoVSPt_Endc_24_prof_

Definition at line 1369 of file Histograms.h.

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

TH2F* HResolutionVSPart::hResoVSPt_Ovlap_

Definition at line 1364 of file Histograms.h.

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

TProfile* HResolutionVSPart::hResoVSPt_Ovlap_prof_

Definition at line 1370 of file Histograms.h.

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

TProfile* HResolutionVSPart::hResoVSPt_prof_

Definition at line 1365 of file Histograms.h.

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

TH2F* HResolutionVSPart::hResoVSPtEta_

Definition at line 1358 of file Histograms.h.

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

TH2F* HResolutionVSPart::hResoVSTheta_

Definition at line 1372 of file Histograms.h.

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