RecDataHeader Class Reference

#include <RecDataHeader.h>

Inheritance diagram for RecDataHeader:
RecHeader RecPhysicsHeader RecCandHeader SimSnarlHeader

List of all members.

Public Member Functions

 RecDataHeader ()
 RecDataHeader (const VldContext &vld, Int_t run, Short_t subrun, Short_t runtype, UInt_t errorcode)
virtual ~RecDataHeader ()
virtual Int_t GetRun () const
virtual Short_t GetSubRun () const
virtual Short_t GetRunType () const
virtual UInt_t GetErrorCode () const
virtual std::ostream & Print (std::ostream &os) const
virtual void Print (Option_t *option="") const

Private Attributes

Int_t fRun
Short_t fSubRun
Short_t fRunType
UInt_t fErrorCode

Detailed Description

Definition at line 17 of file RecDataHeader.h.


Constructor & Destructor Documentation

RecDataHeader::RecDataHeader (  ) 

Definition at line 70 of file RecDataHeader.cxx.

00071   : RecHeader(),fRun(-1),fSubRun(-1),fRunType(-1),fErrorCode(0xFFFF) {
00072   //  Purpose:  Default constructor.
00073 }

RecDataHeader::RecDataHeader ( const VldContext vld,
Int_t  run,
Short_t  subrun,
Short_t  runtype,
UInt_t  errorcode 
)

Definition at line 75 of file RecDataHeader.cxx.

00077   : RecHeader(vld),fRun(run),fSubRun(subrun),fRunType(runtype),
00078     fErrorCode(errorcode) {
00079   //
00080   //  Purpose:  Normal constructor.
00081   //
00082   //  Arguments: vldcontext, run, subrun, runtype, errorcode  of this record.
00083   //
00084   //  Return:  n/a.
00085   //
00086   //  Contact:   S. Kasahara
00087   // 
00088 }

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

Definition at line 24 of file RecDataHeader.h.

00024 {}


Member Function Documentation

virtual UInt_t RecDataHeader::GetErrorCode (  )  const [inline, virtual]
virtual Int_t RecDataHeader::GetRun ( void   )  const [inline, virtual]

Definition at line 26 of file RecDataHeader.h.

References fRun.

Referenced by NtpTimingFit::AddEvent(), MCText::AddSimSnarl(), TruthCompareAna::ana(), AtNuTreeModule::Ana(), NueHandScan::Ana(), MNtpModule::Ana(), NuDemoModule::Ana(), NueSensitivity::Ana(), AtNuDisplayModule::Ana(), NtpMaker::Ana(), ClockCalibrationModule::Ana(), MakeAlignmentModule::Ana(), RecoTreeModule::Ana(), DummyModule::Ana(), NueModule::Analyze(), ANtpRecoNtpManipulator::ANtpRecoNtpManipulator(), MeuAnalysis::BasicReco(), MadChain::BuildLookup(), NuAnalysis::ChargeSeparationOneSnarl(), NuAnalysis::ChargeSignCut(), MadAnalysis::CreateANtpPAN(), MadDpAnalysis::CreatePAN(), MadTestAnalysis::CreatePAN(), MadMKAnalysis::CreatePAN(), MadPIDAnalysis::CreatePAN(), MadTVAnalysis::CreatePAN(), MadAnalysis::CreatePAN(), NtpEventViewer::Display(), MadScanDisplay::Display(), MadEvDisplay::Display(), HitView::DrawBasicInfo(), ChainView::DrawBasicInfo(), MadEvDisplay::DrawTextBox(), MadScanDisplay::DrawTextBox(), NuAnalysis::Efficiencies(), NuAnalysis::EnergySpect(), NuAnalysis::EnergySpectMC(), NuAnalysis::ExtractConfig(), NuExtraction::ExtractGeneralInfo(), AlignmentRunSummary::Fill(), NtpTimingNtuple::Fill(), MeuHistos::FillGeneralHistos(), NuPlots::FillGeneralHistos(), ParticleAna::FillPot(), ParticleFinder::FillPot(), MeuCuts::FillSTSumDetails(), NtpEventViewer::Find(), HepevtModule::Get(), DetSim::Get(), PhotonTransport::Get(), NtpStModule::Get(), MadBase::GetEntry(), DataUtil::GetRunSnarlEvent(), MCMerge::GrabStreamEvents(), MadHandScan::HandScanDisplay(), ParticlePIDSaver::isMatched(), NuAnalysis::LIRejectionTest(), MadEvDisplay::Log(), MadScanDisplay::Log(), NtpEventDisplayTiming::MakePicture(), MadAbID::MakePidVariables(), MadAbID::MakeRecoVariables(), MeuAnalysis::MakeSummaryTreeWithNtpStOneSnarl(), MeuAnalysis::MeuAnalysis(), MinosCompactEvent::MinosCompactEvent(), MadEdAnalysis::MyCreatePAN(), MadEdAnalysis::MyCreatePANData(), MadEdAnalysis::MyMakeQEFile(), NuAnalysis::N_1(), MadScanDisplay::NextInterestingEvent(), NuBase::NuBase(), NuAnalysis::NuMuBarAppearance(), NueAnalysisCuts::PassesFileCut(), Print(), IoInputModule::ReadHeader(), NtpSRModule::Reco(), ParticleFinder::Reco(), ParticlePIDSaver::Reco(), VtxModule::Reco(), ParticleAna::Reco(), FillPIDFromText::Reco(), NtpMCModule::Reco(), NtpTHModule::Reco(), Anp::FillHeader::Run(), DetailedParticle::Run(), ParticleCheck::Run(), SRMom::RunNumber(), NuMadAnalysis::SetEntry(), NueAnalysisCuts::SetInfoObject(), PhotonTransport::SimulateEvent(), MeuAnalysis::SnarlList(), MeuAnalysis::SpillPlots(), and MCNNRunner::WriteResults().

