forked from alisw/AliRoot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAliTOFPad.cxx
100 lines (93 loc) · 3.09 KB
/
AliTOFPad.cxx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
/**************************************************************************
* 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. *
**************************************************************************/
////////////////////////////////////////////////////////////////////////
//
// AliTOFPad class (class used in TOF Reconstruction)
//
//
// Authors: Bologna-ITEP-Salerno Group
//
// Description: Physical description of the elementary TOF sensitive
// volume (PAD) containing timing and charge induced data.
//
// Member variable summary description:
// - location of the pad according to the current pad numbering scheme
// - simulated time of flight and GEANT time of flight if the pad
// has fired
// - matching flags with the tracks that have fired the pad
//
////////////////////////////////////////////////////////////////////////
#include "AliTOFPad.h"
ClassImp(AliTOFPad)
AliTOFPad::AliTOFPad()
{
//
// Default ctor
//
fSector = 0;
fPlate = 0;
fStrip = 0;
fPixel = 0;
fTrack =-1;
fTrackMatched =-1;
fState = 0;
fRealTime = 0;
fGeantTime = 0;
fCharge = 1;
fAverageTime = 0;
fHit =-1;
}
//___________________________________________
AliTOFPad::AliTOFPad(Int_t sector, Int_t plate, Int_t strip ,Int_t pixel)
{
//
// Par ctor
//
fSector = sector;
fPlate = plate;
fStrip = strip;
fPixel = pixel;
fTrack =-1;
fTrackMatched =-1;
fState = 0;
fRealTime = 0;
fGeantTime = 0;
fCharge = 1;
fAverageTime = 0;
fHit =-1;
}
//___________________________________________
void AliTOFPad::SetGeom(Int_t sector, Int_t plate, Int_t strip, Int_t pixel)
{
//
// Set the pad location in TOF detector as
// sector plate strip pixel
//
fSector = sector;
fPlate = plate;
fStrip = strip;
fPixel = pixel;
}
//___________________________________________
void AliTOFPad::SetTofChargeHit(Float_t realTime, Float_t charge, Float_t geantTime, Int_t hitnum)
{
//
// Set the realTime given by the PAD (if activated), the charge,
// the true time given by GEANT and the hit number
fRealTime = realTime;
fGeantTime = geantTime;
fCharge = charge;
fHit = hitnum;
}