ANtpMCManipulator Class Reference

#include <ANtpMCManipulator.h>

List of all members.

Public Member Functions

 ANtpMCManipulator ()
virtual ~ANtpMCManipulator ()
NtpMCTruthGetNtpMCTruth (Int_t index)
NtpMCStdHepGetNtpMCStdHep (Int_t index)
NtpTHEventGetNtpTHEvent (Int_t index)
NtpTHTrackGetNtpTHTrack (Int_t index)
NtpTHShowerGetNtpTHShower (Int_t index)
NtpTHStripGetNtpTHStrip (Int_t index)
void Initialize (TClonesArray *mcArray, TClonesArray *stdArray, TClonesArray *thEventArray, TClonesArray *thTrackArray, TClonesArray *thShowerArray, TClonesArray *thStripArray)

Private Attributes

TClonesArray * fMCArray
TClonesArray * fStdArray
TClonesArray * fTHEventArray
TClonesArray * fTHTrackArray
TClonesArray * fTHShowerArray
TClonesArray * fTHStripArray

Detailed Description

Definition at line 19 of file ANtpMCManipulator.h.


Constructor & Destructor Documentation

ANtpMCManipulator::ANtpMCManipulator (  ) 

Definition at line 20 of file ANtpMCManipulator.cxx.

References Msg::kDebug, and MSG.

00020                                      :
00021   fMCArray(0),
00022   fStdArray(0),
00023   fTHEventArray(0),
00024   fTHTrackArray(0),
00025   fTHShowerArray(0),
00026   fTHStripArray(0)
00027 {
00028     
00029   MSG("ANtpMCManipulator", Msg::kDebug) << "ANtpMCManipulator::Constructor" << endl;
00030   
00031 }

ANtpMCManipulator::~ANtpMCManipulator (  )  [virtual]

Definition at line 50 of file ANtpMCManipulator.cxx.

References Msg::kDebug, and MSG.

00051 { 
00052   MSG("ANtpMCManipulator", Msg::kDebug) << "ANtpMCManipulator::Destructor" << endl; 
00053 }


Member Function Documentation

NtpMCStdHep * ANtpMCManipulator::GetNtpMCStdHep ( Int_t  index  ) 

Definition at line 70 of file ANtpMCManipulator.cxx.

References fStdArray.

Referenced by CondensedNtpModule::Ana(), CondensedNtpModuleAtm::Ana(), ANtpTruthInfoBeamAna::Analyze(), and VtxFinderAna::Analyze().

00071 {
00072   NtpMCStdHep *ntpMCStdHep = 0;
00073 
00074   if(!fStdArray) return ntpMCStdHep;
00075 
00076   if(index < 0 && fStdArray->GetEntries()>0) index = 0;
00077   if(index < fStdArray->GetEntries()+1)
00078     ntpMCStdHep = dynamic_cast<NtpMCStdHep *>(fStdArray->At(index));
00079   
00080   return ntpMCStdHep;
00081 }

NtpMCTruth * ANtpMCManipulator::GetNtpMCTruth ( Int_t  index  ) 

Definition at line 56 of file ANtpMCManipulator.cxx.

References fMCArray.

Referenced by CondensedNtpModule::Ana(), CondensedNtpModuleAtm::Ana(), ANtpTruthInfoBeamAna::Analyze(), VtxFinderAna::Analyze(), StdHepInfoAna::Analyze(), ANtpInfoObjectFillerNC::FillInformation(), and NueAnalysisCuts::SetNtpInfoObjects().

00057 {
00058   NtpMCTruth *ntpMCTruth = 0;
00059 
00060   if(!fMCArray) return ntpMCTruth;
00061 
00062   if(index < 0 && fMCArray->GetEntries()>0) index = 0;
00063   if(index < fMCArray->GetEntries()+1)
00064     ntpMCTruth = dynamic_cast<NtpMCTruth *>(fMCArray->At(index));
00065   
00066   return ntpMCTruth;
00067 }

NtpTHEvent * ANtpMCManipulator::GetNtpTHEvent ( Int_t  index  ) 

Definition at line 84 of file ANtpMCManipulator.cxx.

References fTHEventArray.

Referenced by CondensedNtpModule::Ana(), CondensedNtpModuleAtm::Ana(), ANtpTruthInfoBeamAna::Analyze(), VtxFinderAna::Analyze(), StdHepInfoAna::Analyze(), ANtpInfoObjectFillerNC::FillInformation(), and NueAnalysisCuts::SetNtpInfoObjects().

