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 | Static Private Attributes
CalorimetryManager Class Reference

#include <CalorimetryManager.h>

Public Member Functions

 CalorimetryManager ()
 
 CalorimetryManager (FSimEvent *aSimEvent, const edm::ParameterSet &fastCalo, const edm::ParameterSet &MuonECALPars, const edm::ParameterSet &MuonHCALPars, const edm::ParameterSet &fastGflash)
 
CaloGeometryHelpergetCalorimeter () const
 
FastHFShowerLibrarygetHFShowerLibrary () const
 
void loadFromEcalBarrel (edm::PCaloHitContainer &c) const
 
void loadFromEcalEndcap (edm::PCaloHitContainer &c) const
 
void loadFromHcal (edm::PCaloHitContainer &c) const
 
void loadFromPreshower (edm::PCaloHitContainer &c) const
 
void loadMuonSimTracks (edm::SimTrackContainer &m) const
 
void reconstruct (RandomEngineAndDistribution const *)
 
 ~CalorimetryManager ()
 

Private Member Functions

void clean ()
 
void EMShowerSimulation (const FSimTrack &myTrack, RandomEngineAndDistribution const *)
 
void HDShowerSimulation (const FSimTrack &myTrack, RandomEngineAndDistribution const *)
 Hadronic Shower Simulation. More...
 
void MuonMipSimulation (const FSimTrack &myTrack, RandomEngineAndDistribution const *)
 
void readParameters (const edm::ParameterSet &fastCalo)
 
void reconstructHCAL (const FSimTrack &myTrack, RandomEngineAndDistribution const *)
 
void respCorr (double)
 
void updateECAL (const std::map< CaloHitID, float > &hitMap, int onEcal, int trackID=0, float corr=1.0)
 
void updateHCAL (const std::map< CaloHitID, float > &hitMap, int trackID=0, float corr=1.0)
 
void updatePreshower (const std::map< CaloHitID, float > &hitMap, int trackID=0, float corr=1.0)
 

Private Attributes

GammaFunctionGeneratoraGammaGenerator
 
const LandauFluctuationGeneratoraLandauGenerator
 
double aTerm
 
bool bFixedLength_
 
double bTerm
 
double crackPadSurvivalProbability_
 
bool debug_
 
std::vector< std::pair
< CaloHitID, float > > 
EBMapping_
 
std::unique_ptr
< KKCorrectionFactors
ecalCorrection
 
bool EcalDigitizer_
 
double ecorr
 
std::vector< std::pair
< CaloHitID, float > > 
EEMapping_
 
std::vector< std::pair
< CaloHitID, float > > 
ESMapping_
 
std::vector< unsigned int > evtsToDebug_
 
int gridSize_
 
bool HcalDigitizer_
 
double hcorr
 
int hdGridSize_
 
int hdSimMethod_
 
std::vector< std::pair
< CaloHitID, float > > 
HMapping_
 
int ietaShiftHB_
 
int ietaShiftHE_
 
int ietaShiftHF_
 
int ietaShiftHO_
 
bool initialized_
 
std::vector< double > k_e
 
std::vector< double > k_h
 
std::vector< double > mipValues_
 
std::vector< FSimTrackmuonSimTracks
 
CaloGeometryHelpermyCalorimeter_
 
RawParticle myElec
 A few pointers to save time. More...
 
HCALResponsemyHDResponse_
 
HistosmyHistos
 
HSParametersmyHSParameters_
 
RawParticle myPart
 
RawParticle myPosi
 
FSimEventmySimEvent
 
int optionHDSim_
 
std::vector< double > p_knots
 
double pulledPadSurvivalProbability_
 
double radiusFactorEB_
 
double radiusFactorEE_
 
std::vector< double > radiusPreshowerCorrections_
 
double RCFactor_
 
std::vector< double > rsp
 
double RTFactor_
 
std::vector< double > samplingHBHE_
 
std::vector< double > samplingHF_
 
std::vector< double > samplingHO_
 
bool simulatePreshower_
 
double spotFraction_
 
GflashAntiProtonShowerProfiletheAntiProtonProfile
 
std::vector< double > theCoreIntervals_
 
FastHFShowerLibrarytheHFShowerLibrary
 
MaterialEffectstheMuonEcalEffects
 
