NtpSRSlice Class Reference

#include <NtpSRSlice.h>

List of all members.

Public Member Functions

 NtpSRSlice ()
 NtpSRSlice (Int_t nstripinit)
virtual ~NtpSRSlice ()
virtual std::ostream & Print (std::ostream &os) const
virtual void Print (Option_t *option="") const
void AddStripAt (Int_t stripindex, Int_t ind)
void Clear (Option_t *="")
void ClearStrips ()

Public Attributes

UShort_t index
 index of this slice in slice array
Int_t ndigit
Int_t nstpcnt
 number of strips in slice
Int_t nstrip
 number of strips in strip array
Int_t * stp
NtpSRPulseHeight ph
 summed digit pulse height
NtpSRPlane plane
 range of planes


Detailed Description

Definition at line 21 of file NtpSRSlice.h.


Constructor & Destructor Documentation

NtpSRSlice::NtpSRSlice (  )  [inline]

Definition at line 24 of file NtpSRSlice.h.

00024 : index(0),ndigit(0),nstpcnt(0),nstrip(0),stp(0) {} // def ctor

NtpSRSlice::NtpSRSlice ( Int_t  nstripinit  ) 

Definition at line 21 of file NtpSRSlice.cxx.

References nstrip, and stp.

00021                                       :index(0),ndigit(0),
00022        nstpcnt(nstripinit),nstrip(nstripinit),stp(0) {
00023   // Purpose: Normal constructor
00024   //
00025 
00026   if ( nstrip ) {
00027     stp = new Int_t[nstrip]; 
00028     for ( Int_t i = 0; i < nstrip; i++ ) stp[i] = -1;
00029   }
00030 
00031 }

virtual NtpSRSlice::~NtpSRSlice (  )  [inline, virtual]

Definition at line 26 of file NtpSRSlice.h.

References Clear().

00026 { this -> Clear(); }


Member Function Documentation

void NtpSRSlice::AddStripAt ( Int_t  stripindex,
Int_t  ind 
)

Definition at line 33 of file NtpSRSlice.cxx.

References Msg::kWarning, MSG, nstrip, and stp.

Referenced by NtpSRModule::FillNtpSlice(), and NtpEMModule::FillNtpSlice().

00033                                                        {
00034   //
00035   //  Purpose:  Add stripindex to stp array at position ind.
00036   //
00037   //  Arguments: stripindex: index of strip in assoc record strip TClonesArray.
00038   //             ind: index in stp array, cannot exceed bounds
00039   //                  0->nstrip-1.
00040   //
00041   //  Return:  none.
00042   //
00043   //  Contact:   S. Kasahara
00044   // 
00045 
00046   if ( ind < 0 || ind >= nstrip ) {
00047     MSG("NtpSR",Msg::kWarning) 
00048       << "Attempt to add strip at index " << ind
00049       << "outside of array size " << nstrip << "ignored." << endl;
00050     return;
00051   }
00052     
00053   stp[ind] = stripindex;
00054   return;
00055     
00056 }

void NtpSRSlice::Clear ( Option_t *  = ""  )  [inline]

Definition at line 34 of file NtpSRSlice.h.

References ClearStrips().

Referenced by ~NtpSRSlice().

00034 { ClearStrips(); }

void NtpSRSlice::ClearStrips (  )  [inline]

Definition at line 35 of file NtpSRSlice.h.

References nstrip, and stp.

Referenced by Clear().

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

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

Definition at line 72 of file NtpSRSlice.cxx.

References Print().

00072                                                    {
00073   //
00074   //  Purpose:  Print slice in form supported by TObject::Print.
00075   //
00076   //  Arguments: option (not used)
00077   //
00078 
00079   Print(std::cout);
00080   return;
00081 
00082 }

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

Definition at line 58 of file NtpSRSlice.cxx.

References index, ndigit, nstpcnt, nstrip, ph, and plane.

Referenced by Print().

