CMS 3D CMS Logo

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

#include <RecoEgamma/PhotonIdentification/test/PhotonIDSimpleAnalyzer.cc>

Inheritance diagram for PhotonIDSimpleAnalyzer:
edm::EDAnalyzer edm::EDConsumerBase

Classes

struct  struct_recPhoton
 

Public Member Functions

virtual void analyze (const edm::Event &, const edm::EventSetup &)
 
virtual void beginJob ()
 
virtual void endJob ()
 
 PhotonIDSimpleAnalyzer (const edm::ParameterSet &)
 
 ~PhotonIDSimpleAnalyzer ()
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &oModuleLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Private Attributes

bool createPhotonTTree_
 
TH1F * h_ebeeGap_
 
TH1F * h_ebetagap_
 
TH1F * h_ebphigap_
 
TH1F * h_eedeeGap_
 
TH1F * h_eeringGap_
 
TH1F * h_hadoverem_
 
TH1F * h_isoEcalRecHit_
 
TH1F * h_isoHcalRecHit_
 
TH1F * h_nPassEM_
 
TH1F * h_nPassingPho_
 
TH1F * h_nPho_
 
TH1F * h_ntrk_hollow_
 
TH1F * h_ntrk_solid_
 
TH1F * h_photonEt_
 
TH1F * h_photonEta_
 
TH1F * h_photonInAnyGap_
 
TH1F * h_photonPhi_
 
TH1F * h_photonScEt_
 
TH1F * h_photonScEta_
 
TH1F * h_photonScEtaWidth_
 
TH1F * h_photonScPhi_
 
TH1F * h_r9_
 
TH1F * h_trk_pt_hollow_
 
TH1F * h_trk_pt_solid_
 
double maxPhotonAbsEta_
 
double maxPhotonHoverE_
 
double minPhotonAbsEta_
 
double minPhotonEt_
 
double minPhotonR9_
 
std::string outputFile_
 
struct_recPhoton recPhoton
 
TFile * rootFile_
 
TTree * tree_PhotonAll_
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Detailed Description

Description: Generate various histograms for cuts and important photon ID parameters using a data sample of photons in QCD events.

Implementation: <Notes on="" implementation>="">

Description: Analyzer to make a load of histograms for the improvement of the PhotonID object

Implementation: \

Author
: J. Stilley, A. Askew May 2008

Definition at line 37 of file PhotonIDSimpleAnalyzer.h.

Constructor & Destructor Documentation

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

Definition at line 64 of file PhotonIDSimpleAnalyzer.cc.

PhotonIDSimpleAnalyzer::~PhotonIDSimpleAnalyzer ( )

Definition at line 89 of file PhotonIDSimpleAnalyzer.cc.

Member Function Documentation

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

Implements edm::EDAnalyzer.

Definition at line 153 of file PhotonIDSimpleAnalyzer.cc.

void PhotonIDSimpleAnalyzer::beginJob ( void  )
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 103 of file PhotonIDSimpleAnalyzer.cc.

void PhotonIDSimpleAnalyzer::endJob ( void  )
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 285 of file PhotonIDSimpleAnalyzer.cc.

Member Data Documentation

bool PhotonIDSimpleAnalyzer::createPhotonTTree_
private

Definition at line 54 of file PhotonIDSimpleAnalyzer.h.

TH1F* PhotonIDSimpleAnalyzer::h_ebeeGap_
private

Definition at line 95 of file PhotonIDSimpleAnalyzer.h.

TH1F* PhotonIDSimpleAnalyzer::h_ebetagap_
private

Definition at line 91 of file PhotonIDSimpleAnalyzer.h.

TH1F* PhotonIDSimpleAnalyzer::h_ebphigap_
private

Definition at line 92 of file PhotonIDSimpleAnalyzer.h.

TH1F* PhotonIDSimpleAnalyzer::h_eedeeGap_
private

Definition at line 94 of file PhotonIDSimpleAnalyzer.h.

TH1F* PhotonIDSimpleAnalyzer::h_eeringGap_
private

Definition at line 93 of file PhotonIDSimpleAnalyzer.h.

TH1F* PhotonIDSimpleAnalyzer::h_hadoverem_
private

Definition at line 102 of file PhotonIDSimpleAnalyzer.h.

