fLightPMQ(0.),
fLightPMC(0.),
fEnergy(0.),
- fPDGCode(0)
+ fPDGCode(0),
+ fMotherPDGCode(0),
+ fTrackTOF(0.)
{
//
fLightPMQ(hits[7]),
fLightPMC(hits[8]),
fEnergy(hits[9]),
- fPDGCode(hits[10])
+ fPDGCode((Int_t) hits[10]),
+ fMotherPDGCode((Int_t) hits[11]),
+ fTrackTOF(hits[12])
{
//
fLightPMQ(oldhit.GetLightPMQ()),
fLightPMC(oldhit.GetLightPMC()),
fEnergy(oldhit.GetEnergy()),
- fPDGCode(oldhit.GetPDGCode())
+ fPDGCode(oldhit.GetPDGCode()),
+ fMotherPDGCode(oldhit.GetMotherPDGCode()),
+ fTrackTOF(oldhit.GetTrackTOF())
{
// Copy constructor
fX = oldhit.X();
fZ = oldhit.Z();
for(Int_t i=0; i<2; i++) fVolume[i] = oldhit.GetVolume(i);
}
+
+//_____________________________________________________________________________
+AliZDCHit &AliZDCHit::operator= (const AliZDCHit &hit)
+{
+ //assignemnt operator
+ if(&hit == this) return *this;
+
+ fPrimKinEn = hit.GetPrimKinEn();
+ fXImpact = hit.GetXImpact();
+ fYImpact = hit.GetYImpact();
+ fSFlag = hit.GetSFlag();
+ fLightPMQ = hit.GetLightPMQ();
+ fLightPMC = hit.GetLightPMC();
+ fEnergy = hit.GetEnergy();
+ fPDGCode = hit.GetPDGCode();
+ fMotherPDGCode = hit.GetMotherPDGCode();
+ fTrackTOF = hit.GetTrackTOF();
+
+ fX = hit.X();
+ fY = hit.Y();
+ fZ = hit.Z();
+ for(Int_t i=0; i<2; i++) fVolume[i] = hit.GetVolume(i);
+
+ return *this;
+}
//_____________________________________________________________________________
void AliZDCHit::Print(Option_t *) const
{
// Print method
- printf("\t ZDC HIT: det = %d tow = %d track %d pcPDGcode %d\n"
- "\t Primary E = %f, Ximpact = %f, Yimpact = %f, SFlag = %f\n"
- "\t PMQLight = %f, PMCLight = %f, Deposited E = %f\n ",
- fVolume[0],fVolume[1],fTrack,fPDGCode,fPrimKinEn,fXImpact,fYImpact,
- fSFlag,fLightPMQ,fLightPMC,fEnergy);
+ printf("\t AliZDCHit: track %d PDGcode %d TOF %1.1f ns E_prim = %1.2f GeV SFlag = %1.0f\n"
+ "\t DETECTOR (%d, %d) (X, Y)_impact (%f, %f) cm\n"
+ "\t PMQLight %1.0f, PMCLight %1.0f, E_dep %1.2f\n ",
+ fTrack,fPDGCode,fTrackTOF,fPrimKinEn,fSFlag,
+ fVolume[0],fVolume[1],fXImpact,fYImpact,
+ fLightPMQ,fLightPMC,fEnergy);
}