]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TOF/AliTOFRecHit.cxx
Field conversion factor added.
[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)
52{
53 //
54 // copy ctor for AliTOFRecHit object
55 //
56 fTrack = hit.fTrack;
57 fPdgCode= hit.fPdgCode;
58 fX = hit.fX;
59 fY = hit.fY;
60 fZ = hit.fZ;
61 fP = hit.fP;
62 fVrho = hit.fVrho;
63 fFirst = hit.fFirst;
64 fNoise = hit.fNoise;
65 fRmin = hit.fRmin;
66
67}
68
69//______________________________________________________________________________
70AliTOFRecHit::AliTOFRecHit(Int_t shunt, Int_t track)
71:AliHit(shunt, track)
72{
73 //
74 // ctor for hit object
75 //
76 fTrack=0;
77 fPdgCode=0;
78 fX=0;
79 fY=0;
80 fZ=0;
81 fP=-1;
82 fVrho=-1;
83 fFirst=0;
84 fNoise=0;
85 fRmin=-1;
86}
87
88//______________________________________________________________________________
89void AliTOFRecHit::SetHit(Int_t track, Int_t pdgCode, Float_t* mrfpos, Float_t mom, Float_t vtxRadius, Int_t isFirstHit)
90{
91 // Setter for
92 // track number, pdg code, hit position in master reference frame,
93 // momentum, vertex radius and flag to check if it is the first hit
94 //
95 fTrack =track;
96 fPdgCode=pdgCode;
97 fX=mrfpos[0];
98 fY=mrfpos[1];
99 fZ=mrfpos[2];
100 fP=mom;
101 fVrho=vtxRadius;
102 fFirst=isFirstHit;
103}