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

#include <MCPhotonAnalyzer.h>

Inheritance diagram for MCPhotonAnalyzer:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

virtual void analyze (const edm::Event &, const edm::EventSetup &)
 
virtual void beginJob ()
 
virtual void endJob ()
 
 MCPhotonAnalyzer (const edm::ParameterSet &)
 
virtual ~MCPhotonAnalyzer ()
 
- 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)
 
float phiNormalization (float &a)
 

Private Attributes

TFile * fOutputFile_
 
std::string fOutputFileName_
 
TH1F * h_BremEnergy_
 
TH2F * h_bremEvsEleE_
 
TH1F * h_BremFrac_
 
TH2F * h_bremFracVsConvR_
 
TH1F * h_convFracEta1_
 
TH1F * h_convFracEta2_
 
TH1F * h_convFracEta3_
 
TH1F * h_convFracEta4_
 
TH2F * h_EleEvsPhoE_
 
TH1F * h_MCConvPhoE_
 
TH1F * h_MCConvPhoEta_
 
TH1F * h_MCConvPhoOneTrackE_
 Conversions with one track. More...
 
TH1F * h_MCConvPhoOneTrackEta_
 
TH1F * h_MCConvPhoOneTrackPhi_
 
TH1F * h_MCConvPhoOneTrackR_
 
TH1F * h_MCConvPhoPhi_
 
TH1F * h_MCConvPhoR_
 
TH1F * h_MCConvPhoREta1_
 
TH1F * h_MCConvPhoREta2_
 
TH1F * h_MCConvPhoREta3_
 
TH1F * h_MCConvPhoREta4_
 
TH1F * h_MCConvPhoTwoTracksE_
 Conversions with two tracks. More...
 
TH1F * h_MCConvPhoTwoTracksEta_
 
TH1F * h_MCConvPhoTwoTracksPhi_
 
TH1F * h_MCConvPhoTwoTracksR_
 
TH1F * h_MCEleE_
 
TH1F * h_MCEleEta_
 
TH1F * h_MCElePhi_
 
TH1F * h_MCPhoE_
 
TH1F * h_MCPhoEta1_
 
TH1F * h_MCPhoEta2_
 
TH1F * h_MCPhoEta3_
 
TH1F * h_MCPhoEta4_
 
TH1F * h_MCPhoEta_
 
TH1F * h_MCPhoPhi_
 
std::string HepMCLabel
 
double mcEta_
 
double mcPhi_
 global variable for the MC photon More...
 
int nEvt_
 
int nMatched_
 
TProfile * p_BremVsConvEta_
 
TProfile * p_BremVsConvR_
 
TProfile * p_BremVsEta_
 
TProfile * p_BremVsR_
 
std::string SimHitLabel
 
std::string SimTkLabel
 
std::string SimVtxLabel
 
PhotonMCTruthFinderthePhotonMCTruthFinder_
 
const TrackerGeometrytrackerGeom
 

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

Definition at line 22 of file MCPhotonAnalyzer.h.

Constructor & Destructor Documentation

MCPhotonAnalyzer::MCPhotonAnalyzer ( const edm::ParameterSet pset)
explicit

Definition at line 48 of file MCPhotonAnalyzer.cc.

MCPhotonAnalyzer::~MCPhotonAnalyzer ( )
virtual

Definition at line 52 of file MCPhotonAnalyzer.cc.

Member Function Documentation

void MCPhotonAnalyzer::analyze ( const edm::Event e,
const edm::EventSetup  
)
virtual

Loop over all MC photons in the event

Implements edm::EDAnalyzer.

Definition at line 180 of file MCPhotonAnalyzer.cc.

void MCPhotonAnalyzer::beginJob ( void  )
virtual

conversions

conversions with two tracks

electrons from conversions

Reimplemented from edm::EDAnalyzer.

Definition at line 60 of file MCPhotonAnalyzer.cc.

