BOSS 7.0.2
BESIII Offline Software System
Loading...
Searching...
No Matches
Tof/TofSimSvc/TofSimSvc-00-00-04/TofSimSvc/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"
9#include "TofSimSvc/ITofSimSvc.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 );
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()
virtual StatusCode finalize()
const double BarLowThres()
const double BarGain1(unsigned int id)
const double BarConstant()
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)
const double EndConstant()
virtual StatusCode queryInterface(const InterfaceID &riid, void **ppvUnknown)
const double BarAttenLength(unsigned int id)
const double EndPMTGain()
const double EndHighThres()
const double EndLowThres()
virtual StatusCode initialize()
const double BarHighThres()
const double BarGain2(unsigned int id)