BOSS 7.1.1
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 extends<Service, 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()
const double BarLowThres()
const double BarGain1(unsigned int id)
const double BarConstant()
virtual StatusCode initialize()
Definition TofSimSvc.cxx:43
void Dump()
const double EndAttenLength(unsigned int id)
const double BarPMTGain()
const double EndGain(unsigned int id)
const double EndNoiseSmear(unsigned int id)
void handle(const Incident &)
TofSimSvc(const std::string &name, ISvcLocator *svcloc)
Definition TofSimSvc.cxx:29
const double EndConstant()
const double BarAttenLength(unsigned int id)
const double EndPMTGain()
const double EndHighThres()
virtual StatusCode finalize()
Definition TofSimSvc.cxx:75
const double EndLowThres()
const double BarHighThres()
const double BarGain2(unsigned int id)