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 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)
 
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 857 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 860 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.

863  : Histograms(outputFile, name), doProfiles_(doProfiles)
864  {
865  // Kinematical variables
866 
867  // hReso = new TH1F (name+"_Reso", "resolution", 4000, -1, 1);
868  // hResoVSPtEta = new TH2F (name+"_ResoVSPtEta", "resolution VS pt and #eta", 200, 0, 200, 60, -3, 3);
869  // hResoVSPt = new TH2F (name+"_ResoVSPt", "resolution VS pt", 200, 0, 200, 8000, -1, 1);
870  // //hResoVSPt_prof = new TProfile (name+"_ResoVSPt_prof", "resolution VS pt", 100, 0, 200, -1, 1);
871  // hResoVSEta = new TH2F (name+"_ResoVSEta", "resolution VS eta", 60, -3, 3, 8000, yMinEta, yMaxEta);
872  // hResoVSTheta = new TH2F (name+"_ResoVSTheta", "resolution VS theta", 30, 0, TMath::Pi(), 8000, -1, 1);
873  // //hResoVSEta_prof = new TProfile (name+"_ResoVSEta_prof", "resolution VS eta", 10, -2.5, 2.5, -1, 1);
874  // hResoVSPhiPlus = new TH2F (name+"_ResoVSPhiPlus", "resolution VS phi mu+", 14, -3.2, 3.2, 8000, -1, 1);
875  // hResoVSPhiMinus = new TH2F (name+"_ResoVSPhiMinus", "resolution VS phi mu-", 14, -3.2, 3.2, 8000, -1, 1);
876  // //hResoVSPhi_prof = new TProfile (name+"_ResoVSPhi_prof", "resolution VS phi", 14, -3.2, 3.2, -1, 1);
877  // hAbsReso = new TH1F (name+"_AbsReso", "resolution", 100, 0, 1);
878  // hAbsResoVSPt = new TH2F (name+"_AbsResoVSPt", "Abs resolution VS pt", 200, 0, 500, 100, 0, 1);
879  // hAbsResoVSEta = new TH2F (name+"_AbsResoVSEta", "Abs resolution VS eta", 60, -3, 3, 100, 0, 1);
880  // hAbsResoVSPhi = new TH2F (name+"_AbsResoVSPhi", "Abs resolution VS phi", 14, -3.2, 3.2, 100, 0, 1);
881 
882  hReso_ = new TH1F( name+"_Reso", "resolution", 200, -1, 1 );
883  hResoVSPtEta_ = new TH2F( name+"_ResoVSPtEta", "resolution VS pt and #eta", 200, 0, maxPt, 60, -3, 3 );
884  hResoVSPt_ = new TH2F( name+"_ResoVSPt", "resolution VS pt", 200, 0, maxPt, 200, yMinPt, yMaxPt );
885  hResoVSPt_Bar_ = new TH2F( name+"_ResoVSPt_Bar", "resolution VS pt Barrel", 200, 0, maxPt, 200, yMinPt, yMaxPt );
886  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 );
887  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 );
888  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 );
889  hResoVSPt_Ovlap_ = new TH2F( name+"_ResoVSPt_Ovlap", "resolution VS pt overlap", 200, 0, maxPt, 200, yMinPt, yMaxPt );
890  hResoVSEta_ = new TH2F( name+"_ResoVSEta", "resolution VS eta", 200, -3, 3, 200, yMinEta, yMaxEta );
891  hResoVSTheta_ = new TH2F( name+"_ResoVSTheta", "resolution VS theta", 30, 0, TMath::Pi(), 200, yMinEta, yMaxEta );
892  hResoVSPhiPlus_ = new TH2F( name+"_ResoVSPhiPlus", "resolution VS phi mu+", 14, -3.2, 3.2, 200, -1, 1 );
893  hResoVSPhiMinus_ = new TH2F( name+"_ResoVSPhiMinus", "resolution VS phi mu-", 14, -3.2, 3.2, 200, -1, 1 );
894  hAbsReso_ = new TH1F( name+"_AbsReso", "resolution", 100, 0, 1 );
895  hAbsResoVSPt_ = new TH2F( name+"_AbsResoVSPt", "Abs resolution VS pt", 200, 0, maxPt, 100, 0, 1 );
896  hAbsResoVSEta_ = new TH2F( name+"_AbsResoVSEta", "Abs resolution VS eta", 60, -3, 3, 100, 0, 1 );
897  hAbsResoVSPhi_ = new TH2F( name+"_AbsResoVSPhi", "Abs resolution VS phi", 14, -3.2, 3.2, 100, 0, 1 );
898  if( doProfiles_ ) {
899  hResoVSPt_prof_ = new TProfile(name+"_ResoVSPt_prof", "resolution VS pt", 100, 0, maxPt, yMinPt, yMaxPt );
900  hResoVSPt_Bar_prof_ = new TProfile(name+"_ResoVSPt_Bar_prof", "resolution VS pt Barrel", 100, 0, maxPt, yMinPt, yMaxPt );
901  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 );
902  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 );
903  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 );
904  hResoVSPt_Ovlap_prof_ = new TProfile(name+"_ResoVSPt_Ovlap_prof", "resolution VS pt Overlap", 100, 0, maxPt, yMinPt, yMaxPt );
905  hResoVSEta_prof_ = new TProfile(name+"_ResoVSEta_prof", "resolution VS eta", 100, -3.0, 3.0, yMinEta, yMaxEta );
906  hResoVSPhi_prof_ = new TProfile(name+"_ResoVSPhi_prof", "resolution VS phi", 14, -3.2, 3.2, -1, 1 );
907  }
908  }
const double Pi
TH2F * hResoVSPt_Endc_17_
Definition: Histograms.h:1079
TProfile * hResoVSPhi_prof_
Definition: Histograms.h:1094
TH2F * hResoVSPhiMinus_
Definition: Histograms.h:1092
TH2F * hResoVSPhiPlus_
Definition: Histograms.h:1093
TProfile * hResoVSPt_Endc_17_prof_
Definition: Histograms.h:1085
TProfile * hResoVSPt_Ovlap_prof_
Definition: Histograms.h:1088
TH2F * hResoVSPt_Ovlap_
Definition: Histograms.h:1082
TH2F * hResoVSPt_Endc_24_
Definition: Histograms.h:1081
TProfile * hResoVSPt_prof_
Definition: Histograms.h:1083
TH2F * hResoVSPt_Endc_20_
Definition: Histograms.h:1080
TProfile * hResoVSPt_Endc_24_prof_
Definition: Histograms.h:1087
TProfile * hResoVSPt_Bar_prof_
Definition: Histograms.h:1084
TProfile * hResoVSPt_Endc_20_prof_
Definition: Histograms.h:1086
TProfile * hResoVSEta_prof_
Definition: Histograms.h:1091
HResolutionVSPart::HResolutionVSPart ( const TString &  name,
TFile *  file 
)
inline

