ROOT logo
/**************************************************************************
 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
 *                                                                        *
 * Author: The ALICE Off-line Project.                                    *
 * Contributors are mentioned in the code where appropriate.              *
 *                                                                        *    
 * Permission to use, copy, modify and distribute this software and its   *
 * documentation strictly for non-commercial purposes is hereby granted   *
 * without fee, provided that the above copyright notice appears in all   *
 * copies and that both the copyright notice and this permission notice   *
 * appear in the supporting documentation. The authors make no claims     *
 * about the suitability of this software for any purpose. It is          *
 * provided "as is" without express or implied warranty.                  * 
 **************************************************************************/

//_________________________________________________________________________
//  TOF hit  : member variables
//  fTrack   :
//  fX       : X coordinate of the hit in the Master Reference Frame (LAB Frame)
//  fY       : Y coordinate of the hit in the Master Reference Frame (LAB Frame)
//  fZ       : Z coordinate of the hit in the Master Reference Frame (LAB Frame)
//  fSector  : Number of the TOF Sector which belongs the hit 
//  fPlate   : Number of the TOF Plate or Module which belongs the hit 
//  fStrip   : Number of the TOF Strip which belongs the hit 
//  fPadx    : Number of the pad in the strip along the x-axis - in the strip reference frame
//             - where hit is produced 
//  fPadz    : Number of the pad in the strip along the z-axis - in the strip reference frame
//             - where hit is produced
//  fPx      : x-director cosine of the Charged Particle Momentum when hit is
//             produced - expressed in the Master Reference Frame (LAB Frame) -
//  fPy      : y-director cosine of the Charged Particle Momentum when hit is
//             produced - expressed in the Master Reference Frame (LAB Frame) -
//  fPz      : z-director cosine of the Charged Particle Momentum when hit is
//             produced - expressed in the Master Reference Frame (LAB Frame) -
//  fPmom    : Modulus of the Charged Particle Momentum when hit is produced
//  fTof     : Time of Flight i.e. the time between the charged particle is produced and this
//             particle produce the hit on the TOF sensible volume (pad)
//  fDx      : Distance of the hit from the pad edge along x-axis
//  fDy      : y coordinate of the hit in the pad refernce frame  
//  fDz      : Distance of the hit from the pad edge along z-axis
//  fIncA    : Incidence Angle between the Normal to the sensible volume where hit
//             is produced (pad) and the Momentum Direction of the Charged Particle which
//             produces the hit
//  fEdep    : Energy released by charged particle on the sensible TOF volume where hit is
//             produced
// For more detailed informations about the meaning of the TOF-hit member
// variable look at 
// http://www.bo.infn.it/alice/alice-doc/TOFWEB/variables-hits.html
//
//  Getters, setters and member functions  defined here
//
//*-- Authors: F. Pierella, A. Seganti, D. Vicinanza



#include "AliTOFhit.h"

ClassImp(AliTOFhit)

//____________________________________________________________________________
  AliTOFhit::AliTOFhit():
  AliHit(),
  fSector(-1),
  fPlate(-1),
  fStrip(-1),
  fPadx(-1),
  fPadz(-1),
  fPx(0),
  fPy(0),
  fPz(0),
  fPmom(0),
  fTof(0),
  fDx(0),
  fDy(0),
  fDz(0),
  fIncA(0),
  fEdep(0)
{
}

//____________________________________________________________________________
AliTOFhit::AliTOFhit(const AliTOFhit & hit):
  AliHit(hit),
  fSector(hit.fSector),
  fPlate(hit.fPlate),
  fStrip(hit.fStrip),
  fPadx(hit.fPadx),
  fPadz(hit.fPadz),
  fPx(hit.fPx),
  fPy(hit.fPy),
  fPz(hit.fPz),
  fPmom(hit.fPmom),
  fTof(hit.fTof),
  fDx(hit.fDx),
  fDy(hit.fDy),
  fDz(hit.fDz),
  fIncA(hit.fIncA),
  fEdep(hit.fEdep)
{
   //
   // copy ctor for AliTOFhit object
   //
  fTrack = hit.fTrack;
}
 