00085 {
00086   NtpTHEvent *ntpTHEvent = 0;
00087 
00088   if(!fTHEventArray) return ntpTHEvent;
00089 
00090   if(index < 0 && fTHEventArray->GetEntries()>0) index = 0;
00091   if(index < fTHEventArray->GetLast()+1)
00092     ntpTHEvent = dynamic_cast<NtpTHEvent *>(fTHEventArray->At(index));
00093   
00094   return ntpTHEvent;
00095 }

NtpTHShower * ANtpMCManipulator::GetNtpTHShower ( Int_t  index  ) 

Definition at line 112 of file ANtpMCManipulator.cxx.

References fTHShowerArray.

00113 {
00114   NtpTHShower *ntpTHShower = 0;
00115 
00116   if(!fTHShowerArray) return ntpTHShower;
00117 
00118   if(index < 0 && fTHShowerArray->GetEntries()>0) index = 0;
00119   if(index < fTHShowerArray->GetLast()+1)
00120     ntpTHShower = dynamic_cast<NtpTHShower *>(fTHShowerArray->At(index));
00121   
00122   return ntpTHShower;
00123 }

NtpTHStrip * ANtpMCManipulator::GetNtpTHStrip ( Int_t  index  ) 

Definition at line 126 of file ANtpMCManipulator.cxx.

References fTHStripArray.

00127 {
00128   NtpTHStrip *ntpTHStrip = 0;
00129 
00130   if(!fTHStripArray) return ntpTHStrip;
00131 
00132   if(index < 0 && fTHStripArray->GetEntries()>0) index = 0;
00133   if(index < fTHStripArray->GetLast()+1)
00134     ntpTHStrip = dynamic_cast<NtpTHStrip *>(fTHStripArray->At(index));
00135   
00136   return ntpTHStrip;
00137 }

NtpTHTrack * ANtpMCManipulator::GetNtpTHTrack ( Int_t  index  ) 

Definition at line 98 of file ANtpMCManipulator.cxx.

References fTHTrackArray.

00099 {
00100   NtpTHTrack *ntpTHTrack = 0;
00101 
00102   if(!fTHTrackArray) return ntpTHTrack;
00103 
00104   if(index < 0 && fTHTrackArray->GetEntries()>0) index = 0;
00105   if(index < fTHTrackArray->GetLast()+1)
00106     ntpTHTrack = dynamic_cast<NtpTHTrack *>(fTHTrackArray->At(index));
00107   
00108   return ntpTHTrack;
00109 }

void ANtpMCManipulator::Initialize ( TClonesArray *  mcArray,
TClonesArray *  stdArray,
TClonesArray *  thEventArray,
TClonesArray *  thTrackArray,
TClonesArray *  thShowerArray,
TClonesArray *  thStripArray 
)

Definition at line 34 of file ANtpMCManipulator.cxx.

References fMCArray, fStdArray, fTHEventArray, fTHShowerArray, fTHStripArray, fTHTrackArray, Msg::kDebug, and MSG.

Referenced by ANtpRecoNtpManipulator::ANtpRecoNtpManipulator(), and ANtpRecoNtpManipulator::SetRecord().

00037 {
00038   fMCArray = mcArray;
00039   fStdArray = stdArray;
00040   fTHEventArray = thEventArray;
00041   fTHTrackArray = thTrackArray;
00042   fTHShowerArray = thShowerArray;
00043   fTHStripArray = thStripArray;
00044 
00045   MSG("ANtpMCManipulator", Msg::kDebug) << "ANtpMCManipulator::Constructor" << endl;    
00046 }


Member Data Documentation

TClonesArray* ANtpMCManipulator::fMCArray [private]

Definition at line 39 of file ANtpMCManipulator.h.

Referenced by GetNtpMCTruth(), and Initialize().

TClonesArray* ANtpMCManipulator::fStdArray [private]

Definition at line 40 of file ANtpMCManipulator.h.

Referenced by GetNtpMCStdHep(), and Initialize().

TClonesArray* ANtpMCManipulator::fTHEventArray [private]

Definition at line 41 of file ANtpMCManipulator.h.

Referenced by GetNtpTHEvent(), and Initialize().

TClonesArray* ANtpMCManipulator::fTHShowerArray [private]

Definition at line 43 of file ANtpMCManipulator.h.

Referenced by GetNtpTHShower(), and Initialize().

TClonesArray* ANtpMCManipulator::fTHStripArray [private]

Definition at line 44 of file ANtpMCManipulator.h.

Referenced by GetNtpTHStrip(), and Initialize().

TClonesArray* ANtpMCManipulator::fTHTrackArray [private]

Definition at line 42 of file ANtpMCManipulator.h.

Referenced by GetNtpTHTrack(), and Initialize().


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

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1