Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

NtpSREvent Class Reference

#include <NtpSREvent.h>

List of all members.

Public Member Functions

 NtpSREvent ()
 NtpSREvent (Int_t nstripinit, Int_t nshowerinit, Int_t ntrackinit)
virtual ~NtpSREvent ()
virtual std::ostream & Print (std::ostream &os) const
virtual void Print (Option_t *option="") const
void AddStripAt (Int_t stripindex, Int_t ind)
void AddShowerAt (Int_t showerindex, Int_t ind)
void AddTrackAt (Int_t trackindex, Int_t ind)
void Clear (Option_t *="")
void ClearStrips ()

Public Attributes

UShort_t index
Short_t slc
Int_t ndigit
Int_t nstpcnt
Int_t nstrip
Int_t * stp
Int_t nshower
Int_t * shw
Int_t ntrack
Int_t * trk
NtpSRStripPulseHeight ph
NtpSRPlane plane
NtpSRVertex vtx
NtpSRVertex end


Constructor & Destructor Documentation

NtpSREvent::NtpSREvent  )  [inline]
 

Definition at line 24 of file NtpSREvent.h.

References index, ndigit, nshower, nstpcnt, nstrip, ntrack, shw, slc, stp, and trk.

00024               : index(0),slc(0),ndigit(0),nstpcnt(0),nstrip(0),stp(0),
00025                 nshower(0),shw(0),ntrack(0),trk(0) {} // def const'r

NtpSREvent::NtpSREvent Int_t  nstripinit,
Int_t  nshowerinit,
Int_t  ntrackinit
 

Definition at line 21 of file NtpSREvent.cxx.

References shw, stp, and trk.

00021                                                                            : 
00022   index(0),slc(0),ndigit(0),nstpcnt(nstripinit),nstrip(nstripinit),stp(0),
00023   nshower(nshowerinit),shw(0),ntrack(ntrackinit),trk(0) {
00024 
00025   // Normal constructor
00026 
00027   if ( nstrip ) {
00028     stp = new Int_t[nstrip];
00029     // Initialize all indices to -1
00030     for (Int_t i = 0; i < nstrip; i++ ) stp[i] = -1;
00031   }
00032 
00033   if ( nshower ) {
00034     shw = new Int_t[nshower];
00035     // Initialize all indices to -1
00036     for (Int_t i = 0; i < nshower; i++ ) shw[i] = -1;
00037   }
00038 
00039   if ( ntrack ) {
00040     trk = new Int_t[ntrack];
00041     // Initialize all indices to -1
00042     for (Int_t i = 0; i < ntrack; i++ ) trk[i] = -1;
00043   }
00044 
00045 
00046 
00047 }

virtual NtpSREvent::~NtpSREvent  )  [inline, virtual]
 

Definition at line 27 of file NtpSREvent.h.

References Clear().

00027 { this -> Clear(); }


Member Function Documentation

void NtpSREvent::AddShowerAt Int_t  showerindex,
Int_t  ind
 

Definition at line 74 of file NtpSREvent.cxx.

References MSG, nshower, and shw.

00074                                                          {
00075   //
00076   //  Purpose:  Add showerindex to shw array at position ind.
00077   //
00078   //  Arguments: showerindex: index of shower in assoc shw TClonesArray. 
00079   //             ind: index in shw array, cannot exceed bounds
00080   //                  0->nshower-1.
00081   //
00082   //  Return:  none.
00083   //
00084   //  Contact:   S. Kasahara
00085   // 
00086 
00087   if ( ind < 0 || ind >= nshower ) {
00088     MSG("NtpSR",Msg::kWarning)
00089       << "Attempt to add shower at index " << ind
00090       << " outside of array size " << nshower << " ignored." << endl;
00091     return;  
00092   }
00093 
00094   shw[ind] = showerindex;
00095   return;
00096     
00097 }

void NtpSREvent::AddStripAt Int_t  stripindex,
Int_t  ind
 

Definition at line 99 of file NtpSREvent.cxx.

References MSG, nstrip, and stp.

