BOSS 7.1.0
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 initialize ()
 
virtual StatusCode finalize ()
 
string getDecayOptions ()
 
std::vector< int > getTotEvtNo ()
 
void setDecayCard (string card)
 
void setTotEvtNo (std::vector< int > i)
 
unsigned int flag1 ()
 Retrieve flags, pingrg-2010-12-9.
 
unsigned int flag2 ()
 
void setFlag1 (unsigned int value)
 Update flags.
 
void setFlag2 (unsigned int value)
 

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 26 of file DataInfoSvc.cxx.

26 :
27 base_class (name, svcloc){
28 // declare properties
29}

◆ ~DataInfoSvc()

DataInfoSvc::~DataInfoSvc ( )

Definition at line 31 of file DataInfoSvc.cxx.

31 {
32}

Member Function Documentation

◆ finalize()

StatusCode DataInfoSvc::finalize ( )
virtual

Definition at line 74 of file DataInfoSvc.cxx.

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

◆ flag1()

unsigned int DataInfoSvc::flag1 ( )
inline

Retrieve flags, pingrg-2010-12-9.

Definition at line 32 of file DataInfoSvc.h.

32{ return m_flag1; };

◆ flag2()

unsigned int DataInfoSvc::flag2 ( )
inline

Definition at line 33 of file DataInfoSvc.h.

33{ return m_flag2; };

◆ 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 43 of file DataInfoSvc.cxx.

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

◆ setDecayCard()

void DataInfoSvc::setDecayCard ( string  card)

Definition at line 52 of file DataInfoSvc.cxx.

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

Referenced by EvtDecay::initialize().

◆ setFlag1()

void DataInfoSvc::setFlag1 ( unsigned int  value)
inline

Update flags.

Definition at line 35 of file DataInfoSvc.h.

35{ m_flag1 = value; }

◆ setFlag2()

void DataInfoSvc::setFlag2 ( unsigned int  value)
inline

Definition at line 36 of file DataInfoSvc.h.

36{ m_flag2 = value; }

◆ 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: