UberRecHeader Class Reference

#include <UberRecHeader.h>

Inheritance diagram for UberRecHeader:
RecHeader

List of all members.

Public Member Functions

 UberRecHeader ()
 UberRecHeader (const VldContext &vld)
virtual ~UberRecHeader ()
virtual std::ostream & Print (std::ostream &os) const
virtual void Print (Option_t *option="") const
Int_t GetRunNo () const
Int_t GetSubRunNo () const
time_t GetStartTime () const
Float_t GetTemperature () const
Float_t GetBeamMomentum () const
void SetRunNo (Int_t r)
void SetSubRunNo (Int_t r)
void SetStartTime (time_t t)
void SetTemperature (Float_t temp)
void SetBeamMomentum (Float_t p)

Private Attributes

Int_t runno
Int_t subrunno
time_t tstart
Float_t tmper
Float_t beamp

Detailed Description

Definition at line 9 of file UberRecHeader.h.


Constructor & Destructor Documentation

UberRecHeader::UberRecHeader (  ) 

Definition at line 14 of file UberRecHeader.cxx.

00014                             :
00015   RecHeader(), 
00016   runno(0),
00017   subrunno(0),
00018   tstart(0),
00019   tmper(0.),
00020   beamp(0.)
00021 {}//end UberRecHeader()
//_______________________________________________________________________________

UberRecHeader::UberRecHeader ( const VldContext vld  ) 

Definition at line 24 of file UberRecHeader.cxx.

00024                                                  :
00025   RecHeader(vld), 
00026   runno(0),
00027   subrunno(0),
00028   tstart(0),
00029   tmper(0.),
00030   beamp(0.)
00031 {}//end UberRecHeader()

UberRecHeader::~UberRecHeader (  )  [virtual]

Definition at line 35 of file UberRecHeader.cxx.

00036 {}//end ~UberRecHeader()


Member Function Documentation

Float_t UberRecHeader::GetBeamMomentum (  )  const [inline]

Definition at line 46 of file UberRecHeader.h.

References beamp.

Referenced by CalDet2003PlotsModule::Ana(), and CalDetInfoAna::Analyze().

00046 {return beamp;}

Int_t UberRecHeader::GetRunNo (  )  const [inline]

Definition at line 42 of file UberRecHeader.h.

References runno.

00042 {return runno;}

time_t UberRecHeader::GetStartTime (  )  const [inline]

Definition at line 44 of file UberRecHeader.h.

References tstart.

Referenced by NueRecordAna::Analyze().

00044 {return tstart;}

Int_t UberRecHeader::GetSubRunNo (  )  const [inline]

Definition at line 43 of file UberRecHeader.h.

References subrunno.

00043 {return subrunno;}

Float_t UberRecHeader::GetTemperature (  )  const [inline]

Definition at line 45 of file UberRecHeader.h.

References tmper.

00045 {return tmper;}

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

Reimplemented from RecHeader.

Definition at line 40 of file UberRecHeader.cxx.

References Print().

00041 {
00042 
00043    UberRecHeader::Print(std::cout);
00044    return;
00045 
00046 }//end Print(Option_t*)

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

Reimplemented from RecHeader.

Definition at line 50 of file UberRecHeader.cxx.

References beamp, runno, subrunno, tmper, and tstart.

Referenced by Print().

00051 {
00052 
00053   struct tm *t = localtime(&tstart);
00054   char date[50];
00055   strftime(date,49,"%B %d, %Y %X",t);
00056   os<<"*******UberRecHeader:"<<endl
00057     <<"Run number "<<runno<<endl
00058     <<"SubRun number "<<subrunno<<endl
00059     <<"Start of run "<<date<<endl
00060     <<"Temperature "<<tmper<<endl
00061     <<" Beam Momentum "<<beamp<<endl;
00062 
00063 
00064   return os;
00065 }//end Print()

void UberRecHeader::SetBeamMomentum ( Float_t  p  )  [inline]

Definition at line 51 of file UberRecHeader.h.

References beamp.

Referenced by UberModule::Reco(), and UberModuleLite::Reco().

00051 {beamp = p;}

void UberRecHeader::SetRunNo ( Int_t  r  )  [inline]

Definition at line 48 of file UberRecHeader.h.

References runno.

Referenced by UberModule::Reco(), and UberModuleLite::Reco().

00048 {runno = r;}

void UberRecHeader::SetStartTime ( time_t  t  )  [inline]

Definition at line 52 of file UberRecHeader.h.

References tstart.

Referenced by UberModule::Reco(), and UberModuleLite::Reco().

00052 {tstart = t;}

void UberRecHeader::SetSubRunNo ( Int_t  r  )  [inline]

Definition at line 49 of file UberRecHeader.h.

References subrunno.

Referenced by UberModule::Reco().

00049 {subrunno = r;}

void UberRecHeader::SetTemperature ( Float_t  temp  )  [inline]

Definition at line 50 of file UberRecHeader.h.

References tmper.

Referenced by UberModule::Reco(), and UberModuleLite::Reco().

00050 {tmper = temp;}


Member Data Documentation

Float_t UberRecHeader::beamp [private]

Definition at line 37 of file UberRecHeader.h.

Referenced by GetBeamMomentum(), Print(), and SetBeamMomentum().

Int_t UberRecHeader::runno [private]

Definition at line 33 of file UberRecHeader.h.

Referenced by GetRunNo(), Print(), and SetRunNo().

Int_t UberRecHeader::subrunno [private]

Definition at line 34 of file UberRecHeader.h.

Referenced by GetSubRunNo(), Print(), and SetSubRunNo().

Float_t UberRecHeader::tmper [private]

Definition at line 36 of file UberRecHeader.h.

Referenced by GetTemperature(), Print(), and SetTemperature().

time_t UberRecHeader::tstart [private]

Definition at line 35 of file UberRecHeader.h.

Referenced by GetStartTime(), Print(), and SetStartTime().


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

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1