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

#include <fun4all_coresoftware/blob/master/simulation/g4simulation/g4main/EicEventHeader.h>

+ Inheritance diagram for EicEventHeader:
+ Collaboration diagram for EicEventHeader:

Public Types

enum  PROPERTY {
  prop_eventgen = 1, prop_milou_weight = 2, prop_milou_truex = 3, prop_milou_trueq2 = 4,
  prop_demp_weight = 5, prop_MAX_NUMBER = UCHAR_MAX
}
 
enum  PROPERTY_TYPE { type_int = 1, type_uint = 2, type_float = 3, type_unknown = -1 }
 
enum  EvtGen { Milou = 1, DEMP = 2 }
 

Public Member Functions

 EicEventHeader ()
 
 ~EicEventHeader () override
 
void identify (std::ostream &os=std::cout) const override
 
void CopyFrom (const PHObject *phobj) override
 
void Reset () override
 Clear Event.
 
virtual void set_eventgenerator_type (const int)
 
virtual int get_eventgenerator_type () const
 
virtual void set_milou_weight (const float)
 
virtual float get_milou_weight () const
 
virtual void set_milou_trueX (const float)
 
virtual float get_milou_trueX () const
 
virtual void set_milou_trueQ2 (const float)
 
virtual float get_milou_trueQ2 () const
 
virtual void set_demp_weight (const float)
 
virtual float get_demp_weight () const
 
virtual bool has_property (const PROPERTY) const
 
virtual float get_property_float (const PROPERTY) const
 
virtual int get_property_int (const PROPERTY) const
 
virtual unsigned int get_property_uint (const PROPERTY) const
 
virtual void set_property (const PROPERTY, const float)
 
virtual void set_property (const PROPERTY, const int)
 
virtual void set_property (const PROPERTY, const unsigned int)
 
- Public Member Functions inherited from PHObject
 PHObject ()
 ctor
 
 ~PHObject () override
 dtor
 
virtual PHObjectCloneMe () const
 Virtual copy constructor.
 
virtual PHObjectclone () const final
 
PHObjectClone (const char *newname="") const final
 
void Copy (TObject &object) const final
 
virtual int isValid () const
 isValid returns non zero if object contains vailid data
 
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 *)
 

Static Public Member Functions

static std::pair< const
std::string, PROPERTY_TYPE
get_property_info (PROPERTY prop_id)
 
static bool check_property (const PROPERTY prop_id, const PROPERTY_TYPE prop_type)
 
static std::string get_property_type (const PROPERTY_TYPE prop_type)
 

Protected Member Functions

virtual unsigned int get_property_nocheck (const PROPERTY) const
 
virtual void set_property_nocheck (const PROPERTY, const unsigned int)
 

Protected Attributes

std::map< std::string, double > evInfo
 

Detailed Description

Definition at line 15 of file EicEventHeader.h.

View newest version in sPHENIX GitHub at line 15 of file EicEventHeader.h

Member Enumeration Documentation

Enumerator:
Milou 
DEMP 

Definition at line 70 of file EicEventHeader.h.

View newest version in sPHENIX GitHub at line 70 of file EicEventHeader.h

Procedure to add a new PROPERTY tag: 1.add new tag below with unique value, 2.add a short name to EicEventHeader::get_property_info

Enumerator:
prop_eventgen 
prop_milou_weight 
prop_milou_truex 
prop_milou_trueq2 
prop_demp_weight 
prop_MAX_NUMBER 

max limit in order to fit into 8 bit unsigned number

Definition at line 49 of file EicEventHeader.h.

View newest version in sPHENIX GitHub at line 49 of file EicEventHeader.h

Enumerator:
type_int 
type_uint 
type_float 
type_unknown 

Definition at line 62 of file EicEventHeader.h.

View newest version in sPHENIX GitHub at line 62 of file EicEventHeader.h

Constructor & Destructor Documentation

EicEventHeader::EicEventHeader ( )
inline

Definition at line 18 of file EicEventHeader.h.

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

