CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
HResolutionVSPart Class Reference

A set of histograms for resolution. More...

#include <Histograms.h>

Inherits Histograms.

Public Member Functions

void Clear () override
 
void Fill (const reco::Particle::LorentzVector &p4, const double &resValue, const int charge) override
 
 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)
 
void Write () override
 
 ~HResolutionVSPart () override
 

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_
 

Detailed Description

A set of histograms for resolution.

Definition at line 1201 of file Histograms.h.

Constructor & Destructor Documentation

◆ HResolutionVSPart() [1/2]

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 1203 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_, PV_cfg::maxPt, Skims_PA_cff::name, and Pi.

1211  : Histograms(outputFile, name), doProfiles_(doProfiles) {
1212  // Kinematical variables
1213 
1214  // hReso = new TH1F (name+"_Reso", "resolution", 4000, -1, 1);
1215  // hResoVSPtEta = new TH2F (name+"_ResoVSPtEta", "resolution VS pt and #eta", 200, 0, 200, 60, -3, 3);
1216  // hResoVSPt = new TH2F (name+"_ResoVSPt", "resolution VS pt", 200, 0, 200, 8000, -1, 1);
1217  // //hResoVSPt_prof = new TProfile (name+"_ResoVSPt_prof", "resolution VS pt", 100, 0, 200, -1, 1);
1218  // hResoVSEta = new TH2F (name+"_ResoVSEta", "resolution VS eta", 60, -3, 3, 8000, yMinEta, yMaxEta);
1219  // hResoVSTheta = new TH2F (name+"_ResoVSTheta", "resolution VS theta", 30, 0, TMath::Pi(), 8000, -1, 1);
1220  // //hResoVSEta_prof = new TProfile (name+"_ResoVSEta_prof", "resolution VS eta", 10, -2.5, 2.5, -1, 1);
1221  // hResoVSPhiPlus = new TH2F (name+"_ResoVSPhiPlus", "resolution VS phi mu+", 14, -3.2, 3.2, 8000, -1, 1);
1222  // hResoVSPhiMinus = new TH2F (name+"_ResoVSPhiMinus", "resolution VS phi mu-", 14, -3.2, 3.2, 8000, -1, 1);
1223  // //hResoVSPhi_prof = new TProfile (name+"_ResoVSPhi_prof", "resolution VS phi", 14, -3.2, 3.2, -1, 1);
1224  // hAbsReso = new TH1F (name+"_AbsReso", "resolution", 100, 0, 1);
1225  // hAbsResoVSPt = new TH2F (name+"_AbsResoVSPt", "Abs resolution VS pt", 200, 0, 500, 100, 0, 1);
1226  // hAbsResoVSEta = new TH2F (name+"_AbsResoVSEta", "Abs resolution VS eta", 60, -3, 3, 100, 0, 1);
1227  // hAbsResoVSPhi = new TH2F (name+"_AbsResoVSPhi", "Abs resolution VS phi", 14, -3.2, 3.2, 100, 0, 1);
1228 
1229  hReso_ = new TH1F(name + "_Reso", "resolution", 200, -1, 1);
1230  hResoVSPtEta_ = new TH2F(name + "_ResoVSPtEta", "resolution VS pt and #eta", 200, 0, maxPt, 60, -3, 3);
1231  hResoVSPt_ = new TH2F(name + "_ResoVSPt", "resolution VS pt", 200, 0, maxPt, 200, yMinPt, yMaxPt);
1232  hResoVSPt_Bar_ = new TH2F(name + "_ResoVSPt_Bar", "resolution VS pt Barrel", 200, 0, maxPt, 200, yMinPt, yMaxPt);
1233  hResoVSPt_Endc_17_ = new TH2F(
1234  name + "_ResoVSPt_Endc_1.7", "resolution VS pt Endcap (1.4<eta<1.7)", 200, 0, maxPt, 200, yMinPt, yMaxPt);
1235  hResoVSPt_Endc_20_ = new TH2F(
1236  name + "_ResoVSPt_Endc_2.0", "resolution VS pt Endcap (1.7<eta<2.0)", 200, 0, maxPt, 200, yMinPt, yMaxPt);
1237  hResoVSPt_Endc_24_ = new TH2F(
1238  name + "_ResoVSPt_Endc_2.4", "resolution VS pt Endcap (2.0<eta<2.4)", 200, 0, maxPt, 200, yMinPt, yMaxPt);
1240  new TH2F(name + "_ResoVSPt_Ovlap", "resolution VS pt overlap", 200, 0, maxPt, 200, yMinPt, yMaxPt);
1241  hResoVSEta_ = new TH2F(name + "_ResoVSEta", "resolution VS eta", 200, -3, 3, 200, yMinEta, yMaxEta);
1242  hResoVSTheta_ = new TH2F(name + "_ResoVSTheta", "resolution VS theta", 30, 0, TMath::Pi(), 200, yMinEta, yMaxEta);
1243  hResoVSPhiPlus_ = new TH2F(name + "_ResoVSPhiPlus", "resolution VS phi mu+", 16, -3.2, 3.2, 200, -1, 1);
1244  hResoVSPhiMinus_ = new TH2F(name + "_ResoVSPhiMinus", "resolution VS phi mu-", 16, -3.2, 3.2, 200, -1, 1);
1245  hAbsReso_ = new TH1F(name + "_AbsReso", "resolution", 100, 0, 1);
1246  hAbsResoVSPt_ = new TH2F(name + "_AbsResoVSPt", "Abs resolution VS pt", 200, 0, maxPt, 100, 0, 1);
1247  hAbsResoVSEta_ = new TH2F(name + "_AbsResoVSEta", "Abs resolution VS eta", 64, -3.2, 3.2, 100, 0, 1);
1248  hAbsResoVSPhi_ = new TH2F(name + "_AbsResoVSPhi", "Abs resolution VS phi", 16, -3.2, 3.2, 100, 0, 1);
1249  if (doProfiles_) {
1250  hResoVSPt_prof_ = new TProfile(name + "_ResoVSPt_prof", "resolution VS pt", 100, 0, maxPt, yMinPt, yMaxPt);
1252  new TProfile(name + "_ResoVSPt_Bar_prof", "resolution VS pt Barrel", 100, 0, maxPt, yMinPt, yMaxPt);
1253  hResoVSPt_Endc_17_prof_ = new TProfile(
1254  name + "_ResoVSPt_Endc_1.7_prof", "resolution VS pt Endcap (1.4<eta<1.7)", 100, 0, maxPt, yMinPt, yMaxPt);
1255  hResoVSPt_Endc_20_prof_ = new TProfile(
1256  name + "_ResoVSPt_Endc_2.0_prof", "resolution VS pt Endcap (1.7<eta<2.0)", 100, 0, maxPt, yMinPt, yMaxPt);
1257  hResoVSPt_Endc_24_prof_ = new TProfile(
1258  name + "_ResoVSPt_Endc_2.4_prof", "resolution VS pt Endcap (2.0<eta<2.4)", 100, 0, maxPt, yMinPt, yMaxPt);
1260  new TProfile(name + "_ResoVSPt_Ovlap_prof", "resolution VS pt Overlap", 100, 0, maxPt, yMinPt, yMaxPt);
1261  hResoVSEta_prof_ = new TProfile(name + "_ResoVSEta_prof", "resolution VS eta", 200, -3.0, 3.0, yMinEta, yMaxEta);
1262  hResoVSPhi_prof_ = new TProfile(name + "_ResoVSPhi_prof", "resolution VS phi", 16, -3.2, 3.2, -1, 1);
1263  }
1264  }
const double Pi
TH2F * hResoVSPt_Endc_17_
Definition: Histograms.h:1436
TProfile * hResoVSPhi_prof_
Definition: Histograms.h:1451
TH2F * hResoVSPhiMinus_
Definition: Histograms.h:1449
TH2F * hResoVSPhiPlus_
Definition: Histograms.h:1450
TProfile * hResoVSPt_Endc_17_prof_
Definition: Histograms.h:1442
TProfile * hResoVSPt_Ovlap_prof_
Definition: Histograms.h:1445
TH2F * hResoVSPt_Ovlap_
Definition: Histograms.h:1439
TH2F * hResoVSPt_Endc_24_
Definition: Histograms.h:1438
TProfile * hResoVSPt_prof_
Definition: Histograms.h:1440
maxPt
Definition: PV_cfg.py:224
TH2F * hResoVSPt_Endc_20_
Definition: Histograms.h:1437
TProfile * hResoVSPt_Endc_24_prof_
Definition: Histograms.h:1444
TProfile * hResoVSPt_Bar_prof_
Definition: Histograms.h:1441
TProfile * hResoVSPt_Endc_20_prof_
Definition: Histograms.h:1443
TProfile * hResoVSEta_prof_
Definition: Histograms.h:1448

