// //
///////////////////////////////////////////////////////////////////////////////
-#include <TF1.h>
-#include <TTree.h>
-#include <TH1.h>
-#include <TFile.h>
#include <TClonesArray.h>
#include <TObjArray.h>
#include "AliRunLoader.h"
#include "AliLoader.h"
-#include "AliRawReader.h"
-#include "AliLog.h"
#include "AliAlignObj.h"
#include "AliTRDclusterizer.h"
#include "AliTRDdigitsManager.h"
#include "AliTRDrawData.h"
#include "AliTRDcalibDB.h"
-#include "AliTRDrecoParam.h"
-#include "AliTRDCommonParam.h"
#include "AliTRDtransform.h"
#include "AliTRDSignalIndex.h"
#include "AliTRDrawStreamBase.h"
,fTransform(new AliTRDtransform(0))
,fDigits(NULL)
,fIndexes(NULL)
- ,fADCthresh(0)
,fMaxThresh(0)
,fSigThresh(0)
,fMinMaxCutSigma(0)
,fTransform(new AliTRDtransform(0))
,fDigits(NULL)
,fIndexes(NULL)
- ,fADCthresh(0)
,fMaxThresh(0)
,fSigThresh(0)
,fMinMaxCutSigma(0)
,fTransform(NULL)
,fDigits(NULL)
,fIndexes(NULL)
- ,fADCthresh(0)
,fMaxThresh(0)
,fSigThresh(0)
,fMinMaxCutSigma(0)
((AliTRDclusterizer &) c).fTransform = NULL;
((AliTRDclusterizer &) c).fDigits = NULL;
((AliTRDclusterizer &) c).fIndexes = NULL;
- ((AliTRDclusterizer &) c).fADCthresh = 0;
((AliTRDclusterizer &) c).fMaxThresh = 0;
((AliTRDclusterizer &) c).fSigThresh = 0;
((AliTRDclusterizer &) c).fMinMaxCutSigma= 0;
}
//_____________________________________________________________________________
-Bool_t AliTRDclusterizer::OpenOutput(TTree *clusterTree)
+Bool_t AliTRDclusterizer::OpenOutput(TTree *const clusterTree)
{
//
// Connect the output tree
}
AliTRDrawStreamBase *input = AliTRDrawStreamBase::GetRawStream(rawReader);
+ if(fReconstructor->IsHLT())
+ input->SetSharedPadReadout(kFALSE);
AliInfo(Form("Stream version: %s", input->IsA()->GetName()));
}
//_____________________________________________________________________________
-void AliTRDclusterizer::SetPadStatus(const UChar_t status, UChar_t &out){
+void AliTRDclusterizer::SetPadStatus(const UChar_t status, UChar_t &out) const {
//
// Set the pad status into out
// First three bits are needed for the position encoding
return kFALSE;
}
- fADCthresh = 0;
-
if (!fReconstructor){
AliError("Reconstructor not set\n");
return kFALSE;
}
- TTreeSRedirector *fDebugStream = fReconstructor->GetDebugStream(AliTRDReconstructor::kClusterizer);
-
fMaxThresh = fReconstructor->GetRecoParam()->GetClusMaxThresh();
fSigThresh = fReconstructor->GetRecoParam()->GetClusSigThresh();
fMinMaxCutSigma = fReconstructor->GetRecoParam()->GetMinMaxCutSigma();
// Calibration object with the pad status
fCalPadStatusROC = calibration->GetPadStatusROC(fDet);
-
+
SetBit(kLUT, fReconstructor->UseLUT());
SetBit(kGAUS, fReconstructor->UseGAUS());
SetBit(kHLT, fReconstructor->IsHLT());
-
+
firstClusterROC = -1;
fClusterROC = 0;
if(last.Row>-1) CreateCluster(last);
if(fReconstructor->GetStreamLevel(AliTRDReconstructor::kClusterizer) > 2){
+ TTreeSRedirector* fDebugStream = fReconstructor->GetDebugStream(AliTRDReconstructor::kClusterizer);
(*fDebugStream) << "MakeClusters"
<< "Detector=" << det
<< "NMaxima=" << nMaximas
}
//_____________________________________________________________________________
-void AliTRDclusterizer::AddClusterToArray(AliTRDcluster *cluster)
+void AliTRDclusterizer::AddClusterToArray(AliTRDcluster* cluster)
{
//
// Add a cluster to the array
}
//_____________________________________________________________________________
-Float_t AliTRDclusterizer::Unfold(Double_t eps, Int_t layer, Double_t *padSignal) const
+Float_t AliTRDclusterizer::Unfold(Double_t eps, Int_t layer, const Double_t *const padSignal) const
{
//
// Method to unfold neighbouring maxima.
for(iTime = 0; iTime < fTimeTotal; iTime++)//while (fIndexes->NextTbinIndex(iTime))
{
// Store the amplitude of the digit if above threshold
- if (outADC[iTime] > fADCthresh)
+ if (outADC[iTime] > 0)
fDigits->SetData(iRow,iCol,iTime,TMath::Nint(outADC[iTime]));
else
fDigits->SetData(iRow,iCol,iTime,0);
//
if (!fTracklets && fReconstructor->IsProcessingTracklets()) {
- fTracklets = new TClonesArray("AliTRDcluster", 2*MAX_TRACKLETS_PERHC);
+ fTracklets = new TClonesArray("AliTRDcluster", 2*MAXTRACKLETSPERHC);
//SetClustersOwner(kTRUE);
//AliTRDReconstructor::SetTracklets(0x0);
}