//-------------------------------------------------------
#include <Rtypes.h>
#include <TObject.h>
+#include <AliTPCRecoParam.h>
#define kMAXCLUSTER 2500
class TFile;
class AliTPCclustererMI : public TObject{
public:
AliTPCclustererMI(const AliTPCParam* par, const AliTPCRecoParam * recoParam = 0);
- AliTPCclustererMI(const AliTPCclustererMI ¶m); // copy constructor
- AliTPCclustererMI &operator = (const AliTPCclustererMI & param); //assignment
virtual ~AliTPCclustererMI();
virtual void Digits2Clusters();
+ virtual void Digits2ClustersOld(AliRawReader* rawReader);
virtual void Digits2Clusters(AliRawReader* rawReader);
- virtual void SetInput(TTree * tree); // set input tree with digits
+ virtual void SetInput(TTree * tree); // set input tree with digits
virtual void SetOutput(TTree * tree); // set output tree with
virtual void FillRow(); // fill the output container - Tree or TObjArray
TObjArray * GetOutputArray(){return fOutputArray;}
void StoreInClonesArray(Bool_t bOutput = kTRUE) {fBClonesArray = bOutput;} // store output clusters in TClonesArray
+ void SetUseHLTClusters(Int_t useHLTClusters) {fUseHLTClusters = useHLTClusters;} // set usage from HLT clusters from rec.C options
+
private:
+ AliTPCclustererMI(const AliTPCclustererMI ¶m); // copy constructor
+ AliTPCclustererMI &operator = (const AliTPCclustererMI & param); //assignment
+
Bool_t IsMaximum(Float_t k, Int_t max, const Float_t *bins) const;
void MakeCluster2(Int_t k,Int_t max,Float_t *bins,UInt_t m,
AliTPCclusterMI &c);
void FindClusters(AliTPCCalROC * noiseROC);
Bool_t AcceptCluster(AliTPCclusterMI*c);
Double_t ProcesSignal(Float_t * signal, Int_t nchannels, Int_t id[3], Double_t &rms, Double_t &pedestalCalib);
-
+ void ProcessSectorData();
+ Int_t ReadHLTClusters();
+
Float_t * fBins; //!digits array
Int_t * fSigBins; //!digits array containg only timebins above threshold
Int_t fNSigBins;//!size of fSigBins
const AliTPCRecoParam * fRecoParam; //! reconstruction parameters
Bool_t fBDumpSignal; // dump signal flag
Bool_t fBClonesArray; // output clusters stored in TClonesArray
+ Int_t fUseHLTClusters; // use HLT clusters instead of offline clusters
+
+ // Non-persistent arrays
- ClassDef(AliTPCclustererMI,2) // Time Projection Chamber digits
+ Float_t** fAllBins; //! All sector bins
+ Int_t** fAllSigBins;//! All signal bins in a sector
+ Int_t* fAllNSigBins;//! Number of signal bins in a sector
+ TObject* fHLTClusterAccess;// interface to HLT clusters
+
+ ClassDef(AliTPCclustererMI,0) // TPC cluster finder
};
inline Bool_t AliTPCclustererMI::IsMaximum(Float_t q,Int_t max,const Float_t *bins) const {
if (bins[+max-1] >= q) return kFALSE;
if (bins[+max+1] > q) return kFALSE;
if (bins[-max+1] >= q) return kFALSE;
+ //
+ //
+ if (fRecoParam->GetClusterMaxRange(1)>0){ //local maxima in z on more than 1 time bin
+ if (bins[-2] > q) return kFALSE;
+ if (bins[ 2] > q) return kFALSE;
+ }
+ if (fRecoParam->GetClusterMaxRange(0)>0){ //local maxima in y on more than pad
+ if (bins[-2*max] > q) return kFALSE;
+ if (bins[ 2*max] > q) return kFALSE;
+ }
+
return kTRUE;
}