HepMC event record
Public Member Functions | Data Fields | Protected Member Functions
HEPRUPAttribute Class Reference

Detailed Description

Class for storing data for LHEF run information.

Examples:
LHEF_example_cat.cc.

Definition at line 26 of file build/outputs/include/HepMC/LHEFAttributes.h.

#include <LHEFAttributes.h>

+ Inheritance diagram for HEPRUPAttribute:
+ Collaboration diagram for HEPRUPAttribute:

Public Member Functions

 HEPRUPAttribute ()
 Default constructor. More...
 
 HEPRUPAttribute (std::string s)
 Constructor from string. More...
 
virtual ~HEPRUPAttribute ()
 Virtual destructor. More...
 
virtual bool from_string (const string &att)
 Fill class content from string. More...
 
virtual bool to_string (string &att) const
 Fill string from class content. More...
 
void clear ()
 Clear this object. More...
 
 HEPRUPAttribute ()
 Default constructor. More...
 
 HEPRUPAttribute (std::string s)
 Constructor from string. More...
 
virtual ~HEPRUPAttribute ()
 Virtual destructor. More...
 
virtual bool from_string (const string &att)
 Fill class content from string. More...
 
virtual bool to_string (string &att) const
 Fill string from class content. More...
 
void clear ()
 Clear this object. More...
 
virtual bool init (const GenEvent &)
 Optionally initialize the attribute after from_string. More...
 
virtual bool init (const GenRunInfo &)
 Optionally initialize the attribute after from_string. More...
 
virtual bool init (const GenEvent &)
 Optionally initialize the attribute after from_string. More...
 
virtual bool init (const GenRunInfo &)
 Optionally initialize the attribute after from_string. More...
 
bool is_parsed ()
 Check if this attribute is parsed. More...
 
bool is_parsed ()
 Check if this attribute is parsed. More...
 
const string & unparsed_string () const
 Get unparsed string. More...
 
const string & unparsed_string () const
 Get unparsed string. More...
 

Data Fields

LHEF::HEPRUP heprup
 The actual HEPRUP object. More...
 
std::vector< LHEF::XMLTag * > tags
 The parsed XML-tags. More...
 

Protected Member Functions

void set_is_parsed (bool flag)
 Set is_parsed flag. More...
 
void set_is_parsed (bool flag)
 Set is_parsed flag. More...
 
void set_unparsed_string (const string &st)
 Set unparsed string. More...
 
void set_unparsed_string (const string &st)
 Set unparsed string. More...
 

Constructor & Destructor Documentation

◆ HEPRUPAttribute() [1/4]

HEPRUPAttribute ( )
inline

Default constructor.

Definition at line 31 of file build/outputs/include/HepMC/LHEFAttributes.h.

◆ HEPRUPAttribute() [2/4]

HEPRUPAttribute ( std::string  s)
inline

Constructor from string.

Definition at line 34 of file build/outputs/include/HepMC/LHEFAttributes.h.

◆ ~HEPRUPAttribute() [1/2]

virtual ~HEPRUPAttribute ( )
inlinevirtual

Virtual destructor.

Definition at line 37 of file build/outputs/include/HepMC/LHEFAttributes.h.

References HEPRUPAttribute::clear().

◆ HEPRUPAttribute() [3/4]

HEPRUPAttribute ( )
inline

Default constructor.

Definition at line 31 of file include/HepMC/LHEFAttributes.h.

◆ HEPRUPAttribute() [4/4]

HEPRUPAttribute ( std::string  s)
inline

Constructor from string.

Definition at line 34 of file include/HepMC/LHEFAttributes.h.

◆ ~HEPRUPAttribute() [2/2]

virtual ~HEPRUPAttribute ( )
inlinevirtual

Virtual destructor.

Definition at line 37 of file include/HepMC/LHEFAttributes.h.

References HEPRUPAttribute::clear().

Member Function Documentation

◆ clear() [1/2]

void clear ( )

Clear this object.

Definition at line 17 of file LHEFAttributes.cc.

◆ clear() [2/2]

void clear ( )

Clear this object.

◆ from_string() [1/2]

virtual bool from_string ( const string &  att)
virtual

Fill class content from string.

Implements Attribute.

