to avoid AliFatal, for MOOD and displays, use of ideal geometry parameters is permitt...
[u/mrichter/AliRoot.git] / ITS / AliITSOnlineSPDscanSingle.cxx
1 ////////////////////////////////////////////////////////////
2 // Author: Henrik Tydesjo                                 //
3 // Interface class to the containers of an online scan    //
4 // with only one step.                                    //
5 ////////////////////////////////////////////////////////////
6
7 #include <TFile.h>
8 #include "AliITSOnlineSPDscanSingle.h"
9 #include "AliITSOnlineSPDscanInfo.h"
10
11 AliITSOnlineSPDscanSingle::AliITSOnlineSPDscanSingle(const Char_t *fileName) {
12   // constructor
13   fFileName=fileName;
14   // look for a previously saved info object 
15   // (if file not found create a new one and return, else read)
16   FILE* fp0 = fopen(fFileName.Data(), "r");
17   if (fp0 == NULL) {
18     fScanInfo = new AliITSOnlineSPDscanInfo();
19     fFile = new TFile(fFileName.Data(), "RECREATE");
20     fWrite=kTRUE;
21   }
22   else {
23     fclose(fp0);
24     fFile = new TFile(fFileName.Data(), "READ");
25     fWrite=kFALSE;
26     fFile->GetObject("AliITSOnlineSPDscanInfo", fScanInfo);
27   }
28   Init();
29 }
30 AliITSOnlineSPDscanSingle::~AliITSOnlineSPDscanSingle() {}
31
32 // call the corresponding methods in SPDscan with nsi=0 ******************
33 void AliITSOnlineSPDscanSingle::SetTriggers(UInt_t val)
34   {AliITSOnlineSPDscan::SetTriggers(0,val);}
35 void AliITSOnlineSPDscanSingle::SetHits(UInt_t hs, UInt_t chipi, UInt_t coli, UInt_t rowi, UInt_t val)
36   {AliITSOnlineSPDscan::SetHits(0,hs,chipi,coli,rowi,val);}
37 void AliITSOnlineSPDscanSingle::IncrementTriggers()
38   {AliITSOnlineSPDscan::IncrementTriggers(0);}
39 void AliITSOnlineSPDscanSingle::IncrementHits(UInt_t hs, UInt_t chipi, UInt_t coli, UInt_t rowi)
40   {AliITSOnlineSPDscan::IncrementHits(0,hs,chipi,coli,rowi);}
41 void AliITSOnlineSPDscanSingle::SetHitEvents(UInt_t hs, UInt_t chipi, UInt_t val)
42   {AliITSOnlineSPDscan::SetHitEvents(0,hs,chipi,val);}
43 void AliITSOnlineSPDscanSingle::SetHitEventsTot(UInt_t hs, UInt_t val)
44   {AliITSOnlineSPDscan::SetHitEventsTot(0,hs,val);}
45 void AliITSOnlineSPDscanSingle::IncrementHitEvents(UInt_t hs, UInt_t chipi)
46   {AliITSOnlineSPDscan::IncrementHitEvents(0,hs,chipi);}
47 void AliITSOnlineSPDscanSingle::IncrementHitEventsTot(UInt_t hs)
48   {AliITSOnlineSPDscan::IncrementHitEventsTot(0,hs);}
49 UInt_t AliITSOnlineSPDscanSingle::GetTriggers()
50   {return AliITSOnlineSPDscan::GetTriggers(0);}
51 UInt_t AliITSOnlineSPDscanSingle::GetHits(UInt_t hs, UInt_t chipi, UInt_t coli, UInt_t rowi)
52   {return AliITSOnlineSPDscan::GetHits(0,hs,chipi,coli,rowi);}
53 Float_t AliITSOnlineSPDscanSingle::GetHitsEfficiency(UInt_t hs, UInt_t chipi, UInt_t coli, UInt_t rowi)
54   {return AliITSOnlineSPDscan::GetHitsEfficiency(0,hs,chipi,coli,rowi);}
55 Float_t AliITSOnlineSPDscanSingle::GetHitsEfficiencyError(UInt_t hs, UInt_t chipi, UInt_t coli, UInt_t rowi)
56   {return AliITSOnlineSPDscan::GetHitsEfficiencyError(0,hs,chipi,coli,rowi);}
57 UInt_t AliITSOnlineSPDscanSingle::GetHitEvents(UInt_t hs, UInt_t chipi)
58   {return AliITSOnlineSPDscan::GetHitEvents(0,hs,chipi);}
59 UInt_t AliITSOnlineSPDscanSingle::GetHitEventsTot(UInt_t hs)
60   {return AliITSOnlineSPDscan::GetHitEventsTot(0,hs);}
61 Float_t AliITSOnlineSPDscanSingle::GetHitEventsEfficiency(UInt_t hs, UInt_t chipi)
62   {return AliITSOnlineSPDscan::GetHitEventsEfficiency(0,hs,chipi);}
63 Float_t AliITSOnlineSPDscanSingle::GetHitEventsTotEfficiency(UInt_t hs)
64   {return AliITSOnlineSPDscan::GetHitEventsTotEfficiency(0,hs);}
65 Float_t AliITSOnlineSPDscanSingle::GetHitEventsEfficiencyError(UInt_t hs, UInt_t chipi)
66   {return AliITSOnlineSPDscan::GetHitEventsEfficiencyError(0,hs,chipi);}
67 Float_t AliITSOnlineSPDscanSingle::GetHitEventsTotEfficiencyError(UInt_t hs)
68   {return AliITSOnlineSPDscan::GetHitEventsTotEfficiencyError(0,hs);}
69 Float_t AliITSOnlineSPDscanSingle::GetAverageMultiplicity(UInt_t hs, UInt_t chipi)
70   {return AliITSOnlineSPDscan::GetAverageMultiplicity(0,hs,chipi);}
71 Float_t AliITSOnlineSPDscanSingle::GetAverageMultiplicityTot(UInt_t hs)
72   {return AliITSOnlineSPDscan::GetAverageMultiplicityTot(0,hs);}