Definition at line 910 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_, AlCaRecoCosmics_cfg::name, and Histograms::name_.

910  {
911  name_=name;
912  hReso_ = (TH1F *) file->Get(name+"_Reso");
913  hResoVSPtEta_ = (TH2F *) file->Get(name+"_ResoVSPtEta");
914  hResoVSPt_ = (TH2F *) file->Get(name+"_ResoVSPt");
915  hResoVSPt_Bar_ = (TH2F *) file->Get(name+"_ResoVSPt");
916  hResoVSPt_Endc_17_ = (TH2F *) file->Get(name+"_ResoVSPt");
917  hResoVSPt_Endc_20_ = (TH2F *) file->Get(name+"_ResoVSPt");
918  hResoVSPt_Endc_24_ = (TH2F *) file->Get(name+"_ResoVSPt");
919  hResoVSPt_Ovlap_ = (TH2F *) file->Get(name+"_ResoVSPt");
920  hResoVSEta_ = (TH2F *) file->Get(name+"_ResoVSEta");
921  hResoVSTheta_ = (TH2F *) file->Get(name+"_ResoVSTheta");
922  hResoVSPhiPlus_ = (TH2F *) file->Get(name+"_ResoVSPhiPlus");
923  hResoVSPhiMinus_ = (TH2F *) file->Get(name+"_ResoVSPhiMinus");
924  hAbsReso_ = (TH1F *) file->Get(name+"_AbsReso");
925  hAbsResoVSPt_ = (TH2F *) file->Get(name+"_AbsResoVSPt");
926  hAbsResoVSEta_ = (TH2F *) file->Get(name+"_AbsResoVSEta");
927  hAbsResoVSPhi_ = (TH2F *) file->Get(name+"_AbsResoVSPhi");
928  if( doProfiles_ ) {
929  hResoVSPt_prof_ = (TProfile *) file->Get(name+"_ResoVSPt_prof");
930  hResoVSPt_Bar_prof_ = (TProfile *) file->Get(name+"_ResoVSPt_prof");
931  hResoVSPt_Endc_17_prof_ = (TProfile *) file->Get(name+"_ResoVSPt_1.7_prof");
932  hResoVSPt_Endc_20_prof_ = (TProfile *) file->Get(name+"_ResoVSPt_2.0_prof");
933  hResoVSPt_Endc_24_prof_ = (TProfile *) file->Get(name+"_ResoVSPt_2.4_prof");
934  hResoVSPt_Ovlap_prof_= (TProfile *) file->Get(name+"_ResoVSPt_prof");
935  hResoVSEta_prof_ = (TProfile *) file->Get(name+"_ResoVSEta_prof");
936  hResoVSPhi_prof_ = (TProfile *) file->Get(name+"_ResoVSPhi_prof");
937  }
938  }
list file
Definition: dbtoweb.py:253
TH2F * hResoVSPt_Endc_17_
Definition: Histograms.h:1079
TProfile * hResoVSPhi_prof_
Definition: Histograms.h:1094
TH2F * hResoVSPhiMinus_
Definition: Histograms.h:1092
TH2F * hResoVSPhiPlus_
Definition: Histograms.h:1093
TString name_
Definition: Histograms.h:106
TProfile * hResoVSPt_Endc_17_prof_
Definition: Histograms.h:1085
TProfile * hResoVSPt_Ovlap_prof_
Definition: Histograms.h:1088
TH2F * hResoVSPt_Ovlap_
Definition: Histograms.h:1082
TH2F * hResoVSPt_Endc_24_
Definition: Histograms.h:1081
TProfile * hResoVSPt_prof_
Definition: Histograms.h:1083
TH2F * hResoVSPt_Endc_20_
Definition: Histograms.h:1080
TProfile * hResoVSPt_Endc_24_prof_
Definition: Histograms.h:1087
TProfile * hResoVSPt_Bar_prof_
Definition: Histograms.h:1084
TProfile * hResoVSPt_Endc_20_prof_
Definition: Histograms.h:1086
TProfile * hResoVSEta_prof_
Definition: Histograms.h:1091
HResolutionVSPart::~HResolutionVSPart ( )
inline

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

