BOSS 7.1.1
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
17//class DedxSimSvc: public Service, virtual public IDedxSimSvc,virtual public 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
36 private:
37
38 void update_param_svc();
39
40 private:
41 std::vector<double>* m_bgRange;
42 std::vector<TH1F>* m_dedx_hists;
43 IDataProviderSvc* m_eventSvc;
44 int m_version;
45 int m_numDedxHists;
46 int m_numBg;
47 int m_numTheta;
48 int m_runfrom;
49 int m_runto;
50};
51#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 &)