◆ HResolutionVSPart() [2/2]

HResolutionVSPart::HResolutionVSPart ( const TString &  name,
TFile *  file 
)
inline

Definition at line 1266 of file Histograms.h.

References doProfiles_, geometryDiff::file, 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 Skims_PA_cff::name.

1266  {
1267  name_ = name;
1268  hReso_ = (TH1F*)file->Get(name + "_Reso");
1269  hResoVSPtEta_ = (TH2F*)file->Get(name + "_ResoVSPtEta");
1270  hResoVSPt_ = (TH2F*)file->Get(name + "_ResoVSPt");
1271  hResoVSPt_Bar_ = (TH2F*)file->Get(name + "_ResoVSPt");
1272  hResoVSPt_Endc_17_ = (TH2F*)file->Get(name + "_ResoVSPt");
1273  hResoVSPt_Endc_20_ = (TH2F*)file->Get(name + "_ResoVSPt");
1274  hResoVSPt_Endc_24_ = (TH2F*)file->Get(name + "_ResoVSPt");
1275  hResoVSPt_Ovlap_ = (TH2F*)file->Get(name + "_ResoVSPt");
1276  hResoVSEta_ = (TH2F*)file->Get(name + "_ResoVSEta");
1277  hResoVSTheta_ = (TH2F*)file->Get(name + "_ResoVSTheta");
1278  hResoVSPhiPlus_ = (TH2F*)file->Get(name + "_ResoVSPhiPlus");
1279  hResoVSPhiMinus_ = (TH2F*)file->Get(name + "_ResoVSPhiMinus");
1280  hAbsReso_ = (TH1F*)file->Get(name + "_AbsReso");
1281  hAbsResoVSPt_ = (TH2F*)file->Get(name + "_AbsResoVSPt");
1282  hAbsResoVSEta_ = (TH2F*)file->Get(name + "_AbsResoVSEta");
1283  hAbsResoVSPhi_ = (TH2F*)file->Get(name + "_AbsResoVSPhi");
1284  if (doProfiles_) {
1285  hResoVSPt_prof_ = (TProfile*)file->Get(name + "_ResoVSPt_prof");
1286  hResoVSPt_Bar_prof_ = (TProfile*)file->Get(name + "_ResoVSPt_prof");
1287  hResoVSPt_Endc_17_prof_ = (TProfile*)file->Get(name + "_ResoVSPt_1.7_prof");
1288  hResoVSPt_Endc_20_prof_ = (TProfile*)file->Get(name + "_ResoVSPt_2.0_prof");
1289  hResoVSPt_Endc_24_prof_ = (TProfile*)file->Get(name + "_ResoVSPt_2.4_prof");
1290  hResoVSPt_Ovlap_prof_ = (TProfile*)file->Get(name + "_ResoVSPt_prof");
1291  hResoVSEta_prof_ = (TProfile*)file->Get(name + "_ResoVSEta_prof");
1292  hResoVSPhi_prof_ = (TProfile*)file->Get(name + "_ResoVSPhi_prof");
1293  }
1294  }
TH2F * hResoVSPt_Endc_17_
Definition: Histograms.h:1436
TProfile * hResoVSPhi_prof_
Definition: Histograms.h:1451
TH2F * hResoVSPhiMinus_
Definition: Histograms.h:1449
TH2F * hResoVSPhiPlus_
Definition: Histograms.h:1450
TProfile * hResoVSPt_Endc_17_prof_
Definition: Histograms.h:1442
TProfile * hResoVSPt_Ovlap_prof_
Definition: Histograms.h:1445
TH2F * hResoVSPt_Ovlap_
Definition: Histograms.h:1439
TH2F * hResoVSPt_Endc_24_
Definition: Histograms.h:1438
TProfile * hResoVSPt_prof_
Definition: Histograms.h:1440
TH2F * hResoVSPt_Endc_20_
Definition: Histograms.h:1437
TProfile * hResoVSPt_Endc_24_prof_
Definition: Histograms.h:1444
TProfile * hResoVSPt_Bar_prof_
Definition: Histograms.h:1441
TProfile * hResoVSPt_Endc_20_prof_
Definition: Histograms.h:1443
TProfile * hResoVSEta_prof_
Definition: Histograms.h:1448

