ATLAS Offline Software
Public Member Functions | Protected Member Functions | Private Attributes | Friends | List of all members
TrigConf::HLTStreamTag Class Reference

HLT stream configuration information. More...

#include <HLTStreamTag.h>

Inheritance diagram for TrigConf::HLTStreamTag:
Collaboration diagram for TrigConf::HLTStreamTag:

Public Member Functions

 HLTStreamTag ()
 default constructor More...
 
 HLTStreamTag (const std::string &stream, const std::string &type, bool obeyLB, float prescale)
 constructor with configuration data More...
 
virtual ~HLTStreamTag () override=default
 destructor More...
 
bool operator== (const HLTStreamTag &)
 
const std::string & stream () const
 accessor to the stream name More...
 
const std::string & type () const
 accessor to the stream type More...
 
bool obeyLB () const
 accessor to the obey LB flag More...
 
float prescale () const
 accessor to the stream prescale value More...
 
void set_stream (const std::string &stream)
 
void set_type (const std::string &type)
 
void set_obeyLB (bool val)
 
void set_prescale (float val)
 
void print (const std::string &indent="", unsigned int detail=1) const override
 
void writeXML (std::ofstream &xmlfile) const
 
int superMasterTableId () const
 
unsigned int smk () const
 
unsigned int id () const
 
const std::string & name () const
 
const std::string & comment () const
 
unsigned int version () const
 
void setSuperMasterTableId (int id)
 
void setSMK (int id)
 
void setId (unsigned int id)
 
void setName (const std::string &name)
 
void setVersion (unsigned int version)
 
void setComment (const std::string &c)
 
void printNameIdV (const std::string &indent="") const
 
virtual std::string __str__ () const
 

Protected Member Functions

std::ostream & indent (std::ostream &o, int lvl, int size) const
 

Private Attributes

std::string m_stream
 the stream name
More...
 
std::string m_type
 the stream type
More...
 
bool m_obeyLB
 the obey LB flag, if true the stream obeys the boundaries of the lumi-blocks More...
 
float m_prescale
 the stream prescale value (in conjunction with a chain) More...
 
unsigned int m_smk
 
unsigned int m_id
 
std::string m_name
 
unsigned int m_version
 
std::string m_comment
 

Friends

std::ostream & operator<< (std::ostream &, const TrigConf::HLTStreamTag &)
 

Detailed Description

HLT stream configuration information.

Defines streams that are associated with the chains

Definition at line 23 of file HLTStreamTag.h.

Constructor & Destructor Documentation

◆ HLTStreamTag() [1/2]

TrigConf::HLTStreamTag::HLTStreamTag ( )

default constructor

Definition at line 12 of file HLTStreamTag.cxx.

12  :
13  m_stream(""),
14  m_type(""),
15  m_obeyLB(false),
16  m_prescale(1.)
17 {}

◆ HLTStreamTag() [2/2]

TrigConf::HLTStreamTag::HLTStreamTag ( const std::string &  stream,
const std::string &  type,
bool  obeyLB,
float  prescale 
)

constructor with configuration data

Parameters
streamstream name
typestream type
obeyLBflag that the stream obey the boundaries of the lumi-blocks
prescalestream prescale value (in conjunction with a chain)

Definition at line 19 of file HLTStreamTag.cxx.

22  :
24  m_type(type),
27 {
28  setName(type+"."+stream);
29 }

◆ ~HLTStreamTag()

virtual TrigConf::HLTStreamTag::~HLTStreamTag ( )
overridevirtualdefault

destructor

Member Function Documentation

◆ __str__()

string TrigConfData::__str__ ( ) const
virtualinherited

Reimplemented in TrigConf::HLTChain, TrigConf::HLTPrescaleSet, TrigConf::TriggerItem, and TrigConf::HLTSequence.

Definition at line 50 of file TrigConfData.cxx.

50  {
51  stringstream s;
52  s << *this;
53  return s.str();
54 }

◆ comment()

const std::string& TrigConf::TrigConfData::comment ( ) const
inlineinherited

Definition at line 23 of file TrigConfData.h.

23 {return m_comment;}

◆ id()

unsigned int TrigConf::TrigConfData::id ( ) const
inlineinherited

Definition at line 21 of file TrigConfData.h.

21 {return m_id;}

◆ indent()

std::ostream & TrigConfData::indent ( std::ostream &  o,
int  lvl,
int  size 
) const
protectedinherited

Definition at line 23 of file TrigConfData.cxx.

23  {
24  int width = lvl*size;
25  if(width==0) return o;
26  o << setw(lvl*size) << " ";
27  return o;
28 }

