]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSOnlineSPDscan.h
Transfer of the initialisation of the QA Data objects in the framework; clean the...
[u/mrichter/AliRoot.git] / ITS / AliITSOnlineSPDscan.h
index 088b715cb10cd5b9720e02853e4dcafbd2398cea..35c5779b3ef54bc2cd70cbe3934725858211d72f 100644 (file)
@@ -12,7 +12,7 @@
 // information is stored (AliITSOnlineSPDscanInfo).       //
 ////////////////////////////////////////////////////////////
 
-#include <Rtypes.h> 
+#include <TString.h>
 
 class TFile;
 class AliITSOnlineSPDscanInfo;
@@ -22,8 +22,8 @@ class AliITSOnlineSPDHitEvent;
 class AliITSOnlineSPDscan {
 
  public:
-  AliITSOnlineSPDscan():fFile(NULL),fWrite(kFALSE),fCurrentStep(-1),fModified(kFALSE),fInfoModified(kFALSE),fScanInfo(NULL){}
-  AliITSOnlineSPDscan(Char_t *fileName);
+  AliITSOnlineSPDscan():fFile(NULL),fWrite(kFALSE),fCurrentStep(-1),fModified(kFALSE),fInfoModified(kFALSE),fScanInfo(NULL),fFileName("./test.root"){}
+  AliITSOnlineSPDscan(const Char_t *fileName, Bool_t readFromGridFile=kFALSE);
   AliITSOnlineSPDscan(const AliITSOnlineSPDscan& scan);
   virtual ~AliITSOnlineSPDscan();
   AliITSOnlineSPDscan& operator=(const AliITSOnlineSPDscan& scan);
@@ -34,6 +34,8 @@ class AliITSOnlineSPDscan {
   void     SetType(UInt_t val);
   void     SetRunNr(UInt_t val);
   void     SetRouterNr(UInt_t val);
+  void     SetHalfStaveScanned(UInt_t val, Bool_t b);
+  void     SetDataFormat(UInt_t val);
   void     SetTriggers(UInt_t nsi, UInt_t val);
   void     SetChipPresent(UInt_t hs, UInt_t chipi, Bool_t val);
   void     SetRowStart(UInt_t val);
@@ -41,6 +43,7 @@ class AliITSOnlineSPDscan {
   void     SetDacStart(UInt_t val);
   void     SetDacEnd(UInt_t val);
   void     SetDacStep(UInt_t val);
+  void     SetDCSVersion(UInt_t val);
 
   void     SetHits(UInt_t nsi, UInt_t hs, UInt_t chipi, UInt_t coli, UInt_t rowi, UInt_t val);
   void     IncrementTriggers(UInt_t nsi);
@@ -54,6 +57,8 @@ class AliITSOnlineSPDscan {
   UInt_t   GetType() const;
   UInt_t   GetRunNr() const;
   UInt_t   GetRouterNr() const;
+  Bool_t   GetHalfStaveScanned(UInt_t val) const;
+  UInt_t   GetDataFormat() const;
   UInt_t   GetTriggers(UInt_t nsi) const;
   Bool_t   GetChipPresent(UInt_t hs, UInt_t chipi) const;
   UInt_t   GetRowStart() const;
@@ -61,6 +66,7 @@ class AliITSOnlineSPDscan {
   UInt_t   GetDacStart() const;
   UInt_t   GetDacEnd() const;
   UInt_t   GetDacStep() const;
+  UInt_t   GetDCSVersion() const;
 
   UInt_t   GetHits(UInt_t nsi, UInt_t hs, UInt_t chipi, UInt_t coli, UInt_t rowi);
   Float_t  GetHitsEfficiency(UInt_t nsi, UInt_t hs, UInt_t chipi, UInt_t coli, UInt_t rowi);
@@ -83,7 +89,7 @@ class AliITSOnlineSPDscan {
   AliITSOnlineSPDscanInfo *fScanInfo;           // overall scan information
   AliITSOnlineSPDHitArray *fCurrentHitArray[6]; // hit array, one for each halfstave
   AliITSOnlineSPDHitEvent *fCurrentHitEvent[6]; // hit events, one for each halfstave
-  Char_t   fFileName[200];                      // filename of file to read write
+  TString  fFileName;                           // filename of file to read write
 
   void     Init();
   void     CreateNewStep();