◆ ~HResolutionVSPart()

HResolutionVSPart::~HResolutionVSPart ( )
inlineoverride

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

1296  {
1297  delete hReso_;
1298  delete hResoVSPtEta_;
1299  delete hResoVSPt_;
1300  delete hResoVSPt_Bar_;
1301  delete hResoVSPt_Endc_17_;
1302  delete hResoVSPt_Endc_20_;
1303  delete hResoVSPt_Endc_24_;
1304  delete hResoVSPt_Ovlap_;
1305  delete hResoVSEta_;
1306  delete hResoVSTheta_;
1307  delete hResoVSPhiMinus_;
1308  delete hResoVSPhiPlus_;
1309  delete hAbsReso_;
1310  delete hAbsResoVSPt_;
1311  delete hAbsResoVSEta_;
1312  delete hAbsResoVSPhi_;
1313  if (doProfiles_) {
1314  delete hResoVSPt_prof_;
1315  delete hResoVSPt_Bar_prof_;
1316  delete hResoVSPt_Endc_17_prof_;
1317  delete hResoVSPt_Endc_20_prof_;
1318  delete hResoVSPt_Endc_24_prof_;
1319  delete hResoVSPt_Ovlap_prof_;
1320  delete hResoVSEta_prof_;
1321  delete hResoVSPhi_prof_;
1322  }
1323  }
TH2F * hResoVSPt_Endc_17_
Definition: Histograms.h:1436
TProfile * hResoVSPhi_prof_
Definition: Histograms.h:1451
TH2F * hResoVSPhiMinus_
Definition: Histograms.h:1449
TH2F * hResoVSPhiPlus_
Definition: Histograms.h:1450
TProfile * hResoVSPt_Endc_17_prof_
Definition: Histograms.h:1442
TProfile * hResoVSPt_Ovlap_prof_
Definition: Histograms.h:1445
TH2F * hResoVSPt_Ovlap_
Definition: Histograms.h:1439
TH2F * hResoVSPt_Endc_24_
Definition: Histograms.h:1438
TProfile * hResoVSPt_prof_
Definition: Histograms.h:1440
TH2F * hResoVSPt_Endc_20_
Definition: Histograms.h:1437
TProfile * hResoVSPt_Endc_24_prof_
Definition: Histograms.h:1444
TProfile * hResoVSPt_Bar_prof_
Definition: Histograms.h:1441
TProfile * hResoVSPt_Endc_20_prof_
Definition: Histograms.h:1443
TProfile * hResoVSEta_prof_
Definition: Histograms.h:1448

