CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
EgammaObjects Class Reference

#include <EgammaObjects.h>

Inheritance diagram for EgammaObjects:
edm::EDAnalyzer

Public Member Functions

virtual void analyze (const edm::Event &, const edm::EventSetup &)
 
virtual void beginJob ()
 
 EgammaObjects (const edm::ParameterSet &)
 
virtual void endJob ()
 
 ~EgammaObjects ()
 
- Public Member Functions inherited from edm::EDAnalyzer
 EDAnalyzer ()
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 

Private Member Functions

void analyzeElectrons (const edm::Event &, const edm::EventSetup &)
 
void analyzePhotons (const edm::Event &, const edm::EventSetup &)
 
void applyLabels ()
 
void createBookedHistoObjects ()
 
void createTempHistoObjects ()
 
float ecalEta (float EtaParticle, float Zvertex, float plane_Radius)
 
double findRecoMass (reco::Photon pOne, reco::Photon pTwo)
 
double findRecoMass (reco::GsfElectron eOne, reco::GsfElectron eTwo)
 
void fitHistos ()
 
void getDeltaResHistosViaSlicing ()
 
void getEfficiencyHistosViaDividing ()
 
void loadCMSSWObjects (const edm::ParameterSet &ps)
 
void loadHistoParameters (const edm::ParameterSet &ps)
 
void saveHistos ()
 
void setDrawOptions ()
 

Private Attributes

TH2D * _TEMP_scatterPlot_deltaEtaVsE_
 
TH2D * _TEMP_scatterPlot_deltaEtaVsEt_
 
TH2D * _TEMP_scatterPlot_deltaEtaVsEta_
 
TH2D * _TEMP_scatterPlot_deltaEtaVsPhi_
 
TH2D * _TEMP_scatterPlot_deltaPhiVsE_
 
TH2D * _TEMP_scatterPlot_deltaPhiVsEt_
 
TH2D * _TEMP_scatterPlot_deltaPhiVsEta_
 
TH2D * _TEMP_scatterPlot_deltaPhiVsPhi_
 
TH2D * _TEMP_scatterPlot_EOverTruthVsE_
 
TH2D * _TEMP_scatterPlot_EOverTruthVsEt_
 
TH2D * _TEMP_scatterPlot_EOverTruthVsEta_
 
TH2D * _TEMP_scatterPlot_EOverTruthVsPhi_
 
TH2D * _TEMP_scatterPlot_EtOverTruthVsE_
 
TH2D * _TEMP_scatterPlot_EtOverTruthVsEt_
 
TH2D * _TEMP_scatterPlot_EtOverTruthVsEta_
 
TH2D * _TEMP_scatterPlot_EtOverTruthVsPhi_
 
int EtCut
 
TH1D * hist_All_recoMass_
 
TH1D * hist_BarrelOnly_recoMass_
 
int hist_bins_deltaEta_
 
int hist_bins_deltaPhi_
 
int hist_bins_E_
 
int hist_bins_EOverTruth_
 
int hist_bins_Et_
 
int hist_bins_Eta_
 
int hist_bins_EtaOverTruth_
 
int hist_bins_EtOverTruth_
 
int hist_bins_Phi_
 
int hist_bins_PhiOverTruth_
 
int hist_bins_recoMass_
 
TH1D * hist_deltaEtaVsE_
 
TH1D * hist_deltaEtaVsEt_
 
TH1D * hist_deltaEtaVsEta_
 
TH1D * hist_deltaEtaVsPhi_
 
TH1D * hist_deltaPhiVsE_
 
TH1D * hist_deltaPhiVsEt_
 
TH1D * hist_deltaPhiVsEta_
 
TH1D * hist_deltaPhiVsPhi_
 
TH1D * hist_E_
 
TH1D * hist_EEfficiency_
 
TH1D * hist_EndcapOnly_recoMass_
 
TH1D * hist_ENumRecoOverNumTrue_
 
TH1D * hist_EOverTruth_
 
TH1D * hist_EOverTruthVsE_
 
TH1D * hist_EOverTruthVsEt_
 
TH1D * hist_EOverTruthVsEta_
 
TH1D * hist_EOverTruthVsPhi_
 
TH1D * hist_Et_
 
TH1D * hist_Eta_
 
TH1D * hist_EtaEfficiency_
 
TH1D * hist_EtaNumRecoOverNumTrue_
 
TH1D * hist_EtaOverTruth_
 
TH1D * hist_EtEfficiency_
 
TH1D * hist_EtNumRecoOverNumTrue_
 
TH1D * hist_EtOverTruth_
 
TH1D * hist_EtOverTruthVsE_
 
TH1D * hist_EtOverTruthVsEt_
 
TH1D * hist_EtOverTruthVsEta_
 
TH1D * hist_EtOverTruthVsPhi_
 
double hist_max_deltaEta_
 
double hist_max_deltaPhi_
 
double hist_max_E_
 
double hist_max_EOverTruth_
 
double hist_max_Et_
 
double hist_max_Eta_
 
double hist_max_EtaOverTruth_
 
double hist_max_EtOverTruth_
 
double hist_max_Phi_
 
double hist_max_PhiOverTruth_
 
double hist_max_recoMass_
 
double hist_min_deltaEta_
 
double hist_min_deltaPhi_
 
double hist_min_E_
 
double hist_min_EOverTruth_
 
double hist_min_Et_
 
double hist_min_Eta_
 
double hist_min_EtaOverTruth_
 
double hist_min_EtOverTruth_
 
double hist_min_Phi_
 
double hist_min_PhiOverTruth_
 
double hist_min_recoMass_
 
TH1D * hist_Mixed_recoMass_
 
TH1D * hist_Phi_
 
TH1D * hist_PhiEfficiency_
 
TH1D * hist_PhiNumRecoOverNumTrue_
 
TH1D * hist_PhiOverTruth_
 
TH1D * hist_recoMass_withBackgroud_10EtCut_
 
TH1D * hist_recoMass_withBackgroud_20EtCut_
 
TH1D * hist_recoMass_withBackgroud_5EtCut_
 
TH1D * hist_recoMass_withBackgroud_NoEtCut_
 
TH1D * hist_resolutionEtaVsE_
 
TH1D * hist_resolutionEtaVsEt_
 
TH1D * hist_resolutionEtaVsEta_
 
TH1D * hist_resolutionEtaVsPhi_
 
TH1D * hist_resolutionEtVsE_
 
TH1D * hist_resolutionEtVsEt_
 
TH1D * hist_resolutionEtVsEta_
 
TH1D * hist_resolutionEtVsPhi_
 
TH1D * hist_resolutionEVsE_
 
TH1D * hist_resolutionEVsEt_
 
TH1D * hist_resolutionEVsEta_
 
TH1D * hist_resolutionEVsPhi_
 
TH1D * hist_resolutionPhiVsE_
 
TH1D * hist_resolutionPhiVsEt_
 
TH1D * hist_resolutionPhiVsEta_
 
TH1D * hist_resolutionPhiVsPhi_
 
edm::InputTag MCTruthCollection_
 
int particleID
 
std::string particleString
 
edm::InputTag RecoCollection_
 
TFile * rootFile_
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
typedef WorkerT< EDAnalyzerWorkerType
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::EDAnalyzer
CurrentProcessingContext const * currentContext () const
 

Detailed Description

Definition at line 21 of file EgammaObjects.h.

Constructor & Destructor Documentation

EgammaObjects::EgammaObjects ( const edm::ParameterSet ps)
explicit

Definition at line 17 of file EgammaObjects.cc.

References EtCut, edm::ParameterSet::getParameter(), loadCMSSWObjects(), loadHistoParameters(), particleID, particleString, and rootFile_.

18 {
19  particleID = ps.getParameter<int>("particleID");
20  EtCut = ps.getParameter<int>("EtCut");
21 
22  if( particleID == 22 ) particleString = "Photon";
23  else if( particleID == 11 ) particleString = "Electron";
24  else
25  throw(std::runtime_error("\n\nEgammaObjects: Only 11 = Photon and 22 = Electron are acceptable parictleIDs! Exiting...\n\n"));
26 
27  loadCMSSWObjects(ps);
29 
30  rootFile_ = TFile::Open(ps.getParameter<std::string>("outputFile").c_str(),"RECREATE");
31 }
T getParameter(std::string const &) const
void loadHistoParameters(const edm::ParameterSet &ps)
std::string particleString
Definition: EgammaObjects.h:37
void loadCMSSWObjects(const edm::ParameterSet &ps)
TFile * rootFile_
Definition: EgammaObjects.h:31
EgammaObjects::~EgammaObjects ( )

Definition at line 86 of file EgammaObjects.cc.

References rootFile_.

87 {
88  delete rootFile_;
89 }
TFile * rootFile_
Definition: EgammaObjects.h:31

Member Function Documentation

void EgammaObjects::analyze ( const edm::Event evt,
const edm::EventSetup es 
)
virtual

Implements edm::EDAnalyzer.

Definition at line 240 of file EgammaObjects.cc.

References analyzeElectrons(), analyzePhotons(), and particleID.

241 {
242  if( particleID == 22 ) analyzePhotons(evt, es);
243  else if( particleID == 11 ) analyzeElectrons(evt, es);
244 }
void analyzePhotons(const edm::Event &, const edm::EventSetup &)
void analyzeElectrons(const edm::Event &, const edm::EventSetup &)
void EgammaObjects::analyzeElectrons ( const edm::Event evt,
const edm::EventSetup es 
)
private

Definition at line 408 of file EgammaObjects.cc.

References _TEMP_scatterPlot_deltaEtaVsE_, _TEMP_scatterPlot_deltaEtaVsEt_, _TEMP_scatterPlot_deltaEtaVsEta_, _TEMP_scatterPlot_deltaEtaVsPhi_, _TEMP_scatterPlot_deltaPhiVsE_, _TEMP_scatterPlot_deltaPhiVsEt_, _TEMP_scatterPlot_deltaPhiVsEta_, _TEMP_scatterPlot_deltaPhiVsPhi_, _TEMP_scatterPlot_EOverTruthVsE_, _TEMP_scatterPlot_EOverTruthVsEt_, _TEMP_scatterPlot_EOverTruthVsEta_, _TEMP_scatterPlot_EOverTruthVsPhi_, _TEMP_scatterPlot_EtOverTruthVsE_, _TEMP_scatterPlot_EtOverTruthVsEt_, _TEMP_scatterPlot_EtOverTruthVsEta_, _TEMP_scatterPlot_EtOverTruthVsPhi_, abs, Geom::deltaPhi(), deltaR(), reco::LeafCandidate::et(), reco::LeafCandidate::eta(), EtCut, findRecoMass(), MCTruth::genEvent, edm::Event::getByLabel(), hist_All_recoMass_, hist_BarrelOnly_recoMass_, hist_E_, hist_EEfficiency_, hist_EndcapOnly_recoMass_, hist_ENumRecoOverNumTrue_, hist_EOverTruth_, hist_Et_, hist_Eta_, hist_EtaEfficiency_, hist_EtaNumRecoOverNumTrue_, hist_EtaOverTruth_, hist_EtEfficiency_, hist_EtNumRecoOverNumTrue_, hist_EtOverTruth_, hist_Mixed_recoMass_, hist_Phi_, hist_PhiEfficiency_, hist_PhiNumRecoOverNumTrue_, hist_PhiOverTruth_, hist_recoMass_withBackgroud_10EtCut_, hist_recoMass_withBackgroud_20EtCut_, hist_recoMass_withBackgroud_5EtCut_, hist_recoMass_withBackgroud_NoEtCut_, edm::HandleBase::isValid(), edm::InputTag::label(), MCTruthCollection_, Geom::pi(), funct::pow(), edm::Handle< T >::product(), RecoCollection_, mathSSE::sqrt(), and reco::GsfElectron::superCluster().

Referenced by analyze().

