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 ///////////////////////////////////////////////////////////////////////////////
18 /// This is a class for containing T0 time corrected by SPD vertex and amplitude
20 ///////////////////////////////////////////////////////////////////////////////
22 #include "AliESDTZEROfriend.h"
24 ClassImp(AliESDTZEROfriend)
26 //_____________________________________________________________________________
27 AliESDTZEROfriend::AliESDTZEROfriend():
30 for(int i = 0;i<24;i++)fT0time[i] = fT0ampQTC[i] = fT0ampLEDminCFD[i] = 0;
32 AliESDTZEROfriend::AliESDTZEROfriend(const AliESDTZEROfriend &tzero ) :
36 for(int i = 0;i<24;i++){
37 fT0time[i] = tzero.fT0time[i];
38 fT0ampQTC[i] = tzero.fT0ampQTC[i];
39 fT0ampLEDminCFD[i] = tzero.fT0ampLEDminCFD[i];
43 AliESDTZEROfriend& AliESDTZEROfriend::operator=(const AliESDTZEROfriend& tzero){
44 // assigmnent operator
46 TObject::operator=(tzero);
47 for(int i = 0;i<24;i++){
48 fT0time[i] = tzero.fT0time[i];
49 fT0ampQTC[i] = tzero.fT0ampQTC[i];
50 fT0ampLEDminCFD[i] = tzero.fT0ampLEDminCFD[i];
56 void AliESDTZEROfriend::Copy(TObject &obj) const {
58 // this overwrites the virtual TOBject::Copy()
59 // to allow run time copying without casting
63 AliESDTZEROfriend *robj = dynamic_cast<AliESDTZEROfriend*>(&obj);
64 if(!robj)return; // not an AliESDTZEROfriend
68 void AliESDTZEROfriend::Reset()
70 // Reset the contents of the object
71 for(int i = 0;i<24;i++)
72 fT0time[i]= fT0ampQTC[i] = fT0ampLEDminCFD[i] =0 ;