#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, const RandomEngine *engine) | |
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 () |
~CalorimetryManager () | |
Private Member Functions | |
void | clean () |
void | EMShowerSimulation (const FSimTrack &myTrack) |
void | HDShowerSimulation (const FSimTrack &myTrack) |
Hadronic Shower Simulation. More... | |
void | MuonMipSimulation (const FSimTrack &myTrack) |
void | readParameters (const edm::ParameterSet &fastCalo) |
void | reconstructHCAL (const FSimTrack &myTrack) |
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, | ||
const RandomEngine * | engine | ||
) |
Definition at line 75 of file CalorimetryManager.cc.
References aGammaGenerator, aLandauGenerator, DQMStore::book1D(), DQMStore::book2D(), dbe, edm::ParameterSet::getParameter(), myCalorimeter_, myHDResponse_, myHSParameters_, cppFunctionSkipper::operator, random, readParameters(), DQMStore::setCurrentFolder(), theAntiProtonProfile, theMuonEcalEffects, theMuonHcalEffects, thePiKProfile, theProfile, theProtonProfile, and useDQM_.
CalorimetryManager::~CalorimetryManager | ( | ) |
Definition at line 182 of file CalorimetryManager.cc.
References myCalorimeter_, myHDResponse_, theMuonEcalEffects, theMuonHcalEffects, and theProfile.
|
private |
Definition at line 173 of file CalorimetryManager.cc.
References EBMapping_, EEMapping_, ESMapping_, HMapping_, and muonSimTracks.
Referenced by reconstruct().
|
private |
Definition at line 265 of file CalorimetryManager.cc.
References aGammaGenerator, aLandauGenerator, aTerm, bFixedLength_, bTerm, EMShower::compute(), crackPadSurvivalProbability_, dbe, debug_, alignCSCRings::e, FSimTrack::ecalEntrance(), Calorimeter::ecalProperties(), RandomEngine::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(), create_public_lumi_plots::log, mipValues_, myCalorimeter_, myElec, myPart, myPosi, NULL, FSimTrack::onEcal(), FSimTrack::onHcal(), FSimTrack::onLayer1(), FSimTrack::onLayer2(), pulledPadSurvivalProbability_, radiusFactorEB_, radiusFactorEE_, ECALProperties::radLenIncm(), random, 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 60 of file CalorimetryManager.h.
References myCalorimeter_.
Referenced by FamosManager::setupGeometryAndField().
|
private |
Hadronic Shower Simulation.
Definition at line 560 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(), 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 1339 of file CalorimetryManager.cc.
References EBMapping_, first, i, edm::second(), and EBDetId::unhashIndex().
void CalorimetryManager::loadFromEcalEndcap | ( | edm::PCaloHitContainer & | c | ) | const |
Definition at line 1347 of file CalorimetryManager.cc.
References EEMapping_, first, i, edm::second(), and EEDetId::unhashIndex().
void CalorimetryManager::loadFromHcal | ( | edm::PCaloHitContainer & | c | ) | const |
Definition at line 1355 of file CalorimetryManager.cc.
References first, HMapping_, i, and edm::second().
void CalorimetryManager::loadFromPreshower | ( | edm::PCaloHitContainer & | c | ) | const |
Definition at line 1364 of file CalorimetryManager.cc.
References ESMapping_, first, and i.
void CalorimetryManager::loadMuonSimTracks | ( | edm::SimTrackContainer & | m | ) | const |
Definition at line 1374 of file CalorimetryManager.cc.
References abs, i, muonSimTracks, and findQualityFiles::size.
|
private |
// /// TEMPORARY First attempt to include HCAL (with straight-line extrapolation):
Definition at line 849 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 1075 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 | ( | ) |
Definition at line 193 of file CalorimetryManager.cc.
References 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_, evf::utils::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 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(), evf::utils::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, 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 1322 of file CalorimetryManager.cc.
References corr, relval_parameters_module::energy, and ESMapping_.
Referenced by EMShowerSimulation().
|
private |
Definition at line 155 of file CalorimetryManager.h.
Referenced by CalorimetryManager(), and EMShowerSimulation().
|
private |
Definition at line 154 of file CalorimetryManager.h.
Referenced by CalorimetryManager(), and EMShowerSimulation().
|
private |
Definition at line 142 of file CalorimetryManager.h.
Referenced by EMShowerSimulation(), and readParameters().
|
private |
Definition at line 180 of file CalorimetryManager.h.
Referenced by EMShowerSimulation(), and readParameters().
|
private |
Definition at line 142 of file CalorimetryManager.h.
Referenced by EMShowerSimulation(), and readParameters().
|
private |
Definition at line 137 of file CalorimetryManager.h.
Referenced by EMShowerSimulation(), and readParameters().
|
private |
Definition at line 101 of file CalorimetryManager.h.
Referenced by CalorimetryManager(), EMShowerSimulation(), and HDShowerSimulation().
|
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 119 of file CalorimetryManager.h.
Referenced by readParameters().
|
private |
Definition at line 165 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 114 of file CalorimetryManager.h.
Referenced by readParameters(), and reconstruct().
|
private |
Definition at line 144 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 166 of file CalorimetryManager.h.
Referenced by HDShowerSimulation(), and respCorr().
|
private |
Definition at line 148 of file CalorimetryManager.h.
Referenced by HDShowerSimulation(), MuonMipSimulation(), and readParameters().
|
private |
Definition at line 148 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 124 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 124 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 169 of file CalorimetryManager.h.
Referenced by reconstruct().
|
private |
Definition at line 163 of file CalorimetryManager.h.
Referenced by readParameters(), and respCorr().
|
private |
Definition at line 164 of file CalorimetryManager.h.
Referenced by readParameters(), and respCorr().
|
private |
Definition at line 143 of file CalorimetryManager.h.
Referenced by EMShowerSimulation(), and readParameters().
|
private |
Definition at line 171 of file CalorimetryManager.h.
Referenced by clean(), loadMuonSimTracks(), and MuonMipSimulation().
|
private |
Definition at line 98 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 131 of file CalorimetryManager.h.
Referenced by EMShowerSimulation().
|
private |
Definition at line 104 of file CalorimetryManager.h.
Referenced by CalorimetryManager(), HDShowerSimulation(), reconstructHCAL(), and ~CalorimetryManager().
|
private |
Definition at line 100 of file CalorimetryManager.h.
|
private |
Definition at line 105 of file CalorimetryManager.h.
Referenced by CalorimetryManager(), and HDShowerSimulation().
|
private |
Definition at line 133 of file CalorimetryManager.h.
Referenced by EMShowerSimulation(), HDShowerSimulation(), and MuonMipSimulation().
|
private |
Definition at line 132 of file CalorimetryManager.h.
Referenced by EMShowerSimulation().
|
private |
Definition at line 97 of file CalorimetryManager.h.
Referenced by reconstruct().
|
staticprivate |
Definition at line 157 of file CalorimetryManager.h.
|
private |
Definition at line 148 of file CalorimetryManager.h.
Referenced by HDShowerSimulation(), readParameters(), and reconstruct().
|
private |
Definition at line 162 of file CalorimetryManager.h.
Referenced by readParameters(), and respCorr().
|
private |
Definition at line 136 of file CalorimetryManager.h.
Referenced by EMShowerSimulation(), and readParameters().
|
private |
Definition at line 140 of file CalorimetryManager.h.
Referenced by EMShowerSimulation(), and readParameters().
|
private |
Definition at line 140 of file CalorimetryManager.h.
Referenced by EMShowerSimulation(), and readParameters().
|
private |
Definition at line 141 of file CalorimetryManager.h.
Referenced by readParameters().
|
private |
Definition at line 153 of file CalorimetryManager.h.
Referenced by CalorimetryManager(), EMShowerSimulation(), HDShowerSimulation(), and MuonMipSimulation().
|
private |
Definition at line 146 of file CalorimetryManager.h.
Referenced by EMShowerSimulation(), and readParameters().
|
private |
Definition at line 161 of file CalorimetryManager.h.
Referenced by readParameters().
|
private |
Definition at line 146 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 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 149 of file CalorimetryManager.h.
Referenced by EMShowerSimulation(), readParameters(), and reconstruct().
|
private |
Definition at line 138 of file CalorimetryManager.h.
Referenced by readParameters().
|
private |
Definition at line 186 of file CalorimetryManager.h.
Referenced by CalorimetryManager(), and HDShowerSimulation().
|
private |
Definition at line 145 of file CalorimetryManager.h.
Referenced by EMShowerSimulation(), and readParameters().
|
private |
Definition at line 172 of file CalorimetryManager.h.
Referenced by CalorimetryManager(), MuonMipSimulation(), and ~CalorimetryManager().
|
private |
Definition at line 173 of file CalorimetryManager.h.
Referenced by CalorimetryManager(), MuonMipSimulation(), and ~CalorimetryManager().
|
private |
Definition at line 184 of file CalorimetryManager.h.
Referenced by CalorimetryManager(), and HDShowerSimulation().
|
private |
Definition at line 183 of file CalorimetryManager.h.
Referenced by CalorimetryManager(), HDShowerSimulation(), and ~CalorimetryManager().
|
private |
Definition at line 185 of file CalorimetryManager.h.
Referenced by CalorimetryManager(), and HDShowerSimulation().
|
private |
Definition at line 145 of file CalorimetryManager.h.
Referenced by EMShowerSimulation(), and readParameters().
|
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 128 of file CalorimetryManager.h.
Referenced by readParameters(), and updateHCAL().
|
private |
Definition at line 116 of file CalorimetryManager.h.
|
private |
Definition at line 113 of file CalorimetryManager.h.
Referenced by CalorimetryManager(), and readParameters().