Anp::TruthReco Class Reference

#include <TruthReco.h>

List of all members.

Public Types

enum  Type { kUnknown = -1, kEvent = 0, kTrack = 1, kShower = 2 }

Public Member Functions

 TruthReco ()
 TruthReco (Type rtype, int reco, int neu, int hep, float pur, float compa, float comps)
 ~TruthReco ()
float Purity () const
float ComplAll () const
float ComplSlc () const
int RecoIndex () const
int TruthIndex () const
int StdHepIndex () const
bool IsEvent () const
bool IsShower () const
bool IsTrack () const
void Print (std::ostream &o=std::cout) const

Private Attributes

Type reco_type
Int_t reco_index
Int_t neumc_index
Int_t neuhep_index
Float_t purity
Float_t complall
Float_t complslc

Friends

class FillTruth

Detailed Description

Definition at line 18 of file TruthReco.h.


Member Enumeration Documentation

Enumerator:
kUnknown 
kEvent 
kTrack 
kShower 

Definition at line 22 of file TruthReco.h.

00023       {
00024          kUnknown = -1, kEvent = 0, kTrack = 1, kShower = 2
00025       };


Constructor & Destructor Documentation

Anp::TruthReco::TruthReco (  ) 

Definition at line 15 of file TruthReco.cxx.

00016    :reco_type(kUnknown),
00017     reco_index(-1),
00018     neumc_index(-1),
00019     neuhep_index(-1),
00020     purity(-1.0e6),
00021     complall(-1.0e6),
00022     complslc(-1.0e6)
00023 {
00024 }

Anp::TruthReco::TruthReco ( Type  rtype,
int  reco,
int  neu,
int  hep,
float  pur,
float  compa,
float  comps 
)

Definition at line 27 of file TruthReco.cxx.

00034    :reco_type(rtype),
00035     reco_index(reco),
00036     neumc_index(neu),
00037     neuhep_index(hep),
00038     purity(pur),
00039     complall(compa),
00040     complslc(comps)
00041 {
00042 }

Anp::TruthReco::~TruthReco (  ) 

Definition at line 45 of file TruthReco.cxx.

00046 {
00047 }


Member Function Documentation

float Anp::TruthReco::ComplAll (  )  const [inline]

Definition at line 77 of file TruthReco.h.

References complall.

00077 { return complall; }

float Anp::TruthReco::ComplSlc (  )  const [inline]

Definition at line 78 of file TruthReco.h.

References complslc.

00078 { return complslc; }   

bool Anp::TruthReco::IsEvent (  )  const [inline]

Definition at line 83 of file TruthReco.h.

References kEvent, and reco_type.

Referenced by Anp::operator==().

00083 { return (reco_type == kEvent); }

bool Anp::TruthReco::IsShower (  )  const [inline]

Definition at line 84 of file TruthReco.h.

References kShower, and reco_type.

Referenced by Anp::operator==().

00084 { return (reco_type == kShower); }

bool Anp::TruthReco::IsTrack (  )  const [inline]

Definition at line 85 of file TruthReco.h.

References kTrack, and reco_type.

Referenced by Anp::operator==().

00085 { return (reco_type == kTrack); }

void Anp::TruthReco::Print ( std::ostream &  o = std::cout  )  const

Definition at line 50 of file TruthReco.cxx.

References complall, kEvent, kTrack, neuhep_index, neumc_index, purity, reco_index, and reco_type.

00051 {
00052    if(reco_type == kEvent)
00053    {
00054       o << "TruthReco (event, mc, hep, pur, com) = (";
00055    }
00056    else if(reco_type == kTrack)
00057    {
00058       o << "TruthReco (track, mc, hep, pur, com) = (";
00059    }
00060    else if(reco_type == kTrack)
00061    {
00062       o << "TruthReco (shower, mc, hep, pur, com) = (";
00063    }
00064    else
00065    {
00066       o << "TruthReco (reco, mc, hep, pur, com) = (";
00067    }
00068    
00069    o << reco_index << ", "
00070      << neumc_index << ", "
00071      << neuhep_index  << ", "
00072      << purity << ", "
00073      << complall << ")" << std::endl;
00074 }

float Anp::TruthReco::Purity (  )  const [inline]

Definition at line 76 of file TruthReco.h.

References purity.

00076 { return purity; }

int Anp::TruthReco::RecoIndex (  )  const [inline]

Definition at line 79 of file TruthReco.h.

References reco_index.

Referenced by Anp::operator==().

00079 { return reco_index; }

int Anp::TruthReco::StdHepIndex (  )  const [inline]

Definition at line 81 of file TruthReco.h.

References neuhep_index.

00081 { return neuhep_index; }

int Anp::TruthReco::TruthIndex (  )  const [inline]

Definition at line 80 of file TruthReco.h.

References neumc_index.

00080 { return neumc_index; } 


Friends And Related Function Documentation

friend class FillTruth [friend]

Definition at line 49 of file TruthReco.h.


Member Data Documentation

Float_t Anp::TruthReco::complall [private]

Definition at line 57 of file TruthReco.h.

Referenced by ComplAll(), and Print().

Float_t Anp::TruthReco::complslc [private]

Definition at line 58 of file TruthReco.h.

Referenced by ComplSlc().

Definition at line 54 of file TruthReco.h.

Referenced by Print(), and StdHepIndex().

Int_t Anp::TruthReco::neumc_index [private]

Definition at line 53 of file TruthReco.h.

Referenced by Print(), and TruthIndex().

Float_t Anp::TruthReco::purity [private]

Definition at line 56 of file TruthReco.h.

Referenced by Print(), and Purity().

Int_t Anp::TruthReco::reco_index [private]

Definition at line 52 of file TruthReco.h.

Referenced by Print(), and RecoIndex().

Definition at line 51 of file TruthReco.h.

Referenced by IsEvent(), IsShower(), IsTrack(), and Print().


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

Generated on 24 Jul 2018 for loon by  doxygen 1.6.1