]> git.uio.no Git - u/mrichter/AliRoot.git/blob - VZERO/AliVZEROhit.cxx
Initial version, Compiler directive for selection of containers type: either STL...
[u/mrichter/AliRoot.git] / VZERO / AliVZEROhit.cxx
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 /* $Id$ */
17
18 //_________________________________________________________________________
19 //
20 //      Hit class for VZERO detector   
21 //  
22 //_________________________________________________________________________
23
24
25 #include "AliVZEROhit.h"
26
27 ClassImp(AliVZEROhit)
28  
29 //_____________________________________________________________________________
30 AliVZEROhit::AliVZEROhit(Int_t shunt, Int_t track, Int_t* vol, Float_t* hits):
31   AliHit(shunt, track)
32 {
33   //
34   // Adds a VZERO hit
35   //
36   
37   fVolume          = vol[0];     // Volume ID
38   fCopy            = vol[1];     // Copy number
39   fX               = hits[0];    // X position of hit
40   fY               = hits[1];    // Y position of hit
41   fZ               = hits[2];    // Z position of hit
42   fTrackPiD        = hits[3];    // Track PiD
43   fTof             = hits[4];    // Particle time of flight
44   fCharge          = hits[5];    // Particle charge
45   fTheta           = hits[6];    // Incident theta angle in degrees 
46   fPhi             = hits[7];    // Incident phi angle in degrees
47   fRingNumber      = hits[8];    // Ring number 
48   
49   fPt              = hits[9];    // Local transverse momentum of the particle
50   fPmom            = hits[10];   // Local P momentum of the particle
51   fPx              = hits[11];   // Local Px momentum of the particle
52   fPy              = hits[12];   // Local Py momentum of the particle
53   fPz              = hits[13];   // Local Pz momentum of the particle
54   
55   fVx              = hits[14];   // Vertex x coordinate
56   fVy              = hits[15];   // Vertex y coordinate
57   fVz              = hits[16];   // Vertex z coordinate
58   
59   fEloss           = hits[17];   // Energy deposited inside volume
60   fTleng           = hits[18];   // Track length inside volume
61   
62 }