#include <Validation/EcalClusters/src/EnergyScaleAnalyzer.cc>
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< ConsumesInfo > | consumesInfo () 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) |
Description: <one line="" class="" summary>="">
Implementation: <Notes on="" implementation>="">
Definition at line 48 of file EnergyScaleAnalyzer.h.
|
explicit |
Definition at line 73 of file EnergyScaleAnalyzer.cc.
References correctedDynamicHybridSuperClusters_token, correctedFixedMatrixSuperClustersWithPreshower_token, correctedHybridSuperClusters_token, dynamicHybridSuperClusters_token, evtN, fixedMatrixSuperClustersWithPreshower_token, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), hepMCLabel_, hybridSuperClusters_token, HLT_25ns10e33_v2_cff::InputTag, outputFile_, rootFile_, and AlCaHLTBitMon_QueryRunRegistry::string.
EnergyScaleAnalyzer::~EnergyScaleAnalyzer | ( | ) |
|
virtual |
Implements edm::EDAnalyzer.
Definition at line 121 of file EnergyScaleAnalyzer.cc.
References funct::abs(), correctedDynamicHybridSuperClusters_token, correctedFixedMatrixSuperClustersWithPreshower_token, correctedHybridSuperClusters_token, kinem::delta_R(), dynamicHybridSuperClusters_cfi::dynamicHybridSuperClusters, dynamicHybridSuperClusters_token, fillTree(), fixedMatrixSuperClustersWithPreshower_token, MCTruth::genEvent, GenParticle::GenParticle, edm::Event::getByToken(), edm::Event::getManyByType(), hepMCLabel_, unifiedSCCollection_cfi::hybridSuperClusters, hybridSuperClusters_token, i, cmsLHEtoEOSManager::l, edm::EDConsumerBase::labelsForToken(), HLT_25ns10e33_v2_cff::max_eta, EnergyScaleAnalyzer::tree_structure_::mc_e, EnergyScaleAnalyzer::tree_structure_::mc_et, EnergyScaleAnalyzer::tree_structure_::mc_eta, EnergyScaleAnalyzer::tree_structure_::mc_npar, EnergyScaleAnalyzer::tree_structure_::mc_phi, EnergyScaleAnalyzer::tree_structure_::mc_sep, EnergyScaleAnalyzer::tree_structure_::mc_theta, AlCaHLTBitMon_ParallelJobs::p, EnergyScaleAnalyzer::tree_structure_::parID, funct::sin(), AlCaHLTBitMon_QueryRunRegistry::string, tree_, xVtx_, yVtx_, and zVtx_.
|
virtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 101 of file EnergyScaleAnalyzer.cc.
References EnergyScaleAnalyzer::tree_structure_::mc_npar, mytree_, and tree_.
|
virtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 450 of file EnergyScaleAnalyzer.cc.
References rootFile_.
|
private |
fill tree with kinematic variables of corrected Super Cluster
Definition at line 324 of file EnergyScaleAnalyzer.cc.
References kinem::delta_R(), PFRecoTauDiscriminationAgainstElectronDeadECAL_cfi::dR, EnergyScaleAnalyzer::tree_structure_::em_br, EnergyScaleAnalyzer::tree_structure_::em_dR, EnergyScaleAnalyzer::tree_structure_::em_e, EnergyScaleAnalyzer::tree_structure_::em_et, EnergyScaleAnalyzer::tree_structure_::em_eta, EnergyScaleAnalyzer::tree_structure_::em_ew, EnergyScaleAnalyzer::tree_structure_::em_isInCrack, EnergyScaleAnalyzer::tree_structure_::em_nBC, EnergyScaleAnalyzer::tree_structure_::em_nCell, EnergyScaleAnalyzer::tree_structure_::em_pe, EnergyScaleAnalyzer::tree_structure_::em_pet, EnergyScaleAnalyzer::tree_structure_::em_peta, EnergyScaleAnalyzer::tree_structure_::em_phi, EnergyScaleAnalyzer::tree_structure_::em_ptheta, EnergyScaleAnalyzer::tree_structure_::em_pw, EnergyScaleAnalyzer::tree_structure_::em_scType, EnergyScaleAnalyzer::tree_structure_::em_theta, EnergyScaleAnalyzer::tree_structure_::emCorr_e, EnergyScaleAnalyzer::tree_structure_::emCorr_et, EnergyScaleAnalyzer::tree_structure_::emCorr_eta, EnergyScaleAnalyzer::tree_structure_::emCorr_pet, EnergyScaleAnalyzer::tree_structure_::emCorr_peta, EnergyScaleAnalyzer::tree_structure_::emCorr_phi, EnergyScaleAnalyzer::tree_structure_::emCorr_ptheta, EnergyScaleAnalyzer::tree_structure_::emCorr_theta, relval_parameters_module::energy, energyMax_, eta, etaMax_, etaMaxVtx_, eTMax_, eTMaxVtx_, dqm-mbProfile::log, mytree_, phi, phiMax_, phiMaxVtx_, rClust_vtx_, funct::sin(), mathSSE::sqrt(), funct::tan(), thetaMax_, thetaMaxVtx_, xClust_vtx_, xClust_zero_, yClust_vtx_, yClust_zero_, zClust_vtx_, and zClust_zero_.
Referenced by analyze().
|
private |
Definition at line 67 of file EnergyScaleAnalyzer.h.
Referenced by analyze(), and EnergyScaleAnalyzer().
|
private |
Definition at line 68 of file EnergyScaleAnalyzer.h.
Referenced by analyze(), and EnergyScaleAnalyzer().
|
private |
Definition at line 66 of file EnergyScaleAnalyzer.h.
Referenced by analyze(), and EnergyScaleAnalyzer().
|
private |
Definition at line 65 of file EnergyScaleAnalyzer.h.
Referenced by analyze(), and EnergyScaleAnalyzer().
|
private |
Definition at line 140 of file EnergyScaleAnalyzer.h.
Referenced by fillTree().
|
private |
Definition at line 143 of file EnergyScaleAnalyzer.h.
Referenced by fillTree().
|
private |
Definition at line 144 of file EnergyScaleAnalyzer.h.
Referenced by fillTree().
|
private |
Definition at line 141 of file EnergyScaleAnalyzer.h.
Referenced by fillTree().
|
private |
Definition at line 142 of file EnergyScaleAnalyzer.h.
Referenced by fillTree().
|
private |
Definition at line 151 of file EnergyScaleAnalyzer.h.
Referenced by EnergyScaleAnalyzer().
|
private |
Definition at line 69 of file EnergyScaleAnalyzer.h.
Referenced by analyze(), and EnergyScaleAnalyzer().
|
private |
Definition at line 63 of file EnergyScaleAnalyzer.h.
Referenced by analyze(), and EnergyScaleAnalyzer().
|
private |
Definition at line 64 of file EnergyScaleAnalyzer.h.
Referenced by analyze(), and EnergyScaleAnalyzer().
|
private |
Definition at line 75 of file EnergyScaleAnalyzer.h.
Referenced by beginJob(), and fillTree().
|
private |
Definition at line 61 of file EnergyScaleAnalyzer.h.
Referenced by EnergyScaleAnalyzer().
|
private |
Definition at line 145 of file EnergyScaleAnalyzer.h.
Referenced by fillTree().
|
private |
Definition at line 146 of file EnergyScaleAnalyzer.h.
Referenced by fillTree().
|
private |
Definition at line 138 of file EnergyScaleAnalyzer.h.
Referenced by fillTree().
|
private |
Definition at line 72 of file EnergyScaleAnalyzer.h.
Referenced by endJob(), EnergyScaleAnalyzer(), and ~EnergyScaleAnalyzer().
|
private |
Definition at line 147 of file EnergyScaleAnalyzer.h.
Referenced by fillTree().
|
private |
Definition at line 148 of file EnergyScaleAnalyzer.h.
Referenced by fillTree().
|
private |
Definition at line 123 of file EnergyScaleAnalyzer.h.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 134 of file EnergyScaleAnalyzer.h.
Referenced by fillTree().
|
private |
Definition at line 130 of file EnergyScaleAnalyzer.h.
Referenced by fillTree().
|
private |
Definition at line 126 of file EnergyScaleAnalyzer.h.
Referenced by analyze().
|
private |
Definition at line 135 of file EnergyScaleAnalyzer.h.
Referenced by fillTree().
|
private |
Definition at line 131 of file EnergyScaleAnalyzer.h.
Referenced by fillTree().
|
private |
Definition at line 127 of file EnergyScaleAnalyzer.h.
Referenced by analyze().
|
private |
Definition at line 136 of file EnergyScaleAnalyzer.h.
Referenced by fillTree().
|
private |
Definition at line 132 of file EnergyScaleAnalyzer.h.
Referenced by fillTree().
|
private |
Definition at line 128 of file EnergyScaleAnalyzer.h.
Referenced by analyze().