Adding router nr in dcs configuration file and removing ClassDef macro in AliITSOnlin...
[u/mrichter/AliRoot.git] / ITS / AliITSOnlineSPDscanSingle.cxx
CommitLineData
4ee23d3d 1/**************************************************************************
2 * Copyright(c) 2007-2009, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
15
16/* $Id$ */
17
b15de2d2 18////////////////////////////////////////////////////////////
19// Author: Henrik Tydesjo //
20// Interface class to the containers of an online scan //
21// with only one step. //
22////////////////////////////////////////////////////////////
23
4ee23d3d 24
b15de2d2 25#include <TFile.h>
26#include "AliITSOnlineSPDscanSingle.h"
27#include "AliITSOnlineSPDscanInfo.h"
28
53ae21ce 29AliITSOnlineSPDscanSingle::AliITSOnlineSPDscanSingle(const Char_t *fileName) {
b15de2d2 30 // constructor
53ae21ce 31 fFileName=fileName;
b15de2d2 32 // look for a previously saved info object
33 // (if file not found create a new one and return, else read)
53ae21ce 34 FILE* fp0 = fopen(fFileName.Data(), "r");
b15de2d2 35 if (fp0 == NULL) {
36 fScanInfo = new AliITSOnlineSPDscanInfo();
53ae21ce 37 fFile = new TFile(fFileName.Data(), "RECREATE");
b15de2d2 38 fWrite=kTRUE;
39 }
40 else {
41 fclose(fp0);
53ae21ce 42 fFile = new TFile(fFileName.Data(), "READ");
b15de2d2 43 fWrite=kFALSE;
3db5f733 44 fFile->GetObject("AliITSOnlineSPDscanInfo", fScanInfo);
b15de2d2 45 }
46 Init();
b15de2d2 47}
48AliITSOnlineSPDscanSingle::~AliITSOnlineSPDscanSingle() {}
49
50// call the corresponding methods in SPDscan with nsi=0 ******************
51void AliITSOnlineSPDscanSingle::SetTriggers(UInt_t val)
52 {AliITSOnlineSPDscan::SetTriggers(0,val);}
53void AliITSOnlineSPDscanSingle::SetHits(UInt_t hs, UInt_t chipi, UInt_t coli, UInt_t rowi, UInt_t val)
54 {AliITSOnlineSPDscan::SetHits(0,hs,chipi,coli,rowi,val);}
55void AliITSOnlineSPDscanSingle::IncrementTriggers()
56 {AliITSOnlineSPDscan::IncrementTriggers(0);}
57void AliITSOnlineSPDscanSingle::IncrementHits(UInt_t hs, UInt_t chipi, UInt_t coli, UInt_t rowi)
58 {AliITSOnlineSPDscan::IncrementHits(0,hs,chipi,coli,rowi);}
59void AliITSOnlineSPDscanSingle::SetHitEvents(UInt_t hs, UInt_t chipi, UInt_t val)
60 {AliITSOnlineSPDscan::SetHitEvents(0,hs,chipi,val);}
61void AliITSOnlineSPDscanSingle::SetHitEventsTot(UInt_t hs, UInt_t val)
62 {AliITSOnlineSPDscan::SetHitEventsTot(0,hs,val);}
63void AliITSOnlineSPDscanSingle::IncrementHitEvents(UInt_t hs, UInt_t chipi)
64 {AliITSOnlineSPDscan::IncrementHitEvents(0,hs,chipi);}
65void AliITSOnlineSPDscanSingle::IncrementHitEventsTot(UInt_t hs)
66 {AliITSOnlineSPDscan::IncrementHitEventsTot(0,hs);}
67UInt_t AliITSOnlineSPDscanSingle::GetTriggers()
68 {return AliITSOnlineSPDscan::GetTriggers(0);}
69UInt_t AliITSOnlineSPDscanSingle::GetHits(UInt_t hs, UInt_t chipi, UInt_t coli, UInt_t rowi)
70 {return AliITSOnlineSPDscan::GetHits(0,hs,chipi,coli,rowi);}
71Float_t AliITSOnlineSPDscanSingle::GetHitsEfficiency(UInt_t hs, UInt_t chipi, UInt_t coli, UInt_t rowi)
72 {return AliITSOnlineSPDscan::GetHitsEfficiency(0,hs,chipi,coli,rowi);}
73Float_t AliITSOnlineSPDscanSingle::GetHitsEfficiencyError(UInt_t hs, UInt_t chipi, UInt_t coli, UInt_t rowi)
74 {return AliITSOnlineSPDscan::GetHitsEfficiencyError(0,hs,chipi,coli,rowi);}
75UInt_t AliITSOnlineSPDscanSingle::GetHitEvents(UInt_t hs, UInt_t chipi)
76 {return AliITSOnlineSPDscan::GetHitEvents(0,hs,chipi);}
77UInt_t AliITSOnlineSPDscanSingle::GetHitEventsTot(UInt_t hs)
78 {return AliITSOnlineSPDscan::GetHitEventsTot(0,hs);}
79Float_t AliITSOnlineSPDscanSingle::GetHitEventsEfficiency(UInt_t hs, UInt_t chipi)
80 {return AliITSOnlineSPDscan::GetHitEventsEfficiency(0,hs,chipi);}
81Float_t AliITSOnlineSPDscanSingle::GetHitEventsTotEfficiency(UInt_t hs)
82 {return AliITSOnlineSPDscan::GetHitEventsTotEfficiency(0,hs);}
83Float_t AliITSOnlineSPDscanSingle::GetHitEventsEfficiencyError(UInt_t hs, UInt_t chipi)
84 {return AliITSOnlineSPDscan::GetHitEventsEfficiencyError(0,hs,chipi);}
85Float_t AliITSOnlineSPDscanSingle::GetHitEventsTotEfficiencyError(UInt_t hs)
86 {return AliITSOnlineSPDscan::GetHitEventsTotEfficiencyError(0,hs);}
87Float_t AliITSOnlineSPDscanSingle::GetAverageMultiplicity(UInt_t hs, UInt_t chipi)
88 {return AliITSOnlineSPDscan::GetAverageMultiplicity(0,hs,chipi);}
89Float_t AliITSOnlineSPDscanSingle::GetAverageMultiplicityTot(UInt_t hs)
90 {return AliITSOnlineSPDscan::GetAverageMultiplicityTot(0,hs);}