BOSS 7.0.9
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/IInterface.h"
5#include "GaudiKernel/Kernel.h"
6#include "GaudiKernel/Service.h"
8
9#include "GaudiKernel/IDataProviderSvc.h"
10#include "GaudiKernel/IIncidentListener.h"
11
12#include <vector>
13class TH1F;
14
15class Identifier;
16
17class DedxSimSvc: public Service, virtual public IDedxSimSvc,virtual public IIncidentListener{
18public:
19 DedxSimSvc( const std::string& name, ISvcLocator* svcloc );
21
22 virtual StatusCode queryInterface(const InterfaceID& riid, void** ppvUnknown);
23 virtual StatusCode initialize();
24 virtual StatusCode finalize();
25
26 // Incident handler
27 void handle(const Incident&);
28 int getVersion() {return m_version;}
29 int gethistNo() {return m_numDedxHists;}
30 int getRangeNo(){return m_numBg;}
31 int getThetaNo(){ return m_numTheta;}
32 std::vector<TH1F>* getHist(){ return m_dedx_hists;}
33 std::vector<double>* getRange(){ return m_bgRange;}
34
35 private:
36
37 void update_param_svc();
38
39 private:
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()
Definition: DedxSimSvc.cxx:78
virtual StatusCode queryInterface(const InterfaceID &riid, void **ppvUnknown)
Definition: DedxSimSvc.cxx:39
std::vector< TH1F > * getHist()
Definition: DedxSimSvc.h:32
int getThetaNo()
Definition: DedxSimSvc.h:31
int gethistNo()
Definition: DedxSimSvc.h:29
std::vector< double > * getRange()
Definition: DedxSimSvc.h:33
virtual StatusCode initialize()
Definition: DedxSimSvc.cxx:48
int getRangeNo()
Definition: DedxSimSvc.h:30
int getVersion()
Definition: DedxSimSvc.h:28
void handle(const Incident &)
Definition: DedxSimSvc.cxx:84