SimSnarlHeader Class Reference

#include <SimSnarlHeader.h>

Inheritance diagram for SimSnarlHeader:
RecPhysicsHeader RecDataHeader RecHeader

List of all members.

Public Member Functions

 SimSnarlHeader ()
 SimSnarlHeader (const VldContext &vldc, Int_t run, Short_t subrun, Short_t runtype, UInt_t errcode, Int_t snarl, UInt_t trigsrc, Int_t timeframe, Int_t spilltype, const VldTimeStamp &mcGenTime, std::string &codename, std::string &hostname)
virtual ~SimSnarlHeader ()
virtual void Print (Option_t *option="") const
virtual std::ostream & Print (std::ostream &os) const
const VldTimeStampGetMcGenTime () const
const std::string & GetMcGenCodename () const
const std::string & GetMcGenHostname () const

Static Public Member Functions

static std::string TrimCodename (const std::string &cvsname)

Private Attributes

VldTimeStamp fMcGenTime
std::string fMcGenCodename
std::string fMcGenHostname

Detailed Description

Definition at line 22 of file SimSnarlHeader.h.


Constructor & Destructor Documentation

SimSnarlHeader::SimSnarlHeader (  )  [inline]

Definition at line 26 of file SimSnarlHeader.h.

00026 : fMcGenTime(0,0) {}  // necessary for streamer io

SimSnarlHeader::SimSnarlHeader ( const VldContext vldc,
Int_t  run,
Short_t  subrun,
Short_t  runtype,
UInt_t  errcode,
Int_t  snarl,
UInt_t  trigsrc,
Int_t  timeframe,
Int_t  spilltype,
const VldTimeStamp mcGenTime,
std::string &  codename,
std::string &  hostname 
) [inline]

Definition at line 27 of file SimSnarlHeader.h.

00032      : RecPhysicsHeader(vldc,run,subrun,runtype,errcode,snarl,trigsrc,
00033                         timeframe,spilltype), fMcGenTime(mcGenTime), 
00034        fMcGenCodename(codename), fMcGenHostname(hostname) { }

virtual SimSnarlHeader::~SimSnarlHeader (  )  [inline, virtual]

Definition at line 35 of file SimSnarlHeader.h.

00035 { }


Member Function Documentation

const std::string& SimSnarlHeader::GetMcGenCodename (  )  const [inline]

Definition at line 41 of file SimSnarlHeader.h.

References fMcGenCodename.

Referenced by NtpMCModule::Reco().

00041 { return fMcGenCodename; }

const std::string& SimSnarlHeader::GetMcGenHostname (  )  const [inline]

Definition at line 42 of file SimSnarlHeader.h.

References fMcGenHostname.

Referenced by NtpMCModule::Reco().

00042 { return fMcGenHostname; }

const VldTimeStamp& SimSnarlHeader::GetMcGenTime (  )  const [inline]

Definition at line 40 of file SimSnarlHeader.h.

References fMcGenTime.

Referenced by HepevtModule::Get(), and NtpMCModule::Reco().

00040 { return fMcGenTime; }

std::ostream & SimSnarlHeader::Print ( std::ostream &  os  )  const [virtual]

Reimplemented from RecPhysicsHeader.

Definition at line 27 of file SimSnarlHeader.cxx.

References VldTimeStamp::AsString(), fMcGenCodename, fMcGenHostname, fMcGenTime, and Print().

00027                                                       {
00028   // Purpose: Print header on ostream
00029   // Arguments: os ostream to display on.
00030   // Return: ostream reference.
00031 
00032   RecPhysicsHeader::Print(os);
00033   os << std::endl;
00034   os << " Generated: " << fMcGenTime.AsString("sql")
00035      << " using '" << fMcGenCodename << "' on " << fMcGenHostname;
00036   return os;
00037 
00038 }

void SimSnarlHeader::Print ( Option_t *  option = ""  )  const [virtual]

Reimplemented from RecPhysicsHeader.

Definition at line 41 of file SimSnarlHeader.cxx.

Referenced by RerootToTruthModule::Ana(), HepevtModule::Ana(), DataUtil::dump_mom(), and Print().

00041                                                         {
00042   this -> Print(std::cout);
00043 }

std::string SimSnarlHeader::TrimCodename ( const std::string &  cvsname  )  [static]

Definition at line 46 of file SimSnarlHeader.cxx.

Referenced by MCInitModule::Get(), CustomLightInjector::Get(), MCMerge::Get(), ToyMCModule::Get(), GenieModule::Get(), EvtKinNuModule::Get(), PhotonInjector::Get(), and LightInjector::Get().

00047 {
00048   // Trim the CVS tag '$Name:  $' to just give 'xyzzy'
00049   if (cvsname.substr(0,7) == "$Name: " && 
00050       cvsname.substr(cvsname.size()-2,2) == " $")
00051     return cvsname.substr(7,cvsname.size()-9);
00052   else
00053     return cvsname;
00054 }


Member Data Documentation

std::string SimSnarlHeader::fMcGenCodename [private]

Definition at line 49 of file SimSnarlHeader.h.

Referenced by GetMcGenCodename(), and Print().

std::string SimSnarlHeader::fMcGenHostname [private]

Definition at line 50 of file SimSnarlHeader.h.

Referenced by GetMcGenHostname(), and Print().

Definition at line 48 of file SimSnarlHeader.h.

Referenced by GetMcGenTime(), and Print().


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

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1