/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Member Functions | Private Attributes
LotsaGens Class Reference

Make a lot of GenHeaders. More...

#include <LotsaGens.h>

List of all members.

Public Member Functions

 LotsaGens (const std::string &name, ISvcLocator *pSvcLocator)
virtual ~LotsaGens ()
virtual StatusCode initialize ()
virtual StatusCode execute ()
virtual StatusCode finalize ()

Private Attributes

int m_count

Detailed Description

Make a lot of GenHeaders.

Tests for placing multiple header objects of the same type into different streams.

Brett Viren <bv@bnl.gov> Wed Feb 23 13:38:42 2011

Definition at line 19 of file LotsaGens.h.


Constructor & Destructor Documentation

LotsaGens::LotsaGens ( const std::string &  name,
ISvcLocator *  pSvcLocator 
)

Definition at line 12 of file LotsaGens.cc.

    : GaudiAlgorithm(name,pSvcLocator)
    , m_count(0)
{
}
LotsaGens::~LotsaGens ( ) [virtual]

Definition at line 18 of file LotsaGens.cc.

{
}

Member Function Documentation

StatusCode LotsaGens::initialize ( ) [virtual]

Definition at line 22 of file LotsaGens.cc.

{
    return StatusCode::SUCCESS;
}
StatusCode LotsaGens::execute ( ) [virtual]

Definition at line 27 of file LotsaGens.cc.

{
    ++m_count;

    vector<GenHeader*> genheaders;

    info() << "Making LotsaGens at " << m_count << endreq;
    for (int ind=0; ind<10; ++ind) {
        GenHeader* gh = new GenHeader();
        gh->setGeneratorName(Form("Lotsa%d",ind));
        gh->setExecNumber(m_count);
        gh->setTimeStamp(TimeStamp(m_count,ind));
        this->put(gh,Form("/Event/Gen/GenHeader%d",ind));
        genheaders.push_back(gh);
    }

    for (int ind=0; ind<10; ++ind) {   
        SimHeader* sh = new SimHeader();
        sh->addInputHeader(genheaders[ind]);
        sh->setExecNumber(m_count);
        sh->setTimeStamp(TimeStamp(m_count,ind*10));
        this->put(sh,Form("/Event/Sim/SimHeader%d",ind));
    }
    return StatusCode::SUCCESS;
}
StatusCode LotsaGens::finalize ( ) [virtual]

Definition at line 53 of file LotsaGens.cc.

{
    return StatusCode::SUCCESS;
}

Member Data Documentation

int LotsaGens::m_count [private]

Definition at line 30 of file LotsaGens.h.


The documentation for this class was generated from the following files:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 10:20:12 for RootIOTest by doxygen 1.7.4