409 {
411  evt.getByLabel(RecoCollection_, pElectrons);
412  if (!pElectrons.isValid()) {
413  edm::LogError("DOEPlotsProducerElectrons") << "Error! can't get collection with label " << RecoCollection_.label();
414  }
415 
416  const reco::GsfElectronCollection* electrons = pElectrons.product();
417  std::vector<reco::GsfElectron> electronsMCMatched;
418 
419  for(reco::GsfElectronCollection::const_iterator aClus = electrons->begin(); aClus != electrons->end(); aClus++)
420  {
421  if(aClus->et() >= EtCut)
422  {
423  hist_Et_->Fill(aClus->et());
424  hist_E_->Fill(aClus->energy());
425  hist_Eta_->Fill(aClus->eta());
426  hist_Phi_->Fill(aClus->phi());
427  }
428  }
429 
430  for(int firstElectron = 0, numElectrons = electrons->size(); firstElectron < numElectrons - 1; firstElectron++)
431  for(int secondElectron = firstElectron + 1; secondElectron < numElectrons; secondElectron++)
432  {
433  reco::GsfElectron eOne = (*electrons)[firstElectron];
434  reco::GsfElectron eTwo = (*electrons)[secondElectron];
435 
436  double recoMass = findRecoMass(eOne, eTwo);
437 
438  hist_recoMass_withBackgroud_NoEtCut_->Fill(recoMass);
439 
440  if(eOne.et() >= 5 && eTwo.et() >= 5)
441  hist_recoMass_withBackgroud_5EtCut_->Fill(recoMass);
442 
443  if(eOne.et() >= 10 && eTwo.et() >= 10)
444  hist_recoMass_withBackgroud_10EtCut_->Fill(recoMass);
445 
446  if(eOne.et() >= 20 && eTwo.et() >= 20)
447  hist_recoMass_withBackgroud_20EtCut_->Fill(recoMass);
448  }
449 
451  evt.getByLabel(MCTruthCollection_, pMCTruth);
452  if (!pMCTruth.isValid()) {
453  edm::LogError("DOEPlotsProducerElectrons") << "Error! can't get collection with label " << MCTruthCollection_.label();
454  }
455 
456  const HepMC::GenEvent* genEvent = pMCTruth->GetEvent();
457  for(HepMC::GenEvent::particle_const_iterator currentParticle = genEvent->particles_begin();
458  currentParticle != genEvent->particles_end(); currentParticle++ )
459  {
460  if(abs((*currentParticle)->pdg_id())==11 && (*currentParticle)->status()==1
461  && (*currentParticle)->momentum().e()/cosh((*currentParticle)->momentum().eta()) >= EtCut)
462  {
463  HepMC::FourVector vtx = (*currentParticle)->production_vertex()->position();
464  double phiTrue = (*currentParticle)->momentum().phi();
465  double etaTrue = (*currentParticle)->momentum().eta();
466  double eTrue = (*currentParticle)->momentum().e();
467  double etTrue = (*currentParticle)->momentum().e()/cosh(etaTrue);
468 
469  double etaCurrent, etaFound = -999;
470  double phiCurrent, phiFound = -999;
471  double etCurrent, etFound = -999;
472  double eCurrent, eFound = -999;
473 
474  reco::GsfElectron bestMatchElectron;
475 
476  double closestParticleDistance = 999;
477 
478  for(reco::GsfElectronCollection::const_iterator aClus = electrons->begin(); aClus != electrons->end(); aClus++)
479  {
480  if(aClus->et() > EtCut)
481  {
482  etaCurrent = aClus->eta();
483  phiCurrent = aClus->phi();
484  etCurrent = aClus->et();
485  eCurrent = aClus->energy();
486 
487  double deltaPhi = phiCurrent-phiTrue;
488  if(deltaPhi > Geom::pi()) deltaPhi -= 2.*Geom::pi();
489  if(deltaPhi < -Geom::pi()) deltaPhi += 2.*Geom::pi();
490  double deltaR = std::sqrt(std::pow(etaCurrent-etaTrue,2)+std::pow(deltaPhi,2));
491 
492  if(deltaR < closestParticleDistance)
493  {
494  etFound = etCurrent;
495  eFound = eCurrent;
496  etaFound = etaCurrent;
497  phiFound = phiCurrent;
498  closestParticleDistance = deltaR;
499  bestMatchElectron = *aClus;
500  }
501  }
502  }
503 
504  if(closestParticleDistance < 0.05 && etFound/etTrue > .5 && etFound/etTrue < 1.5)
505  {
506  hist_EtOverTruth_->Fill(etFound/etTrue);
507  hist_EOverTruth_->Fill(eFound/eTrue);
508  hist_EtaOverTruth_->Fill(etaFound/etaTrue);
509  hist_PhiOverTruth_->Fill(phiFound/phiTrue);
510 
511  hist_EtEfficiency_->Fill(etTrue);
512  hist_EEfficiency_->Fill(eTrue);
513  hist_EtaEfficiency_->Fill(etaTrue);
514  hist_PhiEfficiency_->Fill(phiTrue);
515 
516  double deltaPhi = phiFound-phiTrue;
517  if(deltaPhi > Geom::pi()) deltaPhi -= 2.*Geom::pi();
518  if(deltaPhi < -Geom::pi()) deltaPhi += 2.*Geom::pi();
519 
520  _TEMP_scatterPlot_EtOverTruthVsEt_->Fill(etFound,etFound/etTrue);
521  _TEMP_scatterPlot_EtOverTruthVsE_->Fill(eFound,etFound/etTrue);
522  _TEMP_scatterPlot_EtOverTruthVsEta_->Fill(etaFound,etFound/etTrue);
523  _TEMP_scatterPlot_EtOverTruthVsPhi_->Fill(phiFound,etFound/etTrue);
524 
525  _TEMP_scatterPlot_EOverTruthVsEt_->Fill(etFound,eFound/eTrue);
526  _TEMP_scatterPlot_EOverTruthVsE_->Fill(eFound,eFound/eTrue);
527  _TEMP_scatterPlot_EOverTruthVsEta_->Fill(etaFound,eFound/eTrue);
528  _TEMP_scatterPlot_EOverTruthVsPhi_->Fill(phiFound,eFound/eTrue);
529 
530  _TEMP_scatterPlot_deltaEtaVsEt_->Fill(etFound,etaFound-etaTrue);
531  _TEMP_scatterPlot_deltaEtaVsE_->Fill(eFound,etaFound-etaTrue);
532  _TEMP_scatterPlot_deltaEtaVsEta_->Fill(etaFound,etaFound-etaTrue);
533  _TEMP_scatterPlot_deltaEtaVsPhi_->Fill(phiFound,etaFound-etaTrue);
534 
535  _TEMP_scatterPlot_deltaPhiVsEt_->Fill(etFound,deltaPhi);
536  _TEMP_scatterPlot_deltaPhiVsE_->Fill(eFound,deltaPhi);
537  _TEMP_scatterPlot_deltaPhiVsEta_->Fill(etaFound,deltaPhi);
538  _TEMP_scatterPlot_deltaPhiVsPhi_->Fill(phiFound,deltaPhi);
539 
540  electronsMCMatched.push_back(bestMatchElectron);
541  }
542 
543  hist_EtNumRecoOverNumTrue_->Fill(etTrue);
544  hist_ENumRecoOverNumTrue_->Fill(eTrue);
545  hist_EtaNumRecoOverNumTrue_->Fill(etaTrue);
546  hist_PhiNumRecoOverNumTrue_->Fill(phiTrue);
547  }
548  }
549 
550  if(electronsMCMatched.size() == 2)
551  {
552  reco::GsfElectron eOne = electronsMCMatched[0];
553  reco::GsfElectron eTwo = electronsMCMatched[1];
554 
555  double recoMass = findRecoMass(eOne, eTwo);
556 
557  hist_All_recoMass_->Fill(recoMass);
558 
559  if(eOne.superCluster()->seed()->algo() == 1 && eTwo.superCluster()->seed()->algo() == 1)
560  hist_BarrelOnly_recoMass_->Fill(recoMass);
561  else if(eOne.superCluster()->seed()->algo() == 0 && eTwo.superCluster()->seed()->algo() == 0)
562  hist_EndcapOnly_recoMass_->Fill(recoMass);
563  else
564  hist_Mixed_recoMass_->Fill(recoMass);
565  }
566 }
TH2D * _TEMP_scatterPlot_EtOverTruthVsPhi_
TH2D * _TEMP_scatterPlot_deltaEtaVsEta_
TH2D * _TEMP_scatterPlot_deltaPhiVsPhi_
TH1D * hist_PhiEfficiency_
TH1D * hist_EOverTruth_
Definition: EgammaObjects.h:99
virtual double et() const
transverse energy
TH1D * hist_EEfficiency_
double deltaPhi(float phi1, float phi2)
Definition: VectorUtil.h:30
TH1D * hist_recoMass_withBackgroud_20EtCut_
TH2D * _TEMP_scatterPlot_EtOverTruthVsE_
TH2D * _TEMP_scatterPlot_deltaPhiVsE_
TH1D * hist_Mixed_recoMass_
#define abs(x)
Definition: mlp_lapack.h:159
edm::InputTag MCTruthCollection_
Definition: EgammaObjects.h:33
TH2D * _TEMP_scatterPlot_EOverTruthVsEta_
TH2D * _TEMP_scatterPlot_deltaPhiVsEt_
SuperClusterRef superCluster() const
reference to a SuperCluster
Definition: GsfElectron.h:166
TH1D * hist_ENumRecoOverNumTrue_
TH1D * hist_EtNumRecoOverNumTrue_
Definition: EgammaObjects.h:88
std::vector< GsfElectron > GsfElectronCollection
collection of GsfElectron objects
virtual double eta() const
momentum pseudorapidity
TH1D * hist_EtOverTruth_
Definition: EgammaObjects.h:86
TH2D * _TEMP_scatterPlot_EtOverTruthVsEta_
double findRecoMass(reco::Photon pOne, reco::Photon pTwo)
TH2D * _TEMP_scatterPlot_deltaEtaVsE_
TH1D * hist_PhiNumRecoOverNumTrue_
TH1D * hist_PhiOverTruth_
TH1D * hist_recoMass_withBackgroud_5EtCut_
TH2D * _TEMP_scatterPlot_deltaEtaVsPhi_
T sqrt(T t)
Definition: SSEVec.h:28
TH2D * _TEMP_scatterPlot_EOverTruthVsEt_
TH1D * hist_BarrelOnly_recoMass_
tuple genEvent
Definition: MCTruth.py:33
TH1D * hist_EndcapOnly_recoMass_
TH1D * hist_EtaOverTruth_
bool isValid() const
Definition: HandleBase.h:76
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:359
TH1D * hist_recoMass_withBackgroud_10EtCut_
double deltaR(double eta1, double eta2, double phi1, double phi2)
Definition: TreeUtility.cc:17
edm::InputTag RecoCollection_
Definition: EgammaObjects.h:34
TH2D * _TEMP_scatterPlot_deltaPhiVsEta_
TH2D * _TEMP_scatterPlot_EOverTruthVsE_
TH1D * hist_All_recoMass_
TH2D * _TEMP_scatterPlot_deltaEtaVsEt_
TH2D * _TEMP_scatterPlot_EOverTruthVsPhi_
T const * product() const
Definition: Handle.h:74
std::string const & label() const
Definition: InputTag.h:25
TH1D * hist_EtaEfficiency_
double pi()
Definition: Pi.h:31
TH1D * hist_recoMass_withBackgroud_NoEtCut_
TH2D * _TEMP_scatterPlot_EtOverTruthVsEt_
TH1D * hist_EtEfficiency_
Definition: EgammaObjects.h:87
TH1D * hist_EtaNumRecoOverNumTrue_
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:40
void EgammaObjects::analyzePhotons ( const edm::Event evt,
const edm::EventSetup es 
)
private

Definition at line 246 of file EgammaObjects.cc.

References _TEMP_scatterPlot_deltaEtaVsE_, _TEMP_scatterPlot_deltaEtaVsEt_, _TEMP_scatterPlot_deltaEtaVsEta_, _TEMP_scatterPlot_deltaEtaVsPhi_, _TEMP_scatterPlot_deltaPhiVsE_, _TEMP_scatterPlot_deltaPhiVsEt_, _TEMP_scatterPlot_deltaPhiVsEta_, _TEMP_scatterPlot_deltaPhiVsPhi_, _TEMP_scatterPlot_EOverTruthVsE_, _TEMP_scatterPlot_EOverTruthVsEt_, _TEMP_scatterPlot_EOverTruthVsEta_, _TEMP_scatterPlot_EOverTruthVsPhi_, _TEMP_scatterPlot_EtOverTruthVsE_, _TEMP_scatterPlot_EtOverTruthVsEt_, _TEMP_scatterPlot_EtOverTruthVsEta_, _TEMP_scatterPlot_EtOverTruthVsPhi_, abs, Geom::deltaPhi(), deltaR(), ecalEta(), reco::LeafCandidate::et(), reco::LeafCandidate::eta(), EtCut, findRecoMass(), MCTruth::genEvent, edm::Event::getByLabel(), hist_All_recoMass_, hist_BarrelOnly_recoMass_, hist_E_, hist_EEfficiency_, hist_EndcapOnly_recoMass_, hist_ENumRecoOverNumTrue_, hist_EOverTruth_, hist_Et_, hist_Eta_, hist_EtaEfficiency_, hist_EtaNumRecoOverNumTrue_, hist_EtaOverTruth_, hist_EtEfficiency_, hist_EtNumRecoOverNumTrue_, hist_EtOverTruth_, hist_Mixed_recoMass_, hist_Phi_, hist_PhiEfficiency_, hist_PhiNumRecoOverNumTrue_, hist_PhiOverTruth_, hist_recoMass_withBackgroud_10EtCut_, hist_recoMass_withBackgroud_20EtCut_, hist_recoMass_withBackgroud_5EtCut_, hist_recoMass_withBackgroud_NoEtCut_, edm::HandleBase::isValid(), edm::InputTag::label(), MCTruthCollection_, ExpressReco_HICollisions_FallBack::photons, Geom::pi(), funct::pow(), edm::Handle< T >::product(), RecoCollection_, mathSSE::sqrt(), and reco::Photon::superCluster().

Referenced by analyze().

247 {
249  evt.getByLabel(RecoCollection_, pPhotons);
250  if (!pPhotons.isValid()) {
251  edm::LogError("EgammaObjects") << "Error! can't get collection with label " << RecoCollection_.label();
252  }
253 
254  const reco::PhotonCollection* photons = pPhotons.product();
255  std::vector<reco::Photon> photonsMCMatched;
256 
257  for(reco::PhotonCollection::const_iterator aClus = photons->begin(); aClus != photons->end(); aClus++)
258  {
259  if(aClus->et() >= EtCut)
260  {
261  hist_Et_->Fill(aClus->et());
262  hist_E_->Fill(aClus->energy());
263  hist_Eta_->Fill(aClus->eta());
264  hist_Phi_->Fill(aClus->phi());
265  }
266  }
267 
268  for(int firstPhoton = 0, numPhotons = photons->size(); firstPhoton < numPhotons - 1; firstPhoton++)
269  for(int secondPhoton = firstPhoton + 1; secondPhoton < numPhotons; secondPhoton++)
270  {
271  reco::Photon pOne = (*photons)[firstPhoton];
272  reco::Photon pTwo = (*photons)[secondPhoton];
273 
274  double recoMass = findRecoMass(pOne, pTwo);
275 
276  hist_recoMass_withBackgroud_NoEtCut_->Fill(recoMass);
277 
278  if(pOne.et() >= 5 && pTwo.et() >= 5)
279  hist_recoMass_withBackgroud_5EtCut_->Fill(recoMass);
280 
281  if(pOne.et() >= 10 && pTwo.et() >= 10)
282  hist_recoMass_withBackgroud_10EtCut_->Fill(recoMass);
283 
284  if(pOne.et() >= 20 && pTwo.et() >= 20)
285  hist_recoMass_withBackgroud_20EtCut_->Fill(recoMass);
286  }
287 
289  evt.getByLabel(MCTruthCollection_, pMCTruth);
290  if (!pMCTruth.isValid()) {
291  edm::LogError("EgammaObjects") << "Error! can't get collection with label " << MCTruthCollection_.label();
292  }
293 
294  const HepMC::GenEvent* genEvent = pMCTruth->GetEvent();
295 
296  for(HepMC::GenEvent::particle_const_iterator currentParticle = genEvent->particles_begin();
297  currentParticle != genEvent->particles_end(); currentParticle++ )
298  {
299  if(abs((*currentParticle)->pdg_id())==22 && (*currentParticle)->status()==1
300  && (*currentParticle)->momentum().e()/cosh(ecalEta((*currentParticle)->momentum().eta(), (*currentParticle)->production_vertex()->position().z()/10.,
301  (*currentParticle)->production_vertex()->position().perp()/10.)) >= EtCut)
302  {
303  HepMC::FourVector vtx = (*currentParticle)->production_vertex()->position();
304  double phiTrue = (*currentParticle)->momentum().phi();
305  double etaTrue = ecalEta((*currentParticle)->momentum().eta(), vtx.z()/10., vtx.perp()/10.);
306  double eTrue = (*currentParticle)->momentum().e();
307  double etTrue = (*currentParticle)->momentum().e()/cosh(etaTrue);
308 
309  double etaCurrent, etaFound = -999;
310  double phiCurrent, phiFound = -999;
311  double etCurrent, etFound = -999;
312  double eCurrent, eFound = -999;
313 
314  reco::Photon bestMatchPhoton;
315 
316  double closestParticleDistance = 999;
317 
318  for(reco::PhotonCollection::const_iterator aClus = photons->begin(); aClus != photons->end(); aClus++)
319  {
320  if(aClus->et() > EtCut)
321  {
322  etaCurrent = aClus->eta();
323  phiCurrent = aClus->phi();
324  etCurrent = aClus->et();
325  eCurrent = aClus->energy();
326 
327  double deltaPhi = phiCurrent-phiTrue;
328  if(deltaPhi > Geom::pi()) deltaPhi -= 2.*Geom::pi();
329  if(deltaPhi < -Geom::pi()) deltaPhi += 2.*Geom::pi();
330  double deltaR = std::sqrt(std::pow(etaCurrent-etaTrue,2)+std::pow(deltaPhi,2));
331 
332  if(deltaR < closestParticleDistance)
333  {
334  etFound = etCurrent;
335  eFound = eCurrent;
336  etaFound = etaCurrent;
337  phiFound = phiCurrent;
338  closestParticleDistance = deltaR;
339  bestMatchPhoton = *aClus;
340  }
341  }
342  }
343 
344  if(closestParticleDistance < 0.05 && etFound/etTrue > .5 && etFound/etTrue < 1.5)
345  {
346  hist_EtOverTruth_->Fill(etFound/etTrue);
347  hist_EOverTruth_->Fill(eFound/eTrue);
348  hist_EtaOverTruth_->Fill(etaFound/etaTrue);
349  hist_PhiOverTruth_->Fill(phiFound/phiTrue);
350 
351  hist_EtEfficiency_->Fill(etTrue);
352  hist_EEfficiency_->Fill(eTrue);
353  hist_EtaEfficiency_->Fill(etaTrue);
354  hist_PhiEfficiency_->Fill(phiTrue);
355 
356  double deltaPhi = phiFound-phiTrue;
357  if(deltaPhi > Geom::pi()) deltaPhi -= 2.*Geom::pi();
358  if(deltaPhi < -Geom::pi()) deltaPhi += 2.*Geom::pi();
359 
360  _TEMP_scatterPlot_EtOverTruthVsEt_->Fill(etFound,etFound/etTrue);
361  _TEMP_scatterPlot_EtOverTruthVsE_->Fill(eFound,etFound/etTrue);
362  _TEMP_scatterPlot_EtOverTruthVsEta_->Fill(etaFound,etFound/etTrue);
363  _TEMP_scatterPlot_EtOverTruthVsPhi_->Fill(phiFound,etFound/etTrue);
364 
365  _TEMP_scatterPlot_EOverTruthVsEt_->Fill(etFound,eFound/eTrue);
366  _TEMP_scatterPlot_EOverTruthVsE_->Fill(eFound,eFound/eTrue);
367  _TEMP_scatterPlot_EOverTruthVsEta_->Fill(etaFound,eFound/eTrue);
368  _TEMP_scatterPlot_EOverTruthVsPhi_->Fill(phiFound,eFound/eTrue);
369 
370  _TEMP_scatterPlot_deltaEtaVsEt_->Fill(etFound,etaFound-etaTrue);
371  _TEMP_scatterPlot_deltaEtaVsE_->Fill(eFound,etaFound-etaTrue);
372  _TEMP_scatterPlot_deltaEtaVsEta_->Fill(etaFound,etaFound-etaTrue);
373  _TEMP_scatterPlot_deltaEtaVsPhi_->Fill(phiFound,etaFound-etaTrue);
374 
375  _TEMP_scatterPlot_deltaPhiVsEt_->Fill(etFound,deltaPhi);
376  _TEMP_scatterPlot_deltaPhiVsE_->Fill(eFound,deltaPhi);
377  _TEMP_scatterPlot_deltaPhiVsEta_->Fill(etaFound,deltaPhi);
378  _TEMP_scatterPlot_deltaPhiVsPhi_->Fill(phiFound,deltaPhi);
379 
380  photonsMCMatched.push_back(bestMatchPhoton);
381  }
382 
383  hist_EtNumRecoOverNumTrue_->Fill(etTrue);
384  hist_ENumRecoOverNumTrue_->Fill(eTrue);
385  hist_EtaNumRecoOverNumTrue_->Fill(etaTrue);
386  hist_PhiNumRecoOverNumTrue_->Fill(phiTrue);
387  }
388  }
389 
390  if(photonsMCMatched.size() == 2)
391  {
392  reco::Photon pOne = photonsMCMatched[0];
393  reco::Photon pTwo = photonsMCMatched[1];
394 
395  double recoMass = findRecoMass(pOne, pTwo);
396 
397  hist_All_recoMass_->Fill(recoMass);
398 
399  if(pOne.superCluster()->seed()->algo() == 1 && pTwo.superCluster()->seed()->algo() == 1)
400  hist_BarrelOnly_recoMass_->Fill(recoMass);
401  else if(pOne.superCluster()->seed()->algo() == 0 && pTwo.superCluster()->seed()->algo() == 0)
402  hist_EndcapOnly_recoMass_->Fill(recoMass);
403  else
404  hist_Mixed_recoMass_->Fill(recoMass);
405  }
406 }
TH2D * _TEMP_scatterPlot_EtOverTruthVsPhi_
TH2D * _TEMP_scatterPlot_deltaEtaVsEta_
TH2D * _TEMP_scatterPlot_deltaPhiVsPhi_
TH1D * hist_PhiEfficiency_
float ecalEta(float EtaParticle, float Zvertex, float plane_Radius)
TH1D * hist_EOverTruth_
Definition: EgammaObjects.h:99
reco::SuperClusterRef superCluster() const
Retrieve photonCore attributes.
Definition: Photon.h:54
virtual double et() const
transverse energy
TH1D * hist_EEfficiency_
double deltaPhi(float phi1, float phi2)
Definition: VectorUtil.h:30
TH1D * hist_recoMass_withBackgroud_20EtCut_
TH2D * _TEMP_scatterPlot_EtOverTruthVsE_
TH2D * _TEMP_scatterPlot_deltaPhiVsE_
TH1D * hist_Mixed_recoMass_
#define abs(x)
Definition: mlp_lapack.h:159
edm::InputTag MCTruthCollection_
Definition: EgammaObjects.h:33
TH2D * _TEMP_scatterPlot_EOverTruthVsEta_
TH2D * _TEMP_scatterPlot_deltaPhiVsEt_
TH1D * hist_ENumRecoOverNumTrue_
TH1D * hist_EtNumRecoOverNumTrue_
Definition: EgammaObjects.h:88
virtual double eta() const
momentum pseudorapidity
TH1D * hist_EtOverTruth_
Definition: EgammaObjects.h:86
TH2D * _TEMP_scatterPlot_EtOverTruthVsEta_
double findRecoMass(reco::Photon pOne, reco::Photon pTwo)
TH2D * _TEMP_scatterPlot_deltaEtaVsE_
TH1D * hist_PhiNumRecoOverNumTrue_
TH1D * hist_PhiOverTruth_
TH1D * hist_recoMass_withBackgroud_5EtCut_
TH2D * _TEMP_scatterPlot_deltaEtaVsPhi_
T sqrt(T t)
Definition: SSEVec.h:28
TH2D * _TEMP_scatterPlot_EOverTruthVsEt_
TH1D * hist_BarrelOnly_recoMass_
tuple genEvent
Definition: MCTruth.py:33
TH1D * hist_EndcapOnly_recoMass_
TH1D * hist_EtaOverTruth_
bool isValid() const
Definition: HandleBase.h:76
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:359
TH1D * hist_recoMass_withBackgroud_10EtCut_
double deltaR(double eta1, double eta2, double phi1, double phi2)
Definition: TreeUtility.cc:17
edm::InputTag RecoCollection_
Definition: EgammaObjects.h:34
TH2D * _TEMP_scatterPlot_deltaPhiVsEta_
TH2D * _TEMP_scatterPlot_EOverTruthVsE_
TH1D * hist_All_recoMass_
TH2D * _TEMP_scatterPlot_deltaEtaVsEt_
TH2D * _TEMP_scatterPlot_EOverTruthVsPhi_
std::vector< Photon > PhotonCollection
collectin of Photon objects
Definition: PhotonFwd.h:9
T const * product() const
Definition: Handle.h:74
std::string const & label() const
Definition: InputTag.h:25
TH1D * hist_EtaEfficiency_
double pi()
Definition: Pi.h:31
TH1D * hist_recoMass_withBackgroud_NoEtCut_
TH2D * _TEMP_scatterPlot_EtOverTruthVsEt_
TH1D * hist_EtEfficiency_
Definition: EgammaObjects.h:87
TH1D * hist_EtaNumRecoOverNumTrue_
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:40
void EgammaObjects::applyLabels ( )
private