Referenced by UberModuleLite::FillNtpEvent().

00099                                                        {
00100   //
00101   //  Purpose:  Add stripindex to stp array at position ind.
00102   //
00103   //  Arguments: stripindex: index of strip in assoc stp TClonesArray. 
00104   //             ind: index in stp array, cannot exceed bounds
00105   //                  0->nstrip-1.
00106   //
00107   //  Return:  none.
00108   //
00109   //  Contact:   S. Kasahara
00110   // 
00111 
00112   if ( ind < 0 || ind >= nstrip ) {
00113     MSG("NtpSR",Msg::kWarning)
00114       << "Attempt to add strip at index " << ind
00115       << " outside of array size " << nstrip << " ignored." << endl;
00116     return;  
00117   }
00118 
00119   stp[ind] = stripindex;
00120   return;
00121     
00122 }

void NtpSREvent::AddTrackAt Int_t  trackindex,
Int_t  ind
 

Definition at line 49 of file NtpSREvent.cxx.

References MSG, ntrack, and trk.

00049                                                        {
00050   //
00051   //  Purpose:  Add trackindex to trk array at position ind.
00052   //
00053   //  Arguments: trackindex: index of track in assoc trk TClonesArray. 
00054   //             ind: index in trk array, cannot exceed bounds
00055   //                  0->ntrack-1.
00056   //
00057   //  Return:  none.
00058   //
00059   //  Contact:   S. Kasahara
00060   // 
00061 
00062   if ( ind < 0 || ind >= ntrack ) {
00063     MSG("NtpSR",Msg::kWarning)
00064       << "Attempt to add track at index " << ind
00065       << " outside of array size " << ntrack << " ignored." << endl;
00066     return;  
00067   }
00068 
00069   trk[ind] = trackindex;
00070   return;
00071     
00072 }

void NtpSREvent::Clear Option_t *  = ""  )  [inline]
 

Definition at line 38 of file NtpSREvent.h.

References ClearStrips(), nshower, ntrack, shw, and trk.

Referenced by ~NtpSREvent().

00038                              { ClearStrips(); 
00039                                nshower = 0; if ( shw ) delete [] shw; shw = 0;
00040                                ntrack = 0; if ( trk ) delete [] trk; trk = 0; }

void NtpSREvent::ClearStrips  )  [inline]
 

Definition at line 41 of file NtpSREvent.h.

References nstrip, and stp.

Referenced by Clear().

00041 { nstrip = 0; if ( stp ) delete [] stp; stp = 0; }

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

Definition at line 165 of file NtpSREvent.cxx.

References Print().

00165                                                    {
00166   //
00167   //  Purpose:  Print event in form supported by TObject::Print.
00168   //
00169   //  Arguments: option (not used)
00170   //
00171 
00172   Print(std::cout);
00173   return;
00174 
00175 }

std::ostream & NtpSREvent::Print std::ostream &  os  )  const [virtual]
 

Definition at line 125 of file NtpSREvent.cxx.

References index, ndigit, nshower, nstpcnt, nstrip, ntrack, ph, shw, slc, trk, and vtx.

Referenced by Print().

00125                                                   {
00126   //
00127   //  Purpose:  Print event data on ostream.
00128   //
00129 
00130   os << "NtpSREvent::Print" << endl;
00131   os << "index " << index << " slc " << slc << " ndigit " << ndigit 
00132      << " nstpcnt " << nstpcnt << " nstrip " << nstrip << " pln " << plane;
00133   os << "Event has " << nshower << " shower";
00134   if ( nshower > 1 ) {
00135     os << "s w/indices ";
00136     for ( int is = 0; is < nshower-1; is++ ) os << shw[is] << ",";
00137     os << shw[nshower-1] << " and ";
00138   }
00139   else if ( nshower == 1 ) {
00140     os << " w/index " << shw[nshower-1] << " and ";
00141   }
00142   else {
00143     os << "s and ";
00144   }
00145   
00146   os << ntrack << " track";
00147   if ( ntrack > 1 ) {
00148     os << "s w/indices ";
00149     for ( int it = 0; it < ntrack-1; it++ ) os << trk[it] << ",";
00150     os << trk[ntrack-1];
00151   }
00152   else if ( ntrack == 1 ) {
00153     os << " w/index " << trk[ntrack-1];
00154   }
00155   else {
00156     os << "s";
00157   }
00158   os << endl;
00159   os << ph << "vtx " << vtx << "end " << end;
00160   
00161   return os;
00162 
00163 }


