NuePIDHeader Class Reference

#include <NuePIDHeader.h>

Inheritance diagram for NuePIDHeader:
RecHeader

List of all members.

Public Types

enum  EDecider {
  kUnknown = 0, kDT = 1, kMA = 2, kNN = 3,
  kTH = 4, kCT = 5
}
typedef enum NuePIDHeader::EDecider Decider_t

Public Member Functions

 NuePIDHeader ()
 NuePIDHeader (const VldContext &vld)
virtual ~NuePIDHeader ()
virtual std::ostream & Print (std::ostream &os) const
virtual void Print (Option_t *option="") const
const int GetSnarl () const
const int GetRun () const
const int GetSubRun () const
const int GetEventNo () const
const int GetEvents () const
const Decider_t GetDecider () const
void SetSnarl (int s)
void SetRun (int r)
void SetSubRun (int sr)
void SetEventNo (int i)
void SetEvents (int nevt)
void SetDecider (Decider_t d)

Static Public Member Functions

static const char * AsString (Decider_t d)

Private Attributes

int fSnarl
int fRun
int fSubRun
int fEvtNo
int fEvents
Decider_t fDecider

Detailed Description

Definition at line 7 of file NuePIDHeader.h.


Member Typedef Documentation


Member Enumeration Documentation

Enumerator:
kUnknown 
kDT 
kMA 
kNN 
kTH 
kCT 

Definition at line 10 of file NuePIDHeader.h.

00010                          {
00011       kUnknown = 0,
00012       kDT = 1, //mayly decision tree
00013       kMA = 2, //alex multivariate analysis
00014       kNN = 3, //tingjun's neural net
00015       kTH = 4, //truth (for testing)
00016       kCT = 5 //maylys cuts
00017    } Decider_t;


Constructor & Destructor Documentation

NuePIDHeader::NuePIDHeader (  ) 

Definition at line 11 of file NuePIDHeader.cxx.

00011                           :
00012    RecHeader(),
00013    fSnarl(0),
00014    fRun(0),
00015    fSubRun(0),
00016    fEvtNo(0),
00017    fEvents(0),
00018    fDecider(NuePIDHeader::kUnknown)
00019 {}

NuePIDHeader::NuePIDHeader ( const VldContext vld  ) 

Definition at line 21 of file NuePIDHeader.cxx.

00021                                                :
00022    RecHeader(vld),
00023    fSnarl(0),
00024    fRun(0),
00025    fSubRun(0),
00026    fEvtNo(0),
00027    fEvents(0),
00028    fDecider(NuePIDHeader::kUnknown)
00029 {}

NuePIDHeader::~NuePIDHeader (  )  [virtual]

Definition at line 31 of file NuePIDHeader.cxx.

00032 {}


Member Function Documentation

static const char* NuePIDHeader::AsString ( Decider_t  d  )  [inline, static]

Definition at line 19 of file NuePIDHeader.h.

References kCT, kDT, kMA, kNN, kTH, and kUnknown.

Referenced by Print().

00019                                            {
00020       switch(d){
00021       case kUnknown: return "Unknown"; break;
00022       case kDT: return "Decision Tree"; break;
00023       case kMA: return "Multivariate Analysis"; break;
00024       case kNN: return "Neural Net"; break;
00025       case kTH: return "Truth"; break;
00026       case kCT: return "Cuts"; break;
00027       default: return "Unknown"; break;
00028       }
00029       return "Unknown";
00030    }

const NuePIDHeader::Decider_t NuePIDHeader::GetDecider (  )  const [inline]

Definition at line 69 of file NuePIDHeader.h.

References fDecider.

00069 {return fDecider;}

const int NuePIDHeader::GetEventNo (  )  const [inline]

Definition at line 67 of file NuePIDHeader.h.

References fEvtNo.

Referenced by NueReadwPID::Ana(), FillPIDFromText::Reco(), and FilterPID::Reco().

00067 {return fEvtNo;}

const int NuePIDHeader::GetEvents (  )  const [inline]

Definition at line 68 of file NuePIDHeader.h.

References fEvents.

00068 {return fEvents;}

const int NuePIDHeader::GetRun ( void   )  const [inline]

Definition at line 65 of file NuePIDHeader.h.

References fRun.

Referenced by FillPIDFromText::Reco().

00065 {return fRun;}

const int NuePIDHeader::GetSnarl (  )  const [inline]

Definition at line 64 of file NuePIDHeader.h.

References fSnarl.

Referenced by NueReadwPID::Ana(), FillPIDFromText::Reco(), and FilterPID::Reco().

00064 {return fSnarl;}

const int NuePIDHeader::GetSubRun (  )  const [inline]

Definition at line 66 of file NuePIDHeader.h.

References fSubRun.

Referenced by FillPIDFromText::Reco().

00066 {return fSubRun;}

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

Reimplemented from RecHeader.

Definition at line 34 of file NuePIDHeader.cxx.

References Print().

00035 {
00036    NuePIDHeader::Print(std::cout);
00037    return;
00038 }

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

Reimplemented from RecHeader.

Definition at line 40 of file NuePIDHeader.cxx.

References AsString(), fDecider, fEvents, fEvtNo, fRun, fSnarl, and fSubRun.

Referenced by Print().

00041 {
00042    os<<"Run: "<<fRun<<" SubRun "<<fSubRun<<" Snarl "<<fSnarl<<std::endl;
00043    os<<"This record corresponds to event "<<fEvtNo<<" out of "<<fEvents<<std::endl;
00044    os<<"The analysis that made this PID decision: "<<AsString(fDecider)<<endl;
00045    return os;
00046 }

void NuePIDHeader::SetDecider ( NuePIDHeader::Decider_t  d  )  [inline]

Definition at line 76 of file NuePIDHeader.h.

References fDecider.

Referenced by FillPIDFromText::Reco().

00076 {fDecider = d;}

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

Definition at line 74 of file NuePIDHeader.h.

References fEvtNo.

Referenced by FillPIDFromText::Reco().

00074 {fEvtNo = i;}

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

Definition at line 75 of file NuePIDHeader.h.

References fEvents.

Referenced by FillPIDFromText::Reco().

00075 {fEvents = n;}

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

Definition at line 72 of file NuePIDHeader.h.

References fRun.

Referenced by FillPIDFromText::Reco().

00072 {fRun = r;}

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

Definition at line 71 of file NuePIDHeader.h.

References fSnarl.

Referenced by FillPIDFromText::Reco().

00071 {fSnarl = s;}

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

Definition at line 73 of file NuePIDHeader.h.

References fSubRun.

Referenced by FillPIDFromText::Reco().

00073 {fSubRun = sr;}


Member Data Documentation

Definition at line 59 of file NuePIDHeader.h.

Referenced by GetDecider(), Print(), and SetDecider().

int NuePIDHeader::fEvents [private]

Definition at line 58 of file NuePIDHeader.h.

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

int NuePIDHeader::fEvtNo [private]

Definition at line 57 of file NuePIDHeader.h.

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

int NuePIDHeader::fRun [private]

Definition at line 55 of file NuePIDHeader.h.

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

int NuePIDHeader::fSnarl [private]

Definition at line 54 of file NuePIDHeader.h.

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

int NuePIDHeader::fSubRun [private]

Definition at line 56 of file NuePIDHeader.h.

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


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

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1