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 Member Functions | Private Attributes
EnergyScaleAnalyzer Class Reference

#include <Validation/EcalClusters/src/EnergyScaleAnalyzer.cc>

Inheritance diagram for EnergyScaleAnalyzer:
edm::EDAnalyzer edm::EDConsumerBase

Classes

struct  tree_structure_
 

Public Member Functions

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

void fillTree (const reco::SuperClusterCollection *scColl, const reco::SuperClusterCollection *corrSCColl, HepMC::GenParticle *mc, tree_structure_ &tree_, float xV, float yV, float zV, int scType)
 

Private Attributes

edm::EDGetTokenT
< reco::SuperClusterCollection
correctedDynamicHybridSuperClusters_token
 
edm::EDGetTokenT
< reco::SuperClusterCollection
correctedFixedMatrixSuperClustersWithPreshower_token
 
edm::EDGetTokenT
< reco::SuperClusterCollection
correctedHybridSuperClusters_token
 
edm::EDGetTokenT
< reco::SuperClusterCollection
dynamicHybridSuperClusters_token
 
float energyMax_
 
float etaMax_
 
float etaMaxVtx_
 
float eTMax_
 
float eTMaxVtx_
 
int evtN
 
edm::EDGetTokenT
< reco::SuperClusterCollection
fixedMatrixSuperClustersWithPreshower_token
 
edm::EDGetTokenT
< edm::HepMCProduct
hepMCLabel_
 
edm::EDGetTokenT
< reco::SuperClusterCollection
hybridSuperClusters_token
 
TTree * mytree_
 
std::string outputFile_
 
float phiMax_
 
float phiMaxVtx_
 
float rClust_vtx_
 
TFile * rootFile_
 
float thetaMax_
 
float thetaMaxVtx_
 
tree_structure_ tree_
 
float xClust_vtx_
 
float xClust_zero_
 
float xVtx_
 
float yClust_vtx_
 
float yClust_zero_
 
float yVtx_
 
float zClust_vtx_
 
float zClust_zero_
 
float zVtx_
 

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: <one line="" class="" summary>="">

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

Definition at line 48 of file EnergyScaleAnalyzer.h.

Constructor & Destructor Documentation

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

Definition at line 73 of file EnergyScaleAnalyzer.cc.

EnergyScaleAnalyzer::~EnergyScaleAnalyzer ( )

Definition at line 93 of file EnergyScaleAnalyzer.cc.

Member Function Documentation

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

Implements edm::EDAnalyzer.

Definition at line 121 of file EnergyScaleAnalyzer.cc.

void EnergyScaleAnalyzer::beginJob ( void  )
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 101 of file EnergyScaleAnalyzer.cc.

void EnergyScaleAnalyzer::endJob ( void  )
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 450 of file EnergyScaleAnalyzer.cc.

void EnergyScaleAnalyzer::fillTree ( const reco::SuperClusterCollection scColl,
const reco::SuperClusterCollection corrSCColl,
HepMC::GenParticle *  mc,
tree_structure_ tree_,
float  xV,
float  yV,
float  zV,
int  scType 
)
private

fill tree with kinematic variables of corrected Super Cluster

Definition at line 324 of file EnergyScaleAnalyzer.cc.

Member Data Documentation

edm::EDGetTokenT<reco::SuperClusterCollection> EnergyScaleAnalyzer::correctedDynamicHybridSuperClusters_token
private

Definition at line 67 of file EnergyScaleAnalyzer.h.

edm::EDGetTokenT<reco::SuperClusterCollection> EnergyScaleAnalyzer::correctedFixedMatrixSuperClustersWithPreshower_token
private

Definition at line 68 of file EnergyScaleAnalyzer.h.

edm::EDGetTokenT<reco::SuperClusterCollection> EnergyScaleAnalyzer::correctedHybridSuperClusters_token
private

Definition at line 66 of file EnergyScaleAnalyzer.h.