◆ from_string() [2/2]

bool from_string ( const string &  att)
virtual

Fill class content from string.

Implements Attribute.

Definition at line 23 of file LHEFAttributes.cc.

◆ init() [1/4]

virtual bool init ( const GenEvent )
inlinevirtualinherited

Optionally initialize the attribute after from_string.

Is passed a reference to the GenEvent object to which the Attribute belongs.

Reimplemented in HEPEUPAttribute, and HEPEUPAttribute.

Definition at line 73 of file include/HepMC/Attribute.h.

◆ init() [2/4]

virtual bool init ( const GenEvent )
inlinevirtualinherited

Optionally initialize the attribute after from_string.

Is passed a reference to the GenEvent object to which the Attribute belongs.

Reimplemented in HEPEUPAttribute, and HEPEUPAttribute.

Definition at line 73 of file build/outputs/include/HepMC/Attribute.h.

◆ init() [3/4]

virtual bool init ( const GenRunInfo )
inlinevirtualinherited

Optionally initialize the attribute after from_string.

Is passed a reference to the GenRunInfo object to which the Attribute belongs.

Reimplemented in HEPEUPAttribute, and HEPEUPAttribute.

Definition at line 82 of file build/outputs/include/HepMC/Attribute.h.

◆ init() [4/4]

virtual bool init ( const GenRunInfo )
inlinevirtualinherited

Optionally initialize the attribute after from_string.

Is passed a reference to the GenRunInfo object to which the Attribute belongs.

Reimplemented in HEPEUPAttribute, and HEPEUPAttribute.

Definition at line 82 of file include/HepMC/Attribute.h.

◆ is_parsed() [1/2]

bool is_parsed ( )
inlineinherited

Check if this attribute is parsed.

Definition at line 94 of file build/outputs/include/HepMC/Attribute.h.

References Attribute::m_is_parsed.

◆ is_parsed() [2/2]

bool is_parsed ( )
inlineinherited

Check if this attribute is parsed.

Definition at line 94 of file include/HepMC/Attribute.h.

References Attribute::m_is_parsed.

◆ set_is_parsed() [1/2]

void set_is_parsed ( bool  flag)
inlineprotectedinherited

Set is_parsed flag.

Definition at line 101 of file include/HepMC/Attribute.h.

References Attribute::m_is_parsed.

◆ set_is_parsed() [2/2]

void set_is_parsed ( bool  flag)
inlineprotectedinherited

Set is_parsed flag.

Definition at line 101 of file build/outputs/include/HepMC/Attribute.h.

References Attribute::m_is_parsed.

◆ set_unparsed_string() [1/2]

void set_unparsed_string ( const string &  st)
inlineprotectedinherited

Set unparsed string.

Definition at line 104 of file build/outputs/include/HepMC/Attribute.h.

References Attribute::m_string.

◆ set_unparsed_string() [2/2]

void set_unparsed_string ( const string &  st)
inlineprotectedinherited

Set unparsed string.

Definition at line 104 of file include/HepMC/Attribute.h.

References Attribute::m_string.

◆ to_string() [1/2]

virtual bool to_string ( string &  att) const
virtual

Fill string from class content.

Implements Attribute.

◆ to_string() [2/2]

bool to_string ( string &  att) const
virtual

Fill string from class content.

Implements Attribute.

Definition at line 35 of file LHEFAttributes.cc.

◆ unparsed_string() [1/2]

const string& unparsed_string ( ) const
inlineinherited

Get unparsed string.

Definition at line 97 of file build/outputs/include/HepMC/Attribute.h.

References Attribute::m_string.

◆ unparsed_string() [2/2]

const string& unparsed_string ( ) const
inlineinherited

Get unparsed string.

Definition at line 97 of file include/HepMC/Attribute.h.

References Attribute::m_string.

Field Documentation

◆ heprup

LHEF::HEPRUP heprup

The actual HEPRUP object.

Definition at line 57 of file build/outputs/include/HepMC/LHEFAttributes.h.

◆ tags

std::vector< LHEF::XMLTag * > tags

The parsed XML-tags.

Examples:
LHEF_example_cat.cc.

Definition at line 60 of file build/outputs/include/HepMC/LHEFAttributes.h.


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