EicEventHeader::~EicEventHeader ( )
override

Definition at line 27 of file EicEventHeader.cc.

View newest version in sPHENIX GitHub at line 27 of file EicEventHeader.cc

Member Function Documentation

bool EicEventHeader::check_property ( const PROPERTY  prop_id,
const PROPERTY_TYPE  prop_type 
)
static

Definition at line 61 of file EicEventHeader.cc.

View newest version in sPHENIX GitHub at line 61 of file EicEventHeader.cc

void EicEventHeader::CopyFrom ( const PHObject phobj)
overridevirtual

Reimplemented from PHObject.

Definition at line 10 of file EicEventHeader.cc.

View newest version in sPHENIX GitHub at line 10 of file EicEventHeader.cc

References get_property_nocheck(), and has_property().

+ Here is the call graph for this function:

virtual float EicEventHeader::get_demp_weight ( ) const
inlinevirtual

Reimplemented in EicEventHeaderv1.

Definition at line 44 of file EicEventHeader.h.

View newest version in sPHENIX GitHub at line 44 of file EicEventHeader.h

virtual int EicEventHeader::get_eventgenerator_type ( ) const
inlinevirtual

Reimplemented in EicEventHeaderv1.

Definition at line 27 of file EicEventHeader.h.

View newest version in sPHENIX GitHub at line 27 of file EicEventHeader.h

virtual float EicEventHeader::get_milou_trueQ2 ( ) const
inlinevirtual

Reimplemented in EicEventHeaderv1.

Definition at line 36 of file EicEventHeader.h.

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

virtual float EicEventHeader::get_milou_trueX ( ) const
inlinevirtual

Reimplemented in EicEventHeaderv1.

Definition at line 34 of file EicEventHeader.h.

View newest version in sPHENIX GitHub at line 34 of file EicEventHeader.h

virtual float EicEventHeader::get_milou_weight ( ) const
inlinevirtual

Reimplemented in EicEventHeaderv1.

Definition at line 32 of file EicEventHeader.h.

View newest version in sPHENIX GitHub at line 32 of file EicEventHeader.h

virtual float EicEventHeader::get_property_float ( const PROPERTY  ) const
inlinevirtual

Reimplemented in EicEventHeaderv1.

Definition at line 77 of file EicEventHeader.h.

View newest version in sPHENIX GitHub at line 77 of file EicEventHeader.h

std::pair< const std::string, EicEventHeader::PROPERTY_TYPE > EicEventHeader::get_property_info ( PROPERTY  prop_id)
static

Definition at line 39 of file EicEventHeader.cc.

View newest version in sPHENIX GitHub at line 39 of file EicEventHeader.cc

References exit(), type_float, and type_int.

+ Here is the call graph for this function:

virtual int EicEventHeader::get_property_int ( const PROPERTY  ) const
inlinevirtual

Reimplemented in EicEventHeaderv1.

Definition at line 78 of file EicEventHeader.h.

View newest version in sPHENIX GitHub at line 78 of file EicEventHeader.h

virtual unsigned int EicEventHeader::get_property_nocheck ( const PROPERTY  ) const
inlineprotectedvirtual

Reimplemented in EicEventHeaderv1.

Definition at line 88 of file EicEventHeader.h.

View newest version in sPHENIX GitHub at line 88 of file EicEventHeader.h

Referenced by CopyFrom().

+ Here is the caller graph for this function:

string EicEventHeader::get_property_type ( const PROPERTY_TYPE  prop_type)
static

Definition at line 72 of file EicEventHeader.cc.

View newest version in sPHENIX GitHub at line 72 of file EicEventHeader.cc

virtual unsigned int EicEventHeader::get_property_uint ( const PROPERTY  ) const
inlinevirtual

Reimplemented in EicEventHeaderv1.

Definition at line 79 of file EicEventHeader.h.

View newest version in sPHENIX GitHub at line 79 of file EicEventHeader.h

virtual bool EicEventHeader::has_property ( const PROPERTY  ) const
inlinevirtual