Member Function Documentation

◆ Clear()

void HResolutionVSPart::Clear ( )
inlineoverride

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

1402  {
1403  hReso_->Clear();
1404  hResoVSPtEta_->Clear();
1405  hResoVSPt_->Clear();
1406  hResoVSPt_Bar_->Clear();
1407  hResoVSPt_Endc_17_->Clear();
1408  hResoVSPt_Endc_20_->Clear();
1409  hResoVSPt_Endc_24_->Clear();
1410  hResoVSPt_Ovlap_->Clear();
1411  hResoVSEta_->Clear();
1412  hResoVSTheta_->Clear();
1413  hResoVSPhiPlus_->Clear();
1414  hResoVSPhiMinus_->Clear();
1415  hAbsReso_->Clear();
1416  hAbsResoVSPt_->Clear();
1417  hAbsResoVSEta_->Clear();
1418  hAbsResoVSPhi_->Clear();
1419  if (doProfiles_) {
1420  hResoVSPt_prof_->Clear();
1421  hResoVSPt_Bar_prof_->Clear();
1422  hResoVSPt_Endc_17_prof_->Clear();
1423  hResoVSPt_Endc_20_prof_->Clear();
1424  hResoVSPt_Endc_24_prof_->Clear();
1425  hResoVSPt_Ovlap_prof_->Clear();
1426  hResoVSEta_prof_->Clear();
1427  hResoVSPhi_prof_->Clear();
1428  }
1429  }
TH2F * hResoVSPt_Endc_17_
Definition: Histograms.h:1436
TProfile * hResoVSPhi_prof_
Definition: Histograms.h:1451
TH2F * hResoVSPhiMinus_
Definition: Histograms.h:1449
TH2F * hResoVSPhiPlus_
Definition: Histograms.h:1450
TProfile * hResoVSPt_Endc_17_prof_
Definition: Histograms.h:1442
TProfile * hResoVSPt_Ovlap_prof_
Definition: Histograms.h:1445
TH2F * hResoVSPt_Ovlap_
Definition: Histograms.h:1439
TH2F * hResoVSPt_Endc_24_
Definition: Histograms.h:1438
TProfile * hResoVSPt_prof_
Definition: Histograms.h:1440
TH2F * hResoVSPt_Endc_20_
Definition: Histograms.h:1437
TProfile * hResoVSPt_Endc_24_prof_
Definition: Histograms.h:1444
TProfile * hResoVSPt_Bar_prof_
Definition: Histograms.h:1441
TProfile * hResoVSPt_Endc_20_prof_
Definition: Histograms.h:1443
TProfile * hResoVSEta_prof_
Definition: Histograms.h:1448

