NueHeader Class Reference

#include <NueHeader.h>

Inheritance diagram for NueHeader:
RecHeader

List of all members.

Public Member Functions

 NueHeader ()
 NueHeader (const VldContext &vld)
virtual ~NueHeader ()
virtual std::ostream & Print (std::ostream &os) const
virtual void Print (Option_t *option="") const
int GetSnarl () const
int GetRun () const
int GetSubRun () const
int GetEventNo () const
int GetEvents () const
int GetTrackLength () const
ReleaseType::Release_t GetRelease () const
BeamType::BeamType_t GetBeamType () const
int GetNueRelease () const
bool FoundSR () const
bool FoundMC () const
bool FoundTH () const
bool FoundMR () const
void SetSnarl (int s)
void SetRun (int r)
void SetSubRun (int sr)
void SetEventNo (int i)
void SetEvents (int nevt)
void SetTrackLength (int t)
void SetFoundBits (bool SR, bool MC, bool TH, bool MR)
void SetRelease (int r)
void SetBeamType (int b)
void SetNueRelease (int nr)

Private Attributes

int fSnarl
int fRun
int fSubRun
int fEvtNo
int fEvents
int fTrackLength
ReleaseType::Release_t fRelease
BeamType::BeamType_t fBeamType
int fNueRelease
bool foundSR
bool foundMC
bool foundTH
bool foundMR

Detailed Description

Definition at line 9 of file NueHeader.h.


Constructor & Destructor Documentation

NueHeader::NueHeader (  ) 

Definition at line 11 of file NueHeader.cxx.

00011                     :
00012    RecHeader(),
00013    fSnarl(0),
00014    fRun(0),
00015    fSubRun(0),
00016    fEvtNo(0),
00017    fEvents(0),
00018    fTrackLength(0),
00019    foundSR(false),
00020    foundMC(false),
00021    foundTH(false),
00022    foundMR(false)
00023 {}

NueHeader::NueHeader ( const VldContext vld  ) 

Definition at line 25 of file NueHeader.cxx.

00025                                          :
00026    RecHeader(vld),
00027    fSnarl(0),
00028    fRun(0),
00029    fSubRun(0),
00030    fEvtNo(0),
00031    fEvents(0),
00032    fTrackLength(0),
00033    foundSR(false),
00034    foundMC(false),
00035    foundTH(false),
00036    foundMR(false)
00037 {}

NueHeader::~NueHeader (  )  [virtual]

Definition at line 39 of file NueHeader.cxx.

00040 {}


Member Function Documentation

bool NueHeader::FoundMC (  )  const [inline]

Definition at line 69 of file NueHeader.h.

References foundMC.

00069 {return foundMC;}

bool NueHeader::FoundMR (  )  const [inline]

Definition at line 71 of file NueHeader.h.

References foundMR.

Referenced by NueStandard::PassesSelection().

00071 {return foundMR;}

bool NueHeader::FoundSR (  )  const [inline]

Definition at line 68 of file NueHeader.h.

References foundSR.

00068 {return foundSR;}

bool NueHeader::FoundTH (  )  const [inline]

Definition at line 70 of file NueHeader.h.

References foundTH.

00070 {return foundTH;}

BeamType::BeamType_t NueHeader::GetBeamType (  )  const [inline]
int NueHeader::GetEventNo (  )  const [inline]
int NueHeader::GetEvents (  )  const [inline]
int NueHeader::GetNueRelease (  )  const [inline]

Definition at line 75 of file NueHeader.h.

References fNueRelease.

00075 {return fNueRelease;}

ReleaseType::Release_t NueHeader::GetRelease (  )  const [inline]
int NueHeader::GetRun ( void   )  const [inline]
int NueHeader::GetSnarl (  )  const [inline]
int NueHeader::GetSubRun (  )  const [inline]
int NueHeader::GetTrackLength (  )  const [inline]
void NueHeader::Print ( Option_t *  option = ""  )  const [virtual]

Reimplemented from RecHeader.

Definition at line 42 of file NueHeader.cxx.

References Print().

00043 {
00044    NueHeader::Print(std::cout);
00045    return;
00046 }

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

Reimplemented from RecHeader.

Definition at line 48 of file NueHeader.cxx.

References fEvents, fEvtNo, foundMC, foundMR, foundSR, foundTH, fRun, fSnarl, fSubRun, and fTrackLength.

Referenced by Print().

00049 {
00050    os<<"Run: "<<fRun<<" SubRun "<<fSubRun<<" Snarl "<<fSnarl<<std::endl;
00051    os<<"This record corresponds to event "<<fEvtNo<<" out of "<<fEvents<<std::endl;
00052    os<<"Track has "<<fTrackLength<<" planes"<<std::endl;
00053    if(foundSR){
00054       os<<"Found SR"<<std::endl;
00055    }
00056    if(foundMC){
00057       os<<"Found MC"<<std::endl;
00058    }
00059    if(foundTH){
00060       os<<"Found TH"<<std::endl;
00061    }
00062    if(foundMR){
00063       os<<"Found MR"<<std::endl;
00064    }
00065    return os;
00066 }

