BOSS 7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
DataInfoSvc Class Reference

#include <DataInfoSvc.h>

+ Inheritance diagram for DataInfoSvc:

Public Member Functions

 DataInfoSvc (const std::string &name, ISvcLocator *svcloc)
 
 ~DataInfoSvc ()
 
virtual StatusCode queryInterface (const InterfaceID &riid, void **ppvUnknown)
 
virtual StatusCode initialize ()
 
virtual StatusCode finalize ()
 
string getDecayOptions ()
 
std::vector< int > getTotEvtNo ()
 
void setDecayCard (string card)
 
void setTotEvtNo (std::vector< int > i)
 

Additional Inherited Members

- Static Public Member Functions inherited from IDataInfoSvc
static const InterfaceID & interfaceID ()
 

Detailed Description

Definition at line 15 of file DataInfoSvc.h.

Constructor & Destructor Documentation

◆ DataInfoSvc()

DataInfoSvc::DataInfoSvc ( const std::string &  name,
ISvcLocator *  svcloc 
)

Definition at line 24 of file DataInfoSvc.cxx.

24 :
25 Service (name, svcloc){
26 // declare properties
27}

◆ ~DataInfoSvc()

DataInfoSvc::~DataInfoSvc ( )

Definition at line 29 of file DataInfoSvc.cxx.

29 {
30}

Member Function Documentation

◆ finalize()

StatusCode DataInfoSvc::finalize ( )
virtual

Definition at line 72 of file DataInfoSvc.cxx.

72 {
73 MsgStream log(messageService(), name());
74 log << MSG::INFO << "DataInfoSvc::finalize()" << endreq;
75 return StatusCode::SUCCESS;
76}

◆ getDecayOptions()

string DataInfoSvc::getDecayOptions ( )
inline

Definition at line 25 of file DataInfoSvc.h.

25{ return m_decayOptions; }

Referenced by RootInterface::getDecayOptions().

◆ getTotEvtNo()

std::vector< int > DataInfoSvc::getTotEvtNo ( )
inline

Definition at line 26 of file DataInfoSvc.h.

26{ return m_totEvtNo; }

Referenced by MixerAlg::execute(), and RootInterface::getTotEvtNo().

◆ initialize()

StatusCode DataInfoSvc::initialize ( )
virtual

Definition at line 41 of file DataInfoSvc.cxx.

41 {
42 MsgStream log(messageService(), name());
43 log << MSG::INFO << "DataInfoSvc::initialize()" << endreq;
44
45 StatusCode sc = Service::initialize();
46 sc = setProperties();
47 return StatusCode::SUCCESS;
48}

◆ queryInterface()

StatusCode DataInfoSvc::queryInterface ( const InterfaceID &  riid,
void **  ppvUnknown 
)
virtual

Definition at line 32 of file DataInfoSvc.cxx.

32 {
33 if( IID_IDataInfoSvc.versionMatch(riid) ){
34 *ppvInterface = static_cast<IDataInfoSvc*> (this);
35 } else{
36 return Service::queryInterface(riid, ppvInterface);
37 }
38 return StatusCode::SUCCESS;
39}

◆ setDecayCard()

void DataInfoSvc::setDecayCard ( string  card)

Definition at line 50 of file DataInfoSvc.cxx.

51{
52 ifstream fin(card.c_str());
53 string tempString;
54 int i=0;
55 while(getline(fin,tempString))
56 {
57 if(tempString.size()>0)
58 {
59 m_decayOptions += tempString;
60 m_decayOptions += "\n";
61 }
62 i++;
63 }
64 if(i>100) m_decayOptions = "";
65 MsgStream log(messageService(), name());
66 log << MSG::INFO << "set decayOptions: " << endreq;
67 log << MSG::INFO << endreq
68 << m_decayOptions << endreq;
69}
std::ifstream ifstream
Definition: bpkt_streams.h:44

Referenced by EvtDecay::initialize().

◆ setTotEvtNo()

void DataInfoSvc::setTotEvtNo ( std::vector< int >  i)
inline

Definition at line 29 of file DataInfoSvc.h.

29{ m_totEvtNo = i; }

Referenced by McContext::McContext(), and RootInterface::printJobInfo().


The documentation for this class was generated from the following files: