#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 46 of file CalorimetryManager.h.
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.
References aGammaGenerator, aLandauGenerator, ecalCorrection, edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), myCalorimeter_, myHDResponse_, myHSParameters_, readParameters(), theAntiProtonProfile, theHFShowerLibrary, theMuonEcalEffects, theMuonHcalEffects, thePiKProfile, theProfile, and theProtonProfile.
CalorimetryManager::~CalorimetryManager | ( | ) |
Definition at line 159 of file CalorimetryManager.cc.
References myCalorimeter_, myHDResponse_, theHFShowerLibrary, theMuonEcalEffects, theMuonHcalEffects, and theProfile.
|
private |
Definition at line 150 of file CalorimetryManager.cc.
References EBMapping_, EEMapping_, ESMapping_, HMapping_, and muonSimTracks.
Referenced by reconstruct().
|
private |
Definition at line 249 of file CalorimetryManager.cc.
References funct::abs(), aGammaGenerator, aLandauGenerator, aTerm, bFixedLength_, bTerm, EMShower::compute(), crackPadSurvivalProbability_, debug_, HLT_FULL_cff::depth, GetRecoTauVFromDQM_MC_cff::dir2, alignCSCRings::e, ecalCorrection, FSimTrack::ecalEntrance(), Calorimeter::ecalProperties(), RawParticle::eta(), 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(), dqm-mbProfile::log, mipValues_, myCalorimeter_, myElec, myPart, myPosi, NULL, FSimTrack::onEcal(), FSimTrack::onHcal(), FSimTrack::onLayer1(), FSimTrack::onLayer2(), pulledPadSurvivalProbability_, radiusFactorEB_, radiusFactorEE_, ECALProperties::radLenIncm(), RCFactor_, RTFactor_, pileupReCalc_HLTpaths::scale, 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 puppiForMET_cff::weight.
Referenced by reconstruct().
|
inline |
Definition at line 61 of file CalorimetryManager.h.
References myCalorimeter_.
Referenced by FamosManager::setupGeometryAndField().
|
inline |
Definition at line 64 of file CalorimetryManager.h.
References theHFShowerLibrary.
Referenced by FamosManager::setupGeometryAndField().
|
private |
Hadronic Shower Simulation.
Definition at line 554 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_FULL_cff::particleType, random, DetId::rawId(), FastHFShowerLibrary::recoHFShowerLibrary(), respCorr(), HCALResponse::responseHCAL(), HcalHitMaker::setDepth(), HcalHitMaker::setSpotEnergy(), EcalHitMaker::setTrackParameters(), mps_update::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 1355 of file CalorimetryManager.cc.
References EBMapping_, plotBeamSpotDB::first, i, edm::second(), and EBDetId::unhashIndex().
void CalorimetryManager::loadFromEcalEndcap | ( | edm::PCaloHitContainer & | c | ) | const |
Definition at line 1363 of file CalorimetryManager.cc.
References EEMapping_, plotBeamSpotDB::first, i, edm::second(), and EEDetId::unhashIndex().
void CalorimetryManager::loadFromHcal | ( | edm::PCaloHitContainer & | c | ) | const |
Definition at line 1371 of file CalorimetryManager.cc.
References plotBeamSpotDB::first, HMapping_, i, FastHFShowerLibrary::modifyDepth(), edm::second(), and theHFShowerLibrary.
void CalorimetryManager::loadFromPreshower | ( | edm::PCaloHitContainer & | c | ) | const |
Definition at line 1382 of file CalorimetryManager.cc.
References ESMapping_, plotBeamSpotDB::first, and i.
void CalorimetryManager::loadMuonSimTracks | ( | edm::SimTrackContainer & | m | ) | const |
Definition at line 1392 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 857 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 1083 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 172 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 490 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 1211 of file CalorimetryManager.cc.
References debug_, ecorr, hcorr, i, k_e, k_h, and p_knots.
Referenced by HDShowerSimulation().
|
private |
Definition at line 1259 of file CalorimetryManager.cc.
References corr, EBMapping_, EEMapping_, and relval_parameters_module::energy.
Referenced by EMShowerSimulation(), HDShowerSimulation(), and MuonMipSimulation().
|
private |
Definition at line 1294 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(), timeShiftHB_, timeShiftHE_, timeShiftHF_, timeShiftHO_, useCorrectionSL, and useShowerLibrary.
Referenced by EMShowerSimulation(), HDShowerSimulation(), MuonMipSimulation(), reconstruct(), and reconstructHCAL().
|
private |
Definition at line 1338 of file CalorimetryManager.cc.
References corr, relval_parameters_module::energy, and ESMapping_.
Referenced by EMShowerSimulation().
|
private |
Definition at line 154 of file CalorimetryManager.h.
Referenced by CalorimetryManager(), and EMShowerSimulation().
|
private |
Definition at line 153 of file CalorimetryManager.h.
Referenced by CalorimetryManager(), and EMShowerSimulation().
|
private |
Definition at line 143 of file CalorimetryManager.h.
Referenced by EMShowerSimulation(), and readParameters().
|
private |
Definition at line 179 of file CalorimetryManager.h.
Referenced by EMShowerSimulation(), and readParameters().
|
private |
Definition at line 143 of file CalorimetryManager.h.
Referenced by EMShowerSimulation(), and readParameters().
|
private |
Definition at line 138 of file CalorimetryManager.h.
Referenced by EMShowerSimulation(), and readParameters().
|
private |
Definition at line 114 of file CalorimetryManager.h.
Referenced by EMShowerSimulation(), HDShowerSimulation(), MuonMipSimulation(), readParameters(), reconstruct(), reconstructHCAL(), and respCorr().
|
private |
Definition at line 109 of file CalorimetryManager.h.
Referenced by clean(), loadFromEcalBarrel(), and updateECAL().
|
private |
Definition at line 192 of file CalorimetryManager.h.
Referenced by CalorimetryManager(), and EMShowerSimulation().
|
private |
Definition at line 120 of file CalorimetryManager.h.
Referenced by readParameters().
|
private |
Definition at line 164 of file CalorimetryManager.h.
Referenced by HDShowerSimulation(), and respCorr().
|
private |
Definition at line 110 of file CalorimetryManager.h.
Referenced by clean(), loadFromEcalEndcap(), and updateECAL().
|
private |
Definition at line 112 of file CalorimetryManager.h.
Referenced by clean(), loadFromPreshower(), and updatePreshower().
|
private |
Definition at line 115 of file CalorimetryManager.h.
Referenced by readParameters(), and reconstruct().
|
private |
Definition at line 145 of file CalorimetryManager.h.
Referenced by EMShowerSimulation(), and readParameters().
|
private |
Definition at line 121 of file CalorimetryManager.h.
Referenced by readParameters(), and updateHCAL().
|
private |
Definition at line 165 of file CalorimetryManager.h.
Referenced by HDShowerSimulation(), and respCorr().
|
private |
Definition at line 149 of file CalorimetryManager.h.
Referenced by HDShowerSimulation(), MuonMipSimulation(), and readParameters().
|
private |
Definition at line 149 of file CalorimetryManager.h.
Referenced by HDShowerSimulation(), and readParameters().
|
private |
Definition at line 111 of file CalorimetryManager.h.
Referenced by clean(), loadFromHcal(), and updateHCAL().
|
private |
Definition at line 125 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 125 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 168 of file CalorimetryManager.h.
Referenced by reconstruct().
|
private |
Definition at line 162 of file CalorimetryManager.h.
Referenced by readParameters(), and respCorr().
|
private |
Definition at line 163 of file CalorimetryManager.h.
Referenced by readParameters(), and respCorr().
|
private |
Definition at line 144 of file CalorimetryManager.h.
Referenced by EMShowerSimulation(), and readParameters().
|
private |
Definition at line 170 of file CalorimetryManager.h.
Referenced by clean(), loadMuonSimTracks(), and MuonMipSimulation().
|
private |
Definition at line 102 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 132 of file CalorimetryManager.h.
Referenced by EMShowerSimulation().
|
private |
Definition at line 106 of file CalorimetryManager.h.
Referenced by CalorimetryManager(), HDShowerSimulation(), reconstruct(), reconstructHCAL(), updateHCAL(), and ~CalorimetryManager().
|
private |
Definition at line 104 of file CalorimetryManager.h.
|
private |
Definition at line 107 of file CalorimetryManager.h.
Referenced by CalorimetryManager(), and HDShowerSimulation().
|
private |
Definition at line 134 of file CalorimetryManager.h.
Referenced by EMShowerSimulation(), HDShowerSimulation(), and MuonMipSimulation().
|
private |
Definition at line 133 of file CalorimetryManager.h.
Referenced by EMShowerSimulation().
|
private |
Definition at line 101 of file CalorimetryManager.h.
Referenced by reconstruct().
|
staticprivate |
Definition at line 156 of file CalorimetryManager.h.
|
private |
Definition at line 149 of file CalorimetryManager.h.
Referenced by HDShowerSimulation(), readParameters(), and reconstruct().
|
private |
Definition at line 161 of file CalorimetryManager.h.
Referenced by readParameters(), and respCorr().
|
private |
Definition at line 137 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 141 of file CalorimetryManager.h.
Referenced by EMShowerSimulation(), and readParameters().
|
private |
Definition at line 142 of file CalorimetryManager.h.
Referenced by readParameters().
|
private |
Definition at line 147 of file CalorimetryManager.h.
Referenced by EMShowerSimulation(), and readParameters().
|
private |
Definition at line 160 of file CalorimetryManager.h.
Referenced by readParameters().
|
private |
Definition at line 147 of file CalorimetryManager.h.
Referenced by EMShowerSimulation(), and readParameters().
|
private |
Definition at line 122 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 124 of file CalorimetryManager.h.
Referenced by readParameters(), and updateHCAL().
|
private |
Definition at line 150 of file CalorimetryManager.h.
Referenced by EMShowerSimulation(), readParameters(), and reconstruct().
|
private |
Definition at line 139 of file CalorimetryManager.h.
Referenced by readParameters().
|
private |
Definition at line 185 of file CalorimetryManager.h.
Referenced by CalorimetryManager(), and HDShowerSimulation().
|
private |
Definition at line 146 of file CalorimetryManager.h.
Referenced by EMShowerSimulation(), and readParameters().
|
private |
Definition at line 190 of file CalorimetryManager.h.
Referenced by CalorimetryManager(), getHFShowerLibrary(), HDShowerSimulation(), loadFromHcal(), reconstruct(), and ~CalorimetryManager().
|
private |
Definition at line 171 of file CalorimetryManager.h.
Referenced by CalorimetryManager(), MuonMipSimulation(), and ~CalorimetryManager().
|
private |
Definition at line 172 of file CalorimetryManager.h.
Referenced by CalorimetryManager(), MuonMipSimulation(), and ~CalorimetryManager().
|
private |
Definition at line 183 of file CalorimetryManager.h.
Referenced by CalorimetryManager(), and HDShowerSimulation().
|
private |
Definition at line 182 of file CalorimetryManager.h.
Referenced by CalorimetryManager(), HDShowerSimulation(), and ~CalorimetryManager().
|
private |
Definition at line 184 of file CalorimetryManager.h.
Referenced by CalorimetryManager(), and HDShowerSimulation().
|
private |
Definition at line 146 of file CalorimetryManager.h.
Referenced by EMShowerSimulation(), and readParameters().
|
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 128 of file CalorimetryManager.h.
Referenced by readParameters(), and updateHCAL().
|
private |
Definition at line 129 of file CalorimetryManager.h.
Referenced by readParameters(), and updateHCAL().
|
private |
Definition at line 117 of file CalorimetryManager.h.
|
private |
Definition at line 189 of file CalorimetryManager.h.
Referenced by readParameters(), and updateHCAL().
|
private |
Definition at line 188 of file CalorimetryManager.h.
Referenced by HDShowerSimulation(), readParameters(), reconstruct(), and updateHCAL().