ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#include <coresoftware/blob/master/simulation/g4simulation/g4main/EicEventHeaderv1.h>
Classes | |
union | u_property |
convert between 32bit inputs and storage type prop_storage_t More... | |
Public Member Functions | |
EicEventHeaderv1 () | |
EicEventHeaderv1 (const EicEventHeader *eicevt) | |
~EicEventHeaderv1 () override | |
void | Reset () override |
Clear Event. | |
bool | has_property (const PROPERTY prop_id) const override |
float | get_property_float (const PROPERTY prop_id) const override |
int | get_property_int (const PROPERTY prop_id) const override |
unsigned int | get_property_uint (const PROPERTY prop_id) const override |
void | set_property (const PROPERTY prop_id, const float value) override |
void | set_property (const PROPERTY prop_id, const int value) override |
void | set_property (const PROPERTY prop_id, const unsigned int value) override |
void | set_eventgenerator_type (const int i) override |
int | get_eventgenerator_type () const override |
void | set_milou_weight (const float val) override |
float | get_milou_weight () const override |
void | set_milou_trueX (const float val) override |
float | get_milou_trueX () const override |
void | set_milou_trueQ2 (const float val) override |
float | get_milou_trueQ2 () const override |
void | set_demp_weight (const float val) override |
float | get_demp_weight () const override |
Public Member Functions inherited from EicEventHeader | |
EicEventHeader () | |
~EicEventHeader () override | |
void | identify (std::ostream &os=std::cout) const override |
void | CopyFrom (const PHObject *phobj) override |
Public Member Functions inherited from PHObject | |
PHObject () | |
ctor | |
~PHObject () override | |
dtor | |
virtual PHObject * | CloneMe () const |
Virtual copy constructor. | |
virtual PHObject * | clone () const final |
PHObject * | Clone (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 *) |
Protected Types | |
typedef uint8_t | prop_id_t |
storage types for properties | |
typedef uint32_t | prop_storage_t |
typedef std::map< prop_id_t, prop_storage_t > | prop_map_t |
Protected Member Functions | |
unsigned int | get_property_nocheck (const PROPERTY prop_id) const override |
void | set_property_nocheck (const PROPERTY prop_id, const unsigned int ui) override |
Protected Attributes | |
prop_map_t | prop_map |
container for properties | |
Protected Attributes inherited from EicEventHeader | |
std::map< std::string, double > | evInfo |
Additional Inherited Members | |
Public Types inherited from EicEventHeader | |
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 } |
Static Public Member Functions inherited from EicEventHeader | |
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) |
Definition at line 12 of file EicEventHeaderv1.h.
View newest version in sPHENIX GitHub at line 12 of file EicEventHeaderv1.h
|
protected |
storage types for properties
Definition at line 52 of file EicEventHeaderv1.h.
View newest version in sPHENIX GitHub at line 52 of file EicEventHeaderv1.h
|
protected |
Definition at line 54 of file EicEventHeaderv1.h.
View newest version in sPHENIX GitHub at line 54 of file EicEventHeaderv1.h
|
protected |
Definition at line 53 of file EicEventHeaderv1.h.
View newest version in sPHENIX GitHub at line 53 of file EicEventHeaderv1.h
|
inline |
Definition at line 15 of file EicEventHeaderv1.h.
View newest version in sPHENIX GitHub at line 15 of file EicEventHeaderv1.h
|
explicit |
Definition at line 14 of file EicEventHeaderv1.cc.
View newest version in sPHENIX GitHub at line 14 of file EicEventHeaderv1.cc
|
inlineoverride |
Definition at line 17 of file EicEventHeaderv1.h.
View newest version in sPHENIX GitHub at line 17 of file EicEventHeaderv1.h
|
inlineoverridevirtual |
Reimplemented from EicEventHeader.
Definition at line 45 of file EicEventHeaderv1.h.
View newest version in sPHENIX GitHub at line 45 of file EicEventHeaderv1.h
References get_property_float(), and EicEventHeader::prop_demp_weight.
|
inlineoverridevirtual |
Reimplemented from EicEventHeader.
Definition at line 33 of file EicEventHeaderv1.h.
View newest version in sPHENIX GitHub at line 33 of file EicEventHeaderv1.h
References get_property_int(), and EicEventHeader::prop_eventgen.
|
inlineoverridevirtual |
Reimplemented from EicEventHeader.
Definition at line 41 of file EicEventHeaderv1.h.
View newest version in sPHENIX GitHub at line 41 of file EicEventHeaderv1.h
References get_property_float(), and EicEventHeader::prop_milou_trueq2.
|
inlineoverridevirtual |
Reimplemented from EicEventHeader.
Definition at line 39 of file EicEventHeaderv1.h.
View newest version in sPHENIX GitHub at line 39 of file EicEventHeaderv1.h
References get_property_float(), and EicEventHeader::prop_milou_truex.
|
inlineoverridevirtual |
Reimplemented from EicEventHeader.
Definition at line 37 of file EicEventHeaderv1.h.
View newest version in sPHENIX GitHub at line 37 of file EicEventHeaderv1.h
References get_property_float(), and EicEventHeader::prop_milou_weight.
|
overridevirtual |
Reimplemented from EicEventHeader.
Definition at line 30 of file EicEventHeaderv1.cc.
View newest version in sPHENIX GitHub at line 30 of file EicEventHeaderv1.cc
References g4zmq::exit(), EicEventHeaderv1::u_property::fdata, and PHWHERE.
Referenced by get_demp_weight(), get_milou_trueQ2(), get_milou_trueX(), and get_milou_weight().
Reimplemented from EicEventHeader.
Definition at line 47 of file EicEventHeaderv1.cc.
View newest version in sPHENIX GitHub at line 47 of file EicEventHeaderv1.cc
References g4zmq::exit(), EicEventHeaderv1::u_property::idata, INT_MIN, and PHWHERE.
Referenced by get_eventgenerator_type().
|
overrideprotectedvirtual |
Reimplemented from EicEventHeader.
Definition at line 122 of file EicEventHeaderv1.cc.
View newest version in sPHENIX GitHub at line 122 of file EicEventHeaderv1.cc
Reimplemented from EicEventHeader.
Definition at line 65 of file EicEventHeaderv1.cc.
View newest version in sPHENIX GitHub at line 65 of file EicEventHeaderv1.cc
References g4zmq::exit(), PHWHERE, and EicEventHeaderv1::u_property::uidata.
|
overridevirtual |
Reimplemented from EicEventHeader.
Definition at line 24 of file EicEventHeaderv1.cc.
View newest version in sPHENIX GitHub at line 24 of file EicEventHeaderv1.cc
|
overridevirtual |
Clear Event.
Reimplemented from EicEventHeader.
Definition at line 19 of file EicEventHeaderv1.cc.
View newest version in sPHENIX GitHub at line 19 of file EicEventHeaderv1.cc
|
inlineoverridevirtual |
Reimplemented from EicEventHeader.
Definition at line 44 of file EicEventHeaderv1.h.
View newest version in sPHENIX GitHub at line 44 of file EicEventHeaderv1.h
References EicEventHeader::prop_demp_weight, and set_property().
Reimplemented from EicEventHeader.
Definition at line 32 of file EicEventHeaderv1.h.
View newest version in sPHENIX GitHub at line 32 of file EicEventHeaderv1.h
References EicEventHeader::prop_eventgen, and set_property().
|
inlineoverridevirtual |
Reimplemented from EicEventHeader.
Definition at line 40 of file EicEventHeaderv1.h.
View newest version in sPHENIX GitHub at line 40 of file EicEventHeaderv1.h
References EicEventHeader::prop_milou_trueq2, and set_property().
|
inlineoverridevirtual |
Reimplemented from EicEventHeader.
Definition at line 38 of file EicEventHeaderv1.h.
View newest version in sPHENIX GitHub at line 38 of file EicEventHeaderv1.h
References EicEventHeader::prop_milou_truex, and set_property().
|
inlineoverridevirtual |
Reimplemented from EicEventHeader.
Definition at line 36 of file EicEventHeaderv1.h.
View newest version in sPHENIX GitHub at line 36 of file EicEventHeaderv1.h
References EicEventHeader::prop_milou_weight, and set_property().
Reimplemented from EicEventHeader.
Definition at line 82 of file EicEventHeaderv1.cc.
View newest version in sPHENIX GitHub at line 82 of file EicEventHeaderv1.cc
References g4zmq::exit(), EicEventHeaderv1::u_property::get_storage(), and PHWHERE.
Referenced by set_demp_weight(), set_eventgenerator_type(), set_milou_trueQ2(), set_milou_trueX(), and set_milou_weight().
Reimplemented from EicEventHeader.
Definition at line 95 of file EicEventHeaderv1.cc.
View newest version in sPHENIX GitHub at line 95 of file EicEventHeaderv1.cc
References g4zmq::exit(), EicEventHeaderv1::u_property::get_storage(), and PHWHERE.
|
overridevirtual |
Reimplemented from EicEventHeader.
Definition at line 108 of file EicEventHeaderv1.cc.
View newest version in sPHENIX GitHub at line 108 of file EicEventHeaderv1.cc
References g4zmq::exit(), EicEventHeaderv1::u_property::get_storage(), and PHWHERE.
|
inlineoverrideprotectedvirtual |
Reimplemented from EicEventHeader.
Definition at line 49 of file EicEventHeaderv1.h.
View newest version in sPHENIX GitHub at line 49 of file EicEventHeaderv1.h
References prop_map.
|
protected |
container for properties
Definition at line 82 of file EicEventHeaderv1.h.
View newest version in sPHENIX GitHub at line 82 of file EicEventHeaderv1.h
Referenced by set_property_nocheck().