fRecoParam(0),
fBDumpSignal(kFALSE),
fBClonesArray(kFALSE),
- fUseHLTClusters(1),
+ fUseHLTClusters(4),
fAllBins(NULL),
fAllSigBins(NULL),
- fAllNSigBins(NULL)
+ fAllNSigBins(NULL),
+ fHLTClusterAccess(NULL)
{
//
// COSNTRUCTOR
fAllNSigBins[iRow]=0;
}
}
-//______________________________________________________________
-AliTPCclustererMI::AliTPCclustererMI(const AliTPCclustererMI ¶m)
- :TObject(param),
- fBins(0),
- fSigBins(0),
- fNSigBins(0),
- fLoop(0),
- fMaxBin(0),
- fMaxTime(0),
- fMaxPad(0),
- fSector(-1),
- fRow(-1),
- fSign(0),
- fRx(0),
- fPadWidth(0),
- fPadLength(0),
- fZWidth(0),
- fPedSubtraction(kFALSE),
- fEventHeader(0),
- fTimeStamp(0),
- fEventType(0),
- fInput(0),
- fOutput(0),
- fOutputArray(0),
- fOutputClonesArray(0),
- fRowCl(0),
- fRowDig(0),
- fParam(0),
- fNcluster(0),
- fNclusters(0),
- fDebugStreamer(0),
- fRecoParam(0),
- fBDumpSignal(kFALSE),
- fBClonesArray(kFALSE),
- fUseHLTClusters(1),
- fAllBins(NULL),
- fAllSigBins(NULL),
- fAllNSigBins(NULL)
-{
- //
- // dummy
- //
- fMaxBin = param.fMaxBin;
-}
-//______________________________________________________________
-AliTPCclustererMI & AliTPCclustererMI::operator =(const AliTPCclustererMI & param)
-{
- //
- // assignment operator - dummy
- //
- fMaxBin=param.fMaxBin;
- return (*this);
-}
+
//______________________________________________________________
AliTPCclustererMI::~AliTPCclustererMI(){
//
delete [] fAllBins;
delete [] fAllSigBins;
delete [] fAllNSigBins;
+ if (fHLTClusterAccess) delete fHLTClusterAccess;
}
void AliTPCclustererMI::SetInput(TTree * tree)
fParam->Dump();
fRecoParam->Dump();
}
+ fRowDig = NULL;
//-----------------------------------------------------------------
// Use HLT clusters
//-----------------------------------------------------------------
- fUseHLTClusters = fRecoParam->GetUseHLTClusters();
-
- AliInfo(Form("Usage of HLT clusters in TPC reconstruction : %d",fUseHLTClusters));
-
if (fUseHLTClusters == 3 || fUseHLTClusters == 4) {
AliInfo("Using HLT clusters for TPC off-line reconstruction");
fZWidth = fParam->GetZWidth();
return;
}
else {
- AliInfo("Now trying to read TPC RAW");
+ AliInfo("Now trying to read from TPC RAW");
}
}
// Some other problem during cluster reading
//-----------------------------------------------------------------
// Use HLT clusters
//-----------------------------------------------------------------
- fUseHLTClusters = fRecoParam->GetUseHLTClusters();
-
- AliInfo(Form("Usage of HLT clusters in TPC reconstruction : %d",fUseHLTClusters));
-
if (fUseHLTClusters == 3 || fUseHLTClusters == 4) {
AliInfo("Using HLT clusters for TPC off-line reconstruction");
fZWidth = fParam->GetZWidth();
// used in Digits2Clusters
//
- TObject* pClusterAccess=NULL;
+ if (!fHLTClusterAccess) {
TClass* pCl=NULL;
ROOT::NewFunc_t pNewFunc=NULL;
do {
AliError("unable to create instance of AliHLTTPCClusterAccessHLTOUT");
return -2;
}
- pClusterAccess=reinterpret_cast<TObject*>(p);
- if (!pClusterAccess) {
- AliError("instance not of type TObject");
- return -3 ;
+ fHLTClusterAccess=reinterpret_cast<TObject*>(p);
}
+ TObject* pClusterAccess=fHLTClusterAccess;
+
const Int_t kNIS = fParam->GetNInnerSector();
const Int_t kNOS = fParam->GetNOuterSector();
const Int_t kNS = kNIS + kNOS;
fNclusters = 0;
+ // make sure that all clusters from the previous event are cleared
+ pClusterAccess->Clear("event");
for(fSector = 0; fSector < kNS; fSector++) {
Int_t iResult = 1;
TString param("sector="); param+=fSector;
- pClusterAccess->Clear();
+ // prepare for next sector
+ pClusterAccess->Clear("sector");
pClusterAccess->Execute("read", param, &iResult);
if (iResult < 0) {
return iResult;
fNclusters+=nClusterSector;
} // for(fSector = 0; fSector < kNS; fSector++) {
- delete pClusterAccess;
+ pClusterAccess->Clear("event");
Info("Digits2Clusters", "Number of converted HLT clusters : %d", fNclusters);