ClassImp(AliT0Reconstructor)
AliT0Reconstructor:: AliT0Reconstructor(): AliReconstructor(),
- fRefAmp(1),
- fRefPoint(0),
fdZonA(0),
fdZonC(0),
fZposition(0),
fdZonA = TMath::Abs(fParam->GetZPositionShift("T0/A/PMT15"));
fCalib = new AliT0Calibrator();
- Int_t fRefAmp = GetRecoParam()->GetRefAmp();
- Int_t fRefPoint = GetRecoParam()->GetRefPoint();
-
-}
-//____________________________________________________________________
-
-AliT0Reconstructor::AliT0Reconstructor(const AliT0Reconstructor &r):
- AliReconstructor(r),
- fRefAmp(1),
- fRefPoint(0),
- fdZonA(0),
- fdZonC(0),
- fZposition(0),
- fParam(NULL),
- fAmpLEDrec(0),
- fQTC(0),
- fAmpLED(0),
- fCalib()
-
- {
- //
- // AliT0Reconstructor copy constructor
- //
-
- ((AliT0Reconstructor &) r).Copy(*this);
-
-}
-
-//_____________________________________________________________________________
-AliT0Reconstructor &AliT0Reconstructor::operator=(const AliT0Reconstructor &r)
-{
- //
- // Assignment operator
- //
- if (this != &r) ((AliT0Reconstructor &) r).Copy(*this);
- return *this;
}
//_____________________________________________________________________________
-
void AliT0Reconstructor::Reconstruct(TTree*digitsTree, TTree*clustersTree) const
{
// T0 digits reconstruction
+ Int_t refAmp = GetRecoParam()->GetRefAmp();
TArrayI * timeCFD = new TArrayI(24);
TArrayI * timeLED = new TArrayI(24);
else
adc[ipmt] = 0;
- time[ipmt] = fCalib-> WalkCorrection(fRefAmp, ipmt, adc[ipmt], timeCFD->At(ipmt)) ;
+ time[ipmt] = fCalib-> WalkCorrection(refAmp, ipmt, adc[ipmt], timeCFD->At(ipmt)) ;
Double_t sl = Double_t(timeLED->At(ipmt) - timeCFD->At(ipmt));
// time[ipmt] = fCalib-> WalkCorrection( ipmt, Int_t(sl), timeCFD[ipmt],"cosmic" ) ;
//
// reference amplitude and time ref. point from reco param
- // Int_t refAmp = GetRecoParam()->GetRefAmp();
- //Int_t refPoint = GetRecoParam()->GetRefPoint();
+ Int_t refAmp = GetRecoParam()->GetRefAmp();
+ Int_t refPoint = GetRecoParam()->GetRefPoint();
Int_t allData[110][5];
}
}
- Int_t ref = allData[fRefPoint][0]-5000.;
+ Int_t ref = allData[refPoint][0]-5000.;
Float_t channelWidth = fParam->GetChannelWidth() ;
// Int_t meanT0 = fParam->GetMeanT0();
adc[ipmt] = 0;
- time[ipmt] = fCalib-> WalkCorrection(fRefAmp, ipmt, adc[ipmt], timeCFD[ipmt] ) ;
+ time[ipmt] = fCalib-> WalkCorrection(refAmp, ipmt, adc[ipmt], timeCFD[ipmt] ) ;
Double_t sl = timeLED[ipmt] - timeCFD[ipmt];
// time[ipmt] = fCalib-> WalkCorrection( ipmt, Int_t(sl), timeCFD[ipmt] ) ;