BOSS 6.6.4.p01
BESIII Offline Software System
Loading...
Searching...
No Matches
TofSimSvc.h
Go to the documentation of this file.
1#ifndef TOFSIMSVC_H
2#define TOFSIMSVC_H
3
4#include "GaudiKernel/Service.h"
5#include "GaudiKernel/IInterface.h"
6#include "GaudiKernel/Property.h"
7#include "GaudiKernel/IIncidentListener.h"
8#include "GaudiKernel/IDataProviderSvc.h"
10#include "TofSimSvc/TofConst.h"
11#include "TofSimSvc/BTofSim.h"
12#include "TofSimSvc/ETofSim.h"
13
14class TofSimSvc : public Service, virtual public ITofSimSvc,virtual public IIncidentListener
15{
16public:
17 // Constructors and destructors
18 TofSimSvc( const std::string& name, ISvcLocator* svcloc );
19 ~TofSimSvc();
20
21 virtual StatusCode queryInterface(const InterfaceID& riid, void** ppvUnknown);
22 virtual StatusCode initialize ( );
23 virtual StatusCode finalize ( );
24 void handle(const Incident&);
25
26 const double BarLowThres();
27 const double BarHighThres();
28 const double EndLowThres();
29 const double EndHighThres();
30 const double BarPMTGain();
31 const double EndPMTGain();
32 const double BarConstant();
33 const double EndConstant();
34 const double EndNoiseSwitch();
35
36 const double BarGain1(unsigned int id);
37 const double BarGain2(unsigned int id);
38 const double EndGain(unsigned int id);
39 const double BarAttenLength(unsigned int id);
40 const double EndAttenLength(unsigned int id);
41 const double EndNoiseSmear(unsigned int id);
42
43 void Dump();
44
45 private:
46 StatusCode FillfromDatabase();
47 bool m_hasbeeninitialized;
48
49private:
50 IDataProviderSvc* m_pSimDataSvc;
51 IntegerProperty m_run;
52
53 std::vector<TofConst*> fTofConst;
54 std::vector<BTofSim*> fBTofSim;
55 std::vector<ETofSim*> fETofSim;
56
57};
58
59#endif // TOFSIMSVC
const double EndNoiseSwitch()
Definition: TofSimSvc.cxx:195
virtual StatusCode queryInterface(const InterfaceID &riid, void **ppvUnknown)
Definition: TofSimSvc.cxx:32
const double BarLowThres()
Definition: TofSimSvc.cxx:163
const double BarGain1(unsigned int id)
Definition: TofSimSvc.cxx:199
const double BarConstant()
Definition: TofSimSvc.cxx:187
virtual StatusCode initialize()
Definition: TofSimSvc.cxx:42
void Dump()
Definition: TofSimSvc.cxx:144
const double EndAttenLength(unsigned int id)
Definition: TofSimSvc.cxx:239
const double BarPMTGain()
Definition: TofSimSvc.cxx:179
const double EndGain(unsigned int id)
Definition: TofSimSvc.cxx:219
const double EndNoiseSmear(unsigned int id)
Definition: TofSimSvc.cxx:249
void handle(const Incident &)
Definition: TofSimSvc.cxx:149
const double EndConstant()
Definition: TofSimSvc.cxx:191
const double BarAttenLength(unsigned int id)
Definition: TofSimSvc.cxx:229
const double EndPMTGain()
Definition: TofSimSvc.cxx:183
const double EndHighThres()
Definition: TofSimSvc.cxx:175
virtual StatusCode finalize()
Definition: TofSimSvc.cxx:74
const double EndLowThres()
Definition: TofSimSvc.cxx:171
const double BarHighThres()
Definition: TofSimSvc.cxx:167
const double BarGain2(unsigned int id)
Definition: TofSimSvc.cxx:209