#endif
}
-AliHLTReconstructor::AliHLTReconstructor(const AliHLTReconstructor&)
- :
- AliReconstructor(),
- fDoHough(0),
- fDoTracker(0),
- fDoBench(0),
- fDoCleanUp(0),
- fpSystem(NULL)
-{
- // not a valid copy constructor
-}
-
-AliHLTReconstructor& AliHLTReconstructor::operator=(const AliHLTReconstructor&)
-{
- // not a valid assignment operator
- fDoHough=0;
- fDoTracker=0;
- fDoBench=0;
- fDoCleanUp=0;
- fpSystem=NULL;
- return *this;
-}
-
AliHLTReconstructor::~AliHLTReconstructor()
{
//destructor
TString libs("");
TString option = GetOption();
TObjArray* pTokens=option.Tokenize(" ");
+ option="";
if (pTokens) {
int iEntries=pTokens->GetEntries();
for (int i=0; i<iEntries; i++) {
libs+=token;
libs+=" ";
} else {
- AliWarning(Form("unknown option: %s", token.Data()));
+ if (option.Length()>0) option+=" ";
+ option+=token;
}
}
delete pTokens;
AliError("error while loading HLT libraries");
return;
}
- // No run-loaders anymore...needs a fix
-// if (!fpSystem->CheckStatus(AliHLTSystem::kReady) &&
-// (fpSystem->Configure(runLoader))<0) {
-// AliError("error during HLT system configuration");
-// return;
-// }
+
+ if (!fpSystem->CheckStatus(AliHLTSystem::kReady)) {
+ typedef int (*AliHLTSystemSetOptions)(AliHLTSystem* pInstance, const char* options);
+ gSystem->Load("libHLTinterface.so");
+ AliHLTSystemSetOptions pFunc=(AliHLTSystemSetOptions)(gSystem->DynFindSymbol("libHLTinterface.so", "AliHLTSystemSetOptions"));
+ if (pFunc) {
+ if ((pFunc)(fpSystem, option.Data())<0) {
+ AliError("error setting options for HLT system");
+ return;
+ }
+ } else if (option.Length()>0) {
+ AliError(Form("version of HLT system does not support the options \'%s\'", option.Data()));
+ return;
+ }
+ if ((fpSystem->Configure())<0) {
+ AliError("error during HLT system configuration");
+ return;
+ }
+ }
}
// void AliHLTReconstructor::Reconstruct(AliRunLoader* runLoader, AliRawReader* rawReader) const
public:
AliHLTReconstructor();
AliHLTReconstructor(Bool_t doTracker, Bool_t doHough);
- /** not a valid copy constructor, defined according to effective C++ style */
- AliHLTReconstructor(const AliHLTReconstructor& src);
- /** not a valid assignment op, but defined according to effective C++ style */
- AliHLTReconstructor& operator=(const AliHLTReconstructor& src);
/** destructor */
virtual ~AliHLTReconstructor();
// virtual void FillDHLTRecPoint(AliRawReader* rawReader, Int_t nofEvent, Int_t dcCut) const;
private:
+ /** copy constructor prohibited */
+ AliHLTReconstructor(const AliHLTReconstructor& src);
+ /** assignment operator prohibited */
+ AliHLTReconstructor& operator=(const AliHLTReconstructor& src);
+
/* void ReconstructWithConformalMapping(AliRunLoader* runLoader,Int_t iEvent) const; */
/* void ReconstructWithHoughTransform(AliRunLoader* runLoader,Int_t iEvent) const; */
/* void FillESDforConformalMapping(AliESDEvent* esd,Int_t iEvent) const; */