]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDclusterizer.h
Fix coverity defect
[u/mrichter/AliRoot.git] / TRD / AliTRDclusterizer.h
index 4daf6dee3ff5e474396e63c1ac3cbfcc64b10fdd..dfedd19f028dbfb0aebfbfd3d8f11f37c4550181 100644 (file)
@@ -32,6 +32,7 @@ class AliTRDCalROC;
 class AliTRDReconstructor;
 class AliTRDCalSingleChamberStatus;
 class AliTRDrawStreamBase;
+class AliTRDrecoParam;
 
 class AliTRDclusterizer : public TNamed 
 {
@@ -44,7 +45,7 @@ class AliTRDclusterizer : public TNamed
     kTrOwner = BIT(14)  //  toggle online tracklets ownership
     ,kClOwner= BIT(15)  //  toggle cluster ownership
     ,kLabels = BIT(16)  //  toggle MC labels for clusters
-    ,kHLT    = BIT(17)  //  HLT mode
+    ,kSkipTrafo = BIT(17)  //  skip the coordinate transformation of clusters?
     ,kLUT    = BIT(18)  //  using look up table for cluster's r-phi position
     ,kGAUS   = BIT(19)  //  using gauss approx. for cluster's r-phi position
     ,knewDM  = BIT(20)  //  was the digitsmanger created by raw2clusters?
@@ -76,7 +77,6 @@ class AliTRDclusterizer : public TNamed
   Bool_t   OpenInput(Int_t nEvent = 0);
   Bool_t   OpenOutput();
   Bool_t   OpenOutput(TTree *const clusterTree);
-  Bool_t   OpenTrackletOutput();
 
   Bool_t   ReadDigits();
   Bool_t   ReadDigits(AliRawReader *rawReader);
@@ -102,17 +102,17 @@ class AliTRDclusterizer : public TNamed
   Int_t            GetAddedClusters() const {return fNoOfClusters;}
   Int_t            GetNTimeBins() const {return fTimeTotal;}
 
-  Bool_t   IsClustersOwner() const {return TestBit(kClOwner);}
+  Bool_t           IsClustersOwner() const {return TestBit(kClOwner);}
   virtual void     SetClustersOwner(Bool_t own=kTRUE) {SetBit(kClOwner, own); if(!own) {fRecPoints = 0x0; fNoOfClusters=0;} }
-  void     SetTrackletsOwner(Bool_t own=kTRUE) {SetBit(kTrOwner, own); if(!own) {fTracklets = 0x0; } }
+  void             SetTrackletsOwner(Bool_t own=kTRUE) {SetBit(kTrOwner, own); if(!own) {fTracklets = 0x0; } }
+  void             SetSkipTransform(Bool_t b=kTRUE) {SetBit(kSkipTrafo, b); }
 
 protected:
 
-  void             DeConvExp (const Double_t *const source, Double_t *const target
-                            ,const Int_t nTimeTotal, const Int_t nexp);
-  void             TailCancelation();
+  void             DeConvExp (Short_t *const arr, const Int_t nTime, const Int_t nexp);
+  void             TailCancelation(const AliTRDrecoParam* const recoParam);
 
-  Float_t  Unfold(Double_t eps, Int_t layer, const Double_t *const padSignal) const;
+  Float_t          Unfold(Double_t eps, Int_t layer, const Double_t *const padSignal) const;
   
   void             SetPadStatus(const UChar_t status, UChar_t &encoding) const;
   UChar_t          GetPadStatus(UChar_t encoding) const;
@@ -147,8 +147,9 @@ protected:
 
   AliTRDarrayADC      *fDigits;               // Array holding the digits
   AliTRDSignalIndex   *fIndexes;              // Array holding the indexes to the digits
-  Float_t              fMaxThresh;            // Threshold value for the maximum
-  Float_t              fSigThresh;            // Threshold value for the digit signal
+  Short_t              fMaxThresh;            // Threshold value for the maximum
+  Short_t              fMaxThreshTest;        // Threshold value for the maximum to test agains
+  Short_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