]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSOnlineSPDscan.h
Correct treatment of tracks with pT<pTmin
[u/mrichter/AliRoot.git] / ITS / AliITSOnlineSPDscan.h
index 759fc9e943138e27be2ea2b1eae6a4150a9aacdb..385bf0ecd2434de0cd5019a2893c40f74f18b581 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ALI_ITS_ONLINESPDSCAN_H
-#define ALI_ITS_ONLINESPDSCAN_H
+#ifndef ALIITSONLINESPDSCAN_H
+#define ALIITSONLINESPDSCAN_H
 
 ////////////////////////////////////////////////////////////
 // Author: Henrik Tydesjo                                 //
@@ -22,8 +22,8 @@ class AliITSOnlineSPDHitEvent;
 class AliITSOnlineSPDscan {
 
  public:
-  AliITSOnlineSPDscan():fFile(NULL),fWrite(kFALSE),fCurrentStep(-1),fModified(kFALSE),fInfoModified(kFALSE),fScanInfo(NULL),fFileName("./test.root"){}
-  AliITSOnlineSPDscan(const Char_t *fileName);
+  AliITSOnlineSPDscan():fFile(NULL),fWrite(kFALSE),fCurrentStep(-1),fModified(kFALSE),fInfoModified(kFALSE),fScanInfo(NULL),fFileName("./test.root"){for(Int_t ihs=0; ihs<6; ihs++){fCurrentHitArray[ihs]=0x0; fCurrentHitEvent[ihs]=0x0;}}
+  AliITSOnlineSPDscan(const Char_t *fileName, Bool_t readFromGridFile=kFALSE);
   AliITSOnlineSPDscan(const AliITSOnlineSPDscan& scan);
   virtual ~AliITSOnlineSPDscan();
   AliITSOnlineSPDscan& operator=(const AliITSOnlineSPDscan& scan);
@@ -68,17 +68,17 @@ class AliITSOnlineSPDscan {
   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);
+  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) ;
   Float_t  GetHitsEfficiencyError(UInt_t nsi, UInt_t hs, UInt_t chipi, UInt_t coli, UInt_t rowi);
-  UInt_t   GetHitEvents(UInt_t nsi, UInt_t hs, UInt_t chipi);
-  UInt_t   GetHitEventsTot(UInt_t nsi, UInt_t hs);
-  Float_t  GetHitEventsEfficiency(UInt_t nsi, UInt_t hs, UInt_t chipi);
-  Float_t  GetHitEventsTotEfficiency(UInt_t nsi, UInt_t hs);
-  Float_t  GetHitEventsEfficiencyError(UInt_t nsi, UInt_t hs, UInt_t chipi);
-  Float_t  GetHitEventsTotEfficiencyError(UInt_t nsi, UInt_t hs);
-  Float_t  GetAverageMultiplicity(UInt_t nsi, UInt_t hs, UInt_t chipi);
-  Float_t  GetAverageMultiplicityTot(UInt_t nsi, UInt_t hs);
+  UInt_t   GetHitEvents(UInt_t nsi, UInt_t hs, UInt_t chipi) ;
+  UInt_t   GetHitEventsTot(UInt_t nsi, UInt_t hs) ;
+  Float_t  GetHitEventsEfficiency(UInt_t nsi, UInt_t hs, UInt_t chipi) ;
+  Float_t  GetHitEventsTotEfficiency(UInt_t nsi, UInt_t hs) ;
+  Float_t  GetHitEventsEfficiencyError(UInt_t nsi, UInt_t hs, UInt_t chipi) ;
+  Float_t  GetHitEventsTotEfficiencyError(UInt_t nsi, UInt_t hs) ;
+  Float_t  GetAverageMultiplicity(UInt_t nsi, UInt_t hs, UInt_t chipi) ;
+  Float_t  GetAverageMultiplicityTot(UInt_t nsi, UInt_t hs) ;
 
  protected:
   TFile    *fFile;                  // file to read and write from
@@ -93,7 +93,7 @@ class AliITSOnlineSPDscan {
 
   void     Init();
   void     CreateNewStep();
-  void     SwitchToStep(UInt_t nsi);
+  void     SwitchToStep(UInt_t nsi) ;
   void     FillGap(UInt_t nsi);
   void     ReadCurrentStep();
   void     SaveCurrentStep();