#include "AliTPCParam.h"
#include "AliTPCParamSR.h"
#include "AliTPCcalibDB.h"
+#include "AliTracker.h"
+#include "AliMagF.h"
ClassImp(AliTPCReconstructor)
-AliTPCRecoParam * AliTPCReconstructor::fgkRecoParam =0; // reconstruction parameters
Int_t AliTPCReconstructor::fgStreamLevel = 0; // stream (debug) level
//
// default constructor
//
- if (!fgkRecoParam) {
- AliError("The Reconstruction parameters nonitialized - Used default one");
- fgkRecoParam = AliTPCRecoParam::GetHighFluxParam();
+ //
+ //
+ AliTPCcalibDB * calib = AliTPCcalibDB::Instance();
+ const AliMagF * field = AliTracker::GetFieldMap();
+ if (field) { // Set correctly the magnetic field in the ExB calculation
+ calib->SetExBField(field->SolenoidField());
}
-
AliTPCParam* param = GetTPCParam();
if (!param) {
AliWarning("Loading default TPC parameters !");
fClusterer = new AliTPCclustererMI(param);
}
+AliTPCReconstructor::AliTPCReconstructor(const AliTPCReconstructor& /*rec*/):
+AliReconstructor(),
+fClusterer(NULL)
+{
+ //
+ // Dummy copu constructor
+ //
+}
+
+AliTPCReconstructor& AliTPCReconstructor::operator=(const AliTPCReconstructor&){
+ //
+ // dummy operator
+ //
+ return *this;
+}
+
//_____________________________________________________________________________
AliTPCReconstructor::~AliTPCReconstructor()
{
- if (fgkRecoParam) delete fgkRecoParam;
if (fClusterer) delete fClusterer;
}
void AliTPCReconstructor::Reconstruct(AliRawReader* rawReader, TTree* clustersTree) const {
// single event local reconstruction
// of TPC data starting from raw data
- TString option = GetOption();
- if (option.Contains("OldRCUFormat"))
- fClusterer->SetOldRCUFormat(kTRUE);
fClusterer->SetOutput(clustersTree);
fClusterer->Digits2Clusters(rawReader);
{
// make PID
- Double_t parTPC[] = {47., 0.10, 10.};
+ Double_t parTPC[] = {47., 0.07, 5.};
AliTPCpidESD tpcPID(parTPC);
tpcPID.MakePID(esd);
}