1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
18 // **************************************************************
20 // Hits classes for ZDC
22 // **************************************************************
24 #include "AliZDCHit.h"
28 //_____________________________________________________________________________
29 AliZDCHit::AliZDCHit() :
30 // AliHit(shunt, track),
42 // Default constructor
44 for(Int_t i=0; i<2; i++) fVolume[i] = 0;
47 //_____________________________________________________________________________
48 AliZDCHit::AliZDCHit(Int_t shunt, Int_t track, Int_t *vol, Float_t *hits) :
57 fPDGCode((Int_t) hits[10])
61 // Standard constructor
64 for(i=0; i<2; i++) fVolume[i] = vol[i];
70 //_____________________________________________________________________________
71 AliZDCHit::AliZDCHit(const AliZDCHit &oldhit) :
72 AliHit(0,oldhit.GetTrack()),
73 fPrimKinEn(oldhit.GetPrimKinEn()),
74 fXImpact(oldhit.GetXImpact()),
75 fYImpact(oldhit.GetYImpact()),
76 fSFlag(oldhit.GetSFlag()),
77 fLightPMQ(oldhit.GetLightPMQ()),
78 fLightPMC(oldhit.GetLightPMC()),
79 fEnergy(oldhit.GetEnergy()),
80 fPDGCode(oldhit.GetPDGCode())
86 for(Int_t i=0; i<2; i++) fVolume[i] = oldhit.GetVolume(i);
90 //_____________________________________________________________________________
91 void AliZDCHit::Print(Option_t *) const
94 printf("\t ZDC HIT: det = %d tow = %d track %d pcPDGcode %d\n"
95 "\t Primary E = %f, Ximpact = %f, Yimpact = %f, SFlag = %f\n"
96 "\t PMQLight = %f, PMCLight = %f, Deposited E = %f\n ",
97 fVolume[0],fVolume[1],fTrack,fPDGCode,fPrimKinEn,fXImpact,fYImpact,
98 fSFlag,fLightPMQ,fLightPMC,fEnergy);