BOSS 7.1.1
BESIII Offline Software System
Loading...
Searching...
No Matches
DataInfoSvc.h
Go to the documentation of this file.
1#ifndef DATAINFOSVC_H_
2#define DATAINFOSVC_H_
3
4#include "GaudiKernel/IInterface.h"
5#include "GaudiKernel/Kernel.h"
6#include "GaudiKernel/Service.h"
7#include "GaudiKernel/IDataProviderSvc.h"
8#include "GaudiKernel/IService.h"
10
11#include <string>
12#include <vector>
13using namespace std;
14
15class DataInfoSvc: public extends<Service, IDataInfoSvc>{
16
17 public:
18 DataInfoSvc( 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
25 string getDecayOptions() { return m_decayOptions; }
26 std::vector<int> getTotEvtNo() { return m_totEvtNo; }
27
28 void setDecayCard(string card);
29 void setTotEvtNo(std::vector<int> i) { m_totEvtNo = i; }
30
31 /// Retrieve flags, pingrg-2010-12-9
32 unsigned int flag1() { return m_flag1; };
33 unsigned int flag2() { return m_flag2; };
34 /// Update flags
35 void setFlag1(unsigned int value) { m_flag1 = value; }
36 void setFlag2(unsigned int value) { m_flag2 = value; }
37
38
39 private:
40 string m_decayOptions;
41 std::vector<int> m_totEvtNo;//run no, event no
42 //flag1, used for MC information
43 unsigned int m_flag1;
44 // flag2
45 unsigned int m_flag2;
46
47};
48#endif /* DATAINFOSVC_H_ */
DataInfoSvc(const std::string &name, ISvcLocator *svcloc)
virtual StatusCode finalize()
void setFlag2(unsigned int value)
Definition DataInfoSvc.h:36
void setFlag1(unsigned int value)
Update flags.
Definition DataInfoSvc.h:35
string getDecayOptions()
Definition DataInfoSvc.h:25
void setTotEvtNo(std::vector< int > i)
Definition DataInfoSvc.h:29
unsigned int flag1()
Retrieve flags, pingrg-2010-12-9.
Definition DataInfoSvc.h:32
std::vector< int > getTotEvtNo()
Definition DataInfoSvc.h:26
void setDecayCard(string card)
unsigned int flag2()
Definition DataInfoSvc.h:33
virtual StatusCode initialize()