28 #include "FairTimeStamp.h" 30 #include "TClonesArray.h" 42 <<
" timestamp: "<<digi.GetTimeStamp();
54 PndEmcDigi(Int_t trackid, Int_t
id, Float_t energy, Float_t time, Float_t local_time , Int_t hitIndex=-1, Int_t pileIndex=-1, Int_t DCid=-1);
65 virtual bool equal(FairTimeStamp* data){
67 if (myDigi !=
nullptr) {
75 virtual void Print(
const Option_t* opt =
"")
const;
152 double positionDepthPWO = 0.,
153 double positionDepthShahslyk = 0.,
154 double rescaleFactor = 1.);
156 static TVector3 surfacePosition(
const PndEmcXtal* xtal );
157 static TVector3 depthPosition(
const PndEmcXtal* xtal );
159 static TVector3 ( *&algPointer() ) (
const PndEmcXtal* );
161 static double fRescaleFactor;
162 static double fPositionDepthPWO;
163 static double fPositionDepthShashlyk;
169 #endif // PndEmcDigi_H
virtual PndEmcSharedDigi * dynamic_cast_PndEmcSharedDigi()
virtual void Print(const Option_t *opt="") const
virtual bool operator!=(const PndEmcDigi &otherDigi) const
virtual Double_t GetEnergy() const
void SetTrackId(Int_t id)
represents coordinates of one crystal
static Double_t getPositionDepthShashlyk()
void SetDCnumber(Int_t DCid)
stores crystal index coordinates (x,y) or (theta,phi)
virtual void AbsorbEnergy(PndEmcDigi &otherDigi)
Int_t GetDCnumber() const
bool isNeighbour(const PndEmcDigi *theDigi) const
friend class PndEmcWaveformToDigiFPGA
Task to create digis from waveforms.
static Double_t getRescaleFactor()
Short_t GetCrystal() const
void SetEnergy(Double32_t energy)
Int_t GetDetectorId() const
used to share PndEmcDigis between bumps
static Double_t getPositionDepthPWO()
virtual bool equal(FairTimeStamp *data)
Task to create PndEmcDigi from PndEmcHit.
Short_t GetModule() const
Task to create digis from waveforms.
virtual bool operator==(const PndEmcDigi &otherDigi) const
const TVector3 & where() const
void SetDetectorId(Int_t id)
friend std::ostream & operator<<(std::ostream &out, PndEmcDigi &digi)
virtual bool operator<(const PndEmcDigi &otherDigi) const
Int_t GetThetaInt() const
Double_t GetTheta() const
static TClonesArray * fDigiArrayTBD
PndEmcTwoCoordIndex * GetTCI() const
Task to create PndEmcDigi from PndEmcHit.
static void InitDigiArrayTBD()