//______________________________________________________________________________
AliTOFhit& AliTOFhit::operator = (const AliTOFhit& hit) {

  if (this == &hit)
    return *this;

  TObject::operator=(hit);
  fSector=hit.fSector;
  fPlate=hit.fPlate;
  fStrip=hit.fStrip;
  fPadx=hit.fPadx;
  fPadz=hit.fPadz;
  fPx=hit.fPx;
  fPy=hit.fPy;
  fPz=hit.fPz;
  fPmom=hit.fPmom;
  fTof=hit.fTof;
  fDx=hit.fDx;
  fDy=hit.fDy;
  fDz=hit.fDz;
  fIncA=hit.fIncA;
  fEdep=hit.fEdep;
  fTrack = hit.fTrack;
  return *this;

}

//______________________________________________________________________________
AliTOFhit::AliTOFhit(Int_t shunt, Int_t track, Int_t * const vol,
                     Float_t * const hits) :
  AliHit(shunt, track),
  fSector(-1),
  fPlate(-1),
  fStrip(-1),
  fPadx(-1),
  fPadz(-1),
  fPx(0),
  fPy(0),
  fPz(0),
  fPmom(0),
  fTof(0),
  fDx(0),
  fDy(0),
  fDz(0),
  fIncA(0),
  fEdep(0)
{
//
// Constructor of hit object
//
  //
  // Hit Volume
  // 
  fSector= vol[0];
  fPlate = vol[1];
  fStrip = vol[2];
  fPadx = vol[3];
  fPadz = vol[4];
  //
  //Position of the hit
  fX = hits[0];
  fY = hits[1];
  fZ = hits[2];
  //
  // Momentum components of the particle in the ALICE frame when hit is produced
  fPx  = hits[3];
  fPy  = hits[4];
  fPz  = hits[5];
  fPmom= hits[6];
  //
  // Time Of Flight for the particle that produces hit
  fTof = hits[7];   //TOF[s]
  //
  // Other Data
  fDx  = hits[8];   //Distance from the edge along x axis
  fDy  = hits[9];   //Y cohordinate of the hit
  fDz  = hits[10];  //Distance from the edge along z axis
  fIncA= hits[11];  //Incidence angle
  fEdep= hits[12];  //Energy loss in TOF pad
}

 AliTOFhit.cxx:1
 AliTOFhit.cxx:2
 AliTOFhit.cxx:3
 AliTOFhit.cxx:4
 AliTOFhit.cxx:5
 AliTOFhit.cxx:6
 AliTOFhit.cxx:7
 AliTOFhit.cxx:8
 AliTOFhit.cxx:9
 AliTOFhit.cxx:10
 AliTOFhit.cxx:11
 AliTOFhit.cxx:12
 AliTOFhit.cxx:13
 AliTOFhit.cxx:14
 AliTOFhit.cxx:15
 AliTOFhit.cxx:16
 AliTOFhit.cxx:17
 AliTOFhit.cxx:18
 AliTOFhit.cxx:19
 AliTOFhit.cxx:20
 AliTOFhit.cxx:21
 AliTOFhit.cxx:22
 AliTOFhit.cxx:23
 AliTOFhit.cxx:24
 AliTOFhit.cxx:25
 AliTOFhit.cxx:26
 AliTOFhit.cxx:27
 AliTOFhit.cxx:28
 AliTOFhit.cxx:29
 AliTOFhit.cxx:30
 AliTOFhit.cxx:31
 AliTOFhit.cxx:32
 AliTOFhit.cxx:33
 AliTOFhit.cxx:34
 AliTOFhit.cxx:35
 AliTOFhit.cxx:36
 AliTOFhit.cxx:37
 AliTOFhit.cxx:38
 AliTOFhit.cxx:39
 AliTOFhit.cxx:40
 AliTOFhit.cxx:41
 AliTOFhit.cxx:42
 AliTOFhit.cxx:43
 AliTOFhit.cxx:44
 AliTOFhit.cxx:45
 AliTOFhit.cxx:46
 AliTOFhit.cxx:47
 AliTOFhit.cxx:48
 AliTOFhit.cxx:49
 AliTOFhit.cxx:50
 AliTOFhit.cxx:51
 AliTOFhit.cxx:52
 AliTOFhit.cxx:53
 AliTOFhit.cxx:54
 AliTOFhit.cxx:55
 AliTOFhit.cxx:56
 AliTOFhit.cxx:57
 AliTOFhit.cxx:58
 AliTOFhit.cxx:59
 AliTOFhit.cxx:60
 AliTOFhit.cxx:61
 AliTOFhit.cxx:62
 AliTOFhit.cxx:63
 AliTOFhit.cxx:64
 AliTOFhit.cxx:65
 AliTOFhit.cxx:66
 AliTOFhit.cxx:67
 AliTOFhit.cxx:68
 AliTOFhit.cxx:69
 AliTOFhit.cxx:70
 AliTOFhit.cxx:71
 AliTOFhit.cxx:72
 AliTOFhit.cxx:73
 AliTOFhit.cxx:74
 AliTOFhit.cxx:75
 AliTOFhit.cxx:76
 AliTOFhit.cxx:77
 AliTOFhit.cxx:78
 AliTOFhit.cxx:79
 AliTOFhit.cxx:80
 AliTOFhit.cxx:81
 AliTOFhit.cxx:82
 AliTOFhit.cxx:83
 AliTOFhit.cxx:84
 AliTOFhit.cxx:85
 AliTOFhit.cxx:86
 AliTOFhit.cxx:87
 AliTOFhit.cxx:88
 AliTOFhit.cxx:89
 AliTOFhit.cxx:90
 AliTOFhit.cxx:91
 AliTOFhit.cxx:92
 AliTOFhit.cxx:93
 AliTOFhit.cxx:94
 AliTOFhit.cxx:95
 AliTOFhit.cxx:96
 AliTOFhit.cxx:97
 AliTOFhit.cxx:98
 AliTOFhit.cxx:99
 AliTOFhit.cxx:100
 AliTOFhit.cxx:101
 AliTOFhit.cxx:102
 AliTOFhit.cxx:103
 AliTOFhit.cxx:104
 AliTOFhit.cxx:105
 AliTOFhit.cxx:106
 AliTOFhit.cxx:107
 AliTOFhit.cxx:108
 AliTOFhit.cxx:109
 AliTOFhit.cxx:110
 AliTOFhit.cxx:111
 AliTOFhit.cxx:112
 AliTOFhit.cxx:113
 AliTOFhit.cxx:114
 AliTOFhit.cxx:115
 AliTOFhit.cxx:116
 AliTOFhit.cxx:117
 AliTOFhit.cxx:118
 AliTOFhit.cxx:119
 AliTOFhit.cxx:120
 AliTOFhit.cxx:121
 AliTOFhit.cxx:122
 AliTOFhit.cxx:123
 AliTOFhit.cxx:124
 AliTOFhit.cxx:125
 AliTOFhit.cxx:126
 AliTOFhit.cxx:127
 AliTOFhit.cxx:128
 AliTOFhit.cxx:129
 AliTOFhit.cxx:130
 AliTOFhit.cxx:131
 AliTOFhit.cxx:132
 AliTOFhit.cxx:133
 AliTOFhit.cxx:134
 AliTOFhit.cxx:135
 AliTOFhit.cxx:136
 AliTOFhit.cxx:137
 AliTOFhit.cxx:138
 AliTOFhit.cxx:139
 AliTOFhit.cxx:140
 AliTOFhit.cxx:141
 AliTOFhit.cxx:142
 AliTOFhit.cxx:143
 AliTOFhit.cxx:144
 AliTOFhit.cxx:145
 AliTOFhit.cxx:146
 AliTOFhit.cxx:147
 AliTOFhit.cxx:148
 AliTOFhit.cxx:149
 AliTOFhit.cxx:150
 AliTOFhit.cxx:151
 AliTOFhit.cxx:152
 AliTOFhit.cxx:153
 AliTOFhit.cxx:154
 AliTOFhit.cxx:155
 AliTOFhit.cxx:156
 AliTOFhit.cxx:157
 AliTOFhit.cxx:158
 AliTOFhit.cxx:159
 AliTOFhit.cxx:160
 AliTOFhit.cxx:161
 AliTOFhit.cxx:162
 AliTOFhit.cxx:163
 AliTOFhit.cxx:164
 AliTOFhit.cxx:165
 AliTOFhit.cxx:166
 AliTOFhit.cxx:167
 AliTOFhit.cxx:168
 AliTOFhit.cxx:169
 AliTOFhit.cxx:170
 AliTOFhit.cxx:171
 AliTOFhit.cxx:172
 AliTOFhit.cxx:173
 AliTOFhit.cxx:174
 AliTOFhit.cxx:175
 AliTOFhit.cxx:176
 AliTOFhit.cxx:177
 AliTOFhit.cxx:178
 AliTOFhit.cxx:179
 AliTOFhit.cxx:180
 AliTOFhit.cxx:181
 AliTOFhit.cxx:182
 AliTOFhit.cxx:183
 AliTOFhit.cxx:184
 AliTOFhit.cxx:185
 AliTOFhit.cxx:186