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 **************************************************************************/
17 ////////////////////////////////////////////////////////////////////////
18 // Dummy hit for TOF reconstruction : member variables description
20 // fTrack : track number of the particle that produced the hit
21 // fPdgCode : GEANT code of the particle that produced the hit
22 // fX : x-coordinate of the hit
23 // fY : y-coordinate of the hit
24 // fZ : z-coordinate of the hit
26 // fVrho : rho-coordinate of the Vertex
27 // fFirst : =1 for the first hit of the track, =0 otherwise
28 // fNoise : =1 for the noise hit (Rvtx>200 or second, ... hit),
30 // fRmin : distance to the nearest TOFhit
32 // For more detailed informations about the meaning of the hit
33 // for TOF reconstruction member variable look at
34 // http://bogrid1.bo.infn.it/~pierella/TOFWEB/index.php3
36 // -- Authors: Bologna-ITEP-Salerno Group
38 // Description: dummy hit class used in reconstruction (derived from AliHit)
39 // For a given TOF hit, the class contains:
40 // - the distance to the nearest hit
41 // - flag for first or second track crossing
42 // - number of the track which produced the hit
44 ////////////////////////////////////////////////////////////////////////////
46 #include "AliTOFRecHit.h"
48 ClassImp(AliTOFRecHit)
50 //____________________________________________________________________________
51 AliTOFRecHit::AliTOFRecHit(const AliTOFRecHit & hit)
55 // copy ctor for AliTOFRecHit object
58 fPdgCode= hit.fPdgCode;
70 //______________________________________________________________________________
71 AliTOFRecHit::AliTOFRecHit(Int_t shunt, Int_t track)
75 // ctor for hit object
89 //______________________________________________________________________________
90 void AliTOFRecHit::SetHit(Int_t track, Int_t pdgCode, Float_t* mrfpos, Float_t mom, Float_t vtxRadius, Int_t isFirstHit)
93 // track number, pdg code, hit position in master reference frame,
94 // momentum, vertex radius and flag to check if it is the first hit