void MCPhotonAnalyzer::endJob ( void  )
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 315 of file MCPhotonAnalyzer.cc.

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

Definition at line 126 of file MCPhotonAnalyzer.cc.

float MCPhotonAnalyzer::phiNormalization ( float &  a)
private

Definition at line 161 of file MCPhotonAnalyzer.cc.

Member Data Documentation

TFile* MCPhotonAnalyzer::fOutputFile_
private

Definition at line 49 of file MCPhotonAnalyzer.h.

std::string MCPhotonAnalyzer::fOutputFileName_
private

Definition at line 48 of file MCPhotonAnalyzer.h.

TH1F* MCPhotonAnalyzer::h_BremEnergy_
private

Definition at line 106 of file MCPhotonAnalyzer.h.

TH2F* MCPhotonAnalyzer::h_bremEvsEleE_
private

Definition at line 108 of file MCPhotonAnalyzer.h.

TH1F* MCPhotonAnalyzer::h_BremFrac_
private

Definition at line 105 of file MCPhotonAnalyzer.h.

TH2F* MCPhotonAnalyzer::h_bremFracVsConvR_
private

Definition at line 116 of file MCPhotonAnalyzer.h.

TH1F* MCPhotonAnalyzer::h_convFracEta1_
private

Definition at line 85 of file MCPhotonAnalyzer.h.

TH1F* MCPhotonAnalyzer::h_convFracEta2_
private

Definition at line 86 of file MCPhotonAnalyzer.h.

TH1F* MCPhotonAnalyzer::h_convFracEta3_
private

Definition at line 87 of file MCPhotonAnalyzer.h.

TH1F* MCPhotonAnalyzer::h_convFracEta4_
private

Definition at line 88 of file MCPhotonAnalyzer.h.

TH2F* MCPhotonAnalyzer::h_EleEvsPhoE_
private

Definition at line 107 of file MCPhotonAnalyzer.h.

TH1F* MCPhotonAnalyzer::h_MCConvPhoE_
private

Definition at line 77 of file MCPhotonAnalyzer.h.

TH1F* MCPhotonAnalyzer::h_MCConvPhoEta_
private

Definition at line 78 of file MCPhotonAnalyzer.h.

TH1F* MCPhotonAnalyzer::h_MCConvPhoOneTrackE_
private

Conversions with one track.

Definition at line 97 of file MCPhotonAnalyzer.h.

TH1F* MCPhotonAnalyzer::h_MCConvPhoOneTrackEta_
private

Definition at line 98 of file MCPhotonAnalyzer.h.

TH1F* MCPhotonAnalyzer::h_MCConvPhoOneTrackPhi_
private

Definition at line 99 of file MCPhotonAnalyzer.h.

TH1F* MCPhotonAnalyzer::h_MCConvPhoOneTrackR_
private

Definition at line 100 of file MCPhotonAnalyzer.h.

TH1F* MCPhotonAnalyzer::h_MCConvPhoPhi_
private

Definition at line 79 of file MCPhotonAnalyzer.h.

TH1F* MCPhotonAnalyzer::h_MCConvPhoR_
private

Definition at line 80 of file MCPhotonAnalyzer.h.

TH1F* MCPhotonAnalyzer::h_MCConvPhoREta1_
private

Definition at line 81 of file MCPhotonAnalyzer.h.

TH1F* MCPhotonAnalyzer::h_MCConvPhoREta2_
private

Definition at line 82 of file MCPhotonAnalyzer.h.

TH1F* MCPhotonAnalyzer::h_MCConvPhoREta3_
private

Definition at line 83 of file MCPhotonAnalyzer.h.

TH1F* MCPhotonAnalyzer::h_MCConvPhoREta4_
private

Definition at line 84 of file MCPhotonAnalyzer.h.

TH1F* MCPhotonAnalyzer::h_MCConvPhoTwoTracksE_
private

Conversions with two tracks.