◆ name()

const std::string& TrigConf::TrigConfData::name ( ) const
inlineinherited

Definition at line 22 of file TrigConfData.h.

22 {return m_name;}

◆ obeyLB()

bool TrigConf::HLTStreamTag::obeyLB ( ) const
inline

accessor to the obey LB flag

Definition at line 47 of file HLTStreamTag.h.

◆ operator==()

bool TrigConf::HLTStreamTag::operator== ( const HLTStreamTag o)

Definition at line 32 of file HLTStreamTag.cxx.

32  {
33  return ( stream() == o.stream() &&
34  type() == o.type() &&
35  obeyLB() == o.obeyLB() &&
36  prescale() == o.prescale() );
37 }

◆ prescale()

float TrigConf::HLTStreamTag::prescale ( ) const
inline

accessor to the stream prescale value

Definition at line 48 of file HLTStreamTag.h.

◆ print()

void TrigConf::HLTStreamTag::print ( const std::string &  indent = "",
unsigned int  detail = 1 
) const
overridevirtual

Implements TrigConf::TrigConfData.

Definition at line 52 of file HLTStreamTag.cxx.

52  {
53  std::cout << indent << *this;
54 }

◆ printNameIdV()

void TrigConfData::printNameIdV ( const std::string &  indent = "") const
inherited

Definition at line 31 of file TrigConfData.cxx.

31  {
32  cout << indent << name();
33  if(id()>0 || version()>0)
34  cout << " (id=" << id() << "/v=" << version() << ")";
35  cout << endl;
36  if(comment()!="")
37  cout << indent << "Comment: " << comment() << endl;
38 }

◆ set_obeyLB()

void TrigConf::HLTStreamTag::set_obeyLB ( bool  val)
inline

Definition at line 53 of file HLTStreamTag.h.

53 { m_obeyLB = val; }

◆ set_prescale()

void TrigConf::HLTStreamTag::set_prescale ( float  val)
inline

Definition at line 54 of file HLTStreamTag.h.

54 { m_prescale = val; }

◆ set_stream()

void TrigConf::HLTStreamTag::set_stream ( const std::string &  stream)
inline

Definition at line 51 of file HLTStreamTag.h.

◆ set_type()

void TrigConf::HLTStreamTag::set_type ( const std::string &  type)
inline

Definition at line 52 of file HLTStreamTag.h.

52 { m_type = type; setName(m_type+"."+m_stream); }

◆ setComment()

void TrigConf::TrigConfData::setComment ( const std::string &  c)
inlineinherited

Definition at line 32 of file TrigConfData.h.

32 { m_comment = c;}

◆ setId()

void TrigConf::TrigConfData::setId ( unsigned int  id)
inlineinherited

Definition at line 29 of file TrigConfData.h.

29 { m_id=id; }

◆ setName()

void TrigConf::TrigConfData::setName ( const std::string &  name)
inlineinherited

Definition at line 30 of file TrigConfData.h.

30 { m_name = name;}

◆ setSMK()

void TrigConf::TrigConfData::setSMK ( int  id)
inlineinherited

Definition at line 28 of file TrigConfData.h.

28 {m_smk=id;}

◆ setSuperMasterTableId()

void TrigConf::TrigConfData::setSuperMasterTableId ( int  id)
inlineinherited

Definition at line 27 of file TrigConfData.h.

27 {m_smk=id;}

◆ setVersion()

void TrigConf::TrigConfData::setVersion ( unsigned int  version)
inlineinherited

Definition at line 31 of file TrigConfData.h.

31 { m_version = version;}

◆ smk()

unsigned int TrigConf::TrigConfData::smk ( ) const
inlineinherited

Definition at line 20 of file TrigConfData.h.

20 {return m_smk;}

◆ stream()

const std::string& TrigConf::HLTStreamTag::stream ( ) const
inline

accessor to the stream name

Definition at line 45 of file HLTStreamTag.h.

◆ superMasterTableId()

int TrigConf::TrigConfData::superMasterTableId ( ) const
inlineinherited

Definition at line 19 of file TrigConfData.h.

19 {return (int)m_smk;}

◆ type()

const std::string& TrigConf::HLTStreamTag::type ( ) const
inline

accessor to the stream type

Definition at line 46 of file HLTStreamTag.h.

◆ version()

unsigned int TrigConf::TrigConfData::version ( ) const
inlineinherited

Definition at line 24 of file TrigConfData.h.

24 {return m_version;}

◆ writeXML()

void TrigConf::HLTStreamTag::writeXML ( std::ofstream &  xmlfile) const

Definition at line 40 of file HLTStreamTag.cxx.

