CMS 3D CMS Logo

Classes | Public Types | Public Member Functions | Private Attributes

LHEEventProduct Class Reference

#include <LHEEventProduct.h>

List of all members.

Classes

class  const_iterator

Public Types

typedef std::vector
< std::string >
::const_iterator 
comments_const_iterator
typedef gen::PdfInfo PDF
typedef std::vector
< std::string >::size_type 
size_type

Public Member Functions

void addComment (const std::string &line)
const_iterator begin () const
comments_const_iterator comments_begin () const
comments_const_iterator comments_end () const
size_type comments_size () const
const_iterator end () const
const lhef::HEPEUPhepeup () const
 LHEEventProduct ()
 LHEEventProduct (const lhef::HEPEUP &hepeup)
const PDFpdf () const
void setPDF (const PDF &pdf)
 ~LHEEventProduct ()

Private Attributes

std::vector< std::string > comments_
lhef::HEPEUP hepeup_
std::auto_ptr< PDFpdf_

Detailed Description

Definition at line 11 of file LHEEventProduct.h.


Member Typedef Documentation

typedef std::vector<std::string>::const_iterator LHEEventProduct::comments_const_iterator

Definition at line 16 of file LHEEventProduct.h.

Definition at line 13 of file LHEEventProduct.h.

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

Definition at line 17 of file LHEEventProduct.h.


Constructor & Destructor Documentation

LHEEventProduct::LHEEventProduct ( ) [inline]

Definition at line 19 of file LHEEventProduct.h.

{}
LHEEventProduct::LHEEventProduct ( const lhef::HEPEUP hepeup) [inline]

Definition at line 20 of file LHEEventProduct.h.

: hepeup_(hepeup) {}
LHEEventProduct::~LHEEventProduct ( ) [inline]

Definition at line 21 of file LHEEventProduct.h.

{}

Member Function Documentation

void LHEEventProduct::addComment ( const std::string &  line) [inline]

Definition at line 24 of file LHEEventProduct.h.

References comments_.

Referenced by LHESource::produce().

{ comments_.push_back(line); }
LHEEventProduct::const_iterator LHEEventProduct::begin ( void  ) const

Definition at line 91 of file LHEEventProduct.cc.

References LHEEventProduct::const_iterator::event, LHEEventProduct::const_iterator::line, query::result, and LHEEventProduct::const_iterator::tmp.

{
        const_iterator result;
        result.event = this;
        result.line = 0;
        result.tmp = "<event>\n";
        return result;
}
comments_const_iterator LHEEventProduct::comments_begin ( ) const [inline]

Definition at line 30 of file LHEEventProduct.h.

References comments_.

{ return comments_.begin(); }
comments_const_iterator LHEEventProduct::comments_end ( ) const [inline]

Definition at line 31 of file LHEEventProduct.h.

References comments_.

{ return comments_.end(); }
size_type LHEEventProduct::comments_size ( ) const [inline]

Definition at line 29 of file LHEEventProduct.h.

References comments_.

Referenced by LHEEventProduct::const_iterator::next().

{ return comments_.size(); }
const_iterator LHEEventProduct::end ( void  ) const [inline]

Definition at line 70 of file LHEEventProduct.h.

{ return const_iterator(); }
const lhef::HEPEUP& LHEEventProduct::hepeup ( ) const [inline]

Definition at line 26 of file LHEEventProduct.h.

References hepeup_.

Referenced by LHEEventProduct::const_iterator::next().

{ return hepeup_; }
const PDF* LHEEventProduct::pdf ( ) const [inline]

Definition at line 27 of file LHEEventProduct.h.

References pdf_.

Referenced by LHEEventProduct::const_iterator::next().

{ return pdf_.get(); }
void LHEEventProduct::setPDF ( const PDF pdf) [inline]

Definition at line 23 of file LHEEventProduct.h.

References pdf_.

{ pdf_.reset(new PDF(pdf)); }

Member Data Documentation

std::vector<std::string> LHEEventProduct::comments_ [private]

Definition at line 74 of file LHEEventProduct.h.

Referenced by addComment(), comments_begin(), comments_end(), and comments_size().

Definition at line 73 of file LHEEventProduct.h.

Referenced by hepeup().

std::auto_ptr<PDF> LHEEventProduct::pdf_ [private]

Definition at line 75 of file LHEEventProduct.h.

Referenced by pdf(), and setPDF().