ShowerAtNu Class Reference

#include <ShowerAtNu.h>

Inheritance diagram for ShowerAtNu:
ObjShowerAtNu ObjAtNu

List of all members.

Public Member Functions

 ShowerAtNu (CandSliceHandle *slice)
 ShowerAtNu (const ShowerAtNu &rhs)
virtual ~ShowerAtNu ()
CandSliceHandleGetCandSliceHandle ()
void AddHit (HitAtNu *hit)
void AddAssocTrack (TrackAtNu *track)
Int_t GetAssocTrackLast () const
const TrackAtNuGetAssocTrackAt (Int_t i)
void SetBegVtxFlag (Bool_t flag)
Bool_t GetBegVtxFlag ()
void SetEndVtxFlag (Bool_t flag)
Bool_t GetEndVtxFlag ()
Int_t IsShwAssoc (HitAtNu *hit)
Int_t IsDiffuseShwAssoc (HitAtNu *hit)

Private Attributes

TObjArray * fAssocTrackList
CandSliceHandlefSlice
Bool_t fBegVtxFlag
Bool_t fEndVtxFlag

Detailed Description

Definition at line 10 of file ShowerAtNu.h.


Constructor & Destructor Documentation

ShowerAtNu::ShowerAtNu ( CandSliceHandle slice  ) 

Definition at line 9 of file ShowerAtNu.cxx.

00009                                              :
00010   fAssocTrackList(0),
00011   fSlice(0),
00012   fBegVtxFlag(0),
00013   fEndVtxFlag(0)
00014 {
00015   fSlice = slice;
00016 }

ShowerAtNu::ShowerAtNu ( const ShowerAtNu rhs  ) 

Definition at line 18 of file ShowerAtNu.cxx.

00018                                             :
00019   ObjShowerAtNu(rhs),
00020   fAssocTrackList(rhs.fAssocTrackList),
00021   fSlice(rhs.fSlice),
00022   fBegVtxFlag(rhs.fBegVtxFlag),
00023   fEndVtxFlag(rhs.fEndVtxFlag)
00024 {
00025 
00026 }

ShowerAtNu::~ShowerAtNu (  )  [virtual]

Definition at line 28 of file ShowerAtNu.cxx.

References fAssocTrackList.

00029 {
00030   if(fAssocTrackList) delete fAssocTrackList;
00031 }


Member Function Documentation

void ShowerAtNu::AddAssocTrack ( TrackAtNu track  ) 

Definition at line 44 of file ShowerAtNu.cxx.

References fAssocTrackList.

Referenced by AlgAtNuReco::RunAlg().

00045 {
00046   if(!fAssocTrackList) fAssocTrackList = new TObjArray();
00047   fAssocTrackList->Add(track);
00048 }

void ShowerAtNu::AddHit ( HitAtNu hit  ) 

Definition at line 38 of file ShowerAtNu.cxx.

References ObjShowerAtNu::AddHitToShower().

Referenced by AlgAtNuRecoMCTruth::RunAlg(), and AlgAtNuReco::RunAlg().

00039 {
00040   if(this->AddHitToShower(hit)) return;
00041   else return;  
00042 }

const TrackAtNu * ShowerAtNu::GetAssocTrackAt ( Int_t  i  ) 

Definition at line 55 of file ShowerAtNu.cxx.

References fAssocTrackList.

Referenced by AlgShowerAtNu::RunAlg().

00056 {
00057   if(fAssocTrackList) return (TrackAtNu*)(fAssocTrackList->At(i)); else return 0;
00058 }

Int_t ShowerAtNu::GetAssocTrackLast (  )  const

Definition at line 50 of file ShowerAtNu.cxx.

References fAssocTrackList.

00051 {
00052   if(fAssocTrackList) return fAssocTrackList->GetLast(); else return -1;
00053 }

Bool_t ShowerAtNu::GetBegVtxFlag (  ) 

Definition at line 65 of file ShowerAtNu.cxx.

References fBegVtxFlag.

Referenced by AlgShowerAtNu::RunAlg().

00066 {
00067   return fBegVtxFlag;
00068 }

CandSliceHandle * ShowerAtNu::GetCandSliceHandle (  ) 

Definition at line 33 of file ShowerAtNu.cxx.

References fSlice.

Referenced by AlgShowerAtNu::RunAlg().

00034 {
00035   return fSlice;
00036 }

Bool_t ShowerAtNu::GetEndVtxFlag (  ) 

Definition at line 75 of file ShowerAtNu.cxx.

References fEndVtxFlag.

Referenced by AlgShowerAtNu::RunAlg().

00076 {
00077   return fEndVtxFlag;
00078 }

Int_t ShowerAtNu::IsDiffuseShwAssoc ( HitAtNu hit  ) 

Definition at line 91 of file ShowerAtNu.cxx.

References ObjAtNu::GetHitAt(), ObjAtNu::GetHitLast(), and HitAtNu::IsDiffuseShwAssoc().

Referenced by AlgAtNuReco::RunAlg().

00092 {
00093   Int_t assoctmp,assoc=0;
00094   for(Int_t i=0;i<1+this->GetHitLast();i++){ 
00095     HitAtNu* hittmp = (HitAtNu*)(this->GetHitAt(i));
00096     assoctmp = hittmp->IsDiffuseShwAssoc(hit);
00097     if(assoctmp>assoc) assoc=assoctmp; if(assoc>1) return assoc;
00098   }
00099   return assoc; 
00100 }

Int_t ShowerAtNu::IsShwAssoc ( HitAtNu hit  ) 

Definition at line 80 of file ShowerAtNu.cxx.

References ObjAtNu::GetHitAt(), ObjAtNu::GetHitLast(), and HitAtNu::IsShwAssoc().

00081 {
00082   Int_t assoctmp,assoc=0;
00083   for(Int_t i=0;i<1+this->GetHitLast();i++){ 
00084     HitAtNu* hittmp = (HitAtNu*)(this->GetHitAt(i));
00085     assoctmp = hittmp->IsShwAssoc(hit);
00086     if(assoctmp>assoc) assoc=assoctmp; if(assoc>1) return assoc;
00087   }
00088   return assoc;
00089 }

void ShowerAtNu::SetBegVtxFlag ( Bool_t  flag  ) 

Definition at line 60 of file ShowerAtNu.cxx.

References fBegVtxFlag.

Referenced by AlgAtNuReco::RunAlg().

00061 {
00062   fBegVtxFlag = flag;
00063 }

void ShowerAtNu::SetEndVtxFlag ( Bool_t  flag  ) 

Definition at line 70 of file ShowerAtNu.cxx.

References fEndVtxFlag.

Referenced by AlgAtNuReco::RunAlg().

00071 {
00072   fEndVtxFlag = flag;
00073 }


Member Data Documentation

TObjArray* ShowerAtNu::fAssocTrackList [private]

Definition at line 38 of file ShowerAtNu.h.

Referenced by AddAssocTrack(), GetAssocTrackAt(), GetAssocTrackLast(), and ~ShowerAtNu().

Bool_t ShowerAtNu::fBegVtxFlag [private]

Definition at line 40 of file ShowerAtNu.h.

Referenced by GetBegVtxFlag(), and SetBegVtxFlag().

Bool_t ShowerAtNu::fEndVtxFlag [private]

Definition at line 41 of file ShowerAtNu.h.

Referenced by GetEndVtxFlag(), and SetEndVtxFlag().

Definition at line 39 of file ShowerAtNu.h.

Referenced by GetCandSliceHandle().


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

Generated on 24 Apr 2017 for loon by  doxygen 1.6.1