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 1141 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 1144 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.

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

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

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

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

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

Member Function Documentation

virtual void HResolutionVSPart::Clear ( )
inlinevirtual

Implements Histograms.

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

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

Reimplemented from Histograms.

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

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

Implements Histograms.

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

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

Member Data Documentation

bool HResolutionVSPart::doProfiles_

Definition at line 1383 of file Histograms.h.

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

TH1F* HResolutionVSPart::hAbsReso_

Definition at line 1379 of file Histograms.h.

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

TH2F* HResolutionVSPart::hAbsResoVSEta_

Definition at line 1381 of file Histograms.h.

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

TH2F* HResolutionVSPart::hAbsResoVSPhi_

Definition at line 1382 of file Histograms.h.

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

TH2F* HResolutionVSPart::hAbsResoVSPt_

Definition at line 1380 of file Histograms.h.

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

TH1F* HResolutionVSPart::hReso_

Definition at line 1359 of file Histograms.h.

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

TH2F* HResolutionVSPart::hResoVSEta_

Definition at line 1373 of file Histograms.h.

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

TProfile* HResolutionVSPart::hResoVSEta_prof_

Definition at line 1375 of file Histograms.h.

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

TProfile* HResolutionVSPart::hResoVSPhi_prof_

Definition at line 1378 of file Histograms.h.

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

TH2F* HResolutionVSPart::hResoVSPhiMinus_

Definition at line 1376 of file Histograms.h.

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

TH2F* HResolutionVSPart::hResoVSPhiPlus_

Definition at line 1377 of file Histograms.h.

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

TH2F* HResolutionVSPart::hResoVSPt_

Definition at line 1361 of file Histograms.h.

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

TH2F* HResolutionVSPart::hResoVSPt_Bar_

Definition at line 1362 of file Histograms.h.

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

TProfile* HResolutionVSPart::hResoVSPt_Bar_prof_

Definition at line 1368 of file Histograms.h.

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

TH2F* HResolutionVSPart::hResoVSPt_Endc_17_

Definition at line 1363 of file Histograms.h.

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

TProfile* HResolutionVSPart::hResoVSPt_Endc_17_prof_

Definition at line 1369 of file Histograms.h.

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

TH2F* HResolutionVSPart::hResoVSPt_Endc_20_

Definition at line 1364 of file Histograms.h.

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

TProfile* HResolutionVSPart::hResoVSPt_Endc_20_prof_

Definition at line 1370 of file Histograms.h.

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

TH2F* HResolutionVSPart::hResoVSPt_Endc_24_

Definition at line 1365 of file Histograms.h.

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

TProfile* HResolutionVSPart::hResoVSPt_Endc_24_prof_

Definition at line 1371 of file Histograms.h.

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

TH2F* HResolutionVSPart::hResoVSPt_Ovlap_

Definition at line 1366 of file Histograms.h.

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

TProfile* HResolutionVSPart::hResoVSPt_Ovlap_prof_

Definition at line 1372 of file Histograms.h.

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

TProfile* HResolutionVSPart::hResoVSPt_prof_

Definition at line 1367 of file Histograms.h.

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

TH2F* HResolutionVSPart::hResoVSPtEta_

Definition at line 1360 of file Histograms.h.

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

TH2F* HResolutionVSPart::hResoVSTheta_

Definition at line 1374 of file Histograms.h.

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