ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RunHeaderv1 Class Reference

#include <coresoftware/blob/master/offline/framework/ffaobjects/RunHeaderv1.h>

+ Inheritance diagram for RunHeaderv1:
+ Collaboration diagram for RunHeaderv1:

Public Member Functions

 RunHeaderv1 ()=default
 
 ~RunHeaderv1 () override=default
 
void Reset () override
 Clear Event.
 
void identify (std::ostream &os=std::cout) const override
 
int isValid () const override
 isValid returns non zero if object contains valid data
 
int get_RunNumber () const override
 get Run Number
 
void set_RunNumber (const int run) override
 set Run Number
 
void set_floatval (const std::string &name, const float fval) override
 
float get_floatval (const std::string &name) const override
 
void set_intval (const std::string &name, const int ival) override
 
int get_intval (const std::string &name) const override
 
- Public Member Functions inherited from RunHeader
 ~RunHeader () override
 dtor
 
PHObjectCloneMe () const override
 Virtual copy constructor.
 
void NoWarning (const int i=1)
 switches off the pesky virtual warning messages
 
- Public Member Functions inherited from PHObject
 PHObject ()
 ctor
 
 ~PHObject () override
 dtor
 
virtual PHObjectclone () const final
 
PHObjectClone (const char *newname="") const final
 
void Copy (TObject &object) const final
 
virtual int isValid (const float) const
 
virtual int isValid (const double) const
 
virtual int isValid (const int) const
 
virtual int isValid (const unsigned int) const
 
virtual int isImplemented (const float f) const
 
virtual int isImplemented (const double f) const
 
virtual int isImplemented (const int i) const
 
virtual int isImplemented (const unsigned int i) const
 
virtual int Integrate () const
 
virtual int Integrate (PHObject *)
 
virtual void CopyFrom (const PHObject *obj)
 

Private Attributes

int RunNumber = 0
 
std::map< std::string, intm_IntRunProperties
 
std::map< std::string, float > m_FloatRunProperties
 

Detailed Description

Definition at line 12 of file RunHeaderv1.h.

View newest version in sPHENIX GitHub at line 12 of file RunHeaderv1.h

Constructor & Destructor Documentation

RunHeaderv1::RunHeaderv1 ( )
default
RunHeaderv1::~RunHeaderv1 ( )
overridedefault

Member Function Documentation

float RunHeaderv1::get_floatval ( const std::string &  name) const
overridevirtual

Reimplemented from RunHeader.

Definition at line 35 of file RunHeaderv1.cc.

View newest version in sPHENIX GitHub at line 35 of file RunHeaderv1.cc

References m_FloatRunProperties.

int RunHeaderv1::get_intval ( const std::string &  name) const
overridevirtual

Reimplemented from RunHeader.

Definition at line 50 of file RunHeaderv1.cc.

View newest version in sPHENIX GitHub at line 50 of file RunHeaderv1.cc

References m_IntRunProperties.

int RunHeaderv1::get_RunNumber ( ) const
inlineoverridevirtual

get Run Number

Reimplemented from RunHeader.

Definition at line 22 of file RunHeaderv1.h.

View newest version in sPHENIX GitHub at line 22 of file RunHeaderv1.h

References RunNumber.

void RunHeaderv1::identify ( std::ostream &  os = std::cout) const
overridevirtual

identify Function from PHObject

Parameters
osOutput Stream

Reimplemented from RunHeader.

Definition at line 6 of file RunHeaderv1.cc.

View newest version in sPHENIX GitHub at line 6 of file RunHeaderv1.cc

References m_FloatRunProperties, m_IntRunProperties, and RunNumber.

int RunHeaderv1::isValid ( ) const
overridevirtual

isValid returns non zero if object contains valid data

Reimplemented from RunHeader.

Definition at line 25 of file RunHeaderv1.cc.

View newest version in sPHENIX GitHub at line 25 of file RunHeaderv1.cc

References RunNumber.

void RunHeaderv1::Reset ( )
inlineoverridevirtual

Clear Event.

Reimplemented from RunHeader.

Definition at line 18 of file RunHeaderv1.h.

View newest version in sPHENIX GitHub at line 18 of file RunHeaderv1.h

void RunHeaderv1::set_floatval ( const std::string &  name,
const float  fval 
)
overridevirtual

Reimplemented from RunHeader.

Definition at line 30 of file RunHeaderv1.cc.

View newest version in sPHENIX GitHub at line 30 of file RunHeaderv1.cc

References m_FloatRunProperties.

void RunHeaderv1::set_intval ( const std::string &  name,
const int  ival 
)
overridevirtual

Reimplemented from RunHeader.

Definition at line 45 of file RunHeaderv1.cc.

View newest version in sPHENIX GitHub at line 45 of file RunHeaderv1.cc

References m_IntRunProperties.

void RunHeaderv1::set_RunNumber ( const int  run)
inlineoverridevirtual

set Run Number

Reimplemented from RunHeader.

Definition at line 23 of file RunHeaderv1.h.

View newest version in sPHENIX GitHub at line 23 of file RunHeaderv1.h

References RunNumber.

Member Data Documentation

std::map<std::string, float> RunHeaderv1::m_FloatRunProperties
private

Definition at line 38 of file RunHeaderv1.h.

View newest version in sPHENIX GitHub at line 38 of file RunHeaderv1.h

Referenced by get_floatval(), identify(), and set_floatval().

std::map<std::string, int> RunHeaderv1::m_IntRunProperties
private

Definition at line 37 of file RunHeaderv1.h.

View newest version in sPHENIX GitHub at line 37 of file RunHeaderv1.h

Referenced by get_intval(), identify(), and set_intval().

int RunHeaderv1::RunNumber = 0
private

Definition at line 36 of file RunHeaderv1.h.

View newest version in sPHENIX GitHub at line 36 of file RunHeaderv1.h

Referenced by get_RunNumber(), identify(), isValid(), and set_RunNumber().


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