CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
LHERunInfoProduct::Header Class Reference

#include <LHERunInfoProduct.h>

Inheritance diagram for LHERunInfoProduct::Header:
lhef::LHERunInfo::Header

Public Types

typedef std::vector< std::string >::const_iterator const_iterator
 
typedef std::vector< std::string >::size_type size_type
 

Public Member Functions

void addLine (const std::string &line)
 
const_iterator begin () const
 
const_iterator end () const
 
 Header ()
 
 Header (const std::string &tag)
 
const std::vector< std::string > & lines () const
 
bool operator!= (const Header &other) const
 
bool operator== (const Header &other) const
 
size_type size () const
 
const std::string & tag () const
 
 ~Header ()
 

Private Attributes

std::vector< std::string > lines_
 
std::string tag_
 

Detailed Description

Definition at line 16 of file LHERunInfoProduct.h.

Member Typedef Documentation

◆ const_iterator

typedef std::vector<std::string>::const_iterator LHERunInfoProduct::Header::const_iterator

Definition at line 18 of file LHERunInfoProduct.h.

◆ size_type

typedef std::vector<std::string>::size_type LHERunInfoProduct::Header::size_type

Definition at line 19 of file LHERunInfoProduct.h.

Constructor & Destructor Documentation

◆ Header() [1/2]

LHERunInfoProduct::Header::Header ( )
inline

Definition at line 21 of file LHERunInfoProduct.h.

21 {}

◆ Header() [2/2]

LHERunInfoProduct::Header::Header ( const std::string &  tag)
inline

Definition at line 22 of file LHERunInfoProduct.h.

22 : tag_(tag) {}
const std::string & tag() const

◆ ~Header()

LHERunInfoProduct::Header::~Header ( )
inline

Definition at line 23 of file LHERunInfoProduct.h.

23 {}

Member Function Documentation

◆ addLine()

void LHERunInfoProduct::Header::addLine ( const std::string &  line)
inline

Definition at line 25 of file LHERunInfoProduct.h.

References mps_splice::line, and lines_.

Referenced by AlpgenSource::AlpgenSource(), AlpgenSource::beginRun(), and EmbeddingLHEProducer::give_slha().

25 { lines_.push_back(line); }
std::vector< std::string > lines_

◆ begin()

const_iterator LHERunInfoProduct::Header::begin ( void  ) const
inline

Definition at line 31 of file LHERunInfoProduct.h.

References lines_.

Referenced by AlpgenSource::AlpgenSource().

31 { return lines_.begin(); }
std::vector< std::string > lines_

◆ end()

const_iterator LHERunInfoProduct::Header::end ( void  ) const
inline

Definition at line 32 of file LHERunInfoProduct.h.

References lines_.

Referenced by AlpgenSource::AlpgenSource().

32 { return lines_.end(); }
std::vector< std::string > lines_

◆ lines()

const std::vector<std::string>& LHERunInfoProduct::Header::lines ( ) const
inline

Definition at line 28 of file LHERunInfoProduct.h.

References lines_.

28 { return lines_; }
std::vector< std::string > lines_

◆ operator!=()

bool LHERunInfoProduct::Header::operator!= ( const Header other) const
inline

Definition at line 35 of file LHERunInfoProduct.h.

References trackingPlots::other.

35 { return !(*this == other); }

◆ operator==()

bool LHERunInfoProduct::Header::operator== ( const Header other) const
inline

Definition at line 34 of file LHERunInfoProduct.h.

References lines_, trackingPlots::other, and tag_.

34 { return tag_ == other.tag_ && lines_ == other.lines_; }
std::vector< std::string > lines_

◆ size()

size_type LHERunInfoProduct::Header::size ( void  ) const
inline

Definition at line 30 of file LHERunInfoProduct.h.

References lines_.

Referenced by ntupleDataFormat._Collection::__iter__(), and ntupleDataFormat._Collection::__len__().

30 { return lines_.size(); }
std::vector< std::string > lines_

◆ tag()

const std::string& LHERunInfoProduct::Header::tag ( ) const
inline

Definition at line 27 of file LHERunInfoProduct.h.

References tag_.

27 { return tag_; }

Member Data Documentation

◆ lines_

std::vector<std::string> LHERunInfoProduct::Header::lines_
private

Definition at line 39 of file LHERunInfoProduct.h.

Referenced by addLine(), begin(), end(), lines(), operator==(), and size().

◆ tag_

std::string LHERunInfoProduct::Header::tag_
private

Definition at line 38 of file LHERunInfoProduct.h.

Referenced by operator==(), and tag().