#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 |
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 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, DQMStore::book1D(), DQMStore::book2D(), dbe, edm::ParameterSet::getParameter(), myCalorimeter_, myHDResponse_, myHSParameters_, cppFunctionSkipper::operator, readParameters(), DQMStore::setCurrentFolder(), theAntiProtonProfile, theMuonEcalEffects, theMuonHcalEffects, thePiKProfile, theProfile, theProtonProfile, and useDQM_.
CalorimetryManager::~CalorimetryManager | ( | ) |
Definition at line 180 of file CalorimetryManager.cc.
References myCalorimeter_, myHDResponse_, theMuonEcalEffects, theMuonHcalEffects, and theProfile.
|
private |
Definition at line 171 of file CalorimetryManager.cc.
References EBMapping_, EEMapping_, ESMapping_, HMapping_, and muonSimTracks.
Referenced by reconstruct().
|
private |
Definition at line 263 of file CalorimetryManager.cc.
References aGammaGenerator, aLandauGenerator, aTerm, bFixedLength_, bTerm, EMShower::compute(), crackPadSurvivalProbability_, dbe, debug_, 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(), fff_deleter::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().
|
private |
Hadronic Shower Simulation.
Definition at line 561 of file CalorimetryManager.cc.
References HcalHitMaker::addHit(), DeDxDiscriminatorTools::charge(), FSimTrack::charge(), HFShower::compute(), HDShower::compute(), HDRShower::computeShower(), dbe, 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(), HDShower::getmip(), HCALResponse::getMIPfraction(), GflashShowino::getPathLengthAtShower(), GflashShowino::getPathLengthOnEcal(), CaloCellGeometry::getPosition(), 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(), max(), FSimTrack::momentum(), myCalorimeter_, myHDResponse_, myHSParameters_, myPart, DetId::null(), FSimTrack::onEcal(), FSimTrack::onHcal(), FSimTrack::onVFcal(), optionHDSim_, random, DetId::rawId(), respCorr(), HCALResponse::responseHCAL(), HcalHitMaker::setDepth(), HcalHitMaker::setSpotEnergy(), EcalHitMaker::setTrackParameters(), ntuplemaker::status, theAntiProtonProfile, thePiKProfile, theProfile, theProtonProfile, CoreSimTrack::type(), updateECAL(), updateHCAL(), RawParticle::vertex(), and FSimTrack::vfcalEntrance().
Referenced by reconstruct().
void CalorimetryManager::loadFromEcalBarrel | ( | edm::PCaloHitContainer & | c | ) | const |
Definition at line 1345 of file CalorimetryManager.cc.
References EBMapping_, first, i, edm::second(), and EBDetId::unhashIndex().
void CalorimetryManager::loadFromEcalEndcap | ( | edm::PCaloHitContainer & | c | ) | const |
Definition at line 1353 of file CalorimetryManager.cc.
References EEMapping_, first, i, edm::second(), and EEDetId::unhashIndex().
void CalorimetryManager::loadFromHcal | ( | edm::PCaloHitContainer & | c | ) | const |
Definition at line 1361 of file CalorimetryManager.cc.
References first, HMapping_, i, and edm::second().
void CalorimetryManager::loadFromPreshower | ( | edm::PCaloHitContainer & | c | ) | const |
Definition at line 1370 of file CalorimetryManager.cc.
References ESMapping_, first, and i.
void CalorimetryManager::loadMuonSimTracks | ( | edm::SimTrackContainer & | m | ) | const |
Definition at line 1380 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 855 of file CalorimetryManager.cc.
References HcalHitMaker::addHit(), DeDxDiscriminatorTools::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 1081 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_, and useDQM_.
Referenced by CalorimetryManager().
void CalorimetryManager::reconstruct | ( | RandomEngineAndDistribution const * | random | ) |
Definition at line 191 of file CalorimetryManager.cc.
References funct::abs(), clean(), gather_cfg::cout, debug_, EMShowerSimulation(), edm::EventID::event(), evtsToDebug_, spr::find(), HDShowerSimulation(), FSimEvent::id(), initialized_, MuonMipSimulation(), myCalorimeter_, mySimEvent, FSimTrack::noEndVertex(), FSimEvent::nTracks(), FSimTrack::onEcal(), FSimTrack::onHcal(), FSimTrack::onVFcal(), optionHDSim_, sysUtil::pid, CaloGeometryHelper::preshowerPresent(), FBaseSimEvent::print(), reconstructHCAL(), simulatePreshower_, FBaseSimEvent::track(), and CoreSimTrack::type().
Referenced by FamosManager::reconstruct().
|
private |
Definition at line 497 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 1206 of file CalorimetryManager.cc.
References debug_, ecorr, hcorr, i, k_e, k_h, and p_knots.
Referenced by HDShowerSimulation().
|
private |
Definition at line 1254 of file CalorimetryManager.cc.
References corr, EBMapping_, EEMapping_, and relval_parameters_module::energy.
Referenced by EMShowerSimulation(), HDShowerSimulation(), and MuonMipSimulation().
|
private |
Definition at line 1289 of file CalorimetryManager.cc.
References corr, HcalDetId::depth(), relval_parameters_module::energy, HcalBarrel, HcalDigitizer_, HcalEndcap, HcalForward, HcalOuter, HMapping_, HcalDetId::ietaAbs(), ietaShiftHB_, ietaShiftHE_, ietaShiftHF_, ietaShiftHO_, samplingHBHE_, samplingHF_, samplingHO_, DetId::subdetId(), cond::rpcobgas::time, timeShiftHB_, timeShiftHE_, timeShiftHF_, and timeShiftHO_.
Referenced by EMShowerSimulation(), HDShowerSimulation(), MuonMipSimulation(), and reconstructHCAL().
|
private |
Definition at line 1328 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 100 of file CalorimetryManager.h.
Referenced by CalorimetryManager(), EMShowerSimulation(), and HDShowerSimulation().
|
private |
Definition at line 111 of file CalorimetryManager.h.
Referenced by EMShowerSimulation(), HDShowerSimulation(), MuonMipSimulation(), readParameters(), reconstruct(), reconstructHCAL(), and respCorr().
|
private |
Definition at line 106 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 107 of file CalorimetryManager.h.
Referenced by clean(), loadFromEcalEndcap(), and updateECAL().
|
private |
Definition at line 109 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 108 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 97 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 103 of file CalorimetryManager.h.
Referenced by CalorimetryManager(), HDShowerSimulation(), reconstructHCAL(), and ~CalorimetryManager().
|
private |
Definition at line 99 of file CalorimetryManager.h.
|
private |
Definition at line 104 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 96 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 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 112 of file CalorimetryManager.h.
Referenced by CalorimetryManager(), and readParameters().