MaterialEffectstheMuonHcalEffects
 
GflashPiKShowerProfilethePiKProfile
 
GflashHadronShowerProfiletheProfile
 
GflashProtonShowerProfiletheProtonProfile
 
std::vector< double > theTailIntervals_
 
std::vector< double > timeShiftHB_
 
std::vector< double > timeShiftHE_
 
std::vector< double > timeShiftHF_
 
std::vector< double > timeShiftHO_
 
bool unfoldedMode_
 
bool useCorrectionSL
 
bool useShowerLibrary
 

Static Private Attributes

static std::vector< std::pair
< int, float > > 
myZero_
 

Detailed Description

Definition at line 46 of file CalorimetryManager.h.

Constructor & Destructor Documentation

CalorimetryManager::CalorimetryManager ( )

Definition at line 70 of file CalorimetryManager.cc.

CalorimetryManager::CalorimetryManager ( FSimEvent aSimEvent,
const edm::ParameterSet fastCalo,
const edm::ParameterSet MuonECALPars,
const edm::ParameterSet MuonHCALPars,
const edm::ParameterSet fastGflash 
)

Definition at line 76 of file CalorimetryManager.cc.

CalorimetryManager::~CalorimetryManager ( )

Definition at line 159 of file CalorimetryManager.cc.

Member Function Documentation

void CalorimetryManager::clean ( )
private

Definition at line 150 of file CalorimetryManager.cc.

void CalorimetryManager::EMShowerSimulation ( const FSimTrack myTrack,
RandomEngineAndDistribution const *  random 
)
private

Definition at line 249 of file CalorimetryManager.cc.

CaloGeometryHelper* CalorimetryManager::getCalorimeter ( ) const
inline

Definition at line 61 of file CalorimetryManager.h.

FastHFShowerLibrary* CalorimetryManager::getHFShowerLibrary ( ) const
inline

Definition at line 64 of file CalorimetryManager.h.

void CalorimetryManager::HDShowerSimulation ( const FSimTrack myTrack,
RandomEngineAndDistribution const *  random 
)
private

Hadronic Shower Simulation.

Definition at line 554 of file CalorimetryManager.cc.

void CalorimetryManager::loadFromEcalBarrel ( edm::PCaloHitContainer c) const

Definition at line 1355 of file CalorimetryManager.cc.

void CalorimetryManager::loadFromEcalEndcap ( edm::PCaloHitContainer c) const

Definition at line 1363 of file CalorimetryManager.cc.

void CalorimetryManager::loadFromHcal ( edm::PCaloHitContainer c) const

Definition at line 1371 of file CalorimetryManager.cc.

void CalorimetryManager::loadFromPreshower ( edm::PCaloHitContainer c) const

Definition at line 1382 of file CalorimetryManager.cc.

void CalorimetryManager::loadMuonSimTracks ( edm::SimTrackContainer m) const

Definition at line 1392 of file CalorimetryManager.cc.

void CalorimetryManager::MuonMipSimulation ( const FSimTrack myTrack,
RandomEngineAndDistribution const *  random 
)
private

// /// TEMPORARY First attempt to include HCAL (with straight-line extrapolation):

Definition at line 857 of file CalorimetryManager.cc.

void CalorimetryManager::readParameters ( const edm::ParameterSet fastCalo)
private

Definition at line 1083 of file CalorimetryManager.cc.

void CalorimetryManager::reconstruct ( RandomEngineAndDistribution const *  random)

Definition at line 172 of file CalorimetryManager.cc.

void CalorimetryManager::reconstructHCAL ( const FSimTrack myTrack,
RandomEngineAndDistribution const *  random 
)
private

Definition at line 490 of file CalorimetryManager.cc.

void CalorimetryManager::respCorr ( double  p)
private

Definition at line 1211 of file CalorimetryManager.cc.

void CalorimetryManager::updateECAL ( const std::map< CaloHitID, float > &  hitMap,
int  onEcal,
int  trackID = 0,
float  corr = 1.0 
)
private

Definition at line 1259 of file CalorimetryManager.cc.

void CalorimetryManager::updateHCAL ( const std::map< CaloHitID, float > &  hitMap,
int  trackID = 0,
float  corr = 1.0 
)
private

Definition at line 1294 of file CalorimetryManager.cc.