◆ Fill()

void HResolutionVSPart::Fill ( const reco::Particle::LorentzVector p4,
const double &  resValue,
const int  charge 
)
inlineoverride

Definition at line 1325 of file Histograms.h.

References ALCARECOTkAlJpsiMuMu_cff::charge, doProfiles_, PVValHelper::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 DiDispStaMuonMonitor_cfi::pt.

1325  {
1326  double pt = p4.Pt();
1327  double eta = p4.Eta();
1328  hReso_->Fill(resValue);
1329  hResoVSPtEta_->Fill(pt, eta, resValue);
1330  hResoVSPt_->Fill(pt, resValue);
1331  if (fabs(eta) <= 0.9)
1332  hResoVSPt_Bar_->Fill(pt, resValue);
1333  else if (fabs(eta) > 0.9 && fabs(eta) <= 1.4)
1334  hResoVSPt_Ovlap_->Fill(pt, resValue);
1335  else if (fabs(eta) > 1.4 && fabs(eta) <= 1.7)
1336  hResoVSPt_Endc_17_->Fill(pt, resValue);
1337  else if (fabs(eta) > 1.7 && fabs(eta) <= 2.0)
1338  hResoVSPt_Endc_20_->Fill(pt, resValue);
1339  else
1340  hResoVSPt_Endc_24_->Fill(pt, resValue);
1341 
1342  hResoVSEta_->Fill(eta, resValue);
1343  hResoVSTheta_->Fill(p4.Theta(), resValue);
1344  if (charge > 0)
1345  hResoVSPhiPlus_->Fill(p4.Phi(), resValue);
1346  else if (charge < 0)
1347  hResoVSPhiMinus_->Fill(p4.Phi(), resValue);
1348  hAbsReso_->Fill(fabs(resValue));
1349  hAbsResoVSPt_->Fill(pt, fabs(resValue));
1350  hAbsResoVSEta_->Fill(eta, fabs(resValue));
1351  hAbsResoVSPhi_->Fill(p4.Phi(), fabs(resValue));
1352  if (doProfiles_) {
1353  hResoVSPt_prof_->Fill(p4.Pt(), resValue);
1354  if (fabs(eta) <= 0.9)
1355  hResoVSPt_Bar_prof_->Fill(p4.Pt(), resValue);
1356  else if (fabs(eta) > 0.9 && fabs(eta) <= 1.4)
1357  hResoVSPt_Ovlap_prof_->Fill(pt, resValue);
1358  else if (fabs(eta) > 1.4 && fabs(eta) <= 1.7)
1359  hResoVSPt_Endc_17_prof_->Fill(pt, resValue);
1360  else if (fabs(eta) > 1.7 && fabs(eta) <= 2.0)
1361  hResoVSPt_Endc_20_prof_->Fill(pt, resValue);
1362  else
1363  hResoVSPt_Endc_24_prof_->Fill(pt, resValue);
1364 
1365  hResoVSEta_prof_->Fill(p4.Eta(), resValue);
1366  hResoVSPhi_prof_->Fill(p4.Phi(), resValue);
1367  }
1368  }
TH2F * hResoVSPt_Endc_17_
Definition: Histograms.h:1436
TProfile * hResoVSPhi_prof_
Definition: Histograms.h:1451
TH2F * hResoVSPhiMinus_
Definition: Histograms.h:1449
TH2F * hResoVSPhiPlus_
Definition: Histograms.h:1450
TProfile * hResoVSPt_Endc_17_prof_
Definition: Histograms.h:1442
TProfile * hResoVSPt_Ovlap_prof_
Definition: Histograms.h:1445
TH2F * hResoVSPt_Ovlap_
Definition: Histograms.h:1439
TH2F * hResoVSPt_Endc_24_
Definition: Histograms.h:1438
TProfile * hResoVSPt_prof_
Definition: Histograms.h:1440
TH2F * hResoVSPt_Endc_20_
Definition: Histograms.h:1437
TProfile * hResoVSPt_Endc_24_prof_
Definition: Histograms.h:1444
TProfile * hResoVSPt_Bar_prof_
Definition: Histograms.h:1441
TProfile * hResoVSPt_Endc_20_prof_
Definition: Histograms.h:1443
TProfile * hResoVSEta_prof_
Definition: Histograms.h:1448