Definition at line 92 of file MCPhotonAnalyzer.h.

TH1F* MCPhotonAnalyzer::h_MCConvPhoTwoTracksEta_
private

Definition at line 93 of file MCPhotonAnalyzer.h.

TH1F* MCPhotonAnalyzer::h_MCConvPhoTwoTracksPhi_
private

Definition at line 94 of file MCPhotonAnalyzer.h.

TH1F* MCPhotonAnalyzer::h_MCConvPhoTwoTracksR_
private

Definition at line 95 of file MCPhotonAnalyzer.h.

TH1F* MCPhotonAnalyzer::h_MCEleE_
private

Definition at line 102 of file MCPhotonAnalyzer.h.

TH1F* MCPhotonAnalyzer::h_MCEleEta_
private

Definition at line 103 of file MCPhotonAnalyzer.h.

TH1F* MCPhotonAnalyzer::h_MCElePhi_
private

Definition at line 104 of file MCPhotonAnalyzer.h.

TH1F* MCPhotonAnalyzer::h_MCPhoE_
private

Definition at line 69 of file MCPhotonAnalyzer.h.

TH1F* MCPhotonAnalyzer::h_MCPhoEta1_
private

Definition at line 71 of file MCPhotonAnalyzer.h.

TH1F* MCPhotonAnalyzer::h_MCPhoEta2_
private

Definition at line 72 of file MCPhotonAnalyzer.h.

TH1F* MCPhotonAnalyzer::h_MCPhoEta3_
private

Definition at line 73 of file MCPhotonAnalyzer.h.

TH1F* MCPhotonAnalyzer::h_MCPhoEta4_
private

Definition at line 74 of file MCPhotonAnalyzer.h.

TH1F* MCPhotonAnalyzer::h_MCPhoEta_
private

Definition at line 70 of file MCPhotonAnalyzer.h.

TH1F* MCPhotonAnalyzer::h_MCPhoPhi_
private

Definition at line 75 of file MCPhotonAnalyzer.h.

std::string MCPhotonAnalyzer::HepMCLabel
private

Definition at line 62 of file MCPhotonAnalyzer.h.

double MCPhotonAnalyzer::mcEta_
private

Definition at line 60 of file MCPhotonAnalyzer.h.

double MCPhotonAnalyzer::mcPhi_
private

global variable for the MC photon

Definition at line 59 of file MCPhotonAnalyzer.h.

int MCPhotonAnalyzer::nEvt_
private

Definition at line 54 of file MCPhotonAnalyzer.h.

int MCPhotonAnalyzer::nMatched_
private

Definition at line 55 of file MCPhotonAnalyzer.h.

TProfile* MCPhotonAnalyzer::p_BremVsConvEta_
private

Definition at line 114 of file MCPhotonAnalyzer.h.

TProfile* MCPhotonAnalyzer::p_BremVsConvR_
private

Definition at line 113 of file MCPhotonAnalyzer.h.

TProfile* MCPhotonAnalyzer::p_BremVsEta_
private

Definition at line 111 of file MCPhotonAnalyzer.h.

TProfile* MCPhotonAnalyzer::p_BremVsR_
private

Definition at line 110 of file MCPhotonAnalyzer.h.

std::string MCPhotonAnalyzer::SimHitLabel
private

Definition at line 65 of file MCPhotonAnalyzer.h.

std::string MCPhotonAnalyzer::SimTkLabel
private

Definition at line 63 of file MCPhotonAnalyzer.h.

std::string MCPhotonAnalyzer::SimVtxLabel
private

Definition at line 64 of file MCPhotonAnalyzer.h.

PhotonMCTruthFinder* MCPhotonAnalyzer::thePhotonMCTruthFinder_
private

Definition at line 44 of file MCPhotonAnalyzer.h.

const TrackerGeometry* MCPhotonAnalyzer::trackerGeom
private

Definition at line 46 of file MCPhotonAnalyzer.h.