Definition at line 803 of file EgammaObjects.cc.

References hist_All_recoMass_, hist_BarrelOnly_recoMass_, hist_deltaEtaVsE_, hist_deltaEtaVsEt_, hist_deltaEtaVsEta_, hist_deltaEtaVsPhi_, hist_deltaPhiVsE_, hist_deltaPhiVsEt_, hist_deltaPhiVsEta_, hist_deltaPhiVsPhi_, hist_E_, hist_EEfficiency_, hist_EndcapOnly_recoMass_, hist_ENumRecoOverNumTrue_, hist_EOverTruth_, hist_EOverTruthVsE_, hist_EOverTruthVsEt_, hist_EOverTruthVsEta_, hist_EOverTruthVsPhi_, hist_Et_, hist_Eta_, hist_EtaEfficiency_, hist_EtaNumRecoOverNumTrue_, hist_EtaOverTruth_, hist_EtEfficiency_, hist_EtNumRecoOverNumTrue_, hist_EtOverTruth_, hist_EtOverTruthVsE_, hist_EtOverTruthVsEt_, hist_EtOverTruthVsEta_, hist_EtOverTruthVsPhi_, hist_Mixed_recoMass_, hist_Phi_, hist_PhiEfficiency_, hist_PhiNumRecoOverNumTrue_, hist_PhiOverTruth_, hist_recoMass_withBackgroud_10EtCut_, hist_recoMass_withBackgroud_20EtCut_, hist_recoMass_withBackgroud_5EtCut_, hist_recoMass_withBackgroud_NoEtCut_, hist_resolutionEtaVsE_, hist_resolutionEtaVsEt_, hist_resolutionEtaVsEta_, hist_resolutionEtaVsPhi_, hist_resolutionEtVsE_, hist_resolutionEtVsEt_, hist_resolutionEtVsEta_, hist_resolutionEtVsPhi_, hist_resolutionEVsE_, hist_resolutionEVsEt_, hist_resolutionEVsEta_, hist_resolutionEVsPhi_, hist_resolutionPhiVsE_, hist_resolutionPhiVsEt_, hist_resolutionPhiVsEta_, hist_resolutionPhiVsPhi_, and particleID.

Referenced by endJob().

804 {
805  hist_Et_->GetXaxis()->SetTitle("Et (GeV)");
806  hist_Et_->GetYaxis()->SetTitle("# per Et Bin");
807  hist_EtOverTruth_->GetXaxis()->SetTitle("Reco Et/True Et");
808  hist_EtOverTruth_->GetYaxis()->SetTitle("# per Ratio Bin");
809  hist_EtEfficiency_->GetXaxis()->SetTitle("Et (GeV)");
810  hist_EtEfficiency_->GetYaxis()->SetTitle("# True Reconstructed/# True per Et Bin");
811  hist_EtNumRecoOverNumTrue_->GetXaxis()->SetTitle("Et (GeV)");
812  hist_EtNumRecoOverNumTrue_->GetYaxis()->SetTitle("# Reco/# True per Et Bin");
813  hist_EtOverTruthVsEt_->GetXaxis()->SetTitle("Et (GeV)");
814  hist_EtOverTruthVsEt_->GetYaxis()->SetTitle("Reco Et/True Et per Et Bin");
815  hist_EtOverTruthVsE_->GetXaxis()->SetTitle("E (GeV)");
816  hist_EtOverTruthVsE_->GetYaxis()->SetTitle("Reco Et/True Et per E Bin");
817  hist_EtOverTruthVsEta_->GetXaxis()->SetTitle("#eta (Radians)");
818  hist_EtOverTruthVsEta_->GetYaxis()->SetTitle("Reco Et/True Et per Eta Bin");
819  hist_EtOverTruthVsPhi_->GetXaxis()->SetTitle("#phi (Radians)");
820  hist_EtOverTruthVsPhi_->GetYaxis()->SetTitle("Reco Et/True Et per Phi Bin");
821  hist_resolutionEtVsEt_->GetXaxis()->SetTitle("Et (GeV)");
822  hist_resolutionEtVsEt_->GetYaxis()->SetTitle("#sigma of Reco Et/True Et per Et Bin");
823  hist_resolutionEtVsE_->GetXaxis()->SetTitle("E (GeV)");
824  hist_resolutionEtVsE_->GetYaxis()->SetTitle("#sigma of Reco Et/True Et per E Bin");
825  hist_resolutionEtVsEta_->GetXaxis()->SetTitle("#eta (Radians)");
826  hist_resolutionEtVsEta_->GetYaxis()->SetTitle("#sigma of Reco Et/True Et per Eta Bin");
827  hist_resolutionEtVsPhi_->GetXaxis()->SetTitle("#phi (Radians)");
828  hist_resolutionEtVsPhi_->GetYaxis()->SetTitle("#sigma of Reco Et/True Et per Phi Bin");
829 
830  hist_E_->GetXaxis()->SetTitle("E (GeV)");
831  hist_E_->GetYaxis()->SetTitle("# per E Bin");
832  hist_EOverTruth_->GetXaxis()->SetTitle("Reco E/True E");
833  hist_EOverTruth_->GetYaxis()->SetTitle("# per Ratio Bin");
834  hist_EEfficiency_->GetXaxis()->SetTitle("E (GeV)");
835  hist_EEfficiency_->GetYaxis()->SetTitle("# True Reconstructed/# True per E Bin");
836  hist_ENumRecoOverNumTrue_->GetXaxis()->SetTitle("E (GeV)");
837  hist_ENumRecoOverNumTrue_->GetYaxis()->SetTitle("# Reco/# True per E Bin");
838  hist_EOverTruthVsEt_->GetXaxis()->SetTitle("Et (GeV)");
839  hist_EOverTruthVsEt_->GetYaxis()->SetTitle("Reco E/True E per Et Bin");
840  hist_EOverTruthVsE_->GetXaxis()->SetTitle("E (GeV)");
841  hist_EOverTruthVsE_->GetYaxis()->SetTitle("Reco E/True E per E Bin");
842  hist_EOverTruthVsEta_->GetXaxis()->SetTitle("#eta (Radians)");
843  hist_EOverTruthVsEta_->GetYaxis()->SetTitle("Reco E/True E per Eta Bin");
844  hist_EOverTruthVsPhi_->GetXaxis()->SetTitle("#phi (Radians)");
845  hist_EOverTruthVsPhi_->GetYaxis()->SetTitle("Reco E/True E per Phi Bin");
846  hist_resolutionEVsEt_->GetXaxis()->SetTitle("Et (GeV)");
847  hist_resolutionEVsEt_->GetYaxis()->SetTitle("#sigma of Reco E/True E per Et Bin");
848  hist_resolutionEVsE_->GetXaxis()->SetTitle("E (GeV)");
849  hist_resolutionEVsE_->GetYaxis()->SetTitle("#sigma of Reco E/True E per E Bin");
850  hist_resolutionEVsEta_->GetXaxis()->SetTitle("#eta (Radians)");
851  hist_resolutionEVsEta_->GetYaxis()->SetTitle("#sigma of Reco E/True E per Eta Bin");
852  hist_resolutionEVsPhi_->GetXaxis()->SetTitle("#phi (Radians)");
853  hist_resolutionEVsPhi_->GetYaxis()->SetTitle("#sigma of Reco E/True E per Phi Bin");
854 
855  hist_Eta_->GetXaxis()->SetTitle("#eta (Radians)");
856  hist_Eta_->GetYaxis()->SetTitle("# per Eta Bin");
857  hist_EtaOverTruth_->GetXaxis()->SetTitle("Reco Eta/True Eta");
858  hist_EtaOverTruth_->GetYaxis()->SetTitle("# per Ratio Bin");
859  hist_EtaEfficiency_->GetXaxis()->SetTitle("#eta (Radians)");
860  hist_EtaEfficiency_->GetYaxis()->SetTitle("# True Reconstructed/# True per Eta Bin");
861  hist_EtaNumRecoOverNumTrue_->GetXaxis()->SetTitle("#eta (Radians)");
862  hist_EtaNumRecoOverNumTrue_->GetYaxis()->SetTitle("# Reco/# True per Eta Bin");
863  hist_deltaEtaVsEt_->GetXaxis()->SetTitle("Et (GeV)");
864  hist_deltaEtaVsEt_->GetYaxis()->SetTitle("Reco Eta - True Eta per Et Bin");
865  hist_deltaEtaVsE_->GetXaxis()->SetTitle("E (GeV)");
866  hist_deltaEtaVsE_->GetYaxis()->SetTitle("Reco Eta - True Eta per E Bin");
867  hist_deltaEtaVsEta_->GetXaxis()->SetTitle("#eta (Radians)");
868  hist_deltaEtaVsEta_->GetYaxis()->SetTitle("Reco Eta - True Eta per Eta Bin");
869  hist_deltaEtaVsPhi_->GetXaxis()->SetTitle("#phi (Radians)");
870  hist_deltaEtaVsPhi_->GetYaxis()->SetTitle("Reco Eta - True Eta per Phi Bin");
871  hist_resolutionEtaVsEt_->GetXaxis()->SetTitle("Et (GeV)");
872  hist_resolutionEtaVsEt_->GetYaxis()->SetTitle("#sigma of Reco Eta - True Eta per Et Bin");
873  hist_resolutionEtaVsE_->GetXaxis()->SetTitle("E (GeV)");
874  hist_resolutionEtaVsE_->GetYaxis()->SetTitle("#sigma of Reco Eta - True Eta per E Bin");
875  hist_resolutionEtaVsEta_->GetXaxis()->SetTitle("#eta (Radians)");
876  hist_resolutionEtaVsEta_->GetYaxis()->SetTitle("#sigma of Reco Eta - True Eta per Eta Bin");
877  hist_resolutionEtaVsPhi_->GetXaxis()->SetTitle("#phi (Radians)");
878  hist_resolutionEtaVsPhi_->GetYaxis()->SetTitle("#sigma of Reco Eta - True Eta per Phi Bin");
879 
880  hist_Phi_->GetXaxis()->SetTitle("#phi (Radians)");
881  hist_Phi_->GetYaxis()->SetTitle("# per Phi Bin");
882  hist_PhiOverTruth_->GetXaxis()->SetTitle("Reco Phi/True Phi");
883  hist_PhiOverTruth_->GetYaxis()->SetTitle("# per Ratio Bin");
884  hist_PhiEfficiency_->GetXaxis()->SetTitle("#phi (Radians)");
885  hist_PhiEfficiency_->GetYaxis()->SetTitle("# True Reconstructed/# True per Phi Bin");
886  hist_PhiNumRecoOverNumTrue_->GetXaxis()->SetTitle("#Phi (Radians)");
887  hist_PhiNumRecoOverNumTrue_->GetYaxis()->SetTitle("# Reco/# True per Phi Bin");
888  hist_deltaPhiVsEt_->GetXaxis()->SetTitle("Et (GeV)");
889  hist_deltaPhiVsEt_->GetYaxis()->SetTitle("Reco Phi - True Phi per Et Bin");
890  hist_deltaPhiVsE_->GetXaxis()->SetTitle("E (GeV)");
891  hist_deltaPhiVsE_->GetYaxis()->SetTitle("Reco Phi - True Phi per E Bin");
892  hist_deltaPhiVsEta_->GetXaxis()->SetTitle("#eta (Radians)");
893  hist_deltaPhiVsEta_->GetYaxis()->SetTitle("Reco Phi - True Phi per Eta Bin");
894  hist_deltaPhiVsPhi_->GetXaxis()->SetTitle("#phi (Radians)");
895  hist_deltaPhiVsPhi_->GetYaxis()->SetTitle("Reco Phi - True Phi per Phi Bin");
896  hist_resolutionPhiVsEt_->GetXaxis()->SetTitle("Et (GeV)");
897  hist_resolutionPhiVsEt_->GetYaxis()->SetTitle("#sigma of Reco Phi - True Phi per Et Bin");
898  hist_resolutionPhiVsE_->GetXaxis()->SetTitle("E (GeV)");
899  hist_resolutionPhiVsE_->GetYaxis()->SetTitle("#sigma of Reco Phi - True Phi per E Bin");
900  hist_resolutionPhiVsEta_->GetXaxis()->SetTitle("#eta (Radians)");
901  hist_resolutionPhiVsEta_->GetYaxis()->SetTitle("#sigma of Reco Phi - True Phi per Eta Bin");
902  hist_resolutionPhiVsPhi_->GetXaxis()->SetTitle("#phi (Radians)");
903  hist_resolutionPhiVsPhi_->GetYaxis()->SetTitle("#sigma of Reco Phi - True Phi per Phi Bin");
904 
905  std::string recoParticleName;
906 
907  if( particleID == 22 ) recoParticleName = "Reco Higgs";
908  else if( particleID == 11 ) recoParticleName = "Reco Z";
909 
910  hist_All_recoMass_->GetXaxis()->SetTitle((recoParticleName+" Mass (GeV)").c_str());
911  hist_All_recoMass_->GetYaxis()->SetTitle("# of Reco Masses per Mass Bin");
912  hist_BarrelOnly_recoMass_->GetXaxis()->SetTitle((recoParticleName+" Mass (GeV)").c_str());
913  hist_BarrelOnly_recoMass_->GetYaxis()->SetTitle("# of Reco Masses per Mass Bin");
914  hist_EndcapOnly_recoMass_->GetXaxis()->SetTitle((recoParticleName+" Mass (GeV)").c_str());
915  hist_EndcapOnly_recoMass_->GetYaxis()->SetTitle("# of Reco Masses per Mass Bin");
916  hist_Mixed_recoMass_->GetXaxis()->SetTitle((recoParticleName+" Mass (GeV)").c_str());
917  hist_Mixed_recoMass_->GetYaxis()->SetTitle("# of Reco Masses per Mass Bin");
918  hist_recoMass_withBackgroud_NoEtCut_->GetXaxis()->SetTitle((recoParticleName+" Mass (GeV)").c_str());
919  hist_recoMass_withBackgroud_NoEtCut_->GetYaxis()->SetTitle("# of Reco Masses per Mass Bin");
920  hist_recoMass_withBackgroud_5EtCut_->GetXaxis()->SetTitle((recoParticleName+" Mass (GeV)").c_str());
921  hist_recoMass_withBackgroud_5EtCut_->GetYaxis()->SetTitle("# of Reco Masses per Mass Bin");
922  hist_recoMass_withBackgroud_10EtCut_->GetXaxis()->SetTitle((recoParticleName+" Mass (GeV)").c_str());
923  hist_recoMass_withBackgroud_10EtCut_->GetYaxis()->SetTitle("# of Reco Masses per Mass Bin");
924  hist_recoMass_withBackgroud_20EtCut_->GetXaxis()->SetTitle((recoParticleName+" Mass (GeV)").c_str());
925  hist_recoMass_withBackgroud_20EtCut_->GetYaxis()->SetTitle("# of Reco Masses per Mass Bin");
926 }
TH1D * hist_resolutionEVsPhi_
TH1D * hist_resolutionEVsE_
TH1D * hist_PhiEfficiency_
TH1D * hist_deltaEtaVsEta_
TH1D * hist_EOverTruth_
Definition: EgammaObjects.h:99
TH1D * hist_EtOverTruthVsEt_
Definition: EgammaObjects.h:89
TH1D * hist_resolutionEVsEta_
TH1D * hist_deltaEtaVsPhi_
TH1D * hist_EEfficiency_
TH1D * hist_EOverTruthVsEt_
TH1D * hist_recoMass_withBackgroud_20EtCut_
TH1D * hist_Mixed_recoMass_
TH1D * hist_resolutionPhiVsPhi_
TH1D * hist_resolutionEtVsEta_
Definition: EgammaObjects.h:95
TH1D * hist_ENumRecoOverNumTrue_
TH1D * hist_deltaPhiVsPhi_
TH1D * hist_EOverTruthVsE_
TH1D * hist_EtNumRecoOverNumTrue_
Definition: EgammaObjects.h:88
TH1D * hist_resolutionEVsEt_
TH1D * hist_resolutionEtVsPhi_
Definition: EgammaObjects.h:96
TH1D * hist_EtOverTruth_
Definition: EgammaObjects.h:86
TH1D * hist_EOverTruthVsPhi_
TH1D * hist_EtOverTruthVsEta_
Definition: EgammaObjects.h:91
TH1D * hist_EOverTruthVsEta_
TH1D * hist_resolutionEtVsE_
Definition: EgammaObjects.h:94
TH1D * hist_PhiNumRecoOverNumTrue_
TH1D * hist_PhiOverTruth_
TH1D * hist_recoMass_withBackgroud_5EtCut_
TH1D * hist_resolutionEtVsEt_
Definition: EgammaObjects.h:93
TH1D * hist_EtOverTruthVsE_
Definition: EgammaObjects.h:90
TH1D * hist_resolutionEtaVsE_
TH1D * hist_BarrelOnly_recoMass_
TH1D * hist_EndcapOnly_recoMass_
TH1D * hist_deltaPhiVsEt_
TH1D * hist_EtaOverTruth_
TH1D * hist_deltaPhiVsEta_
TH1D * hist_deltaEtaVsEt_
TH1D * hist_recoMass_withBackgroud_10EtCut_
TH1D * hist_resolutionPhiVsEt_
TH1D * hist_All_recoMass_
TH1D * hist_deltaEtaVsE_
TH1D * hist_resolutionEtaVsPhi_
TH1D * hist_EtOverTruthVsPhi_
Definition: EgammaObjects.h:92
TH1D * hist_deltaPhiVsE_
TH1D * hist_EtaEfficiency_
TH1D * hist_resolutionPhiVsE_
TH1D * hist_recoMass_withBackgroud_NoEtCut_
TH1D * hist_resolutionEtaVsEta_
TH1D * hist_resolutionPhiVsEta_
TH1D * hist_EtEfficiency_
Definition: EgammaObjects.h:87
TH1D * hist_EtaNumRecoOverNumTrue_
TH1D * hist_resolutionEtaVsEt_
void EgammaObjects::beginJob ( void  )
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 91 of file EgammaObjects.cc.

