#include <HcalHitMaker.h>
Public Types | |
typedef ROOT::Math::Transform3DPJ | Transform3D |
typedef math::XYZVector | XYZPoint |
typedef math::XYZVector | XYZVector |
Public Types inherited from CaloHitMaker | |
typedef ROOT::Math::Plane3D | Plane3D |
typedef math::XYZVector | XYZPoint |
typedef math::XYZVector | XYZVector |
Public Member Functions | |
bool | addHit (double r, double phi, unsigned layer=0) override |
add the hit in the HCAL in local coordinates More... | |
bool | addHit (const XYZPoint &point, unsigned layer=0) |
add the hit in the HCAL in global coordinates More... | |
const std::map< CaloHitID, float > & | getHits () override |
HcalHitMaker (EcalHitMaker &, unsigned) | |
bool | setDepth (double, bool inCm=false) |
set the depth in X0 or Lambda0 units depending on showerType More... | |
void | setSpotEnergy (double e) override |
Set the spot energy. More... | |
~HcalHitMaker () override | |
Public Member Functions inherited from CaloHitMaker | |
CaloHitMaker (const CaloGeometryHelper *calo, DetId::Detector det, int subdetn, int cal, unsigned sht=0) | |
const CaloGeometryHelper * | getCalorimeter () const |
virtual | ~CaloHitMaker () |
Static Public Member Functions | |
static int | getSubHcalDet (const FSimTrack *t) |
Private Attributes | |
double | currentDepth_ |
XYZPoint | ecalEntrance_ |
Transform3D | locToGlobal_ |
bool | mapCalculated_ |
EcalHitMaker & | myGrid |
const FSimTrack * | myTrack |
int | onHcal |
XYZVector | particleDirection |
double | radiusFactor_ |
Additional Inherited Members | |
Static Protected Member Functions inherited from CaloHitMaker | |
static XYZPoint | intersect (const Plane3D &p, const XYZPoint &a, const XYZPoint &b, double &t, bool segment, bool debug=false) |
Protected Attributes inherited from CaloHitMaker | |
bool | EMSHOWER |
bool | HADSHOWER |
std::map< CaloHitID, float > | hitMap_ |
double | interactionLength |
bool | MIP |
double | moliereRadius |
const CaloGeometryHelper * | myCalorimeter |
unsigned | showerType_ |
double | spotEnergy |
const CalorimeterProperties * | theCaloProperties |
Definition at line 16 of file HcalHitMaker.h.
Definition at line 22 of file HcalHitMaker.h.
Definition at line 21 of file HcalHitMaker.h.
Definition at line 20 of file HcalHitMaker.h.
HcalHitMaker::HcalHitMaker | ( | EcalHitMaker & | grid, |
unsigned | shower | ||
) |
Definition at line 10 of file HcalHitMaker.cc.
References funct::abs(), gather_cfg::cout, EcalHitMaker::ecalEntrance(), FSimTrack::ecalEntrance(), ecalEntrance_, CaloHitMaker::EMSHOWER, EcalHitMaker::getFSimTrack(), CaloHitMaker::interactionLength, mapCalculated_, CaloHitMaker::moliereRadius, myGrid, myTrack, particleDirection, radiusFactor_, and CoreSimTrack::type().
|
inlineoverride |
Definition at line 25 of file HcalHitMaker.h.
|
overridevirtual |
add the hit in the HCAL in local coordinates
Implements CaloHitMaker.
Definition at line 28 of file HcalHitMaker.cc.
References funct::cos(), locToGlobal_, point, radiusFactor_, and funct::sin().
Referenced by HFShower::compute(), HDShower::compute(), EMShower::compute(), CalorimetryManager::HDShowerSimulation(), CalorimetryManager::MuonMipSimulation(), HDRShower::setHit(), and setSpotEnergy().
bool HcalHitMaker::addHit | ( | const XYZPoint & | point, |
unsigned | layer = 0 |
||
) |
add the hit in the HCAL in global coordinates
Definition at line 41 of file HcalHitMaker.cc.
References CaloHitMaker::EMSHOWER, CaloGeometryHelper::getClosestCell(), CaloHitMaker::HADSHOWER, HcalForward, CaloHitMaker::hitMap_, createfilelist::int, CaloHitMaker::MIP, CaloHitMaker::myCalorimeter, CaloHitMaker::spotEnergy, and mathSSE::sqrt().
|
inlineoverridevirtual |
Implements CaloHitMaker.
Definition at line 37 of file HcalHitMaker.h.
References CaloHitMaker::hitMap_, and setDepth().
Referenced by CalorimetryManager::EMShowerSimulation(), CalorimetryManager::HDShowerSimulation(), and CalorimetryManager::MuonMipSimulation().
|
inlinestatic |
Definition at line 56 of file HcalHitMaker.h.
References HcalBarrel, HcalEndcap, HcalForward, FSimTrack::onHcal(), and FSimTrack::onVFcal().
bool HcalHitMaker::setDepth | ( | double | depth, |
bool | inCm = false |
||
) |
set the depth in X0 or Lambda0 units depending on showerType
Definition at line 119 of file HcalHitMaker.cc.
References gather_cfg::cout, currentDepth_, egammaForCoreTracking_cff::depth, CaloHitMaker::EMSHOWER, EcalHitMaker::getFSimTrack(), EcalHitMaker::getSegments(), CaloHitMaker::HADSHOWER, locToGlobal_, myGrid, particleDirection, and trackingPlots::zaxis.
Referenced by HFShower::compute(), HDShower::compute(), EMShower::compute(), getHits(), CalorimetryManager::HDShowerSimulation(), and HDRShower::setHit().
|
inlineoverridevirtual |
Set the spot energy.
Implements CaloHitMaker.
Definition at line 28 of file HcalHitMaker.h.
References addHit(), MillePedeFileConverter_cfg::e, phi, point, alignCSCRings::r, and CaloHitMaker::spotEnergy.
Referenced by HFShower::compute(), HDShower::compute(), EMShower::compute(), CalorimetryManager::HDShowerSimulation(), CalorimetryManager::MuonMipSimulation(), and HDRShower::setHit().
|
private |
Definition at line 50 of file HcalHitMaker.h.
Referenced by setDepth().
|
private |
Definition at line 46 of file HcalHitMaker.h.
Referenced by HcalHitMaker().
|
private |
Definition at line 51 of file HcalHitMaker.h.
Referenced by addHit(), and setDepth().
|
private |
Definition at line 53 of file HcalHitMaker.h.
Referenced by HcalHitMaker().
|
private |
Definition at line 43 of file HcalHitMaker.h.
Referenced by HcalHitMaker(), and setDepth().
|
private |
Definition at line 45 of file HcalHitMaker.h.
Referenced by HcalHitMaker().
|
private |
Definition at line 48 of file HcalHitMaker.h.
|
private |
Definition at line 47 of file HcalHitMaker.h.
Referenced by HcalHitMaker(), and setDepth().
|
private |
Definition at line 52 of file HcalHitMaker.h.
Referenced by addHit(), and HcalHitMaker().