00058                                                   {
00059   //
00060   //  Purpose:  Print slice data on ostream.
00061   //
00062 
00063   os << "NtpSRSlice::Print" << endl;
00064   os << "index " << index << " ndigit " << ndigit << " nstpcnt " << nstpcnt 
00065      << " nstrip " << nstrip << "\nplane" << plane 
00066      << "ph" << ph;
00067 
00068   return os;
00069 
00070 }


Member Data Documentation

UShort_t NtpSRSlice::index

index of this slice in slice array

Definition at line 42 of file NtpSRSlice.h.

Referenced by MadAnalysis::CreatePAN(), NtpSRModule::FillNtpSlice(), NtpEMModule::FillNtpSlice(), MadScanDisplay::Log(), MadEvDisplay::Log(), and Print().

Int_t NtpSRSlice::ndigit

number of digits in slice nstpcnt will represent the number of strips in track even in "slim" ntuple output file for which nstrip is set to 0 and the strip array stp has been deleted.

Definition at line 43 of file NtpSRSlice.h.

Referenced by NtpSRModule::FillNtpSlice(), NtpEMModule::FillNtpSlice(), and Print().

Int_t NtpSRSlice::nstpcnt

number of strips in slice

Definition at line 47 of file NtpSRSlice.h.

Referenced by Print().

Int_t NtpSRSlice::nstrip

number of strips in strip array

Definition at line 48 of file NtpSRSlice.h.

Referenced by AddStripAt(), TimingVarsAna::Analyze(), VertexHelper::CalculateNTrkLike(), ClearStrips(), TridModelMaker::CreateSliceModels(), MadScanDisplay::Display(), MadEvDisplay::Display(), ANtpInfoObjectFillerNC::FillEventTimingAndActivityInformation(), NueDisplayModule::GenerateOverlayMultiGraphs(), NueDisplayModule::GetEvent(), VertexHelper::GetStripIndex(), SntpHelpers::GetStripIndex(), MadCBSQEAnalysis::MakeQEFile(), MadTVAnalysis::NPlanesInObj(), MadMKAnalysis::NPlanesInObj(), MadTVAnalysis::NStripsInObj(), MadMKAnalysis::NStripsInObj(), NtpSRSlice(), Print(), MadScanDisplay::ROICalc(), NuBase::TestEventLoop(), and MeuAnalysis::TestEventLoop().

NtpSRPulseHeight NtpSRSlice::ph

summed digit pulse height

Definition at line 50 of file NtpSRSlice.h.

Referenced by NtpSRModule::FillNtpSlice(), NtpEMModule::FillNtpSlice(), and Print().

NtpSRPlane NtpSRSlice::plane

range of planes

Definition at line 51 of file NtpSRSlice.h.

Referenced by MadAnalysis::CreatePAN(), NtpSRModule::FillNtpSlice(), NtpEMModule::FillNtpSlice(), and Print().

Int_t* NtpSRSlice::stp

Definition at line 49 of file NtpSRSlice.h.

Referenced by AddStripAt(), TimingVarsAna::Analyze(), ClearStrips(), TridModelMaker::CreateSliceModels(), MadScanDisplay::Display(), MadEvDisplay::Display(), ANtpInfoObjectFillerNC::FillEventTimingAndActivityInformation(), NueDisplayModule::GetEvent(), ANtpSliceManipulator::GetStrip(), VertexHelper::GetStripIndex(), SntpHelpers::GetStripIndex(), MadTVAnalysis::NPlanesInObj(), MadMKAnalysis::NPlanesInObj(), MadTVAnalysis::NStripsInObj(), MadMKAnalysis::NStripsInObj(), NtpSRSlice(), MadScanDisplay::ROICalc(), NuBase::TestEventLoop(), and MeuAnalysis::TestEventLoop().


The documentation for this class was generated from the following files:
Generated on Thu Apr 10 23:03:07 2014 for loon by  doxygen 1.4.7