BOSS 7.0.1
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)
 
 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 ()
 
static const InterfaceID & interfaceID ()
 

Detailed Description

Constructor & Destructor Documentation

◆ DataInfoSvc() [1/2]

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

◆ ~DataInfoSvc() [1/2]

DataInfoSvc::~DataInfoSvc ( )

Definition at line 29 of file DataInfoSvc.cxx.

29 {
30}

◆ DataInfoSvc() [2/2]

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

◆ ~DataInfoSvc() [2/2]

DataInfoSvc::~DataInfoSvc ( )

Member Function Documentation

◆ finalize() [1/2]

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}

◆ finalize() [2/2]

virtual StatusCode DataInfoSvc::finalize ( )
virtual

◆ getDecayOptions() [1/2]

string DataInfoSvc::getDecayOptions ( )
inline

Definition at line 25 of file Control/DataInfoSvc/DataInfoSvc-00-00-03/DataInfoSvc/DataInfoSvc.h.

25{ return m_decayOptions; }

Referenced by RootInterface::getDecayOptions().

◆ getDecayOptions() [2/2]

string DataInfoSvc::getDecayOptions ( )
inline

Definition at line 25 of file InstallArea/include/DataInfoSvc/DataInfoSvc/DataInfoSvc.h.

25{ return m_decayOptions; }

◆ getTotEvtNo() [1/2]

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

Definition at line 26 of file Control/DataInfoSvc/DataInfoSvc-00-00-03/DataInfoSvc/DataInfoSvc.h.

26{ return m_totEvtNo; }

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

◆ getTotEvtNo() [2/2]

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

Definition at line 26 of file InstallArea/include/DataInfoSvc/DataInfoSvc/DataInfoSvc.h.

26{ return m_totEvtNo; }

◆ initialize() [1/2]

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}

◆ initialize() [2/2]

virtual StatusCode DataInfoSvc::initialize ( )
virtual

◆ queryInterface() [1/2]

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}

◆ queryInterface() [2/2]

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

◆ setDecayCard() [1/2]

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}

Referenced by EvtDecay::initialize().

◆ setDecayCard() [2/2]

void DataInfoSvc::setDecayCard ( string  card)

◆ setTotEvtNo() [1/2]

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

◆ setTotEvtNo() [2/2]

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

Definition at line 29 of file InstallArea/include/DataInfoSvc/DataInfoSvc/DataInfoSvc.h.

29{ m_totEvtNo = i; }

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