]>
Commit | Line | Data |
---|---|---|
dc7ca31d | 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 | // Class AliT0RecPoint for T0 time and ADC signals | |
c41ceaac | 19 | // fTimeA - A side TOF signal |
20 | // fTimeC - C side TOF signal | |
21 | // fTimeBestA - TOF first particle on the A side | |
22 | // TimeBestC - TOF first particle on the C side | |
23 | // fTimeAverage = (fTimeBestA + TimeBestLeft ) /2. T0 signal | |
dc7ca31d | 24 | // fVertex - vertex position |
25 | // | |
26 | /////////////////////////////////////////////////////////////////////// | |
27 | ||
28 | ||
29 | ||
30 | ||
31 | #include "AliT0RecPoint.h" | |
4fe1424e | 32 | |
dc7ca31d | 33 | |
34 | ClassImp(AliT0RecPoint) | |
35 | ||
36 | //------------------------------------ | |
4fe1424e | 37 | AliT0RecPoint::AliT0RecPoint() : TObject(), |
c2337900 | 38 | fTimeAverage(99999), |
39 | fTimeOnlineMean(99999), | |
40 | fVertexPosition(999999), | |
4fe1424e | 41 | fTimeBestA(0),fTimeBestC(0), |
3c6a09a2 | 42 | fMultC(0),fMultA(0), |
adf36b9d | 43 | fT0clock(9999999), |
44 | fT0trig(0) | |
45 | ||
dc7ca31d | 46 | { |
47 | //ctor | |
c2337900 | 48 | // fTimeAverage=99999; |
c41ceaac | 49 | fTimeBestA=99999; |
50 | fTimeBestC=99999; | |
c2337900 | 51 | // fVertexPosition=99999; |
dc7ca31d | 52 | fMultA=0; |
53 | fMultC=0; | |
54 | for (Int_t i=0; i<24; i++) { fTime[i]=0; fADC[i]=0; fADCLED[i]=0;} | |
55 | } | |
4fe1424e | 56 | //_____________________________________________________________________________ |
57 | ||
58 | AliT0RecPoint::AliT0RecPoint(const AliT0RecPoint &r):TObject(), | |
c2337900 | 59 | fTimeAverage(999999), |
60 | fTimeOnlineMean(999999), | |
61 | fVertexPosition(999999), | |
62 | fTimeBestA(0),fTimeBestC(0), | |
3c6a09a2 | 63 | fMultC(0),fMultA(0), |
adf36b9d | 64 | fT0clock(9999999), |
65 | fT0trig(0) | |
4fe1424e | 66 | { |
67 | // | |
68 | // AliT0RecPoint copy constructor | |
69 | // | |
70 | ||
71 | ((AliT0RecPoint &) r).Copy(*this); | |
72 | ||
73 | } | |
adf36b9d | 74 | //_____________________________________________________________________________ |
75 | ||
76 | void AliT0RecPoint::SetT0Trig(Bool_t *tr) | |
77 | { | |
78 | fT0trig=0; | |
79 | for (Int_t i=0; i<5; i++) fT0trig=fT0trig<<1|tr[i]; | |
80 | } | |
81 | //_____________________________________________________________________________ | |
82 | ||
83 | void AliT0RecPoint::PrintTriggerSignals(Int_t trig) | |
84 | { | |
85 | Bool_t tr[5]; | |
86 | for (Int_t i=0; i<5; i++) tr[i]=false; | |
87 | ||
88 | for (Int_t i=0; i<5; i++) { | |
89 | tr[i] = trig&(1<<i); | |
90 | printf(" T0 trigers %i ",tr[i]); | |
91 | } | |
92 | printf(" \n "); | |
93 | ||
94 | ||
95 | } |