References createBookedHistoObjects(), and createTempHistoObjects().

92 {
93  TH1::SetDefaultSumw2(true);
94 
97 }
void createTempHistoObjects()
void createBookedHistoObjects()
void EgammaObjects::createBookedHistoObjects ( )
private

Definition at line 99 of file EgammaObjects.cc.

References hist_All_recoMass_, hist_BarrelOnly_recoMass_, hist_bins_E_, hist_bins_EOverTruth_, hist_bins_Et_, hist_bins_Eta_, hist_bins_EtaOverTruth_, hist_bins_EtOverTruth_, hist_bins_Phi_, hist_bins_PhiOverTruth_, hist_bins_recoMass_, hist_E_, hist_EEfficiency_, hist_EndcapOnly_recoMass_, hist_ENumRecoOverNumTrue_, hist_EOverTruth_, hist_Et_, hist_Eta_, hist_EtaEfficiency_, hist_EtaNumRecoOverNumTrue_, hist_EtaOverTruth_, hist_EtEfficiency_, hist_EtNumRecoOverNumTrue_, hist_EtOverTruth_, hist_max_E_, hist_max_EOverTruth_, hist_max_Et_, hist_max_Eta_, hist_max_EtaOverTruth_, hist_max_EtOverTruth_, hist_max_Phi_, hist_max_PhiOverTruth_, hist_max_recoMass_, hist_min_E_, hist_min_EOverTruth_, hist_min_Et_, hist_min_Eta_, hist_min_EtaOverTruth_, hist_min_EtOverTruth_, hist_min_Phi_, hist_min_PhiOverTruth_, hist_min_recoMass_, hist_Mixed_recoMass_, hist_Phi_, hist_PhiEfficiency_, hist_PhiNumRecoOverNumTrue_, hist_PhiOverTruth_, hist_recoMass_withBackgroud_10EtCut_, hist_recoMass_withBackgroud_20EtCut_, hist_recoMass_withBackgroud_5EtCut_, hist_recoMass_withBackgroud_NoEtCut_, particleID, and particleString.

Referenced by beginJob().

