]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TOF/AliTOFhitT0.cxx
TOF raw data: preliminary implementation and style changes
[u/mrichter/AliRoot.git] / TOF / AliTOFhitT0.cxx
CommitLineData
58e32bd2 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// TOF hit for T0 member variables
17// fTrack :
18// fX : X coordinate of the hit in the Master Reference Frame (LAB Frame)
19// fY : Y coordinate of the hit in the Master Reference Frame (LAB Frame)
20// fZ : Z coordinate of the hit in the Master Reference Frame (LAB Frame)
21// fSector : Number of the TOF Sector which belongs the hit
22// fPlate : Number of the TOF Plate or Module which belongs the hit
23// fStrip : Number of the TOF Strip which belongs the hit
24// fPadx : Number of the pad in the strip along the x-axis - in the strip reference frame
25// - where hit is produced
26// fPadz : Number of the pad in the strip along the z-axis - in the strip reference frame
27// - where hit is produced
28// fPx : x-director cosine of the Charged Particle Momentum when hit is
29// produced - expressed in the Master Reference Frame (LAB Frame) -
30// fPy : y-director cosine of the Charged Particle Momentum when hit is
31// produced - expressed in the Master Reference Frame (LAB Frame) -
32// fPz : z-director cosine of the Charged Particle Momentum when hit is
33// produced - expressed in the Master Reference Frame (LAB Frame) -
34// fPmom : Modulus of the Charged Particle Momentum when hit is produced
35// fTof : Time of Flight i.e. the time between the charged particle is produced and this
36// particle produce the hit on the TOF sensible volume (pad)
37// fLen : track length when striking the TOF detector
38// fDx : Distance of the hit from the pad edge along x-axis
39// fDy : y coordinate of the hit in the pad refernce frame
40// fDz : Distance of the hit from the pad edge along z-axis
41// fIncA : Incidence Angle between the Normal to the sensible volume where hit
42// is produced (pad) and the Momentum Direction of the Charged Particle which
43// produces the hit
44// fEdep : Energy released by charged particle on the sensible TOF volume where hit is
45// produced
46// For more detailed informations about the meaning of the TOF-hit member
47// variable look at
48// http://www.bo.infn.it/alice/alice-doc/TOFWEB/variables-hits.html
49//
50//*-- Author: F. Pierella
51
52#include "AliTOFhitT0.h"
53
54ClassImp(AliTOFhitT0)
55
56//____________________________________________________________________________
57AliTOFhitT0::AliTOFhitT0(const AliTOFhitT0 & hit)
5c016a7b 58:AliHit(hit)
58e32bd2 59{
60 //
61 // copy ctor for AliTOFhitT0 object
62 //
63 fTrack = hit.fTrack;
64 fX = hit.fX;
65 fY = hit.fY;
66 fZ = hit.fZ;
67 fSector = hit.fSector;
68 fPlate = hit.fPlate;
69 fStrip = hit.fStrip;
70 fPadx = hit.fPadx;
71 fPadz = hit.fPadz;
72 fPx = hit.fPx;
73 fPy = hit.fPy;
74 fPz = hit.fPz;
75 fPmom = hit.fPmom;
76 fTof = hit.fTof;
77 fLenTof = hit.fLenTof;
78 fDx = hit.fDx;
79 fDy = hit.fDy;
80 fDz = hit.fDz;
81 fIncA = hit.fIncA;
82 fEdep = hit.fEdep;
83
84}
85
86//______________________________________________________________________________
87AliTOFhitT0::AliTOFhitT0(Int_t shunt, Int_t track, Int_t *vol,
88 Float_t *hits)
89:AliHit(shunt, track)
90{
91//
92// Constructor of hit object
93//
94 //
95 // Hit Volume
96 //
97 fSector= vol[0];
98 fPlate = vol[1];
99 fStrip = vol[2];
100 fPadx = vol[3];
101 fPadz = vol[4];
102 //
103 //Position of the hit
104 fX = hits[0];
105 fY = hits[1];
106 fZ = hits[2];
107 //
108 // Momentum components of the particle in the ALICE frame when hit is produced
109 fPx = hits[3];
110 fPy = hits[4];
111 fPz = hits[5];
112 fPmom= hits[6];
113 //
114 // Time Of Flight for the particle that produces hit
115 fTof = hits[7]; //TOF[s]
116 //
117 // Other Data
118 fDx = hits[8]; //Distance from the edge along x axis
119 fDy = hits[9]; //Y cohordinate of the hit
120 fDz = hits[10]; //Distance from the edge along z axis
121 fIncA= hits[11]; //Incidence angle
122 fEdep= hits[12]; //Energy loss in TOF pad
123 fLenTof= hits[13]; //Track length in TOF pad
124}
125