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
SimplePhotonAnalyzer Class Reference

#include <SimplePhotonAnalyzer.h>

Inheritance diagram for SimplePhotonAnalyzer:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

virtual void analyze (const edm::Event &, const edm::EventSetup &)
 
virtual void beginJob ()
 
virtual void endJob ()
 
 SimplePhotonAnalyzer (const edm::ParameterSet &)
 
 ~SimplePhotonAnalyzer ()
 
- 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 Member Functions

float etaTransformation (float a, float b)
 

Private Attributes

edm::InputTag barrelEcalHits_
 
DQMStoredbe_
 
edm::InputTag endcapEcalHits_
 
MonitorElementh1_deltaEta_
 
MonitorElementh1_deltaEtaSC_
 
MonitorElementh1_deltaPhi_
 
MonitorElementh1_pho_E_
 
MonitorElementh1_pho_ecalIsoBarrel_
 
MonitorElementh1_pho_ecalIsoEndcap_
 
MonitorElementh1_pho_Et_
 
MonitorElementh1_pho_Eta_
 
MonitorElementh1_pho_hcalIsoBarrel_
 
MonitorElementh1_pho_hcalIsoEndcap_
 
MonitorElementh1_pho_hOverEBarrel_
 
MonitorElementh1_pho_hOverEEndcap_
 
MonitorElementh1_pho_Phi_
 
MonitorElementh1_pho_R9Barrel_
 
MonitorElementh1_pho_R9Endcap_
 
MonitorElementh1_pho_sigmaIetaIetaBarrel_
 
MonitorElementh1_pho_sigmaIetaIetaEndcap_
 
MonitorElementh1_pho_trkIsoBarrel_
 
MonitorElementh1_pho_trkIsoEndcap_
 
MonitorElementh1_recEoverTrueEBarrel_
 
MonitorElementh1_recEoverTrueEEndcap_
 
MonitorElementh1_scEta_
 
std::string mcCollection_
 
std::string mcProducer_
 
edm::InputTag pfEgammaCandidates_
 
std::string photonCollection_
 
std::string photonCollectionProducer_
 
float sample_
 
edm::ESHandle< CaloTopologytheCaloTopo_
 
std::string valueMapPFCandPhoton_
 
std::string vertexProducer_
 

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: Get Photon collection from the event and make very basic histos

Author
Nancy Marinelli, U. of Notre Dame, US

Definition at line 38 of file SimplePhotonAnalyzer.h.

Constructor & Destructor Documentation

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

Definition at line 33 of file SimplePhotonAnalyzer.cc.

SimplePhotonAnalyzer::~SimplePhotonAnalyzer ( )

Definition at line 55 of file SimplePhotonAnalyzer.cc.

Member Function Documentation

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

Match reconstructed photon candidates with the nearest generated photonPho;

Plot kinematic disctributions for matched photons

Implements edm::EDAnalyzer.

Definition at line 154 of file SimplePhotonAnalyzer.cc.

void SimplePhotonAnalyzer::beginJob ( void  )
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 64 of file SimplePhotonAnalyzer.cc.

void SimplePhotonAnalyzer::endJob ( void  )
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 367 of file SimplePhotonAnalyzer.cc.

float SimplePhotonAnalyzer::etaTransformation ( float  a,
float  b 
)
private

Definition at line 327 of file SimplePhotonAnalyzer.cc.

Member Data Documentation

edm::InputTag SimplePhotonAnalyzer::barrelEcalHits_
private

Definition at line 57 of file SimplePhotonAnalyzer.h.

DQMStore* SimplePhotonAnalyzer::dbe_
private

Definition at line 65 of file SimplePhotonAnalyzer.h.

edm::InputTag SimplePhotonAnalyzer::endcapEcalHits_
private

Definition at line 58 of file SimplePhotonAnalyzer.h.

MonitorElement* SimplePhotonAnalyzer::h1_deltaEta_
private

Definition at line 91 of file SimplePhotonAnalyzer.h.

MonitorElement* SimplePhotonAnalyzer::h1_deltaEtaSC_
private

Definition at line 69 of file SimplePhotonAnalyzer.h.

MonitorElement* SimplePhotonAnalyzer::h1_deltaPhi_
private

Definition at line 92 of file SimplePhotonAnalyzer.h.

MonitorElement* SimplePhotonAnalyzer::h1_pho_E_
private

