#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 20 of file HcalHitMaker.h.
Definition at line 19 of file HcalHitMaker.h.
Definition at line 18 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, getRunAppsInfo::grid, CaloHitMaker::interactionLength, mapCalculated_, CaloHitMaker::moliereRadius, myGrid, myTrack, particleDirection, radiusFactor_, and RawParticle::Vect().
|
inlineoverride |
Definition at line 23 of file HcalHitMaker.h.
|
overridevirtual |
add the hit in the HCAL in local coordinates
Implements CaloHitMaker.
Definition at line 30 of file HcalHitMaker.cc.
References funct::cos(), nano_mu_digi_cff::layer, locToGlobal_, phi, point, alignCSCRings::r, radiusFactor_, and funct::sin().
Referenced by HFShower::compute(), HDShower::compute(), EMShower::compute(), CalorimetryManager::HDShowerSimulation(), CalorimetryManager::MuonMipSimulation(), and HDRShower::setHit().
bool HcalHitMaker::addHit | ( | const XYZPoint & | point, |
unsigned | layer = 0 |
||
) |
add the hit in the HCAL in global coordinates
Definition at line 42 of file HcalHitMaker.cc.
References CaloHitMaker::EMSHOWER, CaloGeometryHelper::getClosestCell(), CaloHitMaker::HADSHOWER, HcalForward, CaloHitMaker::hitMap_, createfilelist::int, nano_mu_digi_cff::layer, CaloHitMaker::MIP, CaloHitMaker::myCalorimeter, point, CaloHitMaker::spotEnergy, and mathSSE::sqrt().
|
inlineoverridevirtual |
Implements CaloHitMaker.
Definition at line 35 of file HcalHitMaker.h.
References CaloHitMaker::hitMap_.
Referenced by CalorimetryManager::EMShowerSimulation(), CalorimetryManager::HDShowerSimulation(), and CalorimetryManager::MuonMipSimulation().
|
inlinestatic |
Definition at line 54 of file HcalHitMaker.h.
References HcalBarrel, HcalEndcap, HcalForward, and submitPVValidationJobs::t.
bool HcalHitMaker::setDepth | ( | double | depth, |
bool | inCm = false |
||
) |
set the depth in X0 or Lambda0 units depending on showerType
Definition at line 114 of file HcalHitMaker.cc.
References gather_cfg::cout, currentDepth_, hcalRecHitTable_cff::depth, CaloHitMaker::EMSHOWER, EcalHitMaker::getFSimTrack(), EcalHitMaker::getSegments(), CaloHitMaker::HADSHOWER, locToGlobal_, myGrid, particleDirection, and LaserClient_cfi::zaxis.
Referenced by HFShower::compute(), HDShower::compute(), EMShower::compute(), CalorimetryManager::HDShowerSimulation(), and HDRShower::setHit().
|
inlineoverridevirtual |
Set the spot energy.
Implements CaloHitMaker.
Definition at line 26 of file HcalHitMaker.h.
References MillePedeFileConverter_cfg::e, and CaloHitMaker::spotEnergy.
Referenced by HFShower::compute(), HDShower::compute(), EMShower::compute(), CalorimetryManager::HDShowerSimulation(), CalorimetryManager::MuonMipSimulation(), and HDRShower::setHit().
|
private |
Definition at line 48 of file HcalHitMaker.h.
Referenced by setDepth().
|
private |
Definition at line 44 of file HcalHitMaker.h.
Referenced by HcalHitMaker().
|
private |
Definition at line 49 of file HcalHitMaker.h.
Referenced by addHit(), and setDepth().
|
private |
Definition at line 51 of file HcalHitMaker.h.
Referenced by HcalHitMaker().
|
private |
Definition at line 41 of file HcalHitMaker.h.
Referenced by HcalHitMaker(), and setDepth().
|
private |
Definition at line 43 of file HcalHitMaker.h.
Referenced by HcalHitMaker().
|
private |
Definition at line 46 of file HcalHitMaker.h.
|
private |
Definition at line 45 of file HcalHitMaker.h.
Referenced by HcalHitMaker(), and setDepth().
|
private |
Definition at line 50 of file HcalHitMaker.h.
Referenced by addHit(), and HcalHitMaker().