#include "AliTOFdigit.h"
#include "AliTOFDigitMap.h"
#include "AliTOFrawData.h"
+#include "AliTOFReconstructor.h"
+#include "AliTOFRecoParam.h"
ClassImp(AliTOFClusterFinderV1)
fRecPoints(new TClonesArray("AliTOFcluster", 4000)),
fNumberOfTofClusters(0),
fNumberOfTofDigits(0),
- fMaxDeltaTime(2),
+ fMaxDeltaTime(0),
fVerbose(0),
fDecoderVersion(0),
fTOFcalib(calib),
//
// Constructor
//
-
+ const AliTOFRecoParam *recoParam = AliTOFReconstructor::GetRecoParam(); // instantiate reco param from STEER...
+ fMaxDeltaTime = recoParam->GetMaxDeltaTime();
}
//_____________________________________________________________________________
fRecPoints(new TClonesArray("AliTOFcluster", 4000)),
fNumberOfTofClusters(0),
fNumberOfTofDigits(0),
- fMaxDeltaTime(2),
+ fMaxDeltaTime(0),
fVerbose(0),
fDecoderVersion(0),
fTOFcalib(calib),
//
// Constructor
//
+ const AliTOFRecoParam *recoParam = AliTOFReconstructor::GetRecoParam(); // instantiate reco param from STEER...
+ fMaxDeltaTime = recoParam->GetMaxDeltaTime();
}
//_____________________________________________________________________________
FillRecPoint();
clusterTree->Fill();
- AliInfo(Form("Number of found TOF clusters: %d", fNumberOfTofClusters));
+ AliInfo(Form("Number of found clusters: %d", fNumberOfTofClusters));
ResetRecpoint();
fMaxChi2(10.),
fMaxChi2TRD(150.),
fTimeResolution(80.),
- fTimeNSigma(5.)
+ fTimeNSigma(5.),
+ fMaxDeltaTime(2)
{
//
// constructor
fMaxChi2(p.fMaxChi2),
fMaxChi2TRD(p.fMaxChi2TRD),
fTimeResolution(p.fTimeResolution),
- fTimeNSigma(p.fTimeNSigma)
+ fTimeNSigma(p.fTimeNSigma),
+ fMaxDeltaTime(p.fMaxDeltaTime)
{
//copy Ctor
AliDetectorRecoParam::operator=(p);
fTimeZero=p.fTimeZero;
- fTimeZerofromT0=p.fTimeZerofromT0;
- fTimeZerofromTOF=p.fTimeZerofromTOF;
- fTimeWalkCorr=p.fTimeWalkCorr;
- fApplyPbPbCuts=p.fApplyPbPbCuts;
- fWindowSizeMaxY=p.fWindowSizeMaxY;
- fWindowSizeMaxZ=p.fWindowSizeMaxZ;
- fDistanceCut=p.fDistanceCut;
- fWindowScaleFact=p.fWindowScaleFact;
- fStepSize=p.fStepSize;
- fSensRadius=p.fSensRadius;
- fMaxChi2=p.fMaxChi2;
- fMaxChi2TRD=p.fMaxChi2TRD;
- fTimeResolution=p.fTimeResolution;
- fTimeNSigma=p.fTimeNSigma;
- return *this;
+ fTimeZerofromT0=p.fTimeZerofromT0;
+ fTimeZerofromTOF=p.fTimeZerofromTOF;
+ fTimeWalkCorr=p.fTimeWalkCorr;
+ fApplyPbPbCuts=p.fApplyPbPbCuts;
+ fWindowSizeMaxY=p.fWindowSizeMaxY;
+ fWindowSizeMaxZ=p.fWindowSizeMaxZ;
+ fDistanceCut=p.fDistanceCut;
+ fWindowScaleFact=p.fWindowScaleFact;
+ fStepSize=p.fStepSize;
+ fSensRadius=p.fSensRadius;
+ fMaxChi2=p.fMaxChi2;
+ fMaxChi2TRD=p.fMaxChi2TRD;
+ fTimeResolution=p.fTimeResolution;
+ fTimeNSigma=p.fTimeNSigma;
+ fMaxDeltaTime=p.fMaxDeltaTime;
+ return *this;
}
//_____________________________________________________________________________
AliTOFRecoParam::~AliTOFRecoParam()
param->fApplyPbPbCuts = kTRUE;
param->fWindowScaleFact = 5.;
param->fDistanceCut = 3.;
+ param->fMaxDeltaTime = 2;
return param;
}
param->fApplyPbPbCuts = kFALSE;
param->fWindowScaleFact = 5.;
param->fDistanceCut = 10.;
- return param;
-}
-
-//_____________________________________________________________________________
-AliTOFRecoParam *AliTOFRecoParam::GetCosmicMuonParam(){
- //
- // set default reconstruction parameters for cosmic muon run
- //
- AliTOFRecoParam *param = new AliTOFRecoParam();
- param->fApplyPbPbCuts = kFALSE;
- param->fWindowScaleFact = 5.;
- param->fDistanceCut = 10.;
+ param->fMaxDeltaTime = 2;
return param;
}
AliInfo(Form(" Maximum X2 track-tof clusters (TRD): %f", fMaxChi2TRD));
AliInfo(Form(" Time resolution for responce function in PID: %f ps",
fTimeResolution));
- AliInfo(Form(" N-Sigma Range used for responce function in PID: %f",
+ AliInfo(Form(" N-Sigma Range used for responce function in PID: %f",
fTimeNSigma));
+ AliInfo(Form(" Max time difference between two (or more) time measurements"
+ " coming from two (or more) neighbouring pads"
+ " to define if they are coming from the same ionization event"
+ " or not: %2d bins -> %f ps",
+ fMaxDeltaTime, fMaxDeltaTime*AliTOFGeometry::TdcBinWidth()))
}
#include "AliDetectorRecoParam.h"
+#include "AliTOFGeometry.h"
+
class AliTOFRecoParam : public AliDetectorRecoParam
{
public:
Float_t GetSensRadius() const { return fSensRadius;}
Float_t GetStepSize() const { return fStepSize;}
Double_t GetMaxChi2() const { return fMaxChi2;}
- Double_t GetMaxChi2TRD() const { return fMaxChi2TRD;}
+ Double_t GetMaxChi2TRD() const { return fMaxChi2TRD;}
Double_t GetTimeResolution() const { return fTimeResolution;}
Double_t GetTimeNSigma() const { return fTimeNSigma;}
+ Int_t GetMaxDeltaTime() const { return fMaxDeltaTime;}
//Setters
void SetMaxChi2TRD(Double_t in) {fMaxChi2TRD=in;}
void SetTimeResolution(Double_t in) {fTimeResolution=in;}
void SetTimeNSigma(Double_t in) {fTimeNSigma=in;}
+ void SetMaxDeltaTime(Int_t a) {fMaxDeltaTime = a;}; // to set deltaTime [bin number]
+ void SetMaxDeltaTime(Float_t a) {fMaxDeltaTime = (Int_t)(a/AliTOFGeometry::TdcBinWidth());}; // to set deltaTime [ps]
static AliTOFRecoParam *GetPbPbparam(); // reco param for PbPb.
static AliTOFRecoParam *GetPPparam(); // reco param for PP
- static AliTOFRecoParam *GetCosmicMuonParam(); // reco param for cosmic muons
private:
Bool_t fTimeZero; //use Time Zero info in Pid
Double_t fMaxChi2TRD; // maximum X2 track-tof clusters (TRD)
Double_t fTimeResolution; // Time resolution for resp. function in PID (ps)
Double_t fTimeNSigma; // N-Sigma Range used for resp. function in PID
+ Int_t fMaxDeltaTime; // max time difference in between two tof
+ // measurements for two neighbouring pads
+ // [number of bins]
- ClassDef(AliTOFRecoParam, 3)
+ ClassDef(AliTOFRecoParam, 4)
};
#endif