100 {
101  hist_Et_
102  = new TH1D("hist_Et_",("Et Distribution of "+particleString).c_str(),
105  = new TH1D("hist_EtOverTruth_",("Reco Et over True Et of "+particleString).c_str(),
108  = new TH1D("hist_EtEfficiency_",("# of True "+particleString+" Reconstructed over # of True "+particleString+" VS Et of "+particleString).c_str(),
111  = new TH1D("hist_EtNumRecoOverNumTrue_",("# of Reco "+particleString+" over # of True "+particleString+" VS Et of "+particleString).c_str(),
113 
114  hist_E_
115  = new TH1D("hist_E_",("E Distribution of "+particleString).c_str(),
118  = new TH1D("hist_EOverTruth_",("Reco E over True E of "+particleString).c_str(),
121  = new TH1D("hist_EEfficiency_",("# of True "+particleString+" Reconstructed over # of True "+particleString+" VS E of "+particleString).c_str(),
124  = new TH1D("hist_ENumRecoOverNumTrue_",("# of Reco "+particleString+" over # of True "+particleString+" VS E of "+particleString).c_str(),
126 
127  hist_Eta_
128  = new TH1D("hist_Eta_",("Eta Distribution of "+particleString).c_str(),
131  = new TH1D("hist_EtaOverTruth_",("Reco Eta over True Eta of "+particleString).c_str(),
134  = new TH1D("hist_EtaEfficiency_",("# of True "+particleString+" Reconstructed over # of True "+particleString+" VS Eta of "+particleString).c_str(),
137  = new TH1D("hist_EtaNumRecoOverNumTrue_",("# of Reco "+particleString+" over # of True "+particleString+" VS Eta of "+particleString).c_str(),
139 
140  hist_Phi_
141  = new TH1D("hist_Phi_",("Phi Distribution of "+particleString).c_str(),
144  = new TH1D("hist_PhiOverTruth_",("Reco Phi over True Phi of "+particleString).c_str(),
147  = new TH1D("hist_PhiEfficiency_",("# of True "+particleString+" Reconstructed over # of True "+particleString+" VS Phi of "+particleString).c_str(),
150  = new TH1D("hist_PhiNumRecoOverNumTrue_",("# of Reco "+particleString+" over # of True "+particleString+" VS Phi of "+particleString).c_str(),
152 
153  std::string recoParticleName;
154 
155  if( particleID == 22 ) recoParticleName = "Higgs";
156  else if( particleID == 11 ) recoParticleName = "Z";
157 
159  = new TH1D("hist_All_recoMass_",(recoParticleName+" Mass from "+particleString+" in All Regions").c_str(),
162  = new TH1D("hist_BarrelOnly_recoMass_",(recoParticleName+" Mass from "+particleString+" in Barrel").c_str(),
165  = new TH1D("hist_EndcapOnly_recoMass_",(recoParticleName+" Mass from "+particleString+" in EndCap").c_str(),
168  = new TH1D("hist_Mixed_recoMass_",(recoParticleName+" Mass from "+particleString+" in Split Detectors").c_str(),
170 
172  = new TH1D("hist_recoMass_withBackgroud_NoEtCut_",(recoParticleName+" Mass from "+particleString+" with Background, No Et Cut").c_str(),
175  = new TH1D("hist_recoMass_withBackgroud_5EtCut_",(recoParticleName+" Mass from "+particleString+" with Background, 5 Et Cut").c_str(),
178  = new TH1D("hist_recoMass_withBackgroud_10EtCut_",(recoParticleName+" Mass from "+particleString+" with Background, 10 Et Cut").c_str(),
181  = new TH1D("hist_recoMass_withBackgroud_20EtCut_",(recoParticleName+" Mass from "+particleString+" with Background, 20 Et Cut").c_str(),
183 }
double hist_min_EtaOverTruth_
Definition: EgammaObjects.h:65
TH1D * hist_PhiEfficiency_
int hist_bins_recoMass_
Definition: EgammaObjects.h:83
TH1D * hist_EOverTruth_
Definition: EgammaObjects.h:99
TH1D * hist_EEfficiency_
TH1D * hist_recoMass_withBackgroud_20EtCut_
double hist_max_Eta_
Definition: EgammaObjects.h:50
TH1D * hist_Mixed_recoMass_
double hist_min_PhiOverTruth_
Definition: EgammaObjects.h:69
double hist_max_Phi_
Definition: EgammaObjects.h:54
TH1D * hist_ENumRecoOverNumTrue_
double hist_max_EtaOverTruth_
Definition: EgammaObjects.h:66
double hist_min_Phi_
Definition: EgammaObjects.h:53
double hist_min_Eta_
Definition: EgammaObjects.h:49
TH1D * hist_EtNumRecoOverNumTrue_
Definition: EgammaObjects.h:88
std::string particleString
Definition: EgammaObjects.h:37
TH1D * hist_EtOverTruth_
Definition: EgammaObjects.h:86
int hist_bins_EOverTruth_
Definition: EgammaObjects.h:63
double hist_min_EtOverTruth_
Definition: EgammaObjects.h:57
double hist_max_recoMass_
Definition: EgammaObjects.h:82
TH1D * hist_PhiNumRecoOverNumTrue_
double hist_max_E_
Definition: EgammaObjects.h:46
TH1D * hist_PhiOverTruth_
TH1D * hist_recoMass_withBackgroud_5EtCut_
TH1D * hist_BarrelOnly_recoMass_
TH1D * hist_EndcapOnly_recoMass_
TH1D * hist_EtaOverTruth_
int hist_bins_EtOverTruth_
Definition: EgammaObjects.h:59
TH1D * hist_recoMass_withBackgroud_10EtCut_
double hist_max_PhiOverTruth_
Definition: EgammaObjects.h:70
double hist_max_EtOverTruth_
Definition: EgammaObjects.h:58
double hist_min_E_
Definition: EgammaObjects.h:45
TH1D * hist_All_recoMass_
double hist_min_Et_
Definition: EgammaObjects.h:41
double hist_min_recoMass_
Definition: EgammaObjects.h:81
TH1D * hist_EtaEfficiency_
double hist_min_EOverTruth_
Definition: EgammaObjects.h:61
TH1D * hist_recoMass_withBackgroud_NoEtCut_
int hist_bins_PhiOverTruth_
Definition: EgammaObjects.h:71
double hist_max_EOverTruth_
Definition: EgammaObjects.h:62
double hist_max_Et_
Definition: EgammaObjects.h:42
int hist_bins_EtaOverTruth_
Definition: EgammaObjects.h:67
TH1D * hist_EtEfficiency_
Definition: EgammaObjects.h:87
TH1D * hist_EtaNumRecoOverNumTrue_
void EgammaObjects::createTempHistoObjects ( )
private

Definition at line 185 of file EgammaObjects.cc.

References _TEMP_scatterPlot_deltaEtaVsE_, _TEMP_scatterPlot_deltaEtaVsEt_, _TEMP_scatterPlot_deltaEtaVsEta_, _TEMP_scatterPlot_deltaEtaVsPhi_, _TEMP_scatterPlot_deltaPhiVsE_, _TEMP_scatterPlot_deltaPhiVsEt_, _TEMP_scatterPlot_deltaPhiVsEta_, _TEMP_scatterPlot_deltaPhiVsPhi_, _TEMP_scatterPlot_EOverTruthVsE_, _TEMP_scatterPlot_EOverTruthVsEt_, _TEMP_scatterPlot_EOverTruthVsEta_, _TEMP_scatterPlot_EOverTruthVsPhi_, _TEMP_scatterPlot_EtOverTruthVsE_, _TEMP_scatterPlot_EtOverTruthVsEt_, _TEMP_scatterPlot_EtOverTruthVsEta_, _TEMP_scatterPlot_EtOverTruthVsPhi_, hist_bins_deltaEta_, hist_bins_deltaPhi_, hist_bins_E_, hist_bins_EOverTruth_, hist_bins_Et_, hist_bins_Eta_, hist_bins_EtOverTruth_, hist_bins_Phi_, hist_max_deltaEta_, hist_max_deltaPhi_, hist_max_E_, hist_max_EOverTruth_, hist_max_Et_, hist_max_Eta_, hist_max_EtOverTruth_, hist_max_Phi_, hist_min_deltaEta_, hist_min_deltaPhi_, hist_min_E_, hist_min_EOverTruth_, hist_min_Et_, hist_min_Eta_, hist_min_EtOverTruth_, and hist_min_Phi_.

Referenced by beginJob().

186 {
188  = new TH2D("_TEMP_scatterPlot_EtOverTruthVsEt_","_TEMP_scatterPlot_EtOverTruthVsEt_",
191  = new TH2D("_TEMP_scatterPlot_EtOverTruthVsE_","_TEMP_scatterPlot_EtOverTruthVsE_",
194  = new TH2D("_TEMP_scatterPlot_EtOverTruthVsEta_","_TEMP_scatterPlot_EtOverTruthVsEta_",
197  = new TH2D("_TEMP_scatterPlot_EtOverTruthVsPhi_","_TEMP_scatterPlot_EtOverTruthVsPhi_",
199 
201  = new TH2D("_TEMP_scatterPlot_EOverTruthVsEt_","_TEMP_scatterPlot_EOverTruthVsEt_",
204  = new TH2D("_TEMP_scatterPlot_EOverTruthVsE_","_TEMP_scatterPlot_EOverTruthVsE_",
207  = new TH2D("_TEMP_scatterPlot_EOverTruthVsEta_","_TEMP_scatterPlot_EOverTruthVsEta_",
210  = new TH2D("_TEMP_scatterPlot_EOverTruthVsPhi_","_TEMP_scatterPlot_EOverTruthVsPhi_",
212 
214  = new TH2D("_TEMP_scatterPlot_deltaEtaVsEt_","_TEMP_scatterPlot_deltaEtaVsEt_",
217  = new TH2D("_TEMP_scatterPlot_deltaEtaVsE_","_TEMP_scatterPlot_deltaEtaVsE_",
220  = new TH2D("_TEMP_scatterPlot_deltaEtaVsEta_","_TEMP_scatterPlot_deltaEtaVsEta_",
223  = new TH2D("_TEMP_scatterPlot_deltaEtaVsPhi_","_TEMP_scatterPlot_deltaEtaVsPhi_",
225 
227  = new TH2D("_TEMP_scatterPlot_deltaPhiVsEt_","_TEMP_scatterPlot_deltaPhiVsEt_",
230  = new TH2D("_TEMP_scatterPlot_deltaPhiVsE_","_TEMP_scatterPlot_deltaPhiVsE_",
233  = new TH2D("_TEMP_scatterPlot_deltaPhiVsEta_","_TEMP_scatterPlot_deltaPhiVsEta_",
236  = new TH2D("_TEMP_scatterPlot_deltaPhiVsPhi_","_TEMP_scatterPlot_deltaPhiVsPhi_",
238 }
TH2D * _TEMP_scatterPlot_EtOverTruthVsPhi_
double hist_min_deltaEta_
Definition: EgammaObjects.h:73
int hist_bins_deltaEta_
Definition: EgammaObjects.h:75
TH2D * _TEMP_scatterPlot_deltaEtaVsEta_
int hist_bins_deltaPhi_
Definition: EgammaObjects.h:79
TH2D * _TEMP_scatterPlot_deltaPhiVsPhi_
TH2D * _TEMP_scatterPlot_EtOverTruthVsE_
double hist_max_Eta_
Definition: EgammaObjects.h:50
TH2D * _TEMP_scatterPlot_deltaPhiVsE_
double hist_max_Phi_
Definition: EgammaObjects.h:54
TH2D * _TEMP_scatterPlot_EOverTruthVsEta_
TH2D * _TEMP_scatterPlot_deltaPhiVsEt_
double hist_min_Phi_
Definition: EgammaObjects.h:53
double hist_min_Eta_
Definition: EgammaObjects.h:49
int hist_bins_EOverTruth_
Definition: EgammaObjects.h:63
TH2D * _TEMP_scatterPlot_EtOverTruthVsEta_
double hist_min_EtOverTruth_
Definition: EgammaObjects.h:57
TH2D * _TEMP_scatterPlot_deltaEtaVsE_
double hist_max_E_
Definition: EgammaObjects.h:46
double hist_min_deltaPhi_
Definition: EgammaObjects.h:77
TH2D * _TEMP_scatterPlot_deltaEtaVsPhi_
TH2D * _TEMP_scatterPlot_EOverTruthVsEt_
double hist_max_deltaEta_
Definition: EgammaObjects.h:74
double hist_max_deltaPhi_
Definition: EgammaObjects.h:78
int hist_bins_EtOverTruth_
Definition: EgammaObjects.h:59
TH2D * _TEMP_scatterPlot_deltaPhiVsEta_
TH2D * _TEMP_scatterPlot_EOverTruthVsE_
double hist_max_EtOverTruth_
Definition: EgammaObjects.h:58
double hist_min_E_
Definition: EgammaObjects.h:45
TH2D * _TEMP_scatterPlot_deltaEtaVsEt_
double hist_min_Et_
Definition: EgammaObjects.h:41
TH2D * _TEMP_scatterPlot_EOverTruthVsPhi_
double hist_min_EOverTruth_
Definition: EgammaObjects.h:61
TH2D * _TEMP_scatterPlot_EtOverTruthVsEt_
double hist_max_EOverTruth_
Definition: EgammaObjects.h:62
double hist_max_Et_
Definition: EgammaObjects.h:42
float EgammaObjects::ecalEta ( float  EtaParticle,
float  Zvertex,
float  plane_Radius 
)
private

Definition at line 590 of file EgammaObjects.cc.

References abs, ETA, etaBarrelEndcap, funct::log(), Geom::pi(), R_ECAL, funct::tan(), and Z_Endcap.

Referenced by analyzePhotons().

591 {
592  const float R_ECAL = 136.5;
593  const float Z_Endcap = 328.0;
594  const float etaBarrelEndcap = 1.479;
595 
596  if(EtaParticle != 0.)
597  {
598  float Theta = 0.0 ;
599  float ZEcal = (R_ECAL-plane_Radius)*sinh(EtaParticle)+Zvertex;
600 
601  if(ZEcal != 0.0) Theta = atan(R_ECAL/ZEcal);
602  if(Theta<0.0) Theta = Theta+Geom::pi() ;
603 
604  float ETA = - log(tan(0.5*Theta));
605 
606  if( std::abs(ETA) > etaBarrelEndcap )
607  {
608  float Zend = Z_Endcap ;
609  if(EtaParticle<0.0 ) Zend = -Zend ;
610  float Zlen = Zend - Zvertex ;
611  float RR = Zlen/sinh(EtaParticle);
612  Theta = atan((RR+plane_Radius)/Zend);
613  if(Theta<0.0) Theta = Theta+Geom::pi() ;
614  ETA = - log(tan(0.5*Theta));
615  }
616 
617  return ETA;
618  }
619  else
620  {
621  edm::LogWarning("") << "[EgammaObjects::ecalEta] Warning: Eta equals to zero, not correcting" ;
622  return EtaParticle;
623  }
624 }
#define abs(x)
Definition: mlp_lapack.h:159
#define ETA
Tan< T >::type tan(const T &t)
Definition: Tan.h:22
Log< T >::type log(const T &t)
Definition: Log.h:22
static const float etaBarrelEndcap
static const float Z_Endcap
double pi()
Definition: Pi.h:31
static const float R_ECAL
void EgammaObjects::endJob ( void  )
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 627 of file EgammaObjects.cc.

References applyLabels(), fitHistos(), getDeltaResHistosViaSlicing(), getEfficiencyHistosViaDividing(), particleString, rootFile_, saveHistos(), and setDrawOptions().

628 {
629  rootFile_->cd();
630  rootFile_->mkdir(particleString.c_str());
631 
634  fitHistos();
635 
636  applyLabels();
637  setDrawOptions();
638  saveHistos();
639  rootFile_->Close();
640 }
void getEfficiencyHistosViaDividing()
std::string particleString
Definition: EgammaObjects.h:37
void getDeltaResHistosViaSlicing()
void setDrawOptions()
TFile * rootFile_
Definition: EgammaObjects.h:31
double EgammaObjects::findRecoMass ( reco::Photon  pOne,
reco::Photon  pTwo 
)
private

Definition at line 568 of file EgammaObjects.cc.

References funct::cos(), relval_parameters_module::energy, mathSSE::sqrt(), and reco::Photon::superCluster().

Referenced by analyzeElectrons(), and analyzePhotons().

569 {
570  double cosTheta
571  = (cos(pOne.superCluster()->phi() - pTwo.superCluster()->phi()) + sinh(pOne.superCluster()->eta()) * sinh(pTwo.superCluster()->eta())) /
572  (cosh(pOne.superCluster()->eta()) * cosh(pTwo.superCluster()->eta()));
573 
574  double recoMass = sqrt(2 * (pOne.superCluster())->energy() * (pTwo.superCluster())->energy() * (1 - cosTheta));
575 
576  return recoMass;
577 }
reco::SuperClusterRef superCluster() const
Retrieve photonCore attributes.
Definition: Photon.h:54
T sqrt(T t)
Definition: SSEVec.h:28
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
double EgammaObjects::findRecoMass ( reco::GsfElectron  eOne,
reco::GsfElectron  eTwo 
)
private

Definition at line 579 of file EgammaObjects.cc.

References reco::GsfElectron::caloEnergy(), reco::GsfElectron::caloPosition(), funct::cos(), and mathSSE::sqrt().

580 {
581  double cosTheta
582  = (cos(eOne.caloPosition().phi() - eTwo.caloPosition().phi()) + sinh(eOne.caloPosition().eta()) * sinh(eTwo.caloPosition().eta())) /
583  (cosh(eOne.caloPosition().eta()) * cosh(eTwo.caloPosition().eta()));
584 
585  double recoMass = sqrt(2 * eOne.caloEnergy() * eTwo.caloEnergy() * (1 - cosTheta));
586 
587  return recoMass;
588 }
T sqrt(T t)
Definition: SSEVec.h:28
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
math::XYZPoint caloPosition() const
Definition: GsfElectron.h:275
float caloEnergy() const
Definition: GsfElectron.h:595
void EgammaObjects::fitHistos ( )
private

Definition at line 758 of file EgammaObjects.cc.

References hist_EOverTruth_, hist_EtaOverTruth_, hist_EtOverTruth_, and hist_PhiOverTruth_.

Referenced by endJob().

759 {
760  hist_EtOverTruth_->Fit("gaus","QEM");
761 // hist_EtNumRecoOverNumTrue_->Fit("pol1","QEM");
762 
763  hist_EOverTruth_->Fit("gaus","QEM");
764 // hist_ENumRecoOverNumTrue_->Fit("pol1","QEM");
765 
766  hist_EtaOverTruth_->Fit("gaus","QEM");
767 // hist_EtaNumRecoOverNumTrue_->Fit("pol1","QEM");
768 
769  hist_PhiOverTruth_->Fit("gaus","QEM");
770 // hist_PhiNumRecoOverNumTrue_->Fit("pol1","QEM");
771 
772  /*
773  hist_EtOverTruthVsEt_->Fit("pol1","QEM");
774  hist_EtOverTruthVsEta_->Fit("pol1","QEM");
775  hist_EtOverTruthVsPhi_->Fit("pol1","QEM");
776  hist_resolutionEtVsEt_->Fit("pol1","QEM");
777  hist_resolutionEtVsEta_->Fit("pol1","QEM");
778  hist_resolutionEtVsPhi_->Fit("pol1","QEM");
779 
780  hist_EOverTruthVsEt_->Fit("pol1","QEM");
781  hist_EOverTruthVsEta_->Fit("pol1","QEM");
782  hist_EOverTruthVsPhi_->Fit("pol1","QEM");
783  hist_resolutionEVsEt_->Fit("pol1","QEM");
784  hist_resolutionEVsEta_->Fit("pol1","QEM");
785  hist_resolutionEVsPhi_->Fit("pol1","QEM");
786 
787  hist_deltaEtaVsEt_->Fit("pol1","QEM");
788  hist_deltaEtaVsEta_->Fit("pol1","QEM");
789  hist_deltaEtaVsPhi_->Fit("pol1","QEM");
790  hist_resolutionEtaVsEt_->Fit("pol1","QEM");
791  hist_resolutionEtaVsEta_->Fit("pol1","QEM");
792  hist_resolutionEtaVsPhi_->Fit("pol1","QEM");
793 
794  hist_deltaPhiVsEt_->Fit("pol1","QEM");
795  hist_deltaPhiVsEta_->Fit("pol1","QEM");
796  hist_deltaPhiVsPhi_->Fit("pol1","QEM");
797  hist_resolutionPhiVsEt_->Fit("pol1","QEM");
798  hist_resolutionPhiVsEta_->Fit("pol1","QEM");
799  hist_resolutionPhiVsPhi_->Fit("pol1","QEM");
800  */
801 }
TH1D * hist_EOverTruth_
Definition: EgammaObjects.h:99
TH1D * hist_EtOverTruth_
Definition: EgammaObjects.h:86
TH1D * hist_PhiOverTruth_
TH1D * hist_EtaOverTruth_
void EgammaObjects::getDeltaResHistosViaSlicing ( )
private

Definition at line 642 of file EgammaObjects.cc.

References _TEMP_scatterPlot_deltaEtaVsE_, _TEMP_scatterPlot_deltaEtaVsEt_, _TEMP_scatterPlot_deltaEtaVsEta_, _TEMP_scatterPlot_deltaEtaVsPhi_, _TEMP_scatterPlot_deltaPhiVsE_, _TEMP_scatterPlot_deltaPhiVsEt_, _TEMP_scatterPlot_deltaPhiVsEta_, _TEMP_scatterPlot_deltaPhiVsPhi_, _TEMP_scatterPlot_EOverTruthVsE_, _TEMP_scatterPlot_EOverTruthVsEt_, _TEMP_scatterPlot_EOverTruthVsEta_, _TEMP_scatterPlot_EOverTruthVsPhi_, _TEMP_scatterPlot_EtOverTruthVsE_, _TEMP_scatterPlot_EtOverTruthVsEt_, _TEMP_scatterPlot_EtOverTruthVsEta_, _TEMP_scatterPlot_EtOverTruthVsPhi_, hist_bins_E_, hist_bins_Et_, hist_bins_Eta_, hist_bins_Phi_, hist_deltaEtaVsE_, hist_deltaEtaVsEt_, hist_deltaEtaVsEta_, hist_deltaEtaVsPhi_, hist_deltaPhiVsE_, hist_deltaPhiVsEt_, hist_deltaPhiVsEta_, hist_deltaPhiVsPhi_, hist_EOverTruthVsE_, hist_EOverTruthVsEt_, hist_EOverTruthVsEta_, hist_EOverTruthVsPhi_, hist_EtOverTruthVsE_, hist_EtOverTruthVsEt_, hist_EtOverTruthVsEta_, hist_EtOverTruthVsPhi_, hist_resolutionEtaVsE_, hist_resolutionEtaVsEt_, hist_resolutionEtaVsEta_, hist_resolutionEtaVsPhi_, hist_resolutionEtVsE_, hist_resolutionEtVsEt_, hist_resolutionEtVsEta_, hist_resolutionEtVsPhi_, hist_resolutionEVsE_, hist_resolutionEVsEt_, hist_resolutionEVsEta_, hist_resolutionEVsPhi_, hist_resolutionPhiVsE_, hist_resolutionPhiVsEt_, hist_resolutionPhiVsEta_, hist_resolutionPhiVsPhi_, and particleString.

Referenced by endJob().

643 {
644  _TEMP_scatterPlot_EtOverTruthVsEt_->FitSlicesY(0,1,hist_bins_Et_,10,"QRG3");
645  _TEMP_scatterPlot_EtOverTruthVsE_->FitSlicesY(0,1,hist_bins_E_,10,"QRG3");
646  _TEMP_scatterPlot_EtOverTruthVsEta_->FitSlicesY(0,1,hist_bins_Eta_,10,"QRG2");
647  _TEMP_scatterPlot_EtOverTruthVsPhi_->FitSlicesY(0,1,hist_bins_Phi_,10,"QRG2");
648 
649  _TEMP_scatterPlot_EOverTruthVsEt_->FitSlicesY(0,1,hist_bins_Et_,10,"QRG3");
650  _TEMP_scatterPlot_EOverTruthVsE_->FitSlicesY(0,1,hist_bins_E_,10,"QRG3");
651  _TEMP_scatterPlot_EOverTruthVsEta_->FitSlicesY(0,1,hist_bins_Eta_,10,"QRG2");
652  _TEMP_scatterPlot_EOverTruthVsPhi_->FitSlicesY(0,1,hist_bins_Phi_,10,"QRG2");
653 
654  _TEMP_scatterPlot_deltaEtaVsEt_->FitSlicesY(0,1,hist_bins_Et_,10,"QRG3");
655  _TEMP_scatterPlot_deltaEtaVsE_->FitSlicesY(0,1,hist_bins_E_,10,"QRG3");
656  _TEMP_scatterPlot_deltaEtaVsEta_->FitSlicesY(0,1,hist_bins_Eta_,10,"QRG2");
657  _TEMP_scatterPlot_deltaEtaVsPhi_->FitSlicesY(0,1,hist_bins_Phi_,10,"QRG2");
658 
659  _TEMP_scatterPlot_deltaPhiVsEt_->FitSlicesY(0,1,hist_bins_Et_,10,"QRG3");
660  _TEMP_scatterPlot_deltaPhiVsE_->FitSlicesY(0,1,hist_bins_E_,10,"QRG3");
661  _TEMP_scatterPlot_deltaPhiVsEta_->FitSlicesY(0,1,hist_bins_Eta_,10,"QRG2");
662  _TEMP_scatterPlot_deltaPhiVsPhi_->FitSlicesY(0,1,hist_bins_Phi_,10,"QRG2");
663 
664  hist_EtOverTruthVsEt_ = (TH1D*)gDirectory->Get("_TEMP_scatterPlot_EtOverTruthVsEt__1");
665  hist_EtOverTruthVsE_ = (TH1D*)gDirectory->Get("_TEMP_scatterPlot_EtOverTruthVsE__1");
666  hist_EtOverTruthVsEta_ = (TH1D*)gDirectory->Get("_TEMP_scatterPlot_EtOverTruthVsEta__1");
667  hist_EtOverTruthVsPhi_ = (TH1D*)gDirectory->Get("_TEMP_scatterPlot_EtOverTruthVsPhi__1");
668 
669  hist_EOverTruthVsEt_ = (TH1D*)gDirectory->Get("_TEMP_scatterPlot_EOverTruthVsEt__1");
670  hist_EOverTruthVsE_ = (TH1D*)gDirectory->Get("_TEMP_scatterPlot_EOverTruthVsE__1");
671  hist_EOverTruthVsEta_ = (TH1D*)gDirectory->Get("_TEMP_scatterPlot_EOverTruthVsEta__1");
672  hist_EOverTruthVsPhi_ = (TH1D*)gDirectory->Get("_TEMP_scatterPlot_EOverTruthVsPhi__1");
673 
674  hist_deltaEtaVsEt_ = (TH1D*)gDirectory->Get("_TEMP_scatterPlot_deltaEtaVsEt__1");
675  hist_deltaEtaVsE_ = (TH1D*)gDirectory->Get("_TEMP_scatterPlot_deltaEtaVsE__1");
676  hist_deltaEtaVsEta_ = (TH1D*)gDirectory->Get("_TEMP_scatterPlot_deltaEtaVsEta__1");
677  hist_deltaEtaVsPhi_ = (TH1D*)gDirectory->Get("_TEMP_scatterPlot_deltaEtaVsPhi__1");
678 
679  hist_deltaPhiVsEt_ = (TH1D*)gDirectory->Get("_TEMP_scatterPlot_deltaPhiVsEt__1");
680  hist_deltaPhiVsE_ = (TH1D*)gDirectory->Get("_TEMP_scatterPlot_deltaPhiVsE__1");
681  hist_deltaPhiVsEta_ = (TH1D*)gDirectory->Get("_TEMP_scatterPlot_deltaPhiVsEta__1");
682  hist_deltaPhiVsPhi_ = (TH1D*)gDirectory->Get("_TEMP_scatterPlot_deltaPhiVsPhi__1");
683 
684  hist_EtOverTruthVsEt_->SetNameTitle("hist_EtOverTruthVsEt_",("Reco Et over True Et VS Et of "+particleString).c_str());
685  hist_EtOverTruthVsE_->SetNameTitle("hist_EtOverTruthVsE_",("Reco Et over True Et VS E of "+particleString).c_str());
686  hist_EtOverTruthVsEta_->SetNameTitle("hist_EtOverTruthVsEta_",("Reco Et over True Et VS Eta of "+particleString).c_str());
687  hist_EtOverTruthVsPhi_->SetNameTitle("hist_EtOverTruthVsPhi_",("Reco Et over True Et VS Phi of "+particleString).c_str());
688 
689  hist_EOverTruthVsEt_->SetNameTitle("hist_EOverTruthVsEt_",("Reco E over True E VS Et of "+particleString).c_str());
690  hist_EOverTruthVsE_->SetNameTitle("hist_EOverTruthVsE_",("Reco E over True E VS E of "+particleString).c_str());
691  hist_EOverTruthVsEta_->SetNameTitle("hist_EOverTruthVsEta_",("Reco E over True E VS Eta of "+particleString).c_str());
692  hist_EOverTruthVsPhi_->SetNameTitle("hist_EOverTruthVsPhi_",("Reco E over True E VS Phi of "+particleString).c_str());
693 
694  hist_deltaEtaVsEt_->SetNameTitle("hist_deltaEtaVsEt_",("delta Eta VS Et of "+particleString).c_str());
695  hist_deltaEtaVsE_->SetNameTitle("hist_deltaEtaVsE_",("delta Eta VS E of "+particleString).c_str());
696  hist_deltaEtaVsEta_->SetNameTitle("hist_deltaEtaVsEta_",("delta Eta VS Eta of "+particleString).c_str());
697  hist_deltaEtaVsPhi_->SetNameTitle("hist_deltaEtaVsPhi_",("delta Eta VS Phi of "+particleString).c_str());
698 
699  hist_deltaPhiVsEt_->SetNameTitle("hist_deltaPhiVsEt_",("delta Phi VS Et of "+particleString).c_str());
700  hist_deltaPhiVsE_->SetNameTitle("hist_deltaPhiVsE_",("delta Phi VS E of "+particleString).c_str());
701  hist_deltaPhiVsEta_->SetNameTitle("hist_deltaPhiVsEta_",("delta Phi VS Eta of "+particleString).c_str());
702  hist_deltaPhiVsPhi_->SetNameTitle("hist_deltaPhiVsPhi_",("delta Phi VS Phi of "+particleString).c_str());
703 
704  hist_resolutionEtVsEt_ = (TH1D*)gDirectory->Get("_TEMP_scatterPlot_EtOverTruthVsEt__2");
705  hist_resolutionEtVsE_ = (TH1D*)gDirectory->Get("_TEMP_scatterPlot_EtOverTruthVsE__2");
706  hist_resolutionEtVsEta_ = (TH1D*)gDirectory->Get("_TEMP_scatterPlot_EtOverTruthVsEta__2");
707  hist_resolutionEtVsPhi_ = (TH1D*)gDirectory->Get("_TEMP_scatterPlot_EtOverTruthVsPhi__2");
708 
709  hist_resolutionEVsEt_ = (TH1D*)gDirectory->Get("_TEMP_scatterPlot_EOverTruthVsEt__2");
710  hist_resolutionEVsE_ = (TH1D*)gDirectory->Get("_TEMP_scatterPlot_EOverTruthVsE__2");
711  hist_resolutionEVsEta_ = (TH1D*)gDirectory->Get("_TEMP_scatterPlot_EOverTruthVsEta__2");
712  hist_resolutionEVsPhi_ = (TH1D*)gDirectory->Get("_TEMP_scatterPlot_EOverTruthVsPhi__2");
713 
714  hist_resolutionEtaVsEt_ = (TH1D*)gDirectory->Get("_TEMP_scatterPlot_deltaEtaVsEt__2");
715  hist_resolutionEtaVsE_ = (TH1D*)gDirectory->Get("_TEMP_scatterPlot_deltaEtaVsE__2");
716  hist_resolutionEtaVsEta_ = (TH1D*)gDirectory->Get("_TEMP_scatterPlot_deltaEtaVsEta__2");
717  hist_resolutionEtaVsPhi_ = (TH1D*)gDirectory->Get("_TEMP_scatterPlot_deltaEtaVsPhi__2");
718 
719  hist_resolutionPhiVsEt_ = (TH1D*)gDirectory->Get("_TEMP_scatterPlot_deltaPhiVsEt__2");
720  hist_resolutionPhiVsE_ = (TH1D*)gDirectory->Get("_TEMP_scatterPlot_deltaPhiVsE__2");
721  hist_resolutionPhiVsEta_ = (TH1D*)gDirectory->Get("_TEMP_scatterPlot_deltaPhiVsEta__2");
722  hist_resolutionPhiVsPhi_ = (TH1D*)gDirectory->Get("_TEMP_scatterPlot_deltaPhiVsPhi__2");
723 
724  hist_resolutionEtVsEt_->SetNameTitle("hist_resolutionEtVsEt_",("#sigma of Reco Et over True Et VS Et of "+particleString).c_str());
725  hist_resolutionEtVsE_->SetNameTitle("hist_resolutionEtVsE_",("#sigma of Reco Et over True Et VS E of "+particleString).c_str());
726  hist_resolutionEtVsEta_->SetNameTitle("hist_resolutionEtVsEta_",("#sigma of Reco Et over True Et VS Eta of "+particleString).c_str());
727  hist_resolutionEtVsPhi_->SetNameTitle("hist_resolutionEtVsPhi_",("#sigma of Reco Et over True Et VS Phi of "+particleString).c_str());
728 
729  hist_resolutionEVsEt_->SetNameTitle("hist_resolutionEVsEt_",("#sigma of Reco E over True E VS Et of "+particleString).c_str());
730  hist_resolutionEVsE_->SetNameTitle("hist_resolutionEVsE_",("#sigma of Reco E over True E VS E of "+particleString).c_str());
731  hist_resolutionEVsEta_->SetNameTitle("hist_resolutionEVsEta_",("#sigma of Reco E over True E VS Eta of "+particleString).c_str());
732  hist_resolutionEVsPhi_->SetNameTitle("hist_resolutionEVsPhi_",("#sigma of Reco E over True E VS Phi of "+particleString).c_str());
733 
734  hist_resolutionEtaVsEt_->SetNameTitle("hist_resolutionEtaVsEt_",("#sigma of delta Eta VS Et of "+particleString).c_str());
735  hist_resolutionEtaVsE_->SetNameTitle("hist_resolutionEtaVsE_",("#sigma of delta Eta VS E of "+particleString).c_str());
736  hist_resolutionEtaVsEta_->SetNameTitle("hist_resolutionEtaVsEta_",("#sigma of delta Eta VS Eta of "+particleString).c_str());
737  hist_resolutionEtaVsPhi_->SetNameTitle("hist_resolutionEtaVsPhi_",("#sigma of delta Eta VS Phi of "+particleString).c_str());
738 
739  hist_resolutionPhiVsEt_->SetNameTitle("hist_resolutionPhiVsEt_",("#sigma of delta Phi VS Et of "+particleString).c_str());
740  hist_resolutionPhiVsE_->SetNameTitle("hist_resolutionPhiVsE_",("#sigma of delta Phi VS E of "+particleString).c_str());
741  hist_resolutionPhiVsEta_->SetNameTitle("hist_resolutionPhiVsEta_",("#sigma of delta Phi VS Eta of "+particleString).c_str());
742  hist_resolutionPhiVsPhi_->SetNameTitle("hist_resolutionPhiVsPhi_",("#sigma of delta Phi VS Phi of "+particleString).c_str());
743 }
TH1D * hist_resolutionEVsPhi_
TH2D * _TEMP_scatterPlot_EtOverTruthVsPhi_
TH2D * _TEMP_scatterPlot_deltaEtaVsEta_
TH1D * hist_resolutionEVsE_
TH2D * _TEMP_scatterPlot_deltaPhiVsPhi_
TH1D * hist_deltaEtaVsEta_
TH1D * hist_EtOverTruthVsEt_
Definition: EgammaObjects.h:89
TH1D * hist_resolutionEVsEta_
TH1D * hist_deltaEtaVsPhi_
TH1D * hist_EOverTruthVsEt_
TH2D * _TEMP_scatterPlot_EtOverTruthVsE_
TH2D * _TEMP_scatterPlot_deltaPhiVsE_
TH1D * hist_resolutionPhiVsPhi_
TH1D * hist_resolutionEtVsEta_
Definition: EgammaObjects.h:95
TH2D * _TEMP_scatterPlot_EOverTruthVsEta_
TH2D * _TEMP_scatterPlot_deltaPhiVsEt_
TH1D * hist_deltaPhiVsPhi_
TH1D * hist_EOverTruthVsE_
TH1D * hist_resolutionEVsEt_
TH1D * hist_resolutionEtVsPhi_
Definition: EgammaObjects.h:96
std::string particleString
Definition: EgammaObjects.h:37
TH1D * hist_EOverTruthVsPhi_
TH2D * _TEMP_scatterPlot_EtOverTruthVsEta_
TH1D * hist_EtOverTruthVsEta_
Definition: EgammaObjects.h:91
TH1D * hist_EOverTruthVsEta_
TH1D * hist_resolutionEtVsE_
Definition: EgammaObjects.h:94
TH2D * _TEMP_scatterPlot_deltaEtaVsE_
TH2D * _TEMP_scatterPlot_deltaEtaVsPhi_
TH1D * hist_resolutionEtVsEt_
Definition: EgammaObjects.h:93
TH2D * _TEMP_scatterPlot_EOverTruthVsEt_
TH1D * hist_EtOverTruthVsE_
Definition: EgammaObjects.h:90
TH1D * hist_resolutionEtaVsE_
TH1D * hist_deltaPhiVsEt_
TH1D * hist_deltaPhiVsEta_
TH1D * hist_deltaEtaVsEt_
TH1D * hist_resolutionPhiVsEt_
TH2D * _TEMP_scatterPlot_deltaPhiVsEta_
TH2D * _TEMP_scatterPlot_EOverTruthVsE_
TH2D * _TEMP_scatterPlot_deltaEtaVsEt_
TH2D * _TEMP_scatterPlot_EOverTruthVsPhi_
TH1D * hist_deltaEtaVsE_
TH1D * hist_resolutionEtaVsPhi_
TH1D * hist_EtOverTruthVsPhi_
Definition: EgammaObjects.h:92
TH1D * hist_deltaPhiVsE_
TH1D * hist_resolutionPhiVsE_
TH2D * _TEMP_scatterPlot_EtOverTruthVsEt_
TH1D * hist_resolutionEtaVsEta_
TH1D * hist_resolutionPhiVsEta_
TH1D * hist_resolutionEtaVsEt_
void EgammaObjects::getEfficiencyHistosViaDividing ( )
private

Definition at line 745 of file EgammaObjects.cc.

References hist_E_, hist_EEfficiency_, hist_ENumRecoOverNumTrue_, hist_Et_, hist_Eta_, hist_EtaEfficiency_, hist_EtaNumRecoOverNumTrue_, hist_EtEfficiency_, hist_EtNumRecoOverNumTrue_, hist_Phi_, hist_PhiEfficiency_, and hist_PhiNumRecoOverNumTrue_.

Referenced by endJob().

746 {
751 
756 }
TH1D * hist_PhiEfficiency_
TH1D * hist_EEfficiency_
TH1D * hist_ENumRecoOverNumTrue_
TH1D * hist_EtNumRecoOverNumTrue_
Definition: EgammaObjects.h:88
TH1D * hist_PhiNumRecoOverNumTrue_
TH1D * hist_EtaEfficiency_
TH1D * hist_EtEfficiency_
Definition: EgammaObjects.h:87
TH1D * hist_EtaNumRecoOverNumTrue_
void EgammaObjects::loadCMSSWObjects ( const edm::ParameterSet ps)
private

Definition at line 33 of file EgammaObjects.cc.

References edm::ParameterSet::getParameter(), MCTruthCollection_, and RecoCollection_.

Referenced by EgammaObjects().

34 {
35  MCTruthCollection_ = ps.getParameter<edm::InputTag>("MCTruthCollection");
36  RecoCollection_ = ps.getParameter<edm::InputTag>("RecoCollection");
37 }
T getParameter(std::string const &) const
edm::InputTag MCTruthCollection_
Definition: EgammaObjects.h:33
edm::InputTag RecoCollection_
Definition: EgammaObjects.h:34
void EgammaObjects::loadHistoParameters ( const edm::ParameterSet ps)
private

Definition at line 39 of file EgammaObjects.cc.

References edm::ParameterSet::getParameter(), hist_bins_deltaEta_, hist_bins_deltaPhi_, hist_bins_E_, hist_bins_EOverTruth_, hist_bins_Et_, hist_bins_Eta_, hist_bins_EtaOverTruth_, hist_bins_EtOverTruth_, hist_bins_Phi_, hist_bins_PhiOverTruth_, hist_bins_recoMass_, hist_max_deltaEta_, hist_max_deltaPhi_, hist_max_E_, hist_max_EOverTruth_, hist_max_Et_, hist_max_Eta_, hist_max_EtaOverTruth_, hist_max_EtOverTruth_, hist_max_Phi_, hist_max_PhiOverTruth_, hist_max_recoMass_, hist_min_deltaEta_, hist_min_deltaPhi_, hist_min_E_, hist_min_EOverTruth_, hist_min_Et_, hist_min_Eta_, hist_min_EtaOverTruth_, hist_min_EtOverTruth_, hist_min_Phi_, hist_min_PhiOverTruth_, and hist_min_recoMass_.

Referenced by EgammaObjects().

40 {
41  hist_min_Et_ = ps.getParameter<double>("hist_min_Et");
42  hist_max_Et_ = ps.getParameter<double>("hist_max_Et");
43  hist_bins_Et_ = ps.getParameter<int> ("hist_bins_Et");
44 
45  hist_min_E_ = ps.getParameter<double>("hist_min_E");
46  hist_max_E_ = ps.getParameter<double>("hist_max_E");
47  hist_bins_E_ = ps.getParameter<int> ("hist_bins_E");
48 
49  hist_min_Eta_ = ps.getParameter<double>("hist_min_Eta");
50  hist_max_Eta_ = ps.getParameter<double>("hist_max_Eta");
51  hist_bins_Eta_ = ps.getParameter<int> ("hist_bins_Eta");
52 
53  hist_min_Phi_ = ps.getParameter<double>("hist_min_Phi");
54  hist_max_Phi_ = ps.getParameter<double>("hist_max_Phi");
55  hist_bins_Phi_ = ps.getParameter<int> ("hist_bins_Phi");
56 
57  hist_min_EtOverTruth_ = ps.getParameter<double>("hist_min_EtOverTruth");
58  hist_max_EtOverTruth_ = ps.getParameter<double>("hist_max_EtOverTruth");
59  hist_bins_EtOverTruth_ = ps.getParameter<int> ("hist_bins_EtOverTruth");
60 
61  hist_min_EOverTruth_ = ps.getParameter<double>("hist_min_EOverTruth");
62  hist_max_EOverTruth_ = ps.getParameter<double>("hist_max_EOverTruth");
63  hist_bins_EOverTruth_ = ps.getParameter<int> ("hist_bins_EOverTruth");
64 
65  hist_min_EtaOverTruth_ = ps.getParameter<double>("hist_min_EtaOverTruth");
66  hist_max_EtaOverTruth_ = ps.getParameter<double>("hist_max_EtaOverTruth");
67  hist_bins_EtaOverTruth_ = ps.getParameter<int> ("hist_bins_EtaOverTruth");
68 
69  hist_min_PhiOverTruth_ = ps.getParameter<double>("hist_min_PhiOverTruth");
70  hist_max_PhiOverTruth_ = ps.getParameter<double>("hist_max_PhiOverTruth");
71  hist_bins_PhiOverTruth_ = ps.getParameter<int> ("hist_bins_PhiOverTruth");
72 
73  hist_min_deltaEta_ = ps.getParameter<double>("hist_min_deltaEta");
74  hist_max_deltaEta_ = ps.getParameter<double>("hist_max_deltaEta");
75  hist_bins_deltaEta_ = ps.getParameter<int> ("hist_bins_deltaEta");
76 
77  hist_min_deltaPhi_ = ps.getParameter<double>("hist_min_deltaPhi");
78  hist_max_deltaPhi_ = ps.getParameter<double>("hist_max_deltaPhi");
79  hist_bins_deltaPhi_ = ps.getParameter<int> ("hist_bins_deltaPhi");
80 
81  hist_min_recoMass_ = ps.getParameter<double>("hist_min_recoMass");
82  hist_max_recoMass_ = ps.getParameter<double>("hist_max_recoMass");
83  hist_bins_recoMass_ = ps.getParameter<int> ("hist_bins_recoMass");
84 }
double hist_min_deltaEta_
Definition: EgammaObjects.h:73
int hist_bins_deltaEta_
Definition: EgammaObjects.h:75
T getParameter(std::string const &) const
double hist_min_EtaOverTruth_
Definition: EgammaObjects.h:65
int hist_bins_deltaPhi_
Definition: EgammaObjects.h:79
int hist_bins_recoMass_
Definition: EgammaObjects.h:83
double hist_max_Eta_
Definition: EgammaObjects.h:50
double hist_min_PhiOverTruth_
Definition: EgammaObjects.h:69
double hist_max_Phi_
Definition: EgammaObjects.h:54
double hist_max_EtaOverTruth_
Definition: EgammaObjects.h:66
double hist_min_Phi_
Definition: EgammaObjects.h:53
double hist_min_Eta_
Definition: EgammaObjects.h:49
int hist_bins_EOverTruth_
Definition: EgammaObjects.h:63
double hist_min_EtOverTruth_
Definition: EgammaObjects.h:57
double hist_max_recoMass_
Definition: EgammaObjects.h:82
double hist_max_E_
Definition: EgammaObjects.h:46
double hist_min_deltaPhi_
Definition: EgammaObjects.h:77
double hist_max_deltaEta_
Definition: EgammaObjects.h:74
double hist_max_deltaPhi_
Definition: EgammaObjects.h:78
int hist_bins_EtOverTruth_
Definition: EgammaObjects.h:59
double hist_max_PhiOverTruth_
Definition: EgammaObjects.h:70
double hist_max_EtOverTruth_
Definition: EgammaObjects.h:58
double hist_min_E_
Definition: EgammaObjects.h:45
double hist_min_Et_
Definition: EgammaObjects.h:41
double hist_min_recoMass_
Definition: EgammaObjects.h:81
double hist_min_EOverTruth_
Definition: EgammaObjects.h:61
int hist_bins_PhiOverTruth_
Definition: EgammaObjects.h:71
double hist_max_EOverTruth_
Definition: EgammaObjects.h:62
double hist_max_Et_
Definition: EgammaObjects.h:42
int hist_bins_EtaOverTruth_
Definition: EgammaObjects.h:67
void EgammaObjects::saveHistos ( )
private

Definition at line 992 of file EgammaObjects.cc.

References _TEMP_scatterPlot_deltaEtaVsE_, _TEMP_scatterPlot_deltaEtaVsEt_, _TEMP_scatterPlot_deltaEtaVsEta_, _TEMP_scatterPlot_deltaEtaVsPhi_, _TEMP_scatterPlot_deltaPhiVsE_, _TEMP_scatterPlot_deltaPhiVsEt_, _TEMP_scatterPlot_deltaPhiVsEta_, _TEMP_scatterPlot_deltaPhiVsPhi_, _TEMP_scatterPlot_EOverTruthVsE_, _TEMP_scatterPlot_EOverTruthVsEt_, _TEMP_scatterPlot_EOverTruthVsEta_, _TEMP_scatterPlot_EOverTruthVsPhi_, _TEMP_scatterPlot_EtOverTruthVsE_, _TEMP_scatterPlot_EtOverTruthVsEt_, _TEMP_scatterPlot_EtOverTruthVsEta_, _TEMP_scatterPlot_EtOverTruthVsPhi_, hist_All_recoMass_, hist_BarrelOnly_recoMass_, hist_deltaEtaVsE_, hist_deltaEtaVsEt_, hist_deltaEtaVsEta_, hist_deltaEtaVsPhi_, hist_deltaPhiVsE_, hist_deltaPhiVsEt_, hist_deltaPhiVsEta_, hist_deltaPhiVsPhi_, hist_E_, hist_EEfficiency_, hist_EndcapOnly_recoMass_, hist_ENumRecoOverNumTrue_, hist_EOverTruth_, hist_EOverTruthVsE_, hist_EOverTruthVsEt_, hist_EOverTruthVsEta_, hist_EOverTruthVsPhi_, hist_Et_, hist_Eta_, hist_EtaEfficiency_, hist_EtaNumRecoOverNumTrue_, hist_EtaOverTruth_, hist_EtEfficiency_, hist_EtNumRecoOverNumTrue_, hist_EtOverTruth_, hist_EtOverTruthVsE_, hist_EtOverTruthVsEt_, hist_EtOverTruthVsEta_, hist_EtOverTruthVsPhi_, hist_Mixed_recoMass_, hist_Phi_, hist_PhiEfficiency_, hist_PhiNumRecoOverNumTrue_, hist_PhiOverTruth_, hist_recoMass_withBackgroud_10EtCut_, hist_recoMass_withBackgroud_20EtCut_, hist_recoMass_withBackgroud_5EtCut_, hist_recoMass_withBackgroud_NoEtCut_, hist_resolutionEtaVsE_, hist_resolutionEtaVsEt_, hist_resolutionEtaVsEta_, hist_resolutionEtaVsPhi_, hist_resolutionEtVsE_, hist_resolutionEtVsEt_, hist_resolutionEtVsEta_, hist_resolutionEtVsPhi_, hist_resolutionEVsE_, hist_resolutionEVsEt_, hist_resolutionEVsEta_, hist_resolutionEVsPhi_, hist_resolutionPhiVsE_, hist_resolutionPhiVsEt_, hist_resolutionPhiVsEta_, hist_resolutionPhiVsPhi_, particleID, particleString, and rootFile_.

Referenced by endJob().

993 {
994  rootFile_->cd();
995  rootFile_->GetDirectory(particleString.c_str())->mkdir("ET");
996  rootFile_->cd(("/"+particleString+"/ET").c_str());
997 
998  hist_Et_->Write();
999  hist_EtOverTruth_->Write();
1000  hist_EtEfficiency_->Write();
1001  hist_EtNumRecoOverNumTrue_->Write();
1002  hist_EtOverTruthVsEt_->Write();
1003  hist_EtOverTruthVsE_->Write();
1004  hist_EtOverTruthVsEta_->Write();
1005  hist_EtOverTruthVsPhi_->Write();
1006  hist_resolutionEtVsEt_->Write();
1007  hist_resolutionEtVsE_->Write();
1008  hist_resolutionEtVsEta_->Write();
1009  hist_resolutionEtVsPhi_->Write();
1010 
1011  rootFile_->cd();
1012  rootFile_->GetDirectory(particleString.c_str())->mkdir("E");
1013  rootFile_->cd(("/"+particleString+"/E").c_str());
1014 
1015  hist_E_->Write();
1016  hist_EOverTruth_->Write();
1017  hist_EEfficiency_->Write();
1018  hist_ENumRecoOverNumTrue_->Write();
1019  hist_EOverTruthVsEt_->Write();
1020  hist_EOverTruthVsE_->Write();
1021  hist_EOverTruthVsEta_->Write();
1022  hist_EOverTruthVsPhi_->Write();
1023  hist_resolutionEVsEt_->Write();
1024  hist_resolutionEVsE_->Write();
1025  hist_resolutionEVsEta_->Write();
1026  hist_resolutionEVsPhi_->Write();
1027 
1028  rootFile_->cd();
1029  rootFile_->GetDirectory(particleString.c_str())->mkdir("Eta");
1030  rootFile_->cd(("/"+particleString+"/Eta").c_str());
1031 
1032  hist_Eta_->Write();
1033  hist_EtaOverTruth_->Write();
1034  hist_EtaEfficiency_->Write();
1035  hist_EtaNumRecoOverNumTrue_->Write();
1036  hist_deltaEtaVsEt_->Write();
1037  hist_deltaEtaVsE_->Write();
1038  hist_deltaEtaVsEta_->Write();
1039  hist_deltaEtaVsPhi_->Write();
1040  hist_resolutionEtaVsEt_->Write();
1041  hist_resolutionEtaVsE_->Write();
1042  hist_resolutionEtaVsEta_->Write();
1043  hist_resolutionEtaVsPhi_->Write();
1044 
1045  rootFile_->cd();
1046  rootFile_->GetDirectory(particleString.c_str())->mkdir("Phi");
1047  rootFile_->cd(("/"+particleString+"/Phi").c_str());
1048 
1049  hist_Phi_->Write();
1050  hist_PhiOverTruth_->Write();
1051  hist_PhiEfficiency_->Write();
1052  hist_PhiNumRecoOverNumTrue_->Write();
1053  hist_deltaPhiVsEt_->Write();
1054  hist_deltaPhiVsE_->Write();
1055  hist_deltaPhiVsEta_->Write();
1056  hist_deltaPhiVsPhi_->Write();
1057  hist_resolutionPhiVsEt_->Write();
1058  hist_resolutionPhiVsE_->Write();
1059  hist_resolutionPhiVsEta_->Write();
1060  hist_resolutionPhiVsPhi_->Write();
1061 
1062  std::string recoParticleName;
1063 
1064  if( particleID == 22 ) recoParticleName = "HiggsRecoMass";
1065  else if( particleID == 11 ) recoParticleName = "ZRecoMass";
1066 
1067  rootFile_->cd();
1068  rootFile_->GetDirectory(particleString.c_str())->mkdir(recoParticleName.c_str());
1069  rootFile_->cd(("/"+particleString+"/"+recoParticleName).c_str());
1070 
1071  hist_All_recoMass_->Write();
1072  hist_BarrelOnly_recoMass_->Write();
1073  hist_EndcapOnly_recoMass_->Write();
1074  hist_Mixed_recoMass_->Write();
1079 
1080  rootFile_->cd();
1081  rootFile_->GetDirectory(particleString.c_str())->mkdir("_TempScatterPlots");
1082  rootFile_->cd(("/"+particleString+"/_TempScatterPlots").c_str());
1083 
1088 
1093 
1098 
1103 
1104  rootFile_->cd();
1105 }
TH1D * hist_resolutionEVsPhi_
TH2D * _TEMP_scatterPlot_EtOverTruthVsPhi_
TH2D * _TEMP_scatterPlot_deltaEtaVsEta_
TH1D * hist_resolutionEVsE_
TH2D * _TEMP_scatterPlot_deltaPhiVsPhi_
TH1D * hist_PhiEfficiency_
TH1D * hist_deltaEtaVsEta_
TH1D * hist_EOverTruth_
Definition: EgammaObjects.h:99
TH1D * hist_EtOverTruthVsEt_
Definition: EgammaObjects.h:89
TH1D * hist_resolutionEVsEta_
TH1D * hist_deltaEtaVsPhi_
TH1D * hist_EEfficiency_
TH1D * hist_EOverTruthVsEt_
TH1D * hist_recoMass_withBackgroud_20EtCut_
TH2D * _TEMP_scatterPlot_EtOverTruthVsE_
TH2D * _TEMP_scatterPlot_deltaPhiVsE_
TH1D * hist_Mixed_recoMass_
TH1D * hist_resolutionPhiVsPhi_
TH1D * hist_resolutionEtVsEta_
Definition: EgammaObjects.h:95
TH2D * _TEMP_scatterPlot_EOverTruthVsEta_
TH2D * _TEMP_scatterPlot_deltaPhiVsEt_
TH1D * hist_ENumRecoOverNumTrue_
TH1D * hist_deltaPhiVsPhi_
TH1D * hist_EOverTruthVsE_
TH1D * hist_EtNumRecoOverNumTrue_
Definition: EgammaObjects.h:88
TH1D * hist_resolutionEVsEt_
TH1D * hist_resolutionEtVsPhi_
Definition: EgammaObjects.h:96
std::string particleString
Definition: EgammaObjects.h:37
TH1D * hist_EtOverTruth_
Definition: EgammaObjects.h:86
TH1D * hist_EOverTruthVsPhi_
TH2D * _TEMP_scatterPlot_EtOverTruthVsEta_
TH1D * hist_EtOverTruthVsEta_
Definition: EgammaObjects.h:91
TH1D * hist_EOverTruthVsEta_
TH1D * hist_resolutionEtVsE_
Definition: EgammaObjects.h:94
TH2D * _TEMP_scatterPlot_deltaEtaVsE_
TH1D * hist_PhiNumRecoOverNumTrue_
TH1D * hist_PhiOverTruth_
TH1D * hist_recoMass_withBackgroud_5EtCut_
TH2D * _TEMP_scatterPlot_deltaEtaVsPhi_
TH1D * hist_resolutionEtVsEt_
Definition: EgammaObjects.h:93
TH2D * _TEMP_scatterPlot_EOverTruthVsEt_
TH1D * hist_EtOverTruthVsE_
Definition: EgammaObjects.h:90
TH1D * hist_resolutionEtaVsE_
TH1D * hist_BarrelOnly_recoMass_
TH1D * hist_EndcapOnly_recoMass_
TH1D * hist_deltaPhiVsEt_
TH1D * hist_EtaOverTruth_
TH1D * hist_deltaPhiVsEta_
TH1D * hist_deltaEtaVsEt_
TH1D * hist_recoMass_withBackgroud_10EtCut_
TH1D * hist_resolutionPhiVsEt_
TH2D * _TEMP_scatterPlot_deltaPhiVsEta_
TH2D * _TEMP_scatterPlot_EOverTruthVsE_
TH1D * hist_All_recoMass_
TH2D * _TEMP_scatterPlot_deltaEtaVsEt_
TH2D * _TEMP_scatterPlot_EOverTruthVsPhi_
TH1D * hist_deltaEtaVsE_
TH1D * hist_resolutionEtaVsPhi_
TH1D * hist_EtOverTruthVsPhi_
Definition: EgammaObjects.h:92
TH1D * hist_deltaPhiVsE_
TH1D * hist_EtaEfficiency_
TH1D * hist_resolutionPhiVsE_
TH1D * hist_recoMass_withBackgroud_NoEtCut_
TH2D * _TEMP_scatterPlot_EtOverTruthVsEt_
TFile * rootFile_
Definition: EgammaObjects.h:31
TH1D * hist_resolutionEtaVsEta_
TH1D * hist_resolutionPhiVsEta_
TH1D * hist_EtEfficiency_
Definition: EgammaObjects.h:87
TH1D * hist_EtaNumRecoOverNumTrue_
TH1D * hist_resolutionEtaVsEt_
void EgammaObjects::setDrawOptions ( )
private

Definition at line 928 of file EgammaObjects.cc.

References hist_All_recoMass_, hist_BarrelOnly_recoMass_, hist_deltaEtaVsE_, hist_deltaEtaVsEt_, hist_deltaEtaVsEta_, hist_deltaEtaVsPhi_, hist_deltaPhiVsE_, hist_deltaPhiVsEt_, hist_deltaPhiVsEta_, hist_deltaPhiVsPhi_, hist_E_, hist_EEfficiency_, hist_EndcapOnly_recoMass_, hist_ENumRecoOverNumTrue_, hist_EOverTruth_, hist_EOverTruthVsE_, hist_EOverTruthVsEt_, hist_EOverTruthVsEta_, hist_EOverTruthVsPhi_, hist_Et_, hist_Eta_, hist_EtaEfficiency_, hist_EtaNumRecoOverNumTrue_, hist_EtaOverTruth_, hist_EtEfficiency_, hist_EtNumRecoOverNumTrue_, hist_EtOverTruth_, hist_EtOverTruthVsE_, hist_EtOverTruthVsEt_, hist_EtOverTruthVsEta_, hist_EtOverTruthVsPhi_, hist_Mixed_recoMass_, hist_Phi_, hist_PhiEfficiency_, hist_PhiNumRecoOverNumTrue_, hist_PhiOverTruth_, hist_recoMass_withBackgroud_10EtCut_, hist_recoMass_withBackgroud_20EtCut_, hist_recoMass_withBackgroud_5EtCut_, hist_recoMass_withBackgroud_NoEtCut_, hist_resolutionEtaVsE_, hist_resolutionEtaVsEt_, hist_resolutionEtaVsEta_, hist_resolutionEtaVsPhi_, hist_resolutionEtVsE_, hist_resolutionEtVsEt_, hist_resolutionEtVsEta_, hist_resolutionEtVsPhi_, hist_resolutionEVsE_, hist_resolutionEVsEt_, hist_resolutionEVsEta_, hist_resolutionEVsPhi_, hist_resolutionPhiVsE_, hist_resolutionPhiVsEt_, hist_resolutionPhiVsEta_, and hist_resolutionPhiVsPhi_.

Referenced by endJob().

929 {
930  hist_Et_->SetOption("e");
931  hist_EtOverTruth_->SetOption("e");
932  hist_EtEfficiency_->SetOption("e");
933  hist_EtNumRecoOverNumTrue_->SetOption("e");
934  hist_EtOverTruthVsEt_->SetOption("e");
935  hist_EtOverTruthVsE_->SetOption("e");
936  hist_EtOverTruthVsEta_->SetOption("e");
937  hist_EtOverTruthVsPhi_->SetOption("e");
938  hist_resolutionEtVsEt_->SetOption("e");
939  hist_resolutionEtVsE_->SetOption("e");
940  hist_resolutionEtVsEta_->SetOption("e");
941  hist_resolutionEtVsPhi_->SetOption("e");
942 
943  hist_E_->SetOption("e");
944  hist_EOverTruth_->SetOption("e");
945  hist_EEfficiency_->SetOption("e");
946  hist_ENumRecoOverNumTrue_->SetOption("e");
947  hist_EOverTruthVsEt_->SetOption("e");
948  hist_EOverTruthVsE_->SetOption("e");
949  hist_EOverTruthVsEta_->SetOption("e");
950  hist_EOverTruthVsPhi_->SetOption("e");
951  hist_resolutionEVsEt_->SetOption("e");
952  hist_resolutionEVsE_->SetOption("e");
953  hist_resolutionEVsEta_->SetOption("e");
954  hist_resolutionEVsPhi_->SetOption("e");
955 
956  hist_Eta_->SetOption("e");
957  hist_EtaOverTruth_->SetOption("e");
958  hist_EtaEfficiency_->SetOption("e");
959  hist_EtaNumRecoOverNumTrue_->SetOption("e");
960  hist_deltaEtaVsEt_->SetOption("e");
961  hist_deltaEtaVsE_->SetOption("e");
962  hist_deltaEtaVsEta_->SetOption("e");
963  hist_deltaEtaVsPhi_->SetOption("e");
964  hist_resolutionEtaVsEt_->SetOption("e");
965  hist_resolutionEtaVsE_->SetOption("e");
966  hist_resolutionEtaVsEta_->SetOption("e");
967  hist_resolutionEtaVsPhi_->SetOption("e");
968 
969  hist_Phi_->SetOption("e");
970  hist_PhiOverTruth_->SetOption("e");
971  hist_PhiEfficiency_->SetOption("e");
972  hist_PhiNumRecoOverNumTrue_->SetOption("e");
973  hist_deltaPhiVsEt_->SetOption("e");
974  hist_deltaPhiVsE_->SetOption("e");
975  hist_deltaPhiVsEta_->SetOption("e");
976  hist_deltaPhiVsPhi_->SetOption("e");
977  hist_resolutionPhiVsEt_->SetOption("e");
978  hist_resolutionPhiVsE_->SetOption("e");
979  hist_resolutionPhiVsEta_->SetOption("e");
980  hist_resolutionPhiVsPhi_->SetOption("e");
981 
982  hist_All_recoMass_->SetOption("e");
983  hist_BarrelOnly_recoMass_->SetOption("e");
984  hist_EndcapOnly_recoMass_->SetOption("e");
985  hist_Mixed_recoMass_->SetOption("e");
986  hist_recoMass_withBackgroud_NoEtCut_->SetOption("e");
987  hist_recoMass_withBackgroud_5EtCut_->SetOption("e");
988  hist_recoMass_withBackgroud_10EtCut_->SetOption("e");
989  hist_recoMass_withBackgroud_20EtCut_->SetOption("e");
990 }
TH1D * hist_resolutionEVsPhi_
TH1D * hist_resolutionEVsE_
TH1D * hist_PhiEfficiency_
TH1D * hist_deltaEtaVsEta_
TH1D * hist_EOverTruth_
Definition: EgammaObjects.h:99
TH1D * hist_EtOverTruthVsEt_
Definition: EgammaObjects.h:89
TH1D * hist_resolutionEVsEta_
TH1D * hist_deltaEtaVsPhi_
TH1D * hist_EEfficiency_
TH1D * hist_EOverTruthVsEt_
TH1D * hist_recoMass_withBackgroud_20EtCut_
TH1D * hist_Mixed_recoMass_
TH1D * hist_resolutionPhiVsPhi_
TH1D * hist_resolutionEtVsEta_
Definition: EgammaObjects.h:95
TH1D * hist_ENumRecoOverNumTrue_
TH1D * hist_deltaPhiVsPhi_
TH1D * hist_EOverTruthVsE_
TH1D * hist_EtNumRecoOverNumTrue_
Definition: EgammaObjects.h:88
TH1D * hist_resolutionEVsEt_
TH1D * hist_resolutionEtVsPhi_
Definition: EgammaObjects.h:96
TH1D * hist_EtOverTruth_
Definition: EgammaObjects.h:86
TH1D * hist_EOverTruthVsPhi_
TH1D * hist_EtOverTruthVsEta_
Definition: EgammaObjects.h:91
TH1D * hist_EOverTruthVsEta_
TH1D * hist_resolutionEtVsE_
Definition: EgammaObjects.h:94
TH1D * hist_PhiNumRecoOverNumTrue_
TH1D * hist_PhiOverTruth_
TH1D * hist_recoMass_withBackgroud_5EtCut_
TH1D * hist_resolutionEtVsEt_
Definition: EgammaObjects.h:93
TH1D * hist_EtOverTruthVsE_
Definition: EgammaObjects.h:90
TH1D * hist_resolutionEtaVsE_
TH1D * hist_BarrelOnly_recoMass_
TH1D * hist_EndcapOnly_recoMass_
TH1D * hist_deltaPhiVsEt_
TH1D * hist_EtaOverTruth_
TH1D * hist_deltaPhiVsEta_
TH1D * hist_deltaEtaVsEt_
TH1D * hist_recoMass_withBackgroud_10EtCut_
TH1D * hist_resolutionPhiVsEt_
TH1D * hist_All_recoMass_
TH1D * hist_deltaEtaVsE_
TH1D * hist_resolutionEtaVsPhi_
TH1D * hist_EtOverTruthVsPhi_
Definition: EgammaObjects.h:92
TH1D * hist_deltaPhiVsE_
TH1D * hist_EtaEfficiency_
TH1D * hist_resolutionPhiVsE_
TH1D * hist_recoMass_withBackgroud_NoEtCut_
TH1D * hist_resolutionEtaVsEta_
TH1D * hist_resolutionPhiVsEta_
TH1D * hist_EtEfficiency_
Definition: EgammaObjects.h:87
TH1D * hist_EtaNumRecoOverNumTrue_
TH1D * hist_resolutionEtaVsEt_

Member Data Documentation

TH2D* EgammaObjects::_TEMP_scatterPlot_deltaEtaVsE_
private
TH2D* EgammaObjects::_TEMP_scatterPlot_deltaEtaVsEt_
private
TH2D* EgammaObjects::_TEMP_scatterPlot_deltaEtaVsEta_
private
TH2D* EgammaObjects::_TEMP_scatterPlot_deltaEtaVsPhi_
private
TH2D* EgammaObjects::_TEMP_scatterPlot_deltaPhiVsE_
private
TH2D* EgammaObjects::_TEMP_scatterPlot_deltaPhiVsEt_
private
TH2D* EgammaObjects::_TEMP_scatterPlot_deltaPhiVsEta_
private
TH2D* EgammaObjects::_TEMP_scatterPlot_deltaPhiVsPhi_
private
TH2D* EgammaObjects::_TEMP_scatterPlot_EOverTruthVsE_
private
TH2D* EgammaObjects::_TEMP_scatterPlot_EOverTruthVsEt_
private
TH2D* EgammaObjects::_TEMP_scatterPlot_EOverTruthVsEta_
private
TH2D* EgammaObjects::_TEMP_scatterPlot_EOverTruthVsPhi_
private
TH2D* EgammaObjects::_TEMP_scatterPlot_EtOverTruthVsE_
private
TH2D* EgammaObjects::_TEMP_scatterPlot_EtOverTruthVsEt_
private
TH2D* EgammaObjects::_TEMP_scatterPlot_EtOverTruthVsEta_
private
TH2D* EgammaObjects::_TEMP_scatterPlot_EtOverTruthVsPhi_
private
int EgammaObjects::EtCut
private

Definition at line 39 of file EgammaObjects.h.

Referenced by analyzeElectrons(), analyzePhotons(), and EgammaObjects().

TH1D* EgammaObjects::hist_All_recoMass_
private
TH1D* EgammaObjects::hist_BarrelOnly_recoMass_
private
int EgammaObjects::hist_bins_deltaEta_
private

Definition at line 75 of file EgammaObjects.h.

Referenced by createTempHistoObjects(), and loadHistoParameters().

int EgammaObjects::hist_bins_deltaPhi_
private

Definition at line 79 of file EgammaObjects.h.

Referenced by createTempHistoObjects(), and loadHistoParameters().

int EgammaObjects::hist_bins_E_
private
int EgammaObjects::hist_bins_EOverTruth_
private
int EgammaObjects::hist_bins_Et_
private
int EgammaObjects::hist_bins_Eta_
private
int EgammaObjects::hist_bins_EtaOverTruth_
private

Definition at line 67 of file EgammaObjects.h.

Referenced by createBookedHistoObjects(), and loadHistoParameters().

int EgammaObjects::hist_bins_EtOverTruth_
private
int EgammaObjects::hist_bins_Phi_
private
int EgammaObjects::hist_bins_PhiOverTruth_
private

Definition at line 71 of file EgammaObjects.h.

Referenced by createBookedHistoObjects(), and loadHistoParameters().

int EgammaObjects::hist_bins_recoMass_
private

Definition at line 83 of file EgammaObjects.h.

Referenced by createBookedHistoObjects(), and loadHistoParameters().

TH1D* EgammaObjects::hist_deltaEtaVsE_
private
TH1D* EgammaObjects::hist_deltaEtaVsEt_
private
TH1D* EgammaObjects::hist_deltaEtaVsEta_
private
TH1D* EgammaObjects::hist_deltaEtaVsPhi_
private
TH1D* EgammaObjects::hist_deltaPhiVsE_
private
TH1D* EgammaObjects::hist_deltaPhiVsEt_
private
TH1D* EgammaObjects::hist_deltaPhiVsEta_
private
TH1D* EgammaObjects::hist_deltaPhiVsPhi_
private
TH1D* EgammaObjects::hist_E_
private
TH1D* EgammaObjects::hist_EEfficiency_
private
TH1D* EgammaObjects::hist_EndcapOnly_recoMass_
private
TH1D* EgammaObjects::hist_ENumRecoOverNumTrue_
private
TH1D* EgammaObjects::hist_EOverTruth_
private
TH1D* EgammaObjects::hist_EOverTruthVsE_
private
TH1D* EgammaObjects::hist_EOverTruthVsEt_
private
TH1D* EgammaObjects::hist_EOverTruthVsEta_
private
TH1D* EgammaObjects::hist_EOverTruthVsPhi_
private
TH1D* EgammaObjects::hist_Et_
private
TH1D* EgammaObjects::hist_Eta_
private
TH1D* EgammaObjects::hist_EtaEfficiency_
private
TH1D* EgammaObjects::hist_EtaNumRecoOverNumTrue_
private
TH1D* EgammaObjects::hist_EtaOverTruth_
private
TH1D* EgammaObjects::hist_EtEfficiency_
private
TH1D* EgammaObjects::hist_EtNumRecoOverNumTrue_
private
TH1D* EgammaObjects::hist_EtOverTruth_
private
TH1D* EgammaObjects::hist_EtOverTruthVsE_
private
TH1D* EgammaObjects::hist_EtOverTruthVsEt_
private
TH1D* EgammaObjects::hist_EtOverTruthVsEta_
private
TH1D* EgammaObjects::hist_EtOverTruthVsPhi_
private
double EgammaObjects::hist_max_deltaEta_
private

Definition at line 74 of file EgammaObjects.h.

Referenced by createTempHistoObjects(), and loadHistoParameters().

double EgammaObjects::hist_max_deltaPhi_
private

Definition at line 78 of file EgammaObjects.h.

Referenced by createTempHistoObjects(), and loadHistoParameters().

double EgammaObjects::hist_max_E_
private
double EgammaObjects::hist_max_EOverTruth_
private
double EgammaObjects::hist_max_Et_
private
double EgammaObjects::hist_max_Eta_
private
double EgammaObjects::hist_max_EtaOverTruth_
private

Definition at line 66 of file EgammaObjects.h.

Referenced by createBookedHistoObjects(), and loadHistoParameters().

double EgammaObjects::hist_max_EtOverTruth_
private
double EgammaObjects::hist_max_Phi_
private
double EgammaObjects::hist_max_PhiOverTruth_
private

Definition at line 70 of file EgammaObjects.h.

Referenced by createBookedHistoObjects(), and loadHistoParameters().

double EgammaObjects::hist_max_recoMass_
private

Definition at line 82 of file EgammaObjects.h.

Referenced by createBookedHistoObjects(), and loadHistoParameters().

double EgammaObjects::hist_min_deltaEta_
private

Definition at line 73 of file EgammaObjects.h.

Referenced by createTempHistoObjects(), and loadHistoParameters().

double EgammaObjects::hist_min_deltaPhi_
private

Definition at line 77 of file EgammaObjects.h.

Referenced by createTempHistoObjects(), and loadHistoParameters().

double EgammaObjects::hist_min_E_
private
double EgammaObjects::hist_min_EOverTruth_
private
double EgammaObjects::hist_min_Et_
private
double EgammaObjects::hist_min_Eta_
private
double EgammaObjects::hist_min_EtaOverTruth_
private

Definition at line 65 of file EgammaObjects.h.

Referenced by createBookedHistoObjects(), and loadHistoParameters().

double EgammaObjects::hist_min_EtOverTruth_
private
double EgammaObjects::hist_min_Phi_
private
double EgammaObjects::hist_min_PhiOverTruth_
private

Definition at line 69 of file EgammaObjects.h.

Referenced by createBookedHistoObjects(), and loadHistoParameters().

double EgammaObjects::hist_min_recoMass_
private

Definition at line 81 of file EgammaObjects.h.

Referenced by createBookedHistoObjects(), and loadHistoParameters().

TH1D* EgammaObjects::hist_Mixed_recoMass_
private
TH1D* EgammaObjects::hist_Phi_
private
TH1D* EgammaObjects::hist_PhiEfficiency_
private
TH1D* EgammaObjects::hist_PhiNumRecoOverNumTrue_
private
TH1D* EgammaObjects::hist_PhiOverTruth_
private
TH1D* EgammaObjects::hist_recoMass_withBackgroud_10EtCut_
private
TH1D* EgammaObjects::hist_recoMass_withBackgroud_20EtCut_
private
TH1D* EgammaObjects::hist_recoMass_withBackgroud_5EtCut_
private
TH1D* EgammaObjects::hist_recoMass_withBackgroud_NoEtCut_
private
TH1D* EgammaObjects::hist_resolutionEtaVsE_
private
TH1D* EgammaObjects::hist_resolutionEtaVsEt_
private
TH1D* EgammaObjects::hist_resolutionEtaVsEta_
private
TH1D* EgammaObjects::hist_resolutionEtaVsPhi_
private
TH1D* EgammaObjects::hist_resolutionEtVsE_
private
TH1D* EgammaObjects::hist_resolutionEtVsEt_
private
TH1D* EgammaObjects::hist_resolutionEtVsEta_
private
TH1D* EgammaObjects::hist_resolutionEtVsPhi_
private
TH1D* EgammaObjects::hist_resolutionEVsE_
private
TH1D* EgammaObjects::hist_resolutionEVsEt_
private
TH1D* EgammaObjects::hist_resolutionEVsEta_
private
TH1D* EgammaObjects::hist_resolutionEVsPhi_
private
TH1D* EgammaObjects::hist_resolutionPhiVsE_
private
TH1D* EgammaObjects::hist_resolutionPhiVsEt_
private
TH1D* EgammaObjects::hist_resolutionPhiVsEta_
private
TH1D* EgammaObjects::hist_resolutionPhiVsPhi_
private
edm::InputTag EgammaObjects::MCTruthCollection_
private

Definition at line 33 of file EgammaObjects.h.

Referenced by analyzeElectrons(), analyzePhotons(), and loadCMSSWObjects().

int EgammaObjects::particleID
private
std::string EgammaObjects::particleString
private
edm::InputTag EgammaObjects::RecoCollection_
private

Definition at line 34 of file EgammaObjects.h.

Referenced by analyzeElectrons(), analyzePhotons(), and loadCMSSWObjects().

TFile* EgammaObjects::rootFile_
private

Definition at line 31 of file EgammaObjects.h.

Referenced by EgammaObjects(), endJob(), saveHistos(), and ~EgammaObjects().