3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
7 // Revision of includes 07/05/2004
11 /// \brief MonteCarlo hit
13 /// MUON class for MonteCarlo Hits, inherited from AliHit for the
14 /// In addition to the ALiHit data member fX, fY, fZ and fTrack, AliMUONHit contains some info about the particle crossing the chamber:
15 /// Impulsion: fPtot, fPx, fPy and fPz
16 /// Reference position at the center of the chamber (wire plane) fXref, fYref and fZref
17 /// Cumulated path along the active volume fTlength for spliting of hits for very inclined tracks
18 /// Energy loss of the particle inside the gas active volume.
19 /// Incident fTheta and fPhi angle with respect of the wire plane of the chamber.
24 class AliMUONHit : public AliHit {
29 AliMUONHit(Int_t fIshunt, Int_t track, Int_t *vol, Float_t *hits);
31 AliMUONHit(Int_t fIshunt, Int_t track, Int_t detElemId, Int_t idpart,
32 Float_t X, Float_t Y, Float_t Z, Float_t tof, Float_t momentum,
33 Float_t theta, Float_t phi, Float_t length, Float_t destep);
35 AliMUONHit(Int_t fIshunt, Int_t track, Int_t detElemId, Int_t idpart,
36 Float_t X, Float_t Y, Float_t Z, Float_t tof, Float_t momentum,
37 Float_t theta, Float_t phi, Float_t length, Float_t destep,
38 Float_t Xref, Float_t Yref, Float_t Zref);
39 virtual ~AliMUONHit();
41 Int_t DetElemId()const {return fDetElemId;} ///< Return detection element ID
42 Int_t Chamber() const;
44 virtual void Print(Option_t* opt="") const;
46 Float_t Particle() const {return fParticle;} ///< Return particle id
47 Float_t Theta() const {return fTheta;} ///< Return incident theta angle in degrees
48 Float_t Phi() const {return fPhi;} ///< Return incident phi angle in degrees
49 Float_t Tlength() const {return fTlength;} ///< Return track length inside the chamber
50 Float_t Eloss() const {return fEloss;} ///< Return Ionisation energy loss in gas
51 Float_t Age() const {return fAge;} ///< Return Particle Age
52 Int_t PHfirst() const {return fPHfirst;} ///< Return First padhit
53 Int_t PHlast() const {return fPHlast;} ///< Return Last padhit
55 Float_t Momentum() const {return fPTot;} ///< Return local momentum P of the entering track
56 Float_t Px() const {return fPx;} ///< Return Px
57 Float_t Py() const {return fPy;} ///< Return Py
58 Float_t Pz() const {return fPz;} ///< Return Pz
59 Float_t Cx() const {return fPx/fPTot;} ///< Return Px/PTot
60 Float_t Cy() const {return fPy/fPTot;} ///< Return Py/PTot
61 Float_t Cz() const {return fPz/fPTot;} ///< Return Pz/PTot
63 Float_t Xref() const {return fXref;} ///< Return X position of hit in the center of the chamber (without angle effect)
64 Float_t Yref() const {return fYref;} ///< Return Y position of hit in the center of the chamber (without angle effect)
65 Float_t Zref() const {return fZref;} ///< Return Z position of hit in the center of the chamber (without angle effect)
68 Int_t fDetElemId; ///< Detection element ID
69 Float_t fParticle; ///< Geant3 particle type
70 Float_t fTheta ; ///< Incident theta angle in degrees
71 Float_t fPhi ; ///< Incident phi angle in degrees
72 Float_t fTlength; ///< Track length inside the chamber
73 Float_t fEloss; ///< Ionisation energy loss in gas
74 Float_t fAge; ///< Particle Age
75 Int_t fPHfirst; ///< First padhit
76 Int_t fPHlast; ///< Last padhit
78 Float_t fPTot; ///< Local momentum P of the track when entering in the chamber
83 Float_t fXref; ///< X position of hit in the center of the chamber (without angle effect)
84 Float_t fYref; ///< Y position of hit in the center of the chamber (without angle effect)
85 Float_t fZref; ///< Z position of hit in the center of the chamber (without angle effect)
88 ClassDef(AliMUONHit,2) //Hit object for MUON