]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TOF/AliTOFRecHit.cxx
updates to comply with AliTOFGeometryV5 becoming AliTOFGeometry
[u/mrichter/AliRoot.git] / TOF / AliTOFRecHit.cxx
CommitLineData
a625e653 1/**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
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 **************************************************************************/
15
16
17////////////////////////////////////////////////////////////////////////
18// Dummy hit for TOF reconstruction : member variables description
19//
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
25// fP : momentum
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),
29// =0 otherwise
30// fRmin : distance to the nearest TOFhit
31//
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
35//
36// -- Authors: Bologna-ITEP-Salerno Group
37//
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
43// - flag for noise
44////////////////////////////////////////////////////////////////////////////
45
46#include "AliTOFRecHit.h"
47
48ClassImp(AliTOFRecHit)
49
50//____________________________________________________________________________
51AliTOFRecHit::AliTOFRecHit(const AliTOFRecHit & hit)
5c016a7b 52:AliHit(hit)
a625e653 53{
54 //
55 // copy ctor for AliTOFRecHit object
56 //
57 fTrack = hit.fTrack;
58 fPdgCode= hit.fPdgCode;
59 fX = hit.fX;
60 fY = hit.fY;
61 fZ = hit.fZ;
62 fP = hit.fP;
63 fVrho = hit.fVrho;
64 fFirst = hit.fFirst;
65 fNoise = hit.fNoise;
66 fRmin = hit.fRmin;
67
68}
69
70//______________________________________________________________________________
71AliTOFRecHit::AliTOFRecHit(Int_t shunt, Int_t track)
72:AliHit(shunt, track)
73{
74 //
75 // ctor for hit object
76 //
77 fTrack=0;
78 fPdgCode=0;
79 fX=0;
80 fY=0;
81 fZ=0;
82 fP=-1;
83 fVrho=-1;
84 fFirst=0;
85 fNoise=0;
86 fRmin=-1;
87}
88
89//______________________________________________________________________________
90void AliTOFRecHit::SetHit(Int_t track, Int_t pdgCode, Float_t* mrfpos, Float_t mom, Float_t vtxRadius, Int_t isFirstHit)
91{
92 // Setter for
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
95 //
96 fTrack =track;
97 fPdgCode=pdgCode;
98 fX=mrfpos[0];
99 fY=mrfpos[1];
100 fZ=mrfpos[2];
101 fP=mom;
102 fVrho=vtxRadius;
103 fFirst=isFirstHit;
104}