void CalorimetryManager::updatePreshower ( const std::map< CaloHitID, float > &  hitMap,
int  trackID = 0,
float  corr = 1.0 
)
private

Definition at line 1338 of file CalorimetryManager.cc.

Member Data Documentation

GammaFunctionGenerator* CalorimetryManager::aGammaGenerator
private

Definition at line 154 of file CalorimetryManager.h.

const LandauFluctuationGenerator* CalorimetryManager::aLandauGenerator
private

Definition at line 153 of file CalorimetryManager.h.

double CalorimetryManager::aTerm
private

Definition at line 143 of file CalorimetryManager.h.

bool CalorimetryManager::bFixedLength_
private

Definition at line 179 of file CalorimetryManager.h.

double CalorimetryManager::bTerm
private

Definition at line 143 of file CalorimetryManager.h.

double CalorimetryManager::crackPadSurvivalProbability_
private

Definition at line 138 of file CalorimetryManager.h.

bool CalorimetryManager::debug_
private

Definition at line 114 of file CalorimetryManager.h.

std::vector<std::pair<CaloHitID,float> > CalorimetryManager::EBMapping_
private

Definition at line 109 of file CalorimetryManager.h.

std::unique_ptr<KKCorrectionFactors> CalorimetryManager::ecalCorrection
private

Definition at line 192 of file CalorimetryManager.h.

bool CalorimetryManager::EcalDigitizer_
private

Definition at line 120 of file CalorimetryManager.h.

double CalorimetryManager::ecorr
private

Definition at line 164 of file CalorimetryManager.h.

std::vector<std::pair<CaloHitID,float> > CalorimetryManager::EEMapping_
private

Definition at line 110 of file CalorimetryManager.h.

std::vector<std::pair<CaloHitID,float> > CalorimetryManager::ESMapping_
private

Definition at line 112 of file CalorimetryManager.h.

std::vector<unsigned int> CalorimetryManager::evtsToDebug_
private

Definition at line 115 of file CalorimetryManager.h.

int CalorimetryManager::gridSize_
private

Definition at line 145 of file CalorimetryManager.h.

bool CalorimetryManager::HcalDigitizer_
private

Definition at line 121 of file CalorimetryManager.h.

double CalorimetryManager::hcorr
private

Definition at line 165 of file CalorimetryManager.h.

int CalorimetryManager::hdGridSize_
private

Definition at line 149 of file CalorimetryManager.h.

int CalorimetryManager::hdSimMethod_
private

Definition at line 149 of file CalorimetryManager.h.

std::vector<std::pair<CaloHitID,float> > CalorimetryManager::HMapping_
private

Definition at line 111 of file CalorimetryManager.h.

int CalorimetryManager::ietaShiftHB_
private

Definition at line 125 of file CalorimetryManager.h.

int CalorimetryManager::ietaShiftHE_
private

Definition at line 125 of file CalorimetryManager.h.

int CalorimetryManager::ietaShiftHF_
private

Definition at line 125 of file CalorimetryManager.h.

int CalorimetryManager::ietaShiftHO_
private

Definition at line 125 of file CalorimetryManager.h.

bool CalorimetryManager::initialized_
private

Definition at line 168 of file CalorimetryManager.h.

std::vector<double> CalorimetryManager::k_e
private

Definition at line 162 of file CalorimetryManager.h.

std::vector<double> CalorimetryManager::k_h
private

Definition at line 163 of file CalorimetryManager.h.

std::vector<double> CalorimetryManager::mipValues_
private

Definition at line 144 of file CalorimetryManager.h.

std::vector<FSimTrack> CalorimetryManager::muonSimTracks
private

Definition at line 170 of file CalorimetryManager.h.

CaloGeometryHelper* CalorimetryManager::myCalorimeter_
private

Definition at line 102 of file CalorimetryManager.h.

RawParticle CalorimetryManager::myElec
private

A few pointers to save time.

Definition at line 132 of file CalorimetryManager.h.

HCALResponse* CalorimetryManager::myHDResponse_
private

Definition at line 106 of file CalorimetryManager.h.

Histos* CalorimetryManager::myHistos
private

Definition at line 104 of file CalorimetryManager.h.

HSParameters* CalorimetryManager::myHSParameters_
private