940  {
941  delete hReso_;
942  delete hResoVSPtEta_;
943  delete hResoVSPt_;
944  delete hResoVSPt_Bar_;
945  delete hResoVSPt_Endc_17_;
946  delete hResoVSPt_Endc_20_;
947  delete hResoVSPt_Endc_24_;
948  delete hResoVSPt_Ovlap_;
949  delete hResoVSEta_;
950  delete hResoVSTheta_;
951  delete hResoVSPhiMinus_;
952  delete hResoVSPhiPlus_;
953  delete hAbsReso_;
954  delete hAbsResoVSPt_;
955  delete hAbsResoVSEta_;
956  delete hAbsResoVSPhi_;
957  if( doProfiles_ ) {
958  delete hResoVSPt_prof_;
959  delete hResoVSPt_Bar_prof_;
960  delete hResoVSPt_Endc_17_prof_;
961  delete hResoVSPt_Endc_20_prof_;
962  delete hResoVSPt_Endc_24_prof_;
963  delete hResoVSPt_Ovlap_prof_;
964  delete hResoVSEta_prof_;
965  delete hResoVSPhi_prof_;
966  }
967  }
TH2F * hResoVSPt_Endc_17_
Definition: Histograms.h:1079
TProfile * hResoVSPhi_prof_
Definition: Histograms.h:1094
TH2F * hResoVSPhiMinus_
Definition: Histograms.h:1092
TH2F * hResoVSPhiPlus_
Definition: Histograms.h:1093
TProfile * hResoVSPt_Endc_17_prof_
Definition: Histograms.h:1085
TProfile * hResoVSPt_Ovlap_prof_
Definition: Histograms.h:1088
TH2F * hResoVSPt_Ovlap_
Definition: Histograms.h:1082
TH2F * hResoVSPt_Endc_24_
Definition: Histograms.h:1081
TProfile * hResoVSPt_prof_
Definition: Histograms.h:1083
TH2F * hResoVSPt_Endc_20_
Definition: Histograms.h:1080
TProfile * hResoVSPt_Endc_24_prof_
Definition: Histograms.h:1087
TProfile * hResoVSPt_Bar_prof_
Definition: Histograms.h:1084
TProfile * hResoVSPt_Endc_20_prof_
Definition: Histograms.h:1086
TProfile * hResoVSEta_prof_
Definition: Histograms.h:1091

