BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
DedxSimSvc.h
Go to the documentation of this file.
1#ifndef DEDXSIMSVC_H_
2#define DEDXSIMSVC_H_
3
4#include "GaudiKernel/IDataProviderSvc.h"
5#include "GaudiKernel/IIncidentListener.h"
6#include "GaudiKernel/IInterface.h"
7#include "GaudiKernel/Kernel.h"
8#include "GaudiKernel/Service.h"
9#include <vector>
10
11#include "DedxSimSvc/IDedxSimSvc.h"
12class TH1F;
13
14class Identifier;
15
16// class DedxSimSvc: public Service, virtual public IDedxSimSvc,virtual public
17// IIncidentListener{
18class DedxSimSvc : public extends<Service, IDedxSimSvc>, virtual public IIncidentListener {
19public:
20 DedxSimSvc( const std::string& name, ISvcLocator* svcloc );
22
23 // virtual StatusCode queryInterface(const InterfaceID& riid, void** ppvUnknown);
24 virtual StatusCode initialize();
25 virtual StatusCode finalize();
26
27 // Incident handler
28 void handle( const Incident& );
29 int getVersion() { return m_version; }
30 int gethistNo() { return m_numDedxHists; }
31 int getRangeNo() { return m_numBg; }
32 int getThetaNo() { return m_numTheta; }
33 std::vector<TH1F>* getHist() { return m_dedx_hists; }
34 std::vector<double>* getRange() { return m_bgRange; }
35
36private:
37 void update_param_svc();
38
39private:
40 std::vector<double>* m_bgRange;
41 std::vector<TH1F>* m_dedx_hists;
42 IDataProviderSvc* m_eventSvc;
43 int m_version;
44 int m_numDedxHists;
45 int m_numBg;
46 int m_numTheta;
47 int m_runfrom;
48 int m_runto;
49};
50#endif
virtual StatusCode finalize()
std::vector< TH1F > * getHist()
Definition DedxSimSvc.h:33
int getThetaNo()
Definition DedxSimSvc.h:32
int gethistNo()
Definition DedxSimSvc.h:30
std::vector< double > * getRange()
Definition DedxSimSvc.h:34
DedxSimSvc(const std::string &name, ISvcLocator *svcloc)
virtual StatusCode initialize()
int getRangeNo()
Definition DedxSimSvc.h:31
int getVersion()
Definition DedxSimSvc.h:29
void handle(const Incident &)