]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MONITOR/AliMonitorProcess.h
Removing inheritances from TAttLine, TAttMarker and AliRndm in AliModule. The copy...
[u/mrichter/AliRoot.git] / MONITOR / AliMonitorProcess.h
index fcae2fc53e14c5a060869e3f4c874a02cd3192ce..d10760544c17cfbc45db4522e072a917b973d601 100644 (file)
@@ -5,34 +5,34 @@
 
 /* $Id$ */
 
+class TFile;
+class TFolder;
+class TGrid;
+class TServerSocket;
+class TSocket;
+class TTimer;
+class TTree;
+
+#include <TObjArray.h>
 #include <TObject.h>
-#include <TSystem.h>
 #include <TString.h>
-#include <TObjArray.h>
+#include <TSystem.h>
 
-class AliRawReader;
-class AliTPCParam;
+class AliESD;
 class AliITSgeom;
+class AliRawReader;
 class AliRunLoader;
-class TFile;
-class TGrid;
-class TTimer;
-class TServerSocket;
-class TFolder;
-class TTree;
-#ifdef ALI_HLT
+class AliTPCParam;
 class AliLevel3;
 class AliL3Hough;
-#endif
 
 
 class AliMonitorProcess : public TObject {
 public:
   AliMonitorProcess(const char* alienHost,
                    const char* alienDir,
+                   const char* selection = "ALL",
                    const char* fileNameGalice = "galice.root");
-  AliMonitorProcess(const AliMonitorProcess& process);
-  AliMonitorProcess& operator = (const AliMonitorProcess& process);
   virtual ~AliMonitorProcess();
 
   static const char* GetRevision();
@@ -68,16 +68,17 @@ public:
   static Int_t     GetPort() {return fgkPort;};
   
 private:
+  AliMonitorProcess(const AliMonitorProcess& process);
+  AliMonitorProcess& operator = (const AliMonitorProcess& process);
+
   Bool_t           CheckForNewFile();
   Bool_t           ProcessFile();
   Int_t            GetNumberOfEvents(const char* fileName) const;
-  Bool_t           ReconstructTPC(AliRawReader* rawReader);
-  Bool_t           ReconstructITS(AliRawReader* rawReader);
-  Bool_t           ReconstructV0s();
-#ifdef ALI_HLT
+  Bool_t           ReconstructTPC(AliRawReader* rawReader, AliESD* esd);
+  Bool_t           ReconstructITS(AliRawReader* rawReader, AliESD* esd);
+  Bool_t           ReconstructV0s(AliESD* esd);
   void             CreateHLT(const char* fileName);
   void             CreateHLTHough(const char* fileName);
-#endif
   Bool_t           ReconstructHLT(Int_t iEvent);
   Bool_t           ReconstructHLTHough(Int_t iEvent);
 
@@ -87,9 +88,12 @@ private:
   void             CheckForConnections();
   void             BroadcastHistos(TSocket* toSocket = NULL);
   void             SetStatus(EStatus status);
+  Bool_t           IsSelected(const char* name) const
+    {return (fSelection.Contains(name) || fSelection.Contains("ALL"));}
 
   static const Int_t fgkPort;          // port number for client connections
 
+  TString          fSelection;          // selection of monitor histograms
   TGrid*           fGrid;               // pointer to AliEn
   TString          fAlienDir;           // name of alien directory
   AliRunLoader*    fRunLoader;          // the current run loader
@@ -97,10 +101,8 @@ private:
   AliITSgeom*      fITSgeom;            // ITS parameters
   TString          fLogicalFileName;    // logical AliEn file name
   TString          fFileName;           // physical file name
-#ifdef ALI_HLT
   AliLevel3*       fHLT;                // the HLT tracker
   AliL3Hough*      fHLTHough;           // the HLT hough transformer
-#endif
 
   UInt_t           fRunNumber;          // current run number
   UInt_t           fSubRunNumber;       // current part (=resets per run)
@@ -124,12 +126,15 @@ private:
   class AliMonitorInterruptHandler : public TSignalHandler {
   public:
     AliMonitorInterruptHandler(AliMonitorProcess* process);
-    AliMonitorInterruptHandler(const AliMonitorInterruptHandler& handler);
-    AliMonitorInterruptHandler& operator = 
-      (const AliMonitorInterruptHandler& handler);
+    virtual ~AliMonitorInterruptHandler() {};
     virtual Bool_t Notify();
   private:
     AliMonitorProcess* fProcess;       // process to notify
+
+    AliMonitorInterruptHandler(const AliMonitorInterruptHandler& handler); // Not implemented
+    AliMonitorInterruptHandler& operator = 
+      (const AliMonitorInterruptHandler& handler); // Not implemented
+
   };
 
   AliMonitorInterruptHandler* fInterruptHandler;  // interrupt handler