void NueHeader::SetBeamType ( int  b  )  [inline]

Definition at line 86 of file NueHeader.h.

References fBeamType.

Referenced by NueModule::Analyze(), and NueData::SetupNueHeader().

void NueHeader::SetEventNo ( int  i  )  [inline]

Definition at line 81 of file NueHeader.h.

References fEvtNo.

Referenced by NueModule::Analyze(), NueMiniAnaPID::FillRecord(), NueMiniAna::FillRecord(), and VtxModule::Reco().

00081 {fEvtNo = i;}

void NueHeader::SetEvents ( int  nevt  )  [inline]

Definition at line 82 of file NueHeader.h.

References fEvents.

Referenced by NueModule::Analyze(), and VtxModule::Reco().

00082 {fEvents = n;}

void NueHeader::SetFoundBits ( bool  SR,
bool  MC,
bool  TH,
bool  MR 
) [inline]

Definition at line 84 of file NueHeader.h.

References foundMC, foundMR, foundSR, and foundTH.

Referenced by NueModule::Analyze(), VtxModule::Reco(), and NueData::SetupNueHeader().

00084 {foundSR=SR;foundMC=MC;foundTH=TH;foundMR=MR;}

void NueHeader::SetNueRelease ( int  nr  )  [inline]

Definition at line 87 of file NueHeader.h.

References fNueRelease.

Referenced by NueModule::Analyze().

00087 {fNueRelease = r;}

void NueHeader::SetRelease ( int  r  )  [inline]

Definition at line 85 of file NueHeader.h.

References fRelease.

Referenced by NueModule::Analyze(), and NueData::SetupNueHeader().

00085 {fRelease = r;}

void NueHeader::SetRun ( int  r  )  [inline]

Definition at line 79 of file NueHeader.h.

References fRun.

Referenced by NueModule::Analyze(), NueMiniAnaPID::FillRecord(), NueMiniAna::FillRecord(), and VtxModule::Reco().

00079 {fRun = r;}

void NueHeader::SetSnarl ( int  s  )  [inline]

Definition at line 78 of file NueHeader.h.

References fSnarl.

Referenced by NueModule::Analyze(), NueMiniAnaPID::FillRecord(), NueMiniAna::FillRecord(), and VtxModule::Reco().

00078 {fSnarl = s;}

void NueHeader::SetSubRun ( int  sr  )  [inline]

Definition at line 80 of file NueHeader.h.

References fSubRun.

Referenced by NueModule::Analyze(), NueMiniAnaPID::FillRecord(), NueMiniAna::FillRecord(), and VtxModule::Reco().

00080 {fSubRun = sr;}

void NueHeader::SetTrackLength ( int  t  )  [inline]

Definition at line 83 of file NueHeader.h.

References fTrackLength.

Referenced by NueModule::Analyze(), and VtxModule::Reco().

00083 {fTrackLength=t;}


Member Data Documentation

Definition at line 52 of file NueHeader.h.

Referenced by GetBeamType(), and SetBeamType().

int NueHeader::fEvents [private]

Definition at line 49 of file NueHeader.h.

Referenced by GetEvents(), Print(), and SetEvents().

int NueHeader::fEvtNo [private]

Definition at line 48 of file NueHeader.h.

Referenced by GetEventNo(), Print(), and SetEventNo().

int NueHeader::fNueRelease [private]

Definition at line 53 of file NueHeader.h.

Referenced by GetNueRelease(), and SetNueRelease().

bool NueHeader::foundMC [private]

Definition at line 56 of file NueHeader.h.

Referenced by FoundMC(), Print(), and SetFoundBits().

bool NueHeader::foundMR [private]

Definition at line 58 of file NueHeader.h.

Referenced by FoundMR(), Print(), and SetFoundBits().

bool NueHeader::foundSR [private]

Definition at line 55 of file NueHeader.h.

Referenced by FoundSR(), Print(), and SetFoundBits().

bool NueHeader::foundTH [private]

Definition at line 57 of file NueHeader.h.

Referenced by FoundTH(), Print(), and SetFoundBits().

Definition at line 51 of file NueHeader.h.

Referenced by GetRelease(), and SetRelease().

int NueHeader::fRun [private]

Definition at line 46 of file NueHeader.h.

Referenced by GetRun(), Print(), and SetRun().

int NueHeader::fSnarl [private]

Definition at line 45 of file NueHeader.h.

Referenced by GetSnarl(), Print(), and SetSnarl().

int NueHeader::fSubRun [private]

Definition at line 47 of file NueHeader.h.

Referenced by GetSubRun(), Print(), and SetSubRun().

int NueHeader::fTrackLength [private]

Definition at line 50 of file NueHeader.h.

Referenced by GetTrackLength(), Print(), and SetTrackLength().


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

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1