- Bool_t IsMaximum(const Int_t row, const Int_t col, const Int_t time,
- UChar_t &pasStatus, Double_t *const Signals);
- Bool_t IsFivePadCluster(const Int_t row, const Int_t col, const Int_t time,
- Double_t *SignalsThisMax, Double_t *SignalsNeighbourMax, Double_t &ratio);
- void CreateCluster(const Int_t row, const Int_t col, const Int_t time,
- const Double_t *const clusterSignal, const UChar_t padStatus);
-
- const AliTRDReconstructor *fReconstructor; //! reconstructor
- AliRunLoader *fRunLoader; //! Run Loader
- TTree *fClusterTree; //! Tree with the cluster
- TClonesArray *fRecPoints; //! Array of clusters
-
- TTree *fTrackletTree; //! Tree for tracklets
-
- AliTRDdigitsManager *fDigitsManager; //! TRD digits manager
-
- UInt_t **fTrackletContainer; //! tracklet container
-
- Bool_t fAddLabels; // Should clusters have MC labels?
- Int_t fRawVersion; // Expected raw version of the data - default is 2
-
- AliTRDtransform *fTransform; //! Transforms the reconstructed space points
-
- Int_t fLUTbin; // Number of bins of the LUT
- Double_t *fLUT; //! The lookup table
-
- AliTRDarrayADC *fDigitsIn;
- AliTRDSignalIndex *fIndexes;
- Float_t fADCthresh; // ADC thresholds: There is no ADC threshold anymore, and simParam should not be used in clusterizer. KO
- Float_t fMaxThresh; // Threshold value for the maximum
- Float_t fSigThresh; // Threshold value for the digit signal
- Float_t fMinMaxCutSigma; // Threshold value for the maximum (cut noise)
- Float_t fMinLeftRightCutSigma; // Threshold value for the sum pad (cut noise)
- Int_t fLayer; // Current layer of the detector
- Int_t fDet; // Current detecor
- UShort_t fVolid; // Volume ID
- Int_t fColMax; // Number of Colums in one detector
- Int_t fTimeTotal; // Number of time bins
- AliTRDCalROC *fCalGainFactorROC; // Calibration object with pad wise values for the gain factors
- Float_t fCalGainFactorDetValue;// Calibration value for chamber wise noise
- AliTRDCalROC *fCalNoiseROC; // Calibration object with pad wise values for the noise
- Float_t fCalNoiseDetValue; // Calibration value for chamber wise noise
- AliTRDarraySignal *fDigitsOut;
- Int_t fClusterROC; // The index to the first cluster of a given ROC
- Int_t firstClusterROC; // The number of cluster in a given ROC
-
- struct ClusterizerStruct
- {
- Int_t Row;
- Int_t Col;
- Int_t Time;
- UChar_t padStatus;
- Double_t Signals[3];
- ClusterizerStruct():Row(0),Col(0),Time(0),padStatus(0)
- {}
- ClusterizerStruct &operator=(const ClusterizerStruct &a)
- {Row=a.Row; Col=a.Col; Time=a.Time; padStatus=a.padStatus;
- memcpy(Signals, a.Signals, 3*sizeof(Double_t)); return *this;}
- };
-
- ClassDef(AliTRDclusterizer,6) // TRD clusterfinder
+ Bool_t IsMaximum(const MaxStruct &Max, UChar_t &padStatus, Float_t *const Signals); //for const correctness reasons not const parameters are given separately
+ Bool_t FivePadCluster(MaxStruct &ThisMax, MaxStruct &NeighbourMax);
+ void CreateCluster(const MaxStruct &Max);
+
+ virtual void AddClusterToArray(AliTRDcluster* cluster);
+
+ const AliTRDReconstructor *fReconstructor; //! reconstructor
+ AliRunLoader *fRunLoader; //! Run Loader
+ TTree *fClusterTree; //! Tree with the cluster
+ TClonesArray *fRecPoints; //! Array of clusters
+ TClonesArray *fTracklets; //! Array of online tracklets
+ TClonesArray *fTracks; //! Array of GTU tracks
+
+ TTree *fTrackletTree; //! Tree for tracklets
+
+ AliTRDdigitsManager *fDigitsManager; //! TRD digits manager
+
+ UInt_t **fTrackletContainer; //! tracklet container
+ // legacy code to avoid breakint AliHLTTRDClusterizer
+ // but it's useless
+
+ Int_t fRawVersion; // Expected raw version of the data - default is 2
+
+ AliTRDtransform *fTransform; //! Transforms the reconstructed space points
+
+ AliTRDarrayADC *fDigits; // Array holding the digits
+ AliTRDarrayADC *fDigitsRaw; // Array holding the raw digits if requested
+ AliTRDSignalIndex *fIndexes; // Array holding the indexes to the digits
+ Float_t fMaxThresh; // Threshold value for the maximum
+ Float_t fMaxThreshTest; // Threshold value for the maximum to test agains
+ Float_t fSigThresh; // Threshold value for the digit signal
+ Float_t fMinMaxCutSigma; // Threshold value for the maximum (cut noise)
+ Float_t fMinLeftRightCutSigma; // Threshold value for the sum pad (cut noise)
+ Int_t fLayer; // Current layer of the detector
+ Int_t fDet; // Current detecor
+ UShort_t fVolid; // Volume ID
+ Int_t fColMax; // Number of Colums in one detector
+ Int_t fTimeTotal; // Number of time bins
+ AliTRDCalROC *fCalGainFactorROC; // Calibration object with pad wise values for the gain factors
+ Float_t fCalGainFactorDetValue; // Calibration value for chamber wise noise
+ AliTRDCalROC *fCalNoiseROC; // Calibration object with pad wise values for the noise
+ Float_t fCalNoiseDetValue; // Calibration value for chamber wise noise
+ AliTRDCalSingleChamberStatus *fCalPadStatusROC; // Calibration object with the pad status
+ AliTRDCalOnlineGainTableROC *fCalOnlGainROC; // Calibration table of online gain factors
+ Int_t fClusterROC; // The index to the first cluster of a given ROC
+ Int_t firstClusterROC; // The number of cluster in a given ROC
+ Int_t fNoOfClusters; // Number of Clusters already processed and still owned by the clusterizer
+ Int_t fBaseline; // Baseline of the ADC values
+ AliTRDrawStream *fRawStream; // Raw data streamer
+ UInt_t fTrgFlags[AliTRDgeometry::kNsector]; // trigger flags
+
+private:
+ inline void CalcAdditionalInfo(const MaxStruct &Max, Short_t *const signals, Int_t &nPadCount);
+
+ ClassDef(AliTRDclusterizer,6) // TRD clusterfinder