#include <TSocket.h>
#include "AliLog.h"
-#include "AliESD.h"
+#include "AliESDEvent.h"
#include "AliITSclustererV2.h"
#include "AliITSgeom.h"
#include "AliITStrackerV2.h"
#include "AliLoader.h"
+// Matthias 2007-10-03 HLT legacy code disabled
+// everything encapsulated by ENABLE_ALIMONITORPROCESS_HLT
+// set the define in the header file to include the code
+#ifdef ENABLE_ALIMONITORPROCESS_HLT
#include "AliMonitorHLT.h"
#include "AliMonitorHLTHough.h"
+#endif // ENABLE_ALIMONITORPROCESS_HLT
#include "AliMonitorITS.h"
#include "AliMonitorProcess.h"
#include "AliMonitorTPC.h"
#include "AliTPCtrackerMI.h"
#include "AliV0vertexer.h"
+#ifdef ENABLE_ALIMONITORPROCESS_HLT
#include <AliHLTStandardIncludes.h>
#include <AliHLTMemHandler.h>
#include <AliHLTClusterFitter.h>
#include <AliHLTTransform.h>
#include <AliHLTVertex.h>
#include <AliLevel3.h>
+#endif // ENABLE_ALIMONITORPROCESS_HLT
ClassImp(AliMonitorProcess)
fITSgeom = (AliITSgeom*)gDirectory->Get("AliITSgeom");
if (!fITSgeom) AliFatal("could not load ITS geometry");
+#ifdef ENABLE_ALIMONITORPROCESS_HLT
// Init TPC parameters for HLT
Bool_t isinit=AliHLTTransform::Init(const_cast<char*>(fileNameGalice),kTRUE);
if(!isinit){
AliFatal("Could not create transform settings, please check log for error messages!");
}
+#endif // ENABLE_ALIMONITORPROCESS_HLT
fTopFolder = new TFolder("Monitor", "monitor histograms");
fTopFolder->SetOwner(kTRUE);
if (IsSelected("TPC")) fMonitors.Add(new AliMonitorTPC(fTPCParam));
if (IsSelected("ITS")) fMonitors.Add(new AliMonitorITS(fITSgeom));
if (IsSelected("V0s")) fMonitors.Add(new AliMonitorV0s);
+#ifdef ENABLE_ALIMONITORPROCESS_HLT
if (IsSelected("HLTConfMap")) fMonitors.Add(new AliMonitorHLT(fTPCParam));
if (IsSelected("HLTHough")) fMonitors.Add(new AliMonitorHLTHough(fTPCParam));
+#endif // ENABLE_ALIMONITORPROCESS_HLT
for (Int_t iMonitor = 0; iMonitor < fMonitors.GetEntriesFast(); iMonitor++) {
((AliMonitor*) fMonitors[iMonitor])->CreateHistos(fTopFolder);
delete fFile;
gSystem->Unlink("monitor_tree.root");
+#ifdef ENABLE_ALIMONITORPROCESS_HLT
delete fHLT;
delete fHLTHough;
+#endif // ENABLE_ALIMONITORPROCESS_HLT
gSystem->RemoveSignalHandler(fInterruptHandler);
delete fInterruptHandler;
if (nEvents <= 0) return kFALSE;
AliDebug(1, Form("found %d event(s) in file %s",
nEvents, fFileName.Data()));
+#ifdef ENABLE_ALIMONITORPROCESS_HLT
if (IsSelected("HLTConfMap")) CreateHLT(fFileName);
if (IsSelected("HLTHough")) CreateHLTHough(fFileName);
+#endif // ENABLE_ALIMONITORPROCESS_HLT
// loop over the events
for (Int_t iEvent = 0; iEvent < nEvents; iEvent++) {
AliInfo(Form("run: %d event: %d %d\n", rawReader.GetRunNumber(),
rawReader.GetEventId()[0], rawReader.GetEventId()[1]));
- AliESD esd;
+ AliESDEvent esd;
if (IsSelected("TPC")) {
CheckForConnections();
if (!ReconstructTPC(&rawReader, &esd)) return kFALSE;
if (!ReconstructV0s(&esd)) return kFALSE;
if (fStopping) break;
}
+#ifdef ENABLE_ALIMONITORPROCESS_HLT
if (IsSelected("HLTConfMap")) {
CheckForConnections();
if (!ReconstructHLT(iEvent)) return kFALSE;
if (!ReconstructHLTHough(iEvent)) return kFALSE;
if (fStopping) break;
}
+#endif // ENABLE_ALIMONITORPROCESS_HLT
if (fDisplaySocket) fDisplaySocket->Send("new event");
if (fStopping) break;
}
+#ifdef ENABLE_ALIMONITORPROCESS_HLT
if (fHLT) {
delete fHLT;
fHLT = NULL;
delete fHLTHough;
fHLTHough = NULL;
}
+#endif // ENABLE_ALIMONITORPROCESS_HLT
return kTRUE;
}
}
//_____________________________________________________________________________
-Bool_t AliMonitorProcess::ReconstructTPC(AliRawReader* rawReader, AliESD* esd)
+Bool_t AliMonitorProcess::ReconstructTPC(AliRawReader* rawReader, AliESDEvent* esd)
{
// find TPC clusters and tracks
}
//_____________________________________________________________________________
-Bool_t AliMonitorProcess::ReconstructITS(AliRawReader* rawReader, AliESD* esd)
+Bool_t AliMonitorProcess::ReconstructITS(AliRawReader* rawReader, AliESDEvent* esd)
{
// find ITS clusters and tracks
}
//_____________________________________________________________________________
-Bool_t AliMonitorProcess::ReconstructV0s(AliESD* esd)
+Bool_t AliMonitorProcess::ReconstructV0s(AliESDEvent* esd)
{
// find V0s
return kTRUE;
}
+#ifdef ENABLE_ALIMONITORPROCESS_HLT
//_____________________________________________________________________________
void AliMonitorProcess::CreateHLT(const char* fileName)
{
fHLT->WriteFiles("./hlt/");
}
+#endif // ENABLE_ALIMONITORPROCESS_HLT
+#ifdef ENABLE_ALIMONITORPROCESS_HLT
//_____________________________________________________________________________
void AliMonitorProcess::CreateHLTHough(const char* fileName)
{
// fHLTHough->GetMaxFinder()->SetThreshold(14000);
}
+#endif // ENABLE_ALIMONITORPROCESS_HLT
+#ifdef ENABLE_ALIMONITORPROCESS_HLT
//_____________________________________________________________________________
Bool_t AliMonitorProcess::ReconstructHLT(Int_t iEvent)
{
gSystem->Exec(command);
return kTRUE;
}
+#endif // ENABLE_ALIMONITORPROCESS_HLT
+#ifdef ENABLE_ALIMONITORPROCESS_HLT
//_____________________________________________________________________________
Bool_t AliMonitorProcess::ReconstructHLTHough(Int_t iEvent)
{
gSystem->Exec(command);
return kTRUE;
}
+#endif // ENABLE_ALIMONITORPROCESS_HLT
//_____________________________________________________________________________
Bool_t AliMonitorProcess::WriteHistos()