33 PndEmcHit(Int_t trackid, Int_t
id, Float_t energy, Float_t time, Float_t X, Float_t Y, Float_t Z);
35 PndEmcHit(Int_t trackid, Int_t
id, Float_t energy, Float_t time, Float_t X, Float_t Y, Float_t Z, std::vector<Int_t> McTruth, FairMultiLinkedData enteringTrack,
36 FairMultiLinkedData exitingTrack, std::set<Int_t> clusterList);
45 void Print(
const Option_t *opt =
"")
const;
49 void SetTime(Double32_t time) { fTimeStamp = time * 1E9; };
55 Double_t
GetTime()
const {
return fTimeStamp / 1E9; };
56 Float_t
GetTheta()
const {
return fX == 0.0 && fY == 0.0 && fZ == 0.0 ? 0.0 :
TMath::ATan2(
sqrt(fX * fX + fY * fY), fZ) * TMath::RadToDeg(); };
57 Float_t
GetPhi()
const {
return fX == 0.0 && fY == 0.0 ? 0.0 :
TMath::ATan2(fY, fX) * TMath::RadToDeg(); };
58 Short_t
GetModule()
const {
return (fDetectorID / 100000000); };
59 Short_t
GetRow()
const {
return ((fDetectorID / 1000000) % 100); };
60 Short_t
GetCrystal()
const {
return (fDetectorID % 10000); };
61 Short_t
GetCopy()
const {
return ((fDetectorID / 10000) % 100); };
represents a mc hit in an emc crystal
void SetTime(Double32_t time)
friend F32vec4 sqrt(const F32vec4 &a)
FairMultiLinkedData fTrackExiting
Short_t GetModule() const
FairMultiLinkedData GetTrackExiting() const
std::set< Int_t > GetClusterList()
std::set< Int_t > fClusterList
FairMultiLinkedData GetTrackEntering() const
void SetEnergy(Double32_t energy)
const std::vector< Int_t > & GetMcList()
static T ATan2(const T &y, const T &x)
void AddDepositedEnergy(Int_t mcId, Double_t depEnergy)
Short_t GetCrystal() const
void AddClusterID(int clusterId)
std::map< Int_t, Double_t > fDepositedEnergy
std::vector< Int_t > fMcList
std::map< Int_t, Double_t > GetDepositedEnergyMap() const
represents the deposited energy of one emc crystal from simulation
Double_t GetEnergy() const
FairMultiLinkedData fTrackEntering
void Print(const Option_t *opt="") const
void SetDepositedEnergyMap(const std::map< Int_t, Double_t > &depEnergy)