◆ Write()

void HResolutionVSPart::Write ( )
inlineoverride

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

1370  {
1371  if (histoDir_ != nullptr)
1372  histoDir_->cd();
1373 
1374  hReso_->Write();
1375  hResoVSPtEta_->Write();
1376  hResoVSPt_->Write();
1377  hResoVSPt_Bar_->Write();
1378  hResoVSPt_Endc_17_->Write();
1379  hResoVSPt_Endc_20_->Write();
1380  hResoVSPt_Endc_24_->Write();
1381  hResoVSPt_Ovlap_->Write();
1382  hResoVSEta_->Write();
1383  hResoVSTheta_->Write();
1384  hResoVSPhiMinus_->Write();
1385  hResoVSPhiPlus_->Write();
1386  hAbsReso_->Write();
1387  hAbsResoVSPt_->Write();
1388  hAbsResoVSEta_->Write();
1389  hAbsResoVSPhi_->Write();
1390  if (doProfiles_) {
1391  hResoVSPt_prof_->Write();
1392  hResoVSPt_Bar_prof_->Write();
1393  hResoVSPt_Endc_17_prof_->Write();
1394  hResoVSPt_Endc_20_prof_->Write();
1395  hResoVSPt_Endc_24_prof_->Write();
1396  hResoVSPt_Ovlap_prof_->Write();
1397  hResoVSEta_prof_->Write();
1398  hResoVSPhi_prof_->Write();
1399  }
1400  }
TH2F * hResoVSPt_Endc_17_
Definition: Histograms.h:1436
TProfile * hResoVSPhi_prof_
Definition: Histograms.h:1451
TH2F * hResoVSPhiMinus_
Definition: Histograms.h:1449
TH2F * hResoVSPhiPlus_
Definition: Histograms.h:1450
TProfile * hResoVSPt_Endc_17_prof_
Definition: Histograms.h:1442
TProfile * hResoVSPt_Ovlap_prof_
Definition: Histograms.h:1445
TH2F * hResoVSPt_Ovlap_
Definition: Histograms.h:1439
TH2F * hResoVSPt_Endc_24_
Definition: Histograms.h:1438
TProfile * hResoVSPt_prof_
Definition: Histograms.h:1440
TH2F * hResoVSPt_Endc_20_
Definition: Histograms.h:1437
TProfile * hResoVSPt_Endc_24_prof_
Definition: Histograms.h:1444
TProfile * hResoVSPt_Bar_prof_
Definition: Histograms.h:1441
TProfile * hResoVSPt_Endc_20_prof_
Definition: Histograms.h:1443
TProfile * hResoVSEta_prof_
Definition: Histograms.h:1448

Member Data Documentation

◆ doProfiles_

bool HResolutionVSPart::doProfiles_

Definition at line 1456 of file Histograms.h.

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

◆ hAbsReso_

TH1F* HResolutionVSPart::hAbsReso_

Definition at line 1452 of file Histograms.h.

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

◆ hAbsResoVSEta_

TH2F* HResolutionVSPart::hAbsResoVSEta_

Definition at line 1454 of file Histograms.h.

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

◆ hAbsResoVSPhi_

TH2F* HResolutionVSPart::hAbsResoVSPhi_

Definition at line 1455 of file Histograms.h.

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

◆ hAbsResoVSPt_

TH2F* HResolutionVSPart::hAbsResoVSPt_

Definition at line 1453 of file Histograms.h.

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

◆ hReso_

TH1F* HResolutionVSPart::hReso_

Definition at line 1432 of file Histograms.h.

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

◆ hResoVSEta_

TH2F* HResolutionVSPart::hResoVSEta_

Definition at line 1446 of file Histograms.h.

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

◆ hResoVSEta_prof_

TProfile* HResolutionVSPart::hResoVSEta_prof_

Definition at line 1448 of file Histograms.h.

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

◆ hResoVSPhi_prof_

TProfile* HResolutionVSPart::hResoVSPhi_prof_

Definition at line 1451 of file Histograms.h.

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

◆ hResoVSPhiMinus_

TH2F* HResolutionVSPart::hResoVSPhiMinus_

Definition at line 1449 of file Histograms.h.

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

◆ hResoVSPhiPlus_

TH2F* HResolutionVSPart::hResoVSPhiPlus_

Definition at line 1450 of file Histograms.h.

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

◆ hResoVSPt_

TH2F* HResolutionVSPart::hResoVSPt_

Definition at line 1434 of file Histograms.h.

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

◆ hResoVSPt_Bar_

TH2F* HResolutionVSPart::hResoVSPt_Bar_

Definition at line 1435 of file Histograms.h.

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

◆ hResoVSPt_Bar_prof_

TProfile* HResolutionVSPart::hResoVSPt_Bar_prof_

Definition at line 1441 of file Histograms.h.

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

◆ hResoVSPt_Endc_17_

TH2F* HResolutionVSPart::hResoVSPt_Endc_17_

Definition at line 1436 of file Histograms.h.

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

◆ hResoVSPt_Endc_17_prof_

TProfile* HResolutionVSPart::hResoVSPt_Endc_17_prof_

Definition at line 1442 of file Histograms.h.

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

◆ hResoVSPt_Endc_20_

TH2F* HResolutionVSPart::hResoVSPt_Endc_20_

Definition at line 1437 of file Histograms.h.

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

◆ hResoVSPt_Endc_20_prof_

TProfile* HResolutionVSPart::hResoVSPt_Endc_20_prof_

Definition at line 1443 of file Histograms.h.

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

◆ hResoVSPt_Endc_24_

TH2F* HResolutionVSPart::hResoVSPt_Endc_24_

Definition at line 1438 of file Histograms.h.

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

◆ hResoVSPt_Endc_24_prof_

TProfile* HResolutionVSPart::hResoVSPt_Endc_24_prof_

Definition at line 1444 of file Histograms.h.

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

◆ hResoVSPt_Ovlap_

TH2F* HResolutionVSPart::hResoVSPt_Ovlap_

Definition at line 1439 of file Histograms.h.

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

◆ hResoVSPt_Ovlap_prof_

TProfile* HResolutionVSPart::hResoVSPt_Ovlap_prof_

Definition at line 1445 of file Histograms.h.

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

◆ hResoVSPt_prof_

TProfile* HResolutionVSPart::hResoVSPt_prof_

Definition at line 1440 of file Histograms.h.

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

◆ hResoVSPtEta_

TH2F* HResolutionVSPart::hResoVSPtEta_

Definition at line 1433 of file Histograms.h.

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

◆ hResoVSTheta_

TH2F* HResolutionVSPart::hResoVSTheta_

Definition at line 1447 of file Histograms.h.

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