edm::EDGetTokenT<reco::SuperClusterCollection> EnergyScaleAnalyzer::dynamicHybridSuperClusters_token
private

Definition at line 65 of file EnergyScaleAnalyzer.h.

float EnergyScaleAnalyzer::energyMax_
private

Definition at line 140 of file EnergyScaleAnalyzer.h.

float EnergyScaleAnalyzer::etaMax_
private

Definition at line 143 of file EnergyScaleAnalyzer.h.

float EnergyScaleAnalyzer::etaMaxVtx_
private

Definition at line 144 of file EnergyScaleAnalyzer.h.

float EnergyScaleAnalyzer::eTMax_
private

Definition at line 141 of file EnergyScaleAnalyzer.h.

float EnergyScaleAnalyzer::eTMaxVtx_
private

Definition at line 142 of file EnergyScaleAnalyzer.h.

int EnergyScaleAnalyzer::evtN
private

Definition at line 151 of file EnergyScaleAnalyzer.h.

edm::EDGetTokenT<reco::SuperClusterCollection> EnergyScaleAnalyzer::fixedMatrixSuperClustersWithPreshower_token
private

Definition at line 69 of file EnergyScaleAnalyzer.h.

edm::EDGetTokenT<edm::HepMCProduct> EnergyScaleAnalyzer::hepMCLabel_
private

Definition at line 63 of file EnergyScaleAnalyzer.h.

edm::EDGetTokenT<reco::SuperClusterCollection> EnergyScaleAnalyzer::hybridSuperClusters_token
private

Definition at line 64 of file EnergyScaleAnalyzer.h.

TTree* EnergyScaleAnalyzer::mytree_
private

Definition at line 75 of file EnergyScaleAnalyzer.h.

std::string EnergyScaleAnalyzer::outputFile_
private

Definition at line 61 of file EnergyScaleAnalyzer.h.

float EnergyScaleAnalyzer::phiMax_
private

Definition at line 145 of file EnergyScaleAnalyzer.h.

float EnergyScaleAnalyzer::phiMaxVtx_
private

Definition at line 146 of file EnergyScaleAnalyzer.h.

float EnergyScaleAnalyzer::rClust_vtx_
private

Definition at line 138 of file EnergyScaleAnalyzer.h.

TFile* EnergyScaleAnalyzer::rootFile_
private

Definition at line 72 of file EnergyScaleAnalyzer.h.

float EnergyScaleAnalyzer::thetaMax_
private

Definition at line 147 of file EnergyScaleAnalyzer.h.

float EnergyScaleAnalyzer::thetaMaxVtx_
private

Definition at line 148 of file EnergyScaleAnalyzer.h.

tree_structure_ EnergyScaleAnalyzer::tree_
private

Definition at line 123 of file EnergyScaleAnalyzer.h.

float EnergyScaleAnalyzer::xClust_vtx_
private

Definition at line 134 of file EnergyScaleAnalyzer.h.

float EnergyScaleAnalyzer::xClust_zero_
private

Definition at line 130 of file EnergyScaleAnalyzer.h.

float EnergyScaleAnalyzer::xVtx_
private

Definition at line 126 of file EnergyScaleAnalyzer.h.

float EnergyScaleAnalyzer::yClust_vtx_
private

Definition at line 135 of file EnergyScaleAnalyzer.h.

float EnergyScaleAnalyzer::yClust_zero_
private

Definition at line 131 of file EnergyScaleAnalyzer.h.

float EnergyScaleAnalyzer::yVtx_
private

Definition at line 127 of file EnergyScaleAnalyzer.h.

float EnergyScaleAnalyzer::zClust_vtx_
private

Definition at line 136 of file EnergyScaleAnalyzer.h.

float EnergyScaleAnalyzer::zClust_zero_
private

Definition at line 132 of file EnergyScaleAnalyzer.h.

float EnergyScaleAnalyzer::zVtx_
private

Definition at line 128 of file EnergyScaleAnalyzer.h.