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

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

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

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

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

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

Member Function Documentation

virtual void HResolutionVSPart::Clear ( )
inlinevirtual

Implements Histograms.

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

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

Reimplemented from Histograms.

Definition at line 1250 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 RecoTauCleanerPlugins::pt.

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

Implements Histograms.

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

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

Member Data Documentation

bool HResolutionVSPart::doProfiles_

Definition at line 1380 of file Histograms.h.

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

TH1F* HResolutionVSPart::hAbsReso_

Definition at line 1376 of file Histograms.h.

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

TH2F* HResolutionVSPart::hAbsResoVSEta_

Definition at line 1378 of file Histograms.h.

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

TH2F* HResolutionVSPart::hAbsResoVSPhi_

Definition at line 1379 of file Histograms.h.

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

TH2F* HResolutionVSPart::hAbsResoVSPt_

Definition at line 1377 of file Histograms.h.

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

TH1F* HResolutionVSPart::hReso_

Definition at line 1356 of file Histograms.h.

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

TH2F* HResolutionVSPart::hResoVSEta_

Definition at line 1370 of file Histograms.h.

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

TProfile* HResolutionVSPart::hResoVSEta_prof_

Definition at line 1372 of file Histograms.h.

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

TProfile* HResolutionVSPart::hResoVSPhi_prof_

Definition at line 1375 of file Histograms.h.

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

TH2F* HResolutionVSPart::hResoVSPhiMinus_

Definition at line 1373 of file Histograms.h.

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

TH2F* HResolutionVSPart::hResoVSPhiPlus_

Definition at line 1374 of file Histograms.h.

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

TH2F* HResolutionVSPart::hResoVSPt_

Definition at line 1358 of file Histograms.h.

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

TH2F* HResolutionVSPart::hResoVSPt_Bar_

Definition at line 1359 of file Histograms.h.

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

TProfile* HResolutionVSPart::hResoVSPt_Bar_prof_

Definition at line 1365 of file Histograms.h.

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

TH2F* HResolutionVSPart::hResoVSPt_Endc_17_

Definition at line 1360 of file Histograms.h.

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

TProfile* HResolutionVSPart::hResoVSPt_Endc_17_prof_

Definition at line 1366 of file Histograms.h.

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

TH2F* HResolutionVSPart::hResoVSPt_Endc_20_

Definition at line 1361 of file Histograms.h.

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

TProfile* HResolutionVSPart::hResoVSPt_Endc_20_prof_

Definition at line 1367 of file Histograms.h.

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

TH2F* HResolutionVSPart::hResoVSPt_Endc_24_

Definition at line 1362 of file Histograms.h.

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

TProfile* HResolutionVSPart::hResoVSPt_Endc_24_prof_

Definition at line 1368 of file Histograms.h.

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

TH2F* HResolutionVSPart::hResoVSPt_Ovlap_

Definition at line 1363 of file Histograms.h.

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

TProfile* HResolutionVSPart::hResoVSPt_Ovlap_prof_

Definition at line 1369 of file Histograms.h.

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

TProfile* HResolutionVSPart::hResoVSPt_prof_

Definition at line 1364 of file Histograms.h.

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

TH2F* HResolutionVSPart::hResoVSPtEta_

Definition at line 1357 of file Histograms.h.

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

TH2F* HResolutionVSPart::hResoVSTheta_

Definition at line 1371 of file Histograms.h.

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