Member Function Documentation

virtual void HResolutionVSPart::Clear ( )
inlinevirtual

Implements Histograms.

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

1045  {
1046  hReso_->Clear();
1047  hResoVSPtEta_->Clear();
1048  hResoVSPt_->Clear();
1049  hResoVSPt_Bar_->Clear();
1050  hResoVSPt_Endc_17_->Clear();
1051  hResoVSPt_Endc_20_->Clear();
1052  hResoVSPt_Endc_24_->Clear();
1053  hResoVSPt_Ovlap_->Clear();
1054  hResoVSEta_->Clear();
1055  hResoVSTheta_->Clear();
1056  hResoVSPhiPlus_->Clear();
1057  hResoVSPhiMinus_->Clear();
1058  hAbsReso_->Clear();
1059  hAbsResoVSPt_->Clear();
1060  hAbsResoVSEta_->Clear();
1061  hAbsResoVSPhi_->Clear();
1062  if( doProfiles_ ) {
1063  hResoVSPt_prof_->Clear();
1064  hResoVSPt_Bar_prof_->Clear();
1065  hResoVSPt_Endc_17_prof_->Clear();
1066  hResoVSPt_Endc_20_prof_->Clear();
1067  hResoVSPt_Endc_24_prof_->Clear();
1068  hResoVSPt_Ovlap_prof_->Clear();
1069  hResoVSEta_prof_->Clear();
1070  hResoVSPhi_prof_->Clear();
1071  }
1072  }
TH2F * hResoVSPt_Endc_17_
Definition: Histograms.h:1079
TProfile * hResoVSPhi_prof_
Definition: Histograms.h:1094
TH2F * hResoVSPhiMinus_
Definition: Histograms.h:1092
TH2F * hResoVSPhiPlus_
Definition: Histograms.h:1093
TProfile * hResoVSPt_Endc_17_prof_
Definition: Histograms.h:1085
TProfile * hResoVSPt_Ovlap_prof_
Definition: Histograms.h:1088
TH2F * hResoVSPt_Ovlap_
Definition: Histograms.h:1082
TH2F * hResoVSPt_Endc_24_
Definition: Histograms.h:1081
TProfile * hResoVSPt_prof_
Definition: Histograms.h:1083
TH2F * hResoVSPt_Endc_20_
Definition: Histograms.h:1080
TProfile * hResoVSPt_Endc_24_prof_
Definition: Histograms.h:1087
TProfile * hResoVSPt_Bar_prof_
Definition: Histograms.h:1084
TProfile * hResoVSPt_Endc_20_prof_
Definition: Histograms.h:1086
TProfile * hResoVSEta_prof_
Definition: Histograms.h:1091
virtual void HResolutionVSPart::Fill ( const reco::Particle::LorentzVector p4,
const double &  resValue,
const int  charge 
)
inlinevirtual

Reimplemented from Histograms.

Definition at line 969 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 ExpressReco_HICollisions_FallBack::pt.

