represents a mc hit in an emc crystal
More...
#include <PndEmcPoint.h>
|
| | PndEmcPoint () |
| |
| | PndEmcPoint (Int_t trackID, Int_t detID, Int_t evtID, TVector3 pos, TVector3 mom, Double_t tof, Double_t length, Double_t eLoss, Short_t mod, Short_t row, Short_t crys, Short_t copy, Bool_t entering=kFALSE, Bool_t exiting=kFALSE, int clusteID=-1) |
| |
| | PndEmcPoint (const PndEmcPoint &point) |
| |
| virtual | ~PndEmcPoint () |
| |
| Double_t | GetTheta () const |
| |
| Double_t | GetPhi () const |
| |
| Short_t | GetXPad () const |
| |
| Short_t | GetYPad () const |
| |
| Short_t | GetModule () const |
| |
| Short_t | GetRow () const |
| |
| Short_t | GetCrystal () const |
| |
| Short_t | GetCopy () const |
| |
| Bool_t | GetEntering () const |
| |
| Bool_t | GetExiting () const |
| |
| Int_t | GetClusterID () const |
| |
| void | SetModule (Short_t mod) |
| |
| void | SetRow (Short_t row) |
| |
| void | SetCrystal (Short_t crys) |
| |
| void | SetTrackID (Int_t trackId) |
| |
| void | SetClusterID (int clusterID) |
| |
| virtual void | Print (const Option_t *opt="") const |
| |
represents a mc hit in an emc crystal
Definition at line 19 of file PndEmcPoint.h.
◆ PndEmcPoint() [1/3]
| PndEmcPoint::PndEmcPoint |
( |
| ) |
|
◆ PndEmcPoint() [2/3]
| PndEmcPoint::PndEmcPoint |
( |
Int_t |
trackID, |
|
|
Int_t |
detID, |
|
|
Int_t |
evtID, |
|
|
TVector3 |
pos, |
|
|
TVector3 |
mom, |
|
|
Double_t |
tof, |
|
|
Double_t |
length, |
|
|
Double_t |
eLoss, |
|
|
Short_t |
mod, |
|
|
Short_t |
row, |
|
|
Short_t |
crys, |
|
|
Short_t |
copy, |
|
|
Bool_t |
entering = kFALSE, |
|
|
Bool_t |
exiting = kFALSE, |
|
|
int |
clusteID = -1 |
|
) |
| |
Constructor with arguments
- Parameters
-
| trackID | Index of MCTrack |
| detID | Detector ID |
| posIn | Ccoordinates at entrance to active volume [cm] |
| posOut | Coordinates at exit of active volume [cm] |
| momIn | Momentum of track at entrance [GeV] |
| momOut | Momentum of track at exit [GeV] |
| tof | Time since event start [ns] |
| length | Track length since creation [cm] |
| eLoss | Energy deposit [GeV] |
| entering | Existing particle entering the crystal (needed for MC match) |
| exiting | Particle leaving the crystal (needed for MC match) |
◆ PndEmcPoint() [3/3]
◆ ~PndEmcPoint()
| virtual PndEmcPoint::~PndEmcPoint |
( |
| ) |
|
|
virtual |
◆ GetClusterID()
| Int_t PndEmcPoint::GetClusterID |
( |
| ) |
const |
|
inline |
◆ GetCopy()
| Short_t PndEmcPoint::GetCopy |
( |
| ) |
const |
|
inline |
Definition at line 57 of file PndEmcPoint.h.
57 {
return ((fDetectorID / 10000) % 100); };
◆ GetCrystal()
| Short_t PndEmcPoint::GetCrystal |
( |
| ) |
const |
|
inline |
Definition at line 56 of file PndEmcPoint.h.
56 {
return (fDetectorID % 10000); };
◆ GetEntering()
| Bool_t PndEmcPoint::GetEntering |
( |
| ) |
const |
|
inline |
◆ GetExiting()
| Bool_t PndEmcPoint::GetExiting |
( |
| ) |
const |
|
inline |
◆ GetModule()
| Short_t PndEmcPoint::GetModule |
( |
| ) |
const |
|
inline |
Definition at line 54 of file PndEmcPoint.h.
54 {
return (fDetectorID / 100000000); };
◆ GetPhi()
| Double_t PndEmcPoint::GetPhi |
( |
| ) |
const |
|
inline |
◆ GetRow()
| Short_t PndEmcPoint::GetRow |
( |
| ) |
const |
|
inline |
Definition at line 55 of file PndEmcPoint.h.
55 {
return ((fDetectorID / 1000000) % 100); };
◆ GetTheta()
| Double_t PndEmcPoint::GetTheta |
( |
| ) |
const |
|
inline |
Accessors
Definition at line 49 of file PndEmcPoint.h.
References CAMath::ATan2(), and sqrt().
49 {
return fX == 0.0 && fY == 0.0 && fZ == 0.0 ? 0.0 :
TMath::ATan2(
sqrt(fX * fX + fY * fY), fZ) * TMath::RadToDeg(); };
friend F32vec4 sqrt(const F32vec4 &a)
static T ATan2(const T &y, const T &x)
◆ GetXPad()
| Short_t PndEmcPoint::GetXPad |
( |
| ) |
const |
◆ GetYPad()
| Short_t PndEmcPoint::GetYPad |
( |
| ) |
const |
◆ Print()
| virtual void PndEmcPoint::Print |
( |
const Option_t * |
opt = "" | ) |
const |
|
virtual |
◆ SetClusterID()
| void PndEmcPoint::SetClusterID |
( |
int |
clusterID | ) |
|
|
inline |
◆ SetCrystal()
| void PndEmcPoint::SetCrystal |
( |
Short_t |
crys | ) |
|
|
inline |
◆ SetModule()
| void PndEmcPoint::SetModule |
( |
Short_t |
mod | ) |
|
|
inline |
◆ SetRow()
| void PndEmcPoint::SetRow |
( |
Short_t |
row | ) |
|
|
inline |
◆ SetTrackID()
| void PndEmcPoint::SetTrackID |
( |
Int_t |
trackId | ) |
|
|
inline |
Definition at line 66 of file PndEmcPoint.h.
68 FairMCPoint::SetTrackID(trackId);
69 SetLink(FairLink(
"MCTrack", trackId));
◆ fClusterID
| Int_t PndEmcPoint::fClusterID |
|
protected |
◆ fEntering
| Bool_t PndEmcPoint::fEntering |
|
protected |
◆ fExiting
| Bool_t PndEmcPoint::fExiting |
|
protected |
◆ nCopy
| Short_t PndEmcPoint::nCopy |
|
protected |
◆ nCrystal
| Short_t PndEmcPoint::nCrystal |
|
protected |
◆ nModule
| Short_t PndEmcPoint::nModule |
|
protected |
◆ nRow
| Short_t PndEmcPoint::nRow |
|
protected |
The documentation for this class was generated from the following file: