]> git.uio.no Git - u/mrichter/AliRoot.git/blob - FIT/AliFITRecPoint.cxx
Fixing file after rebasing master
[u/mrichter/AliRoot.git] / FIT / AliFITRecPoint.cxx
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: 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 
25 //
26 ///////////////////////////////////////////////////////////////////////
27
28
29
30  
31 #include "AliFITRecPoint.h"
32 #include "AliLog.h"
33
34
35 ClassImp(AliFITRecPoint)
36
37 //------------------------------------
38   AliFITRecPoint::AliFITRecPoint() : TObject()
39
40   //ctor
41   for (Int_t i=0; i<160; i++) { fTime[i]=0; fADCQTC[i]=0; }
42 }
43 //_____________________________________________________________________________
44
45 AliFITRecPoint::AliFITRecPointUp(const AliFITRecPointUp &r):TObject(){
46   //
47   // AliFITRecPoint copy constructor
48   //
49   for (Int_t i=0; i<160; i++) {
50     fTime[i] = r. fTime[i];
51     fADCQTC[i] = r.fADCQTC[i]; 
52   }
53   //  ((AliFITRecPointUp &) r).Copy(*this);
54
55 }
56 //_____________________________________________________________________________
57
58 /*
59 //_____________________________________________________________________________
60
61 AliFITRecPointUp& AliFITRecPointUp:: operator=(const AliFITRecPointUp &r)
62 {
63   //
64   // assign. operator
65   //
66
67   if (this == &r)
68     return *this;
69   
70   fTimeAverage = r.fTimeAverage;
71   fTimeOnlineMean = r.fTimeOnlineMean;
72   fVertexPosition = r.fVertexPosition;
73   fTimeBestA =  r.fTimeBestA;
74   fTimeBestC = r.fTimeBestC;
75   fMultC = r.fMultC;
76   fMultA = r.fMultA;
77   fFITclock = r.fFITclock;
78   fFITtrig = r.fFITtrig;
79   fPileup = r.fPileup;
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];
85     fADC[i] = r.fADC[i]; 
86   }
87   
88   return *this;
89 }
90
91 //_____________________________________________________________________________
92 void AliFITRecPoint::SetFITTrig(Bool_t *tr)
93 {
94   fFITtrig=0;
95   for (Int_t i=0; i<5; i++) fFITtrig = fFITtrig | (tr[i]?(1<<i):0);
96 }
97 //_____________________________________________________________________________
98
99 void AliFITRecPoint::PrintTriggerSignals(Int_t trig)
100 {
101   Bool_t tr[5];
102   for (Int_t i=0; i<5; i++) tr[i] = (trig&(1<<i))!=0;
103
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]));
105 }
106 */