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 **************************************************************************/
16 /* $Id: AliFITRecPointUp.cxx 52436 2011-10-31 14:29:49Z alla $ */
17 /////////////////////////////////////////////////////////////////////////
18 // Class AliFITRecPointUp for FIT 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. FIT signal
24 // fVertex - vertex position
26 ///////////////////////////////////////////////////////////////////////
31 #include "AliFITRecPoint.h"
35 ClassImp(AliFITRecPoint)
37 //------------------------------------
38 AliFITRecPoint::AliFITRecPoint() : TObject()
41 for (Int_t i=0; i<160; i++) { fTime[i]=0; fADCQTC[i]=0; }
43 //_____________________________________________________________________________
45 AliFITRecPoint::AliFITRecPointUp(const AliFITRecPointUp &r):TObject(){
47 // AliFITRecPoint copy constructor
49 for (Int_t i=0; i<160; i++) {
50 fTime[i] = r. fTime[i];
51 fADCQTC[i] = r.fADCQTC[i];
53 // ((AliFITRecPointUp &) r).Copy(*this);
56 //_____________________________________________________________________________
59 //_____________________________________________________________________________
61 AliFITRecPointUp& AliFITRecPointUp:: operator=(const AliFITRecPointUp &r)
70 fTimeAverage = r.fTimeAverage;
71 fTimeOnlineMean = r.fTimeOnlineMean;
72 fVertexPosition = r.fVertexPosition;
73 fTimeBestA = r.fTimeBestA;
74 fTimeBestC = r.fTimeBestC;
77 fFITclock = r.fFITclock;
78 fFITtrig = r.fFITtrig;
80 fSattelite = r.fSattelite;
81 fTime1stA = r.fTime1stA;
82 fTime1stC = r.fTime1stC;
83 for (Int_t i=0; i<160 i++) {
84 fTime[i] = r. fTime[i];
91 //_____________________________________________________________________________
92 void AliFITRecPoint::SetFITTrig(Bool_t *tr)
95 for (Int_t i=0; i<5; i++) fFITtrig = fFITtrig | (tr[i]?(1<<i):0);
97 //_____________________________________________________________________________
99 void AliFITRecPoint::PrintTriggerSignals(Int_t trig)
102 for (Int_t i=0; i<5; i++) tr[i] = (trig&(1<<i))!=0;
104 AliInfo(Form("FIT triggers tvdc %d orA %d orC %d centr %d semicentral %d",tr[0],tr[1],tr[2],tr[3],tr[4]));