1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
17 /////////////////////////////////////////////////////////////////////////
18 // Class AliT0RecPoint for T0 time and ADC signals
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
24 // fVertex - vertex position
26 ///////////////////////////////////////////////////////////////////////
31 #include "AliT0RecPoint.h"
35 ClassImp(AliT0RecPoint)
37 //------------------------------------
38 AliT0RecPoint::AliT0RecPoint() : TObject(),
40 fTimeOnlineMean(99999),
41 fVertexPosition(999999),
42 fTimeBestA(0),fTimeBestC(0),
52 // fTimeAverage=99999;
55 // fVertexPosition=99999;
58 for (Int_t i=0; i<24; i++) { fTime[i]=0; fADC[i]=0; fADCLED[i]=0;
59 for(Int_t iHit=0; iHit<5; iHit++) {
60 fTimeFull[i][iHit] = 0;
67 //_____________________________________________________________________________
69 AliT0RecPoint::AliT0RecPoint(const AliT0RecPoint &r):TObject(),
71 fTimeOnlineMean(999999),
72 fVertexPosition(999999),
73 fTimeBestA(0),fTimeBestC(0),
81 // AliT0RecPoint copy constructor
84 ((AliT0RecPoint &) r).Copy(*this);
87 //_____________________________________________________________________________
89 void AliT0RecPoint::SetT0Trig(Bool_t *tr)
92 for (Int_t i=0; i<5; i++) fT0trig = fT0trig | (tr[i]?(1<<i):0);
94 //_____________________________________________________________________________
96 void AliT0RecPoint::PrintTriggerSignals(Int_t trig)
99 for (Int_t i=0; i<5; i++) tr[i] = (trig&(1<<i))!=0;
101 AliInfo(Form("T0 triggers tvdc %d orA %d orC %d centr %d semicentral %d",tr[0],tr[1],tr[2],tr[3],tr[4]));