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 for T0 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)
//  fLen     : track length when striking the TOF detector
//  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
//
//*-- Author: F. Pierella

#include "AliTOFhitT0.h"

ClassImp(AliTOFhitT0)

//____________________________________________________________________________
  AliTOFhitT0::AliTOFhitT0():
  AliHit(),
  fSector(-1),
  fPlate(-1),
  fStrip(-1),
  fPadx(-1),
  fPadz(-1),
  fPx(0),
  fPy(0),
  fPz(0),
  fPmom(0),
  fTof(0),
  fLenTof(0),
  fDx(0),
  fDy(0),
  fDz(0),
  fIncA(0),
  fEdep(0)
{
}
//____________________________________________________________________________
AliTOFhitT0::AliTOFhitT0(const AliTOFhitT0 & 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),
  fLenTof(hit.fLenTof),
  fDx(hit.fDx),
  fDy(hit.fDy),
  fDz(hit.fDz),
  fIncA(hit.fIncA),
  fEdep(hit.fEdep){
   //
   // copy ctor for AliTOFhitT0 object
   //
  fTrack  = hit.fTrack;  

}
 
//______________________________________________________________________________
AliTOFhitT0& AliTOFhitT0::operator = (const AliTOFhitT0& hit) {

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

  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;
  fLenTof=hit.fLenTof;
  fDx=hit.fDx;
  fDy=hit.fDy;
  fDz=hit.fDz;
  fIncA=hit.fIncA;
  fEdep=hit.fEdep;
  fTrack = hit.fTrack;
  return *this;

}
//______________________________________________________________________________
AliTOFhitT0::AliTOFhitT0(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),
  fLenTof(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
  fLenTof= hits[13];    //Track length in TOF pad
}

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