969  {
970  double pt = p4.Pt();
971  double eta = p4.Eta();
972  hReso_->Fill(resValue);
973  hResoVSPtEta_->Fill(pt, eta,resValue);
974  hResoVSPt_->Fill(pt,resValue);
975  if(fabs(eta)<=0.9)
976  hResoVSPt_Bar_->Fill(pt,resValue);
977  else if(fabs(eta)>0.9 && fabs(eta)<=1.4)
978  hResoVSPt_Ovlap_->Fill(pt,resValue);
979  else if(fabs(eta)>1.4 && fabs(eta)<=1.7)
980  hResoVSPt_Endc_17_->Fill(pt,resValue);
981  else if(fabs(eta)>1.7 && fabs(eta)<=2.0)
982  hResoVSPt_Endc_20_->Fill(pt,resValue);
983  else
984  hResoVSPt_Endc_24_->Fill(pt,resValue);
985 
986  hResoVSEta_->Fill(eta,resValue);
987  hResoVSTheta_->Fill(p4.Theta(),resValue);
988  if(charge>0)
989  hResoVSPhiPlus_->Fill(p4.Phi(),resValue);
990  else if(charge<0)
991  hResoVSPhiMinus_->Fill(p4.Phi(),resValue);
992  hAbsReso_->Fill(fabs(resValue));
993  hAbsResoVSPt_->Fill(pt,fabs(resValue));
994  hAbsResoVSEta_->Fill(eta,fabs(resValue));
995  hAbsResoVSPhi_->Fill(p4.Phi(),fabs(resValue));
996  if( doProfiles_ ) {
997  hResoVSPt_prof_->Fill(p4.Pt(),resValue);
998  if(fabs(eta)<=0.9)
999  hResoVSPt_Bar_prof_->Fill(p4.Pt(),resValue);
1000  else if(fabs(eta)>0.9 && fabs(eta)<=1.4)
1001  hResoVSPt_Ovlap_prof_->Fill(pt,resValue);
1002  else if(fabs(eta)>1.4 && fabs(eta)<=1.7)
1003  hResoVSPt_Endc_17_prof_->Fill(pt,resValue);
1004  else if(fabs(eta)>1.7 && fabs(eta)<=2.0)
1005  hResoVSPt_Endc_20_prof_->Fill(pt,resValue);
1006  else
1007  hResoVSPt_Endc_24_prof_->Fill(pt,resValue);
1008 
1009  hResoVSEta_prof_->Fill(p4.Eta(),resValue);
1010  hResoVSPhi_prof_->Fill(p4.Phi(),resValue);
1011  }
1012  }
TH2F * hResoVSPt_Endc_17_
Definition: Histograms.h:1079
TProfile * hResoVSPhi_prof_
Definition: Histograms.h:1094
double charge(const std::vector< uint8_t > &Ampls)
T eta() const
TH2F * hResoVSPhiMinus_
Definition: Histograms.h:1092
TH2F * hResoVSPhiPlus_
Definition: Histograms.h:1093
TProfile * hResoVSPt_Endc_17_prof_
Definition: Histograms.h:1085
TProfile * hResoVSPt_Ovlap_prof_
Definition: Histograms.h:1088
double p4[4]
Definition: TauolaWrapper.h:92
TH2F * hResoVSPt_Ovlap_
Definition: Histograms.h:1082
TH2F * hResoVSPt_Endc_24_
Definition: Histograms.h:1081
TProfile * hResoVSPt_prof_
Definition: Histograms.h:1083
TH2F * hResoVSPt_Endc_20_
Definition: Histograms.h:1080
TProfile * hResoVSPt_Endc_24_prof_
Definition: Histograms.h:1087
TProfile * hResoVSPt_Bar_prof_
Definition: Histograms.h:1084
TProfile * hResoVSPt_Endc_20_prof_
Definition: Histograms.h:1086
TProfile * hResoVSEta_prof_
Definition: Histograms.h:1091
virtual void HResolutionVSPart::Write ( )
inlinevirtual

Implements Histograms.

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

1014  {
1015  if(histoDir_ != 0) histoDir_->cd();
1016 
1017  hReso_->Write();
1018  hResoVSPtEta_->Write();
1019  hResoVSPt_->Write();
1020  hResoVSPt_Bar_->Write();
1021  hResoVSPt_Endc_17_->Write();
1022  hResoVSPt_Endc_20_->Write();
1023  hResoVSPt_Endc_24_->Write();
1024  hResoVSPt_Ovlap_->Write();
1025  hResoVSEta_->Write();
1026  hResoVSTheta_->Write();
1027  hResoVSPhiMinus_->Write();
1028  hResoVSPhiPlus_->Write();
1029  hAbsReso_->Write();
1030  hAbsResoVSPt_->Write();
1031  hAbsResoVSEta_->Write();
1032  hAbsResoVSPhi_->Write();
1033  if( doProfiles_ ) {
1034  hResoVSPt_prof_->Write();
1035  hResoVSPt_Bar_prof_->Write();
1036  hResoVSPt_Endc_17_prof_->Write();
1037  hResoVSPt_Endc_20_prof_->Write();
1038  hResoVSPt_Endc_24_prof_->Write();
1039  hResoVSPt_Ovlap_prof_->Write();
1040  hResoVSEta_prof_->Write();
1041  hResoVSPhi_prof_->Write();
1042  }
1043  }
TH2F * hResoVSPt_Endc_17_
Definition: Histograms.h:1079
TProfile * hResoVSPhi_prof_
Definition: Histograms.h:1094
TH2F * hResoVSPhiMinus_
Definition: Histograms.h:1092
TH2F * hResoVSPhiPlus_
Definition: Histograms.h:1093
TProfile * hResoVSPt_Endc_17_prof_
Definition: Histograms.h:1085
TProfile * hResoVSPt_Ovlap_prof_
Definition: Histograms.h:1088
TDirectory * histoDir_
Definition: Histograms.h:108
TH2F * hResoVSPt_Ovlap_
Definition: Histograms.h:1082
TH2F * hResoVSPt_Endc_24_
Definition: Histograms.h:1081
TProfile * hResoVSPt_prof_
Definition: Histograms.h:1083
TH2F * hResoVSPt_Endc_20_
Definition: Histograms.h:1080
TProfile * hResoVSPt_Endc_24_prof_
Definition: Histograms.h:1087
TProfile * hResoVSPt_Bar_prof_
Definition: Histograms.h:1084
TProfile * hResoVSPt_Endc_20_prof_
Definition: Histograms.h:1086
TProfile * hResoVSEta_prof_
Definition: Histograms.h:1091