TH1F* PhotonIDSimpleAnalyzer::h_isoEcalRecHit_
private

Definition at line 85 of file PhotonIDSimpleAnalyzer.h.

TH1F* PhotonIDSimpleAnalyzer::h_isoHcalRecHit_
private

Definition at line 86 of file PhotonIDSimpleAnalyzer.h.

TH1F* PhotonIDSimpleAnalyzer::h_nPassEM_
private

Definition at line 113 of file PhotonIDSimpleAnalyzer.h.

TH1F* PhotonIDSimpleAnalyzer::h_nPassingPho_
private

Definition at line 112 of file PhotonIDSimpleAnalyzer.h.

TH1F* PhotonIDSimpleAnalyzer::h_nPho_
private

Definition at line 114 of file PhotonIDSimpleAnalyzer.h.

TH1F* PhotonIDSimpleAnalyzer::h_ntrk_hollow_
private

Definition at line 90 of file PhotonIDSimpleAnalyzer.h.

TH1F* PhotonIDSimpleAnalyzer::h_ntrk_solid_
private

Definition at line 89 of file PhotonIDSimpleAnalyzer.h.

TH1F* PhotonIDSimpleAnalyzer::h_photonEt_
private

Definition at line 99 of file PhotonIDSimpleAnalyzer.h.

TH1F* PhotonIDSimpleAnalyzer::h_photonEta_
private

Definition at line 100 of file PhotonIDSimpleAnalyzer.h.

TH1F* PhotonIDSimpleAnalyzer::h_photonInAnyGap_
private

Definition at line 111 of file PhotonIDSimpleAnalyzer.h.

TH1F* PhotonIDSimpleAnalyzer::h_photonPhi_
private

Definition at line 101 of file PhotonIDSimpleAnalyzer.h.

TH1F* PhotonIDSimpleAnalyzer::h_photonScEt_
private

Definition at line 105 of file PhotonIDSimpleAnalyzer.h.

TH1F* PhotonIDSimpleAnalyzer::h_photonScEta_
private

Definition at line 106 of file PhotonIDSimpleAnalyzer.h.

TH1F* PhotonIDSimpleAnalyzer::h_photonScEtaWidth_
private

Definition at line 108 of file PhotonIDSimpleAnalyzer.h.

TH1F* PhotonIDSimpleAnalyzer::h_photonScPhi_
private

Definition at line 107 of file PhotonIDSimpleAnalyzer.h.

TH1F* PhotonIDSimpleAnalyzer::h_r9_
private

Definition at line 96 of file PhotonIDSimpleAnalyzer.h.

TH1F* PhotonIDSimpleAnalyzer::h_trk_pt_hollow_
private

Definition at line 88 of file PhotonIDSimpleAnalyzer.h.

TH1F* PhotonIDSimpleAnalyzer::h_trk_pt_solid_
private

Definition at line 87 of file PhotonIDSimpleAnalyzer.h.

double PhotonIDSimpleAnalyzer::maxPhotonAbsEta_
private

Definition at line 51 of file PhotonIDSimpleAnalyzer.h.

double PhotonIDSimpleAnalyzer::maxPhotonHoverE_
private

Definition at line 53 of file PhotonIDSimpleAnalyzer.h.

double PhotonIDSimpleAnalyzer::minPhotonAbsEta_
private

Definition at line 50 of file PhotonIDSimpleAnalyzer.h.

double PhotonIDSimpleAnalyzer::minPhotonEt_
private

Definition at line 49 of file PhotonIDSimpleAnalyzer.h.

double PhotonIDSimpleAnalyzer::minPhotonR9_
private

Definition at line 52 of file PhotonIDSimpleAnalyzer.h.

std::string PhotonIDSimpleAnalyzer::outputFile_
private

Definition at line 48 of file PhotonIDSimpleAnalyzer.h.

struct_recPhoton PhotonIDSimpleAnalyzer::recPhoton
private

Definition at line 77 of file PhotonIDSimpleAnalyzer.h.

TFile* PhotonIDSimpleAnalyzer::rootFile_
private

Definition at line 80 of file PhotonIDSimpleAnalyzer.h.

TTree* PhotonIDSimpleAnalyzer::tree_PhotonAll_
private

Definition at line 117 of file PhotonIDSimpleAnalyzer.h.