Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

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

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

Private Attributes

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

Constructor & Destructor Documentation

SimSnarlHeader::SimSnarlHeader  )  [inline]
 

Definition at line 26 of file SimSnarlHeader.h.

References fMcGenTime.

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.

References fMcGenCodename, fMcGenHostname, fMcGenTime, hostname, and run().

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.

Referenced by NtpMCModule::Reco().

00041 { return fMcGenCodename; }

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

Definition at line 42 of file SimSnarlHeader.h.

Referenced by NtpMCModule::Reco().

00042 { return fMcGenHostname; }

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

Definition at line 40 of file SimSnarlHeader.h.

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, fMcGenTime, and RecPhysicsHeader::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(), and DataUtil::dump_mom().

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 ToyMCModule::Get(), PhotonInjector::Get(), MCMerge::Get(), MCInitModule::Get(), LightInjector::Get(), GenieModule::Get(), EvtKinNuModule::Get(), and CustomLightInjector::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 Print(), and SimSnarlHeader().

std::string SimSnarlHeader::fMcGenHostname [private]
 

Definition at line 50 of file SimSnarlHeader.h.

Referenced by SimSnarlHeader().

VldTimeStamp SimSnarlHeader::fMcGenTime [private]
 

Definition at line 48 of file SimSnarlHeader.h.

Referenced by Print(), and SimSnarlHeader().


The documentation for this class was generated from the following files:
Generated on Mon Nov 23 05:33:07 2009 for loon by  doxygen 1.3.9.1