Member Data Documentation

NtpSRVertex NtpSREvent::end
 

Definition at line 64 of file NtpSREvent.h.

Referenced by HitCalcAna::ComputeHits(), MadEdAnalysis::DataHist(), NtpSRModule::FillNtpEvent(), ANtpEventInfoAna::FillNueEventInformation(), MadEdAnalysis::MakeEff(), MadEdAnalysis::MCHist(), and MadEdAnalysis::MyMakeQEFile().

UShort_t NtpSREvent::index
 

Definition at line 48 of file NtpSREvent.h.

Referenced by MadAnalysis::CreateANtpPAN(), MadDpAnalysis::CreatePAN(), MadAnalysis::CreatePAN(), MadCluAnalysis::DataDistributions(), ANtpInfoObjectFiller::FillEventInformation(), UberModuleLite::FillNtpEvent(), NtpSRModule::FillNtpEvent(), MadCluAnalysis::FOM(), MadEvDisplay::Log(), NtpSREvent(), MadDpAnalysis::PassBasicCuts(), MadCluAnalysis::PIDPlot(), MadCluAnalysis::Plot(), and Print().

Int_t NtpSREvent::ndigit
 

Definition at line 50 of file NtpSREvent.h.

Referenced by UberModuleLite::FillNtpEvent(), NtpSRModule::FillNtpEvent(), NtpSREvent(), and Print().

Int_t NtpSREvent::nshower
 

Definition at line 57 of file NtpSREvent.h.

Referenced by AddShowerAt(), NueReadTJPID::Ana(), FracVarAna::Analyze(), Clear(), MadMKAnalysis::CreatePAN(), MadDpAnalysis::CreatePAN(), MadAnalysis::CreatePAN(), MadCluAnalysis::DataDistributions(), MadEdAnalysis::DataHist(), MadEvDisplay::Display(), ANtpInfoObjectFiller::FillEventInformation(), MadCluAnalysis::FOM(), NueDisplayModule::GetBasicInfo(), ANtpEventManipulator::GetPrimaryShower(), ANtpEventManipulator::GetShower(), SntpHelpers::GetShowerIndex(), MadBase::LoadLargestShowerFromEvent(), MoqBase::LoadTruthForRecoTH(), MadBase::LoadTruthForRecoTH(), MadDpAnalysis::MakeMyFile(), MadCBSQEAnalysis::MakeQEFile(), MadEdAnalysis::MCHist(), MadEdAnalysis::MyCreatePAN(), MadEdAnalysis::MyCreatePANData(), MadEdAnalysis::MyMakeMyFile(), MadEdAnalysis::MyMakeQEFile(), NtpSREvent(), MadCluAnalysis::PassBasicCuts(), NueDisplayModule::PassCuts(), MadCluAnalysis::PIDPlot(), MadCluAnalysis::Plot(), Print(), and MadCBSQEAnalysis::TestQEDiscrim().

Int_t NtpSREvent::nstpcnt
 

Definition at line 54 of file NtpSREvent.h.

Referenced by NtpSREvent(), and Print().

Int_t NtpSREvent::nstrip
 

Definition at line 55 of file NtpSREvent.h.

