AliEMCALRecParam* AliEMCALReconstructor::fgkRecParam = 0; // EMCAL rec. parameters
AliEMCALRawUtils* AliEMCALReconstructor::fgRawUtils = 0; // EMCAL raw utilities class
+AliEMCALClusterizer* AliEMCALReconstructor::fgClusterizer = 0; // EMCAL clusterizer class
TClonesArray* AliEMCALReconstructor::fgDigitsArr = 0; // shoud read just once at event
-
//____________________________________________________________________________
AliEMCALReconstructor::AliEMCALReconstructor()
: fDebug(kFALSE), fList(0), fGeom(0)
InitRecParam();
fgRawUtils = new AliEMCALRawUtils;
+ fgClusterizer = new AliEMCALClusterizerv1;
//To make sure we match with the geometry in a simulation file,
//let's try to get it first. If not, take the default geometry
if(fgDigitsArr && fgDigitsArr->GetEntries()) {
- AliEMCALClusterizerv1 clu;
- clu.SetInput(digitsTree);
- clu.SetOutput(clustersTree);
+ fgClusterizer->SetInput(digitsTree);
+ fgClusterizer->SetOutput(clustersTree);
+
if(Debug())
- clu.Digits2Clusters("deb all") ;
+ fgClusterizer->Digits2Clusters("deb all") ;
else
- clu.Digits2Clusters("") ;
+ fgClusterizer->Digits2Clusters("");
+
+ fgClusterizer->Clear();
}
+
}
//____________________________________________________________________________
// Works on the current event
// printf(" ## AliEMCALReconstructor::FillESD() is started ### \n ");
//return;
- const double timeScale = 1.e+11; // transition constant from sec to 0.01 ns
//######################################################
//#########Calculate trigger and set trigger info###########
// printf(" ## AliEMCALReconstructor::FillESD() is ended : ncl %i -> %i ### \n ",nClusters, nClustersNew);
}
+//__________________________________________________________________________
void AliEMCALReconstructor::ReadDigitsArrayFromTree(TTree *digitsTree) const
{
// See AliEMCALClusterizer::SetInput(TTree *digitsTree);