CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Private Attributes
HcalHitMaker Class Reference

#include <HcalHitMaker.h>

Inheritance diagram for HcalHitMaker:
CaloHitMaker

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)
 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 ()
 
 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)
 Set the spot energy. More...
 
 ~HcalHitMaker ()
 
- Public Member Functions inherited from CaloHitMaker
 CaloHitMaker (const CaloGeometryHelper *calo, DetId::Detector det, int subdetn, int cal, unsigned sht=0)
 
const CaloGeometryHelpergetCalorimeter () const
 
virtual ~CaloHitMaker ()
 

Static Public Member Functions

static int getSubHcalDet (const FSimTrack *t)
 

Private Attributes

double currentDepth_
 
XYZPoint ecalEntrance_
 
Transform3D locToGlobal_
 
bool mapCalculated_
 
EcalHitMakermyGrid
 
const FSimTrackmyTrack
 
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 CaloGeometryHelpermyCalorimeter
 
unsigned showerType_
 
double spotEnergy
 
const CalorimeterPropertiestheCaloProperties
 

Detailed Description

Definition at line 16 of file HcalHitMaker.h.

Member Typedef Documentation

Definition at line 22 of file HcalHitMaker.h.

Definition at line 21 of file HcalHitMaker.h.

Definition at line 20 of file HcalHitMaker.h.

Constructor & Destructor Documentation

HcalHitMaker::HcalHitMaker ( EcalHitMaker grid,
unsigned  shower 
)

Definition at line 10 of file HcalHitMaker.cc.

HcalHitMaker::~HcalHitMaker ( )
inline

Definition at line 25 of file HcalHitMaker.h.

25 {;}

Member Function Documentation

bool HcalHitMaker::addHit ( double  r,
double  phi,
unsigned  layer = 0 
)
virtual

add the hit in the HCAL in local coordinates

Implements CaloHitMaker.

Definition at line 28 of file HcalHitMaker.cc.

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.

const std::map<CaloHitID,float>& HcalHitMaker::getHits ( )
inlinevirtual

Implements CaloHitMaker.

Definition at line 37 of file HcalHitMaker.h.

References CaloHitMaker::hitMap_.

37 { return hitMap_ ;} ;
std::map< CaloHitID, float > hitMap_
Definition: CaloHitMaker.h:65
static int HcalHitMaker::getSubHcalDet ( const FSimTrack t)
inlinestatic

Definition at line 56 of file HcalHitMaker.h.

References HcalBarrel, HcalEndcap, HcalForward, FSimTrack::onHcal(), and FSimTrack::onVFcal().

57  {
58  // std::cout << " getSubHcalDet " << std::endl;
59  // According to DataFormats/ HcalDetId/ interface/ HcalSubdetector.h
60  // std::cout << " onHcal " << t->onHcal() << " onVFcal " << t->onVFcal() << std::endl;
61  if(t->onHcal()==1) return HcalBarrel;
62  if(t->onHcal()==2) return HcalEndcap;
63  if(t->onVFcal()==2) return HcalForward;
64  return -1;
65  }
int onVFcal() const
Definition: FSimTrack.h:111
int onHcal() const
Definition: FSimTrack.h:106
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.

void HcalHitMaker::setSpotEnergy ( double  e)
inlinevirtual

Set the spot energy.

Implements CaloHitMaker.

Definition at line 28 of file HcalHitMaker.h.

References alignCSCRings::e, and CaloHitMaker::spotEnergy.

28 { spotEnergy=e;}
double spotEnergy
Definition: CaloHitMaker.h:51

Member Data Documentation

double HcalHitMaker::currentDepth_
private

Definition at line 50 of file HcalHitMaker.h.

XYZPoint HcalHitMaker::ecalEntrance_
private

Definition at line 46 of file HcalHitMaker.h.

Transform3D HcalHitMaker::locToGlobal_
private

Definition at line 51 of file HcalHitMaker.h.

bool HcalHitMaker::mapCalculated_
private

Definition at line 53 of file HcalHitMaker.h.

EcalHitMaker& HcalHitMaker::myGrid
private

Definition at line 43 of file HcalHitMaker.h.

const FSimTrack* HcalHitMaker::myTrack
private

Definition at line 45 of file HcalHitMaker.h.

int HcalHitMaker::onHcal
private

Definition at line 48 of file HcalHitMaker.h.

XYZVector HcalHitMaker::particleDirection
private

Definition at line 47 of file HcalHitMaker.h.

double HcalHitMaker::radiusFactor_
private

Definition at line 52 of file HcalHitMaker.h.