#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) | |
CaloGeometryHelper * | getCalorimeter () const |
FastHFShowerLibrary * | getHFShowerLibrary () 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) |
Static Private Attributes | |
static std::vector< std::pair < int, float > > | myZero_ |
Definition at line 44 of file CalorimetryManager.h.
CalorimetryManager::CalorimetryManager | ( | ) |
Definition at line 69 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 75 of file CalorimetryManager.cc.
References aGammaGenerator, aLandauGenerator, edm::ParameterSet::getParameter(), myCalorimeter_, myHDResponse_, myHSParameters_, readParameters(), theAntiProtonProfile, theHFShowerLibrary, theMuonEcalEffects, theMuonHcalEffects, thePiKProfile, theProfile, and theProtonProfile.
CalorimetryManager::~CalorimetryManager | ( | ) |
Definition at line 155 of file CalorimetryManager.cc.
References myCalorimeter_, myHDResponse_, theHFShowerLibrary, theMuonEcalEffects, theMuonHcalEffects, and theProfile.
|
private |
Definition at line 146 of file CalorimetryManager.cc.
References EBMapping_, EEMapping_, ESMapping_, HMapping_, and muonSimTracks.
Referenced by reconstruct().
|
private |
Definition at line 245 of file CalorimetryManager.cc.
References aGammaGenerator, aLandauGenerator, aTerm, bFixedLength_, bTerm, EMShower::compute(), crackPadSurvivalProbability_, debug_, HLT_25ns14e33_v1_cff::depth, GetRecoTauVFromDQM_MC_cff::dir2, alignCSCRings::e, FSimTrack::ecalEntrance(), Calorimeter::ecalProperties(), RandomEngineAndDistribution::flatShoot(), CaloGeometryHelper::getClosestCell(), PreshowerHitMaker::getHits(), HcalHitMaker::getHits(), EcalHitMaker::getHits(), EMShower::getMaximumOfShower(), gridSize_, FSimTrack::hcalEntrance(), Calorimeter::hcalProperties(), FSimTrack::id(), FSimTrack::layer1Entrance(), Calorimeter::layer1Properties(), FSimTrack::layer2Entrance(), Calorimeter::layer2Properties(), cmsBatch::log, mipValues_, myCalorimeter_, myElec, myPart, myPosi, NULL, FSimTrack::onEcal(), FSimTrack::onHcal(), FSimTrack::onLayer1(), FSimTrack::onLayer2(), pulledPadSurvivalProbability_, radiusFactorEB_, radiusFactorEE_, ECALProperties::radLenIncm(), RCFactor_, RTFactor_, EcalHitMaker::setCrackPadSurvivalProbability(), EMShower::setGrid(), EMShower::setHcal(), PreshowerHitMaker::setMipEnergy(), EMShower::setPreshower(), EcalHitMaker::setPreshowerPresent(), EcalHitMaker::setPulledPadSurvivalProbability(), EcalHitMaker::setRadiusFactor(), EcalHitMaker::setTrackParameters(), RawParticle::setVertex(), simulatePreshower_, findQualityFiles::size, theCoreIntervals_, theTailIntervals_, CoreSimTrack::type(), updateECAL(), updateHCAL(), updatePreshower(), RawParticle::vertex(), and histoStyle::weight.
Referenced by reconstruct().
|
inline |
Definition at line 59 of file CalorimetryManager.h.
References myCalorimeter_.
Referenced by FamosManager::setupGeometryAndField().
|
inline |
Definition at line 62 of file CalorimetryManager.h.
References theHFShowerLibrary.
Referenced by FamosManager::setupGeometryAndField().
|
private |
Hadronic Shower Simulation.
Definition at line 543 of file CalorimetryManager.cc.
References funct::abs(), HcalHitMaker::addHit(), RecoTauCleanerPlugins::charge, FSimTrack::charge(), HFShower::compute(), HDShower::compute(), HDRShower::computeShower(), HCALResponse::correctHF(), debug_, FSimTrack::ecalEntrance(), Calorimeter::ecalProperties(), ecorr, Gflash::getCalorimeterNumber(), CaloGeometryHelper::getClosestCell(), CaloSubdetectorGeometry::getGeometry(), GflashHadronShowerProfile::getGflashHitList(), GflashHadronShowerProfile::getGflashShowino(), GflashTrajectory::getGflashTrajectoryPoint(), HCALResponse::getHCALEnergyResponse(), Calorimeter::getHcalGeometry(), GflashShowino::getHelix(), HcalHitMaker::getHits(), FastHFShowerLibrary::getHitsMap(), HDShower::getmip(), HCALResponse::getMIPfraction(), GflashShowino::getPathLengthAtShower(), GflashShowino::getPathLengthOnEcal(), CaloCellGeometry::getPosition(), GeV, GflashHadronShowerProfile::hadronicParameterization(), FSimTrack::hcalEntrance(), Calorimeter::hcalProperties(), hcorr, hdGridSize_, hdSimMethod_, FSimTrack::id(), GflashHadronShowerProfile::initialize(), Gflash::intLength, Gflash::kENCA, Gflash::kESPM, Gflash::kHB, Gflash::kHE, Gflash::kNULL, GflashHadronShowerProfile::loadParameters(), PV3DBase< T, PVType, FrameType >::mag(), bookConverter::max, FSimTrack::momentum(), myCalorimeter_, myHDResponse_, myHSParameters_, myPart, DetId::null(), FSimTrack::onEcal(), FSimTrack::onHcal(), FSimTrack::onVFcal(), optionHDSim_, HLT_25ns14e33_v1_cff::particleType, random, DetId::rawId(), FastHFShowerLibrary::recoHFShowerLibrary(), respCorr(), HCALResponse::responseHCAL(), HcalHitMaker::setDepth(), HcalHitMaker::setSpotEnergy(), EcalHitMaker::setTrackParameters(), ntuplemaker::status, theAntiProtonProfile, theHFShowerLibrary, thePiKProfile, theProfile, theProtonProfile, CoreSimTrack::type(), updateECAL(), updateHCAL(), useShowerLibrary, RawParticle::vertex(), and FSimTrack::vfcalEntrance().
Referenced by reconstruct().
void CalorimetryManager::loadFromEcalBarrel | ( | edm::PCaloHitContainer & | c | ) | const |
Definition at line 1344 of file CalorimetryManager.cc.
References EBMapping_, plotBeamSpotDB::first, i, edm::second(), and EBDetId::unhashIndex().
void CalorimetryManager::loadFromEcalEndcap | ( | edm::PCaloHitContainer & | c | ) | const |
Definition at line 1352 of file CalorimetryManager.cc.
References EEMapping_, plotBeamSpotDB::first, i, edm::second(), and EEDetId::unhashIndex().
void CalorimetryManager::loadFromHcal | ( | edm::PCaloHitContainer & | c | ) | const |
Definition at line 1360 of file CalorimetryManager.cc.
References plotBeamSpotDB::first, HMapping_, i, and edm::second().
void CalorimetryManager::loadFromPreshower | ( | edm::PCaloHitContainer & | c | ) | const |
Definition at line 1369 of file CalorimetryManager.cc.
References ESMapping_, plotBeamSpotDB::first, and i.
void CalorimetryManager::loadMuonSimTracks | ( | edm::SimTrackContainer & | m | ) | const |
Definition at line 1379 of file CalorimetryManager.cc.
References funct::abs(), i, muonSimTracks, and findQualityFiles::size.
|
private |
// /// TEMPORARY First attempt to include HCAL (with straight-line extrapolation):
Definition at line 846 of file CalorimetryManager.cc.
References HcalHitMaker::addHit(), RecoTauCleanerPlugins::charge, FSimTrack::charge(), debug_, EnergyLossSimulator::deltaMom(), FSimTrack::ecalEntrance(), relval_parameters_module::energy, MaterialEffects::energyLossSimulator(), CaloGeometryHelper::getClosestCell(), HcalHitMaker::getHits(), CaloSegment::HCAL, FSimTrack::hcalEntrance(), hdGridSize_, FSimTrack::id(), FSimTrack::momentum(), muonSimTracks, myCalorimeter_, myPart, DetId::null(), FSimTrack::onEcal(), FSimTrack::onHcal(), FSimTrack::onVFcal(), CaloSegment::PbWO4, random, reconstructHCAL(), RawParticle::setID(), HcalHitMaker::setSpotEnergy(), SimTrack::setTkMomentum(), SimTrack::setTkPosition(), EcalHitMaker::setTrackParameters(), theMuonEcalEffects, theMuonHcalEffects, updateECAL(), updateHCAL(), MaterialEffectsSimulator::updateState(), RawParticle::vertex(), and FSimTrack::vfcalEntrance().
Referenced by reconstruct().
|
private |
Definition at line 1072 of file CalorimetryManager.cc.
References aTerm, bFixedLength_, bTerm, crackPadSurvivalProbability_, debug_, EcalDigitizer_, evtsToDebug_, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), gridSize_, HcalDigitizer_, hdGridSize_, hdSimMethod_, i, ietaShiftHB_, ietaShiftHE_, ietaShiftHF_, ietaShiftHO_, k_e, k_h, mipValues_, optionHDSim_, p_knots, pulledPadSurvivalProbability_, radiusFactorEB_, radiusFactorEE_, radiusPreshowerCorrections_, RCFactor_, rsp, RTFactor_, samplingHBHE_, samplingHF_, samplingHO_, simulatePreshower_, spotFraction_, theCoreIntervals_, theTailIntervals_, timeShiftHB_, timeShiftHE_, timeShiftHF_, timeShiftHO_, useCorrectionSL, and useShowerLibrary.
Referenced by CalorimetryManager().
void CalorimetryManager::reconstruct | ( | RandomEngineAndDistribution const * | random | ) |
Definition at line 168 of file CalorimetryManager.cc.
References funct::abs(), clean(), HCALResponse::correctHF(), gather_cfg::cout, debug_, EMShowerSimulation(), edm::EventID::event(), evtsToDebug_, spr::find(), FastHFShowerLibrary::getHitsMap(), FSimTrack::hcalEntrance(), HDShowerSimulation(), FSimEvent::id(), FSimTrack::id(), initialized_, MuonMipSimulation(), myCalorimeter_, myHDResponse_, mySimEvent, FSimTrack::noEndVertex(), FSimEvent::nTracks(), FSimTrack::onEcal(), FSimTrack::onHcal(), FSimTrack::onVFcal(), optionHDSim_, sysUtil::pid, CaloGeometryHelper::preshowerPresent(), FBaseSimEvent::print(), FastHFShowerLibrary::recoHFShowerLibrary(), reconstructHCAL(), simulatePreshower_, theHFShowerLibrary, FBaseSimEvent::track(), CoreSimTrack::type(), updateHCAL(), and useShowerLibrary.
Referenced by FamosManager::reconstruct().
|
private |
Definition at line 479 of file CalorimetryManager.cc.
References funct::abs(), debug_, CaloGeometryHelper::getClosestCell(), CaloSubdetectorGeometry::getGeometry(), HCALResponse::getHCALEnergyResponse(), Calorimeter::getHcalGeometry(), CaloCellGeometry::getPosition(), FSimTrack::hcalEntrance(), FSimTrack::id(), PV3DBase< T, PVType, FrameType >::mag(), myCalorimeter_, myHDResponse_, FSimTrack::onHcal(), sysUtil::pid, DetId::rawId(), HCALResponse::responseHCAL(), CoreSimTrack::type(), updateHCAL(), RawParticle::vertex(), and FSimTrack::vfcalEntrance().
Referenced by MuonMipSimulation(), and reconstruct().
|
private |
Definition at line 1200 of file CalorimetryManager.cc.
References debug_, ecorr, hcorr, i, k_e, k_h, and p_knots.
Referenced by HDShowerSimulation().
|
private |
Definition at line 1248 of file CalorimetryManager.cc.
References corr, EBMapping_, EEMapping_, and relval_parameters_module::energy.
Referenced by EMShowerSimulation(), HDShowerSimulation(), and MuonMipSimulation().
|
private |
Definition at line 1283 of file CalorimetryManager.cc.
References corr, HcalDetId::depth(), relval_parameters_module::energy, HCALResponse::getCorrHF(), HcalBarrel, HcalDigitizer_, HcalEndcap, HcalForward, HcalOuter, HMapping_, HcalDetId::ietaAbs(), ietaShiftHB_, ietaShiftHE_, ietaShiftHF_, ietaShiftHO_, myHDResponse_, samplingHBHE_, samplingHF_, samplingHO_, DetId::subdetId(), cond::rpcobgas::time, timeShiftHB_, timeShiftHE_, timeShiftHF_, timeShiftHO_, useCorrectionSL, and useShowerLibrary.
Referenced by EMShowerSimulation(), HDShowerSimulation(), MuonMipSimulation(), reconstruct(), and reconstructHCAL().
|
private |
Definition at line 1327 of file CalorimetryManager.cc.
References corr, relval_parameters_module::energy, and ESMapping_.
Referenced by EMShowerSimulation().
|
private |
Definition at line 152 of file CalorimetryManager.h.
Referenced by CalorimetryManager(), and EMShowerSimulation().
|
private |
Definition at line 151 of file CalorimetryManager.h.
Referenced by CalorimetryManager(), and EMShowerSimulation().
|
private |
Definition at line 141 of file CalorimetryManager.h.
Referenced by EMShowerSimulation(), and readParameters().
|
private |
Definition at line 177 of file CalorimetryManager.h.
Referenced by EMShowerSimulation(), and readParameters().
|
private |
Definition at line 141 of file CalorimetryManager.h.
Referenced by EMShowerSimulation(), and readParameters().
|
private |
Definition at line 136 of file CalorimetryManager.h.
Referenced by EMShowerSimulation(), and readParameters().
|
private |
Definition at line 112 of file CalorimetryManager.h.
Referenced by EMShowerSimulation(), HDShowerSimulation(), MuonMipSimulation(), readParameters(), reconstruct(), reconstructHCAL(), and respCorr().
|
private |
Definition at line 107 of file CalorimetryManager.h.
Referenced by clean(), loadFromEcalBarrel(), and updateECAL().
|
private |
Definition at line 118 of file CalorimetryManager.h.
Referenced by readParameters().
|
private |
Definition at line 162 of file CalorimetryManager.h.
Referenced by HDShowerSimulation(), and respCorr().
|
private |
Definition at line 108 of file CalorimetryManager.h.
Referenced by clean(), loadFromEcalEndcap(), and updateECAL().
|
private |
Definition at line 110 of file CalorimetryManager.h.
Referenced by clean(), loadFromPreshower(), and updatePreshower().
|
private |
Definition at line 113 of file CalorimetryManager.h.
Referenced by readParameters(), and reconstruct().
|
private |
Definition at line 143 of file CalorimetryManager.h.
Referenced by EMShowerSimulation(), and readParameters().
|
private |
Definition at line 119 of file CalorimetryManager.h.
Referenced by readParameters(), and updateHCAL().
|
private |
Definition at line 163 of file CalorimetryManager.h.
Referenced by HDShowerSimulation(), and respCorr().
|
private |
Definition at line 147 of file CalorimetryManager.h.
Referenced by HDShowerSimulation(), MuonMipSimulation(), and readParameters().
|
private |
Definition at line 147 of file CalorimetryManager.h.
Referenced by HDShowerSimulation(), and readParameters().
|
private |
Definition at line 109 of file CalorimetryManager.h.
Referenced by clean(), loadFromHcal(), and updateHCAL().
|
private |
Definition at line 123 of file CalorimetryManager.h.
Referenced by readParameters(), and updateHCAL().
|
private |
Definition at line 123 of file CalorimetryManager.h.
Referenced by readParameters(), and updateHCAL().
|
private |
Definition at line 123 of file CalorimetryManager.h.
Referenced by readParameters(), and updateHCAL().
|
private |
Definition at line 123 of file CalorimetryManager.h.
Referenced by readParameters(), and updateHCAL().
|
private |
Definition at line 166 of file CalorimetryManager.h.
Referenced by reconstruct().
|
private |
Definition at line 160 of file CalorimetryManager.h.
Referenced by readParameters(), and respCorr().
|
private |
Definition at line 161 of file CalorimetryManager.h.
Referenced by readParameters(), and respCorr().
|
private |
Definition at line 142 of file CalorimetryManager.h.
Referenced by EMShowerSimulation(), and readParameters().
|
private |
Definition at line 168 of file CalorimetryManager.h.
Referenced by clean(), loadMuonSimTracks(), and MuonMipSimulation().
|
private |
Definition at line 100 of file CalorimetryManager.h.
Referenced by CalorimetryManager(), EMShowerSimulation(), getCalorimeter(), HDShowerSimulation(), MuonMipSimulation(), reconstruct(), reconstructHCAL(), and ~CalorimetryManager().
|
private |
A few pointers to save time.
Definition at line 130 of file CalorimetryManager.h.
Referenced by EMShowerSimulation().
|
private |
Definition at line 104 of file CalorimetryManager.h.
Referenced by CalorimetryManager(), HDShowerSimulation(), reconstruct(), reconstructHCAL(), updateHCAL(), and ~CalorimetryManager().
|
private |
Definition at line 102 of file CalorimetryManager.h.
|
private |
Definition at line 105 of file CalorimetryManager.h.
Referenced by CalorimetryManager(), and HDShowerSimulation().
|
private |
Definition at line 132 of file CalorimetryManager.h.
Referenced by EMShowerSimulation(), HDShowerSimulation(), and MuonMipSimulation().
|
private |
Definition at line 131 of file CalorimetryManager.h.
Referenced by EMShowerSimulation().
|
private |
Definition at line 99 of file CalorimetryManager.h.
Referenced by reconstruct().
|
staticprivate |
Definition at line 154 of file CalorimetryManager.h.
|
private |
Definition at line 147 of file CalorimetryManager.h.
Referenced by HDShowerSimulation(), readParameters(), and reconstruct().
|
private |
Definition at line 159 of file CalorimetryManager.h.
Referenced by readParameters(), and respCorr().
|
private |
Definition at line 135 of file CalorimetryManager.h.
Referenced by EMShowerSimulation(), and readParameters().
|
private |
Definition at line 139 of file CalorimetryManager.h.
Referenced by EMShowerSimulation(), and readParameters().
|
private |
Definition at line 139 of file CalorimetryManager.h.
Referenced by EMShowerSimulation(), and readParameters().
|
private |
Definition at line 140 of file CalorimetryManager.h.
Referenced by readParameters().
|
private |
Definition at line 145 of file CalorimetryManager.h.
Referenced by EMShowerSimulation(), and readParameters().
|
private |
Definition at line 158 of file CalorimetryManager.h.
Referenced by readParameters().
|
private |
Definition at line 145 of file CalorimetryManager.h.
Referenced by EMShowerSimulation(), and readParameters().
|
private |
Definition at line 120 of file CalorimetryManager.h.
Referenced by readParameters(), and updateHCAL().
|
private |
Definition at line 121 of file CalorimetryManager.h.
Referenced by readParameters(), and updateHCAL().
|
private |
Definition at line 122 of file CalorimetryManager.h.
Referenced by readParameters(), and updateHCAL().
|
private |
Definition at line 148 of file CalorimetryManager.h.
Referenced by EMShowerSimulation(), readParameters(), and reconstruct().
|
private |
Definition at line 137 of file CalorimetryManager.h.
Referenced by readParameters().
|
private |
Definition at line 183 of file CalorimetryManager.h.
Referenced by CalorimetryManager(), and HDShowerSimulation().
|
private |
Definition at line 144 of file CalorimetryManager.h.
Referenced by EMShowerSimulation(), and readParameters().
|
private |
Definition at line 188 of file CalorimetryManager.h.
Referenced by CalorimetryManager(), getHFShowerLibrary(), HDShowerSimulation(), reconstruct(), and ~CalorimetryManager().
|
private |
Definition at line 169 of file CalorimetryManager.h.
Referenced by CalorimetryManager(), MuonMipSimulation(), and ~CalorimetryManager().
|
private |
Definition at line 170 of file CalorimetryManager.h.
Referenced by CalorimetryManager(), MuonMipSimulation(), and ~CalorimetryManager().
|
private |
Definition at line 181 of file CalorimetryManager.h.
Referenced by CalorimetryManager(), and HDShowerSimulation().
|
private |
Definition at line 180 of file CalorimetryManager.h.
Referenced by CalorimetryManager(), HDShowerSimulation(), and ~CalorimetryManager().
|
private |
Definition at line 182 of file CalorimetryManager.h.
Referenced by CalorimetryManager(), and HDShowerSimulation().
|
private |
Definition at line 144 of file CalorimetryManager.h.
Referenced by EMShowerSimulation(), and readParameters().
|
private |
Definition at line 124 of file CalorimetryManager.h.
Referenced by readParameters(), and updateHCAL().
|
private |
Definition at line 125 of file CalorimetryManager.h.
Referenced by readParameters(), and updateHCAL().
|
private |
Definition at line 126 of file CalorimetryManager.h.
Referenced by readParameters(), and updateHCAL().
|
private |
Definition at line 127 of file CalorimetryManager.h.
Referenced by readParameters(), and updateHCAL().
|
private |
Definition at line 115 of file CalorimetryManager.h.
|
private |
Definition at line 187 of file CalorimetryManager.h.
Referenced by readParameters(), and updateHCAL().
|
private |
Definition at line 186 of file CalorimetryManager.h.
Referenced by HDShowerSimulation(), readParameters(), reconstruct(), and updateHCAL().