Reimplemented in EicEventHeaderv1.

Definition at line 76 of file EicEventHeader.h.

View newest version in sPHENIX GitHub at line 76 of file EicEventHeader.h

Referenced by CopyFrom().

+ Here is the caller graph for this function:

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

identify Function from PHObject

Parameters
osOutput Stream

Reimplemented from PHObject.

Definition at line 87 of file EicEventHeader.cc.

View newest version in sPHENIX GitHub at line 87 of file EicEventHeader.cc

void EicEventHeader::Reset ( )
overridevirtual

Clear Event.

Reimplemented from PHObject.

Reimplemented in EicEventHeaderv1.

Definition at line 32 of file EicEventHeader.cc.

View newest version in sPHENIX GitHub at line 32 of file EicEventHeader.cc

virtual void EicEventHeader::set_demp_weight ( const float  )
inlinevirtual

Reimplemented in EicEventHeaderv1.

Definition at line 43 of file EicEventHeader.h.

View newest version in sPHENIX GitHub at line 43 of file EicEventHeader.h

Referenced by ReadEICFiles::process_event().

+ Here is the caller graph for this function:

virtual void EicEventHeader::set_eventgenerator_type ( const int  )
inlinevirtual

Reimplemented in EicEventHeaderv1.

Definition at line 26 of file EicEventHeader.h.

View newest version in sPHENIX GitHub at line 26 of file EicEventHeader.h

Referenced by ReadEICFiles::process_event().

+ Here is the caller graph for this function:

virtual void EicEventHeader::set_milou_trueQ2 ( const float  )
inlinevirtual

Reimplemented in EicEventHeaderv1.

Definition at line 35 of file EicEventHeader.h.

View newest version in sPHENIX GitHub at line 35 of file EicEventHeader.h

Referenced by ReadEICFiles::process_event().

+ Here is the caller graph for this function:

virtual void EicEventHeader::set_milou_trueX ( const float  )
inlinevirtual

Reimplemented in EicEventHeaderv1.

Definition at line 33 of file EicEventHeader.h.

View newest version in sPHENIX GitHub at line 33 of file EicEventHeader.h

Referenced by ReadEICFiles::process_event().

+ Here is the caller graph for this function:

virtual void EicEventHeader::set_milou_weight ( const float  )
inlinevirtual

Reimplemented in EicEventHeaderv1.

Definition at line 31 of file EicEventHeader.h.

View newest version in sPHENIX GitHub at line 31 of file EicEventHeader.h

Referenced by ReadEICFiles::process_event().

+ Here is the caller graph for this function:

virtual void EicEventHeader::set_property ( const PROPERTY  ,
const float   
)
inlinevirtual

Reimplemented in EicEventHeaderv1.

Definition at line 80 of file EicEventHeader.h.

View newest version in sPHENIX GitHub at line 80 of file EicEventHeader.h

virtual void EicEventHeader::set_property ( const PROPERTY  ,
const int   
)
inlinevirtual

Reimplemented in EicEventHeaderv1.

Definition at line 81 of file EicEventHeader.h.

View newest version in sPHENIX GitHub at line 81 of file EicEventHeader.h

virtual void EicEventHeader::set_property ( const PROPERTY  ,
const unsigned int   
)
inlinevirtual

Reimplemented in EicEventHeaderv1.

Definition at line 82 of file EicEventHeader.h.

View newest version in sPHENIX GitHub at line 82 of file EicEventHeader.h

virtual void EicEventHeader::set_property_nocheck ( const PROPERTY  ,
const unsigned int   
)
inlineprotectedvirtual

Reimplemented in EicEventHeaderv1.

Definition at line 89 of file EicEventHeader.h.

View newest version in sPHENIX GitHub at line 89 of file EicEventHeader.h

Member Data Documentation

std::map<std::string, double> EicEventHeader::evInfo
protected

Definition at line 91 of file EicEventHeader.h.

View newest version in sPHENIX GitHub at line 91 of file EicEventHeader.h


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