Referenced by AddStripAt(), ShwfitAna::Analyze(), FracVarAna::Analyze(), ClearStrips(), HitCalcAna::ComputeHits(), MadDpAnalysis::CreatePAN(), ANtpEventInfoAna::DetermineTrigger(), ANtpInfoObjectFiller::FillEventInformation(), MSTCalcAna::FillHitSets(), ANtpShowerInfoAna::FillNueShowerInformation(), ANtpEventInfoAna::FindHotCh(), NueDisplayModule::GetEvent(), ANtpEventManipulator::GetStrip(), SntpHelpers::GetStripIndex(), MadEdAnalysis::HitF(), MadCBSQEAnalysis::LikeliQE(), MadCBSQEAnalysis::MakeQEFile(), MadEdAnalysis::MyLikeliQE(), MadEdAnalysis::MyMakeQEFile(), NtpSREvent(), Print(), MadMKAnalysis::SigInOut(), and MadCBSQEAnalysis::TestQEDiscrim().

Int_t NtpSREvent::ntrack
 

Definition at line 59 of file NtpSREvent.h.

Referenced by AddTrackAt(), NueReadTJPID::Ana(), ShwfitAna::Analyze(), FracVarAna::Analyze(), Clear(), MadMKAnalysis::CreatePAN(), MadDpAnalysis::CreatePAN(), MadAnalysis::CreatePAN(), MadEdAnalysis::DataHist(), MadEvDisplay::Display(), ANtpInfoObjectFiller::FillEventInformation(), NueDisplayModule::GetBasicInfo(), ANtpEventManipulator::GetPrimaryTrack(), ANtpEventManipulator::GetTrack(), SntpHelpers::GetTrackIndex(), MadBase::LoadLargestTrackFromEvent(), MoqBase::LoadTruthForRecoTH(), MadBase::LoadTruthForRecoTH(), MadEdAnalysis::MakeEff(), MadDpAnalysis::MakeMyFile(), MadCBSQEAnalysis::MakeQEFile(), MadEdAnalysis::MCHist(), MadEdAnalysis::MyCreatePAN(), MadEdAnalysis::MyCreatePANData(), MadEdAnalysis::MyMakeMyFile(), MadEdAnalysis::MyMakeQEFile(), NtpSREvent(), MadEdAnalysis::PassBasicCuts(), MadDpAnalysis::PassBasicCuts(), MadCluAnalysis::PassBasicCuts(), MadCBSQEAnalysis::PassBasicCuts(), NueDisplayModule::PassCuts(), EventFilter::PassesHiTrackCut(), MadEdAnalysis::PIDHisto(), Print(), NueModule::Reco(), and MadCBSQEAnalysis::TestQEDiscrim().

NtpSRStripPulseHeight NtpSREvent::ph
 

Definition at line 61 of file NtpSREvent.h.

Referenced by NueSensitivity::Ana(), NueReadTJPID::Ana(), ShwfitAna::Analyze(), FracVarAna::Analyze(), MadMKAnalysis::CreatePAN(), MadDpAnalysis::CreatePAN(), MadAnalysis::CreatePAN(), MadCluAnalysis::DataDistributions(), MadEdAnalysis::DataHist(), MadEdAnalysis::ETrkF(), MadEdAnalysis::Evtphsig(), ANtpInfoObjectFiller::FillEventInformation(), UberModuleLite::FillNtpEvent(), NtpSRModule::FillNtpEvent(), ANtpShowerInfoAna::FillNueShowerInformation(), ANtpTrackInfoAna::FillNueTrackInformation(), MadDpAnalysis::MakeMyFile(), MadCBSQEAnalysis::MakeQEFile(), MadEdAnalysis::MCHist(), MadEdAnalysis::MyMakeMyFile(), MadEdAnalysis::MyMakeQEFile(), EventFilter::PassesHiEnergyCut(), EventFilter::PassesLoEnergyCut(), MadDpAnalysis::PID(), MadCluAnalysis::PIDPlot(), Print(), NearbyVertexFinder::ProcessEntry(), NueModule::Reco(), and MadAnalysis::RecoAnalysisEnergy().

NtpSRPlane NtpSREvent::plane
 

Definition at line 62 of file NtpSREvent.h.