40  {
41  xmlfile << " <STREAMTAG"
42  << " stream=\"" << m_stream << "\""
43  << " type=\"" << m_type << "\""
44  << " prescale=\"" << m_prescale << "\""
45  << " obeyLB=\"" << (m_obeyLB?"yes":"no") << "\""
46  << "/>"
47  << endl;
48 }

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  ,
const TrigConf::HLTStreamTag  
)
friend

Member Data Documentation

◆ m_comment

std::string TrigConf::TrigConfData::m_comment
privateinherited

Definition at line 48 of file TrigConfData.h.

◆ m_id

unsigned int TrigConf::TrigConfData::m_id
privateinherited

Definition at line 45 of file TrigConfData.h.

◆ m_name

std::string TrigConf::TrigConfData::m_name
privateinherited

Definition at line 46 of file TrigConfData.h.

◆ m_obeyLB

bool TrigConf::HLTStreamTag::m_obeyLB
private

the obey LB flag, if true the stream obeys the boundaries of the lumi-blocks

Definition at line 65 of file HLTStreamTag.h.

◆ m_prescale

float TrigConf::HLTStreamTag::m_prescale
private

the stream prescale value (in conjunction with a chain)

Definition at line 66 of file HLTStreamTag.h.

◆ m_smk

unsigned int TrigConf::TrigConfData::m_smk
privateinherited

Definition at line 44 of file TrigConfData.h.

◆ m_stream

std::string TrigConf::HLTStreamTag::m_stream
private

the stream name

Definition at line 63 of file HLTStreamTag.h.

◆ m_type

std::string TrigConf::HLTStreamTag::m_type
private

the stream type

Definition at line 64 of file HLTStreamTag.h.

◆ m_version

unsigned int TrigConf::TrigConfData::m_version
privateinherited

Definition at line 47 of file TrigConfData.h.


The documentation for this class was generated from the following files:
TrigConf::TrigConfData::m_id
unsigned int m_id
Definition: TrigConfData.h:45
TrigConf::TrigConfData::setName
void setName(const std::string &name)
Definition: TrigConfData.h:30
TrigConf::HLTStreamTag::stream
const std::string & stream() const
accessor to the stream name
Definition: HLTStreamTag.h:45
TrigConf::TrigConfData::m_name
std::string m_name
Definition: TrigConfData.h:46
TrigConf::TrigConfData::name
const std::string & name() const
Definition: TrigConfData.h:22
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
TrigConf::TrigConfData::comment
const std::string & comment() const
Definition: TrigConfData.h:23
TrigConf::TrigConfData::m_version
unsigned int m_version
Definition: TrigConfData.h:47
TrigConf::HLTStreamTag::m_type
std::string m_type
the stream type
Definition: HLTStreamTag.h:64
python.XMLReader.xmlfile
xmlfile
Definition: XMLReader.py:72
TrigConf::HLTStreamTag::m_stream
std::string m_stream
the stream name
Definition: HLTStreamTag.h:63
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
TrigConf::HLTStreamTag::m_prescale
float m_prescale
the stream prescale value (in conjunction with a chain)
Definition: HLTStreamTag.h:66
TrigConf::HLTStreamTag::type
const std::string & type() const
accessor to the stream type
Definition: HLTStreamTag.h:46
TrigConf::TrigConfData::m_comment
std::string m_comment
Definition: TrigConfData.h:48
TrigConf::TrigConfData::version
unsigned int version() const
Definition: TrigConfData.h:24
TrigConf::TrigConfData::id
unsigned int id() const
Definition: TrigConfData.h:21
TrigConf::HLTStreamTag::obeyLB
bool obeyLB() const
accessor to the obey LB flag
Definition: HLTStreamTag.h:47
TrigConf::HLTStreamTag::prescale
float prescale() const
accessor to the stream prescale value
Definition: HLTStreamTag.h:48
TrigConf::TrigConfData::m_smk
unsigned int m_smk
Definition: TrigConfData.h:44
TrigConf::HLTStreamTag::m_obeyLB
bool m_obeyLB
the obey LB flag, if true the stream obeys the boundaries of the lumi-blocks
Definition: HLTStreamTag.h:65
Base_Fragment.width
width
Definition: Sherpa_i/share/common/Base_Fragment.py:59
Pythia8_RapidityOrderMPI.val
val
Definition: Pythia8_RapidityOrderMPI.py:14
TrigConf::TrigConfData::indent
std::ostream & indent(std::ostream &o, int lvl, int size) const
Definition: TrigConfData.cxx:23
python.compressB64.c
def c
Definition: compressB64.py:93