Definition at line 107 of file CalorimetryManager.h.

RawParticle CalorimetryManager::myPart
private

Definition at line 134 of file CalorimetryManager.h.

RawParticle CalorimetryManager::myPosi
private

Definition at line 133 of file CalorimetryManager.h.

FSimEvent* CalorimetryManager::mySimEvent
private

Definition at line 101 of file CalorimetryManager.h.

std::vector< std::pair< int, float > > CalorimetryManager::myZero_
staticprivate
Initial value:
= std::vector<std::pair<int,float> >
(1,std::pair<int,float>(0,0.))

Definition at line 156 of file CalorimetryManager.h.

int CalorimetryManager::optionHDSim_
private

Definition at line 149 of file CalorimetryManager.h.

std::vector<double> CalorimetryManager::p_knots
private

Definition at line 161 of file CalorimetryManager.h.

double CalorimetryManager::pulledPadSurvivalProbability_
private

Definition at line 137 of file CalorimetryManager.h.

double CalorimetryManager::radiusFactorEB_
private

Definition at line 141 of file CalorimetryManager.h.

double CalorimetryManager::radiusFactorEE_
private

Definition at line 141 of file CalorimetryManager.h.

std::vector<double> CalorimetryManager::radiusPreshowerCorrections_
private

Definition at line 142 of file CalorimetryManager.h.

double CalorimetryManager::RCFactor_
private

Definition at line 147 of file CalorimetryManager.h.

std::vector<double> CalorimetryManager::rsp
private

Definition at line 160 of file CalorimetryManager.h.

double CalorimetryManager::RTFactor_
private

Definition at line 147 of file CalorimetryManager.h.

std::vector<double> CalorimetryManager::samplingHBHE_
private

Definition at line 122 of file CalorimetryManager.h.

std::vector<double> CalorimetryManager::samplingHF_
private

Definition at line 123 of file CalorimetryManager.h.

std::vector<double> CalorimetryManager::samplingHO_
private

Definition at line 124 of file CalorimetryManager.h.

bool CalorimetryManager::simulatePreshower_
private

Definition at line 150 of file CalorimetryManager.h.

double CalorimetryManager::spotFraction_
private

Definition at line 139 of file CalorimetryManager.h.

GflashAntiProtonShowerProfile* CalorimetryManager::theAntiProtonProfile
private

Definition at line 185 of file CalorimetryManager.h.

std::vector<double> CalorimetryManager::theCoreIntervals_
private

Definition at line 146 of file CalorimetryManager.h.

FastHFShowerLibrary* CalorimetryManager::theHFShowerLibrary
private

Definition at line 190 of file CalorimetryManager.h.

MaterialEffects* CalorimetryManager::theMuonEcalEffects
private

Definition at line 171 of file CalorimetryManager.h.

MaterialEffects* CalorimetryManager::theMuonHcalEffects
private

Definition at line 172 of file CalorimetryManager.h.

GflashPiKShowerProfile* CalorimetryManager::thePiKProfile
private

Definition at line 183 of file CalorimetryManager.h.

GflashHadronShowerProfile* CalorimetryManager::theProfile
private

Definition at line 182 of file CalorimetryManager.h.

GflashProtonShowerProfile* CalorimetryManager::theProtonProfile
private

Definition at line 184 of file CalorimetryManager.h.

std::vector<double> CalorimetryManager::theTailIntervals_
private

Definition at line 146 of file CalorimetryManager.h.

std::vector<double> CalorimetryManager::timeShiftHB_
private

Definition at line 126 of file CalorimetryManager.h.

std::vector<double> CalorimetryManager::timeShiftHE_
private

Definition at line 127 of file CalorimetryManager.h.

std::vector<double> CalorimetryManager::timeShiftHF_
private

Definition at line 128 of file CalorimetryManager.h.

std::vector<double> CalorimetryManager::timeShiftHO_
private

Definition at line 129 of file CalorimetryManager.h.

bool CalorimetryManager::unfoldedMode_
private

Definition at line 117 of file CalorimetryManager.h.

bool CalorimetryManager::useCorrectionSL
private

Definition at line 189 of file CalorimetryManager.h.

bool CalorimetryManager::useShowerLibrary
private

Definition at line 188 of file CalorimetryManager.h.