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

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 1140 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 1143 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.

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

Definition at line 1193 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_.

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

Definition at line 1223 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_.

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

Member Function Documentation

virtual void HResolutionVSPart::Clear ( )
inlinevirtual

Implements Histograms.

Definition at line 1328 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_.

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

Reimplemented from Histograms.

Definition at line 1252 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_, and hResoVSTheta_.

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

Implements Histograms.

Definition at line 1297 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_.

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

Member Data Documentation

bool HResolutionVSPart::doProfiles_

Definition at line 1382 of file Histograms.h.

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

TH1F* HResolutionVSPart::hAbsReso_

Definition at line 1378 of file Histograms.h.

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

TH2F* HResolutionVSPart::hAbsResoVSEta_

Definition at line 1380 of file Histograms.h.

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

TH2F* HResolutionVSPart::hAbsResoVSPhi_

Definition at line 1381 of file Histograms.h.

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

TH2F* HResolutionVSPart::hAbsResoVSPt_

Definition at line 1379 of file Histograms.h.

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

TH1F* HResolutionVSPart::hReso_

Definition at line 1358 of file Histograms.h.

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

TH2F* HResolutionVSPart::hResoVSEta_

Definition at line 1372 of file Histograms.h.

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

TProfile* HResolutionVSPart::hResoVSEta_prof_

Definition at line 1374 of file Histograms.h.

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

TProfile* HResolutionVSPart::hResoVSPhi_prof_

Definition at line 1377 of file Histograms.h.

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

TH2F* HResolutionVSPart::hResoVSPhiMinus_

Definition at line 1375 of file Histograms.h.

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

TH2F* HResolutionVSPart::hResoVSPhiPlus_

Definition at line 1376 of file Histograms.h.

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

TH2F* HResolutionVSPart::hResoVSPt_

Definition at line 1360 of file Histograms.h.

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

TH2F* HResolutionVSPart::hResoVSPt_Bar_

Definition at line 1361 of file Histograms.h.

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

TProfile* HResolutionVSPart::hResoVSPt_Bar_prof_

Definition at line 1367 of file Histograms.h.

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

TH2F* HResolutionVSPart::hResoVSPt_Endc_17_

Definition at line 1362 of file Histograms.h.

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

TProfile* HResolutionVSPart::hResoVSPt_Endc_17_prof_

Definition at line 1368 of file Histograms.h.

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

TH2F* HResolutionVSPart::hResoVSPt_Endc_20_

Definition at line 1363 of file Histograms.h.

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

TProfile* HResolutionVSPart::hResoVSPt_Endc_20_prof_

Definition at line 1369 of file Histograms.h.

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

TH2F* HResolutionVSPart::hResoVSPt_Endc_24_

Definition at line 1364 of file Histograms.h.

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

TProfile* HResolutionVSPart::hResoVSPt_Endc_24_prof_

Definition at line 1370 of file Histograms.h.

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

TH2F* HResolutionVSPart::hResoVSPt_Ovlap_

Definition at line 1365 of file Histograms.h.

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

TProfile* HResolutionVSPart::hResoVSPt_Ovlap_prof_

Definition at line 1371 of file Histograms.h.

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

TProfile* HResolutionVSPart::hResoVSPt_prof_

Definition at line 1366 of file Histograms.h.

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

TH2F* HResolutionVSPart::hResoVSPtEta_

Definition at line 1359 of file Histograms.h.

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

TH2F* HResolutionVSPart::hResoVSTheta_

Definition at line 1373 of file Histograms.h.

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