Referenced by MadMKAnalysis::CreatePAN(), MadDpAnalysis::CreatePAN(), MadAnalysis::CreatePAN(), MadEdAnalysis::DataHist(), MadEdAnalysis::EvtLength(), ANtpInfoObjectFiller::FillEventInformation(), UberModuleLite::FillNtpEvent(), NtpSRModule::FillNtpEvent(), ANtpShowerInfoAna::FillNueShowerInformation(), ANtpTrackInfoAna::FillNueTrackInformation(), MadDpAnalysis::MakeMyFile(), MadCBSQEAnalysis::MakeQEFile(), MadEdAnalysis::MCHist(), MadEdAnalysis::MyCreatePAN(), MadEdAnalysis::MyCreatePANData(), MadEdAnalysis::MyMakeMyFile(), MadEdAnalysis::MyMakeQEFile(), EventFilter::PassesLoEventCut(), MadDpAnalysis::PID(), and NueModule::Reco().

Int_t* NtpSREvent::shw
 

Definition at line 58 of file NtpSREvent.h.

Referenced by AddShowerAt(), FracVarAna::Analyze(), Clear(), MadEvDisplay::Display(), ANtpEventManipulator::GetPrimaryShower(), ANtpEventManipulator::GetShower(), SntpHelpers::GetShowerIndex(), MadBase::LoadLargestShowerFromEvent(), MoqBase::LoadTruthForRecoTH(), MadBase::LoadTruthForRecoTH(), MadCBSQEAnalysis::MakeQEFile(), NtpSREvent(), and Print().

Short_t NtpSREvent::slc
 

Definition at line 49 of file NtpSREvent.h.

Referenced by MadEvDisplay::Display(), NtpSRModule::FillNtpEvent(), MadBase::LoadSliceForRecoTH(), MadCBSQEAnalysis::MakeQEFile(), NtpSREvent(), Print(), and MadCBSQEAnalysis::TestQEDiscrim().

Int_t* NtpSREvent::stp
 

Definition at line 56 of file NtpSREvent.h.

Referenced by AddStripAt(), FracVarAna::Analyze(), ClearStrips(), MadDpAnalysis::CreatePAN(), ANtpEventManipulator::GetStrip(), SntpHelpers::GetStripIndex(), NtpSREvent(), and MadMKAnalysis::SigInOut().

Int_t* NtpSREvent::trk
 

Definition at line 60 of file NtpSREvent.h.

Referenced by AddTrackAt(), Clear(), MadEdAnalysis::DataHist(), MadEvDisplay::Display(), ANtpEventManipulator::GetPrimaryTrack(), ANtpEventManipulator::GetTrack(), SntpHelpers::GetTrackIndex(), MadBase::LoadLargestTrackFromEvent(), MoqBase::LoadTruthForRecoTH(), MadBase::LoadTruthForRecoTH(), MadEdAnalysis::MakeEff(), MadEdAnalysis::MCHist(), NtpSREvent(), and Print().

NtpSRVertex NtpSREvent::vtx
 

Definition at line 63 of file NtpSREvent.h.

Referenced by ShwfitAna::Analyze(), HitCalcAna::ComputeHits(), MadMKAnalysis::CreatePAN(), MadDpAnalysis::CreatePAN(), MadAnalysis::CreatePAN(), MadEdAnalysis::DataHist(), ANtpInfoObjectFiller::FillEventInformation(), NtpSRModule::FillNtpEvent(), ANtpEventInfoAna::FillNueEventInformation(), NueDisplayModule::GetEvent(), MadMKAnalysis::InFidVol(), MadQuantities::IsFidVtxEvt(), MoqBase::LoadTruthForReco(), MadBase::LoadTruthForReco(), MadEdAnalysis::MakeEff(), MadDpAnalysis::MakeMyFile(), MadQuantities::MakeValidationFile(), MadEdAnalysis::MCHist(), MadEdAnalysis::MyCreatePAN(), MadEdAnalysis::MyCreatePANData(), MadEdAnalysis::MyMakeMyFile(), MadEdAnalysis::MyMakeQEFile(), NueDisplayModule::PassCuts(), Print(), and NearbyVertexFinder::ProcessEntry().


The documentation for this class was generated from the following files:
Generated on Thu Nov 1 15:57:24 2007 for loon by  doxygen 1.3.9.1