00026 { return fRun; }

virtual Short_t RecDataHeader::GetRunType (  )  const [inline, virtual]
virtual Short_t RecDataHeader::GetSubRun (  )  const [inline, virtual]
void RecDataHeader::Print ( Option_t *  option = ""  )  const [virtual]

Reimplemented from RecHeader.

Reimplemented in RecCandHeader, RecPhysicsHeader, and SimSnarlHeader.

Definition at line 51 of file RecDataHeader.cxx.

References Print().

00051                                                       {
00052   //
00053   //  Purpose:  Print header in form supported by TObject::Print.
00054   //
00055   //  Arguments: option (not used)
00056   //
00057   //  Return:  none.
00058   //
00059   //  Contact:   S. Kasahara
00060   // 
00061   //  Notes:This version is required because overridden Print(std::ostream& os)
00062   //        hides base class version of this method.
00063   // 
00064 
00065   Print(std::cout);
00066   return;
00067 
00068 }

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

Reimplemented from RecHeader.

Reimplemented in RecCandHeader, RecPhysicsHeader, and SimSnarlHeader.

Definition at line 29 of file RecDataHeader.cxx.

References GetErrorCode(), GetRun(), GetRunType(), and GetSubRun().

Referenced by Print().

00029                                                      {
00030   //
00031   //  Purpose:  Print status of data header on ostream.
00032   //
00033   //  Arguments: os ostream to display on.
00034   //
00035   //  Return:  ostream reference.
00036   //
00037   //  Contact:   S. Kasahara
00038   // 
00039 
00040   RecHeader::Print(os);
00041   os << " Run " << this->GetRun()
00042      << " SubRun " << this->GetSubRun()
00043      << " RunType " << this->GetRunType()
00044      << " ErrorCode 0x" << setfill('0') << std::hex << setw(8) 
00045      << this->GetErrorCode() << std::dec << setfill(' ') 
00046      << endl;
00047   return os;
00048 
00049 }


Member Data Documentation

UInt_t RecDataHeader::fErrorCode [private]

Definition at line 39 of file RecDataHeader.h.

Referenced by GetErrorCode().

Int_t RecDataHeader::fRun [private]

Definition at line 36 of file RecDataHeader.h.

Referenced by GetRun().

Short_t RecDataHeader::fRunType [private]

Definition at line 38 of file RecDataHeader.h.

Referenced by GetRunType().

Short_t RecDataHeader::fSubRun [private]

Definition at line 37 of file RecDataHeader.h.

Referenced by GetSubRun().


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

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1