Member Data Documentation

bool HResolutionVSPart::doProfiles_

Definition at line 1099 of file Histograms.h.

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

TH1F* HResolutionVSPart::hAbsReso_

Definition at line 1095 of file Histograms.h.

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

TH2F* HResolutionVSPart::hAbsResoVSEta_

Definition at line 1097 of file Histograms.h.

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

TH2F* HResolutionVSPart::hAbsResoVSPhi_

Definition at line 1098 of file Histograms.h.

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

TH2F* HResolutionVSPart::hAbsResoVSPt_

Definition at line 1096 of file Histograms.h.

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

TH1F* HResolutionVSPart::hReso_

Definition at line 1075 of file Histograms.h.

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

TH2F* HResolutionVSPart::hResoVSEta_

Definition at line 1089 of file Histograms.h.

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

TProfile* HResolutionVSPart::hResoVSEta_prof_

Definition at line 1091 of file Histograms.h.

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

TProfile* HResolutionVSPart::hResoVSPhi_prof_

Definition at line 1094 of file Histograms.h.

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

TH2F* HResolutionVSPart::hResoVSPhiMinus_

Definition at line 1092 of file Histograms.h.

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

TH2F* HResolutionVSPart::hResoVSPhiPlus_

Definition at line 1093 of file Histograms.h.

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

TH2F* HResolutionVSPart::hResoVSPt_

Definition at line 1077 of file Histograms.h.

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

TH2F* HResolutionVSPart::hResoVSPt_Bar_

Definition at line 1078 of file Histograms.h.

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

TProfile* HResolutionVSPart::hResoVSPt_Bar_prof_

Definition at line 1084 of file Histograms.h.

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

TH2F* HResolutionVSPart::hResoVSPt_Endc_17_

Definition at line 1079 of file Histograms.h.

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

TProfile* HResolutionVSPart::hResoVSPt_Endc_17_prof_

Definition at line 1085 of file Histograms.h.

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

TH2F* HResolutionVSPart::hResoVSPt_Endc_20_

Definition at line 1080 of file Histograms.h.

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

TProfile* HResolutionVSPart::hResoVSPt_Endc_20_prof_

Definition at line 1086 of file Histograms.h.

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

TH2F* HResolutionVSPart::hResoVSPt_Endc_24_

Definition at line 1081 of file Histograms.h.

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

TProfile* HResolutionVSPart::hResoVSPt_Endc_24_prof_

Definition at line 1087 of file Histograms.h.

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

TH2F* HResolutionVSPart::hResoVSPt_Ovlap_

Definition at line 1082 of file Histograms.h.

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

TProfile* HResolutionVSPart::hResoVSPt_Ovlap_prof_

Definition at line 1088 of file Histograms.h.

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

TProfile* HResolutionVSPart::hResoVSPt_prof_

Definition at line 1083 of file Histograms.h.

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

TH2F* HResolutionVSPart::hResoVSPtEta_

Definition at line 1076 of file Histograms.h.

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

TH2F* HResolutionVSPart::hResoVSTheta_

Definition at line 1090 of file Histograms.h.

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