#ifndef ALIDETECTORRECOPARAM_H
#include "AliDetectorRecoParam.h"
#endif
+
#ifndef ALITRDCALPID_H
-#include "Cal/AliTRDCalPID.h"
+#include "AliTRDCalPID.h"
+#endif
+
+#ifndef ALITRDPIDRESPONSE_H
+#include "AliTRDPIDResponse.h"
#endif
class TString;
};
AliTRDrecoParam();
AliTRDrecoParam(const AliTRDrecoParam &rec);
+ AliTRDrecoParam& operator=(const AliTRDrecoParam &rec);
~AliTRDrecoParam() { }
Double_t GetChi2Y() const { return fkChi2Y; }
Double_t GetNSigmaClusters() const { return fkNSigmaClusters; }
Double_t GetFindableClusters() const { return fkFindable; }
inline Int_t GetPIDLQslices() const;
+ inline AliTRDPIDResponse::ETRDPIDMethod GetPIDmethod() const;
Double_t GetMaxTheta() const { return fkMaxTheta; }
Double_t GetMaxPhi() const { return fkMaxPhi; }
Double_t GetPlaneQualityThreshold() const { return fkPlaneQualityThreshold; }
Int_t GetTCnexp() const { return fTCnexp; };
Int_t GetNumberOfPresamples() const { return fNumberOfPresamples;}
Int_t GetNumberOfPostsamples() const { return fNumberOfPostsamples;}
+ Int_t GetNumberOfSeedConfigs() const { return fNumberOfConfigs;}
+ Int_t GetRecEveryNTB() const { return fRecEveryNTB; }
Bool_t IsArgon() const { return TESTBIT(fFlags, kDriftGas); }
Bool_t IsCheckTimeConsistency() const { return kCheckTimeConsistency;}
Bool_t IsOverPtThreshold(Double_t pt) const {return Bool_t(pt>fkPtThreshold);}
Bool_t UseTailCancelation() const { return TESTBIT(fFlags, kTailCancelation); }
static AliTRDrecoParam *GetLowFluxParam();
+ static AliTRDrecoParam *GetLowFluxHLTParam();
static AliTRDrecoParam *GetHighFluxParam();
+ static AliTRDrecoParam *GetHighFluxHLTParam();
static AliTRDrecoParam *GetCosmicTestParam();
void SetArgon(Bool_t b = kTRUE) {if(b) SETBIT(fFlags, kDriftGas); else CLRBIT(fFlags, kDriftGas);}
void SetLUT(Bool_t b=kTRUE) {if(b) SETBIT(fFlags, kLUT); else CLRBIT(fFlags, kLUT);}
void SetGAUS(Bool_t b=kTRUE) {if(b) SETBIT(fFlags, kGAUS); else CLRBIT(fFlags, kGAUS);}
void SetPIDNeuralNetwork(Bool_t b=kTRUE) {if(b) SETBIT(fFlags, kSteerPID); else CLRBIT(fFlags, kSteerPID);}
+ inline void SetPIDmethod(AliTRDPIDResponse::ETRDPIDMethod method);
void SetPIDLQslices(Int_t s);
void SetTailCancelation(Bool_t b=kTRUE) {if(b) SETBIT(fFlags, kTailCancelation); else CLRBIT(fFlags, kTailCancelation);}
void SetXenon(Bool_t b = kTRUE) {if(b) CLRBIT(fFlags, kDriftGas); else SETBIT(fFlags, kDriftGas);}
inline void SetSysCovMatrix(Double_t *sys);
void SetNumberOfPresamples(Int_t n) { fNumberOfPresamples = n;}
void SetNumberOfPostsamples(Int_t n) { fNumberOfPostsamples = n;}
+ void SetRecEveryTwoTB() { fRecEveryNTB = 2; fkNMeanClusters = 10; }
private:
// Physics reference values for TRD
Double_t fkChi2Y; // Max chi2 on the y direction for seeding clusters Rieman fit
Double_t fkChi2YSlope; // Slope of the chi2-distribution in y-direction
Double_t fkChi2ZSlope; // Slope of the chi2-distribution in z-direction
- Double_t fkChi2YCut; // Cut on the Chi2 in y-direction in the likelihood filter
+ Double_t fkChi2YCut; // Cut on the Chi2 in y-direction in the likelihood filter
Double_t fkPhiSlope; // Slope of the distribution of the deviation between track angle and tracklet angle
Double_t fkNMeanClusters; // Mean number of clusters per tracklet
Double_t fkNSigmaClusters; // Sigma of the number of clusters per tracklet
Double_t fSysCovMatrix[5]; // Systematic uncertainty from calibration and alignment for each tracklet
Double_t fPIDThreshold[AliTRDCalPID::kNMom]; // PID Thresholds for Electron candidate decision
+ Int_t fNumberOfConfigs; // Used number of seed configurations
// Reconstruction Options for TRD reconstruction
Int_t fStreamLevel[kTRDreconstructionTasks]; // Stream Level
Long64_t fFlags; // option Flags
-
+
// Raw Reader Params
TString fRawStreamVersion; // Raw Reader version
Double_t fClusSigThresh; // Threshold value for cluster signal
Int_t fTCnexp; // Number of exponentials, digital filter
Double_t fTCParams[8]; // Tail Cancellation parameters for drift gases
-
+ Int_t fRecEveryNTB; // Reconstruct each nth timebin
+
// ADC parameter
Int_t fNumberOfPresamples; // number of presamples
Int_t fNumberOfPostsamples; // number of postsamples
- ClassDef(AliTRDrecoParam, 11) // Reconstruction parameters for TRD detector
+ ClassDef(AliTRDrecoParam, 12) // Reconstruction parameters for TRD detector
};
return TESTBIT(fFlags, kLQ2D) ? 2 : 1;
}
+//___________________________________________________
+inline AliTRDPIDResponse::ETRDPIDMethod AliTRDrecoParam::GetPIDmethod() const
+{
+ AliTRDPIDResponse::ETRDPIDMethod method = AliTRDPIDResponse::kLQ1D;
+ if(IsPIDNeuralNetwork()) method = AliTRDPIDResponse::kNN;
+ else if(TESTBIT(fFlags, kLQ2D)) method = AliTRDPIDResponse::kLQ2D;
+ return method;
+}
+
+//___________________________________________________
+inline void AliTRDrecoParam::SetPIDmethod(AliTRDPIDResponse::ETRDPIDMethod method)
+{
+ switch(method){
+ case AliTRDPIDResponse::kLQ2D:
+ CLRBIT(fFlags, kSteerPID);
+ SETBIT(fFlags, kLQ2D);
+ break;
+ case AliTRDPIDResponse::kNN:
+ SETBIT(fFlags, kSteerPID);
+ break;
+ case AliTRDPIDResponse::kLQ1D:
+ default:
+ CLRBIT(fFlags, kSteerPID);
+ CLRBIT(fFlags, kLQ2D);
+ break;
+ }
+}
+
#endif