Definition at line 70 of file SimplePhotonAnalyzer.h.

MonitorElement* SimplePhotonAnalyzer::h1_pho_ecalIsoBarrel_
private

Definition at line 80 of file SimplePhotonAnalyzer.h.

MonitorElement* SimplePhotonAnalyzer::h1_pho_ecalIsoEndcap_
private

Definition at line 81 of file SimplePhotonAnalyzer.h.

MonitorElement* SimplePhotonAnalyzer::h1_pho_Et_
private

Definition at line 71 of file SimplePhotonAnalyzer.h.

MonitorElement* SimplePhotonAnalyzer::h1_pho_Eta_
private

Definition at line 72 of file SimplePhotonAnalyzer.h.

MonitorElement* SimplePhotonAnalyzer::h1_pho_hcalIsoBarrel_
private

Definition at line 82 of file SimplePhotonAnalyzer.h.

MonitorElement* SimplePhotonAnalyzer::h1_pho_hcalIsoEndcap_
private

Definition at line 83 of file SimplePhotonAnalyzer.h.

MonitorElement* SimplePhotonAnalyzer::h1_pho_hOverEBarrel_
private

Definition at line 78 of file SimplePhotonAnalyzer.h.

MonitorElement* SimplePhotonAnalyzer::h1_pho_hOverEEndcap_
private

Definition at line 79 of file SimplePhotonAnalyzer.h.

MonitorElement* SimplePhotonAnalyzer::h1_pho_Phi_
private

Definition at line 73 of file SimplePhotonAnalyzer.h.

MonitorElement* SimplePhotonAnalyzer::h1_pho_R9Barrel_
private

Definition at line 74 of file SimplePhotonAnalyzer.h.

MonitorElement* SimplePhotonAnalyzer::h1_pho_R9Endcap_
private

Definition at line 75 of file SimplePhotonAnalyzer.h.

MonitorElement* SimplePhotonAnalyzer::h1_pho_sigmaIetaIetaBarrel_
private

Definition at line 76 of file SimplePhotonAnalyzer.h.

MonitorElement* SimplePhotonAnalyzer::h1_pho_sigmaIetaIetaEndcap_
private

Definition at line 77 of file SimplePhotonAnalyzer.h.

MonitorElement* SimplePhotonAnalyzer::h1_pho_trkIsoBarrel_
private

Definition at line 84 of file SimplePhotonAnalyzer.h.

MonitorElement* SimplePhotonAnalyzer::h1_pho_trkIsoEndcap_
private

Definition at line 85 of file SimplePhotonAnalyzer.h.

MonitorElement* SimplePhotonAnalyzer::h1_recEoverTrueEBarrel_
private

Definition at line 89 of file SimplePhotonAnalyzer.h.

MonitorElement* SimplePhotonAnalyzer::h1_recEoverTrueEEndcap_
private

Definition at line 90 of file SimplePhotonAnalyzer.h.

MonitorElement* SimplePhotonAnalyzer::h1_scEta_
private

Definition at line 68 of file SimplePhotonAnalyzer.h.

std::string SimplePhotonAnalyzer::mcCollection_
private

Definition at line 52 of file SimplePhotonAnalyzer.h.

std::string SimplePhotonAnalyzer::mcProducer_
private

Definition at line 51 of file SimplePhotonAnalyzer.h.

edm::InputTag SimplePhotonAnalyzer::pfEgammaCandidates_
private

Definition at line 56 of file SimplePhotonAnalyzer.h.

std::string SimplePhotonAnalyzer::photonCollection_
private

Definition at line 54 of file SimplePhotonAnalyzer.h.

std::string SimplePhotonAnalyzer::photonCollectionProducer_
private

Definition at line 53 of file SimplePhotonAnalyzer.h.

float SimplePhotonAnalyzer::sample_
private

Definition at line 63 of file SimplePhotonAnalyzer.h.

edm::ESHandle<CaloTopology> SimplePhotonAnalyzer::theCaloTopo_
private

Definition at line 60 of file SimplePhotonAnalyzer.h.

std::string SimplePhotonAnalyzer::valueMapPFCandPhoton_
private

Definition at line 55 of file SimplePhotonAnalyzer.h.

std::string SimplePhotonAnalyzer::vertexProducer_
private

Definition at line 62 of file SimplePhotonAnalyzer.h.