NtpCluster3D Class Reference

#include <NtpCluster3D.h>

List of all members.

Public Member Functions

 NtpCluster3D ()
 NtpCluster3D (Int_t nstripinit)
virtual ~NtpCluster3D ()
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 *="")

Public Attributes

UShort_t index
Int_t nstrip
Int_t * stp
NtpCluster3DPulseHeight ph

Detailed Description

Definition at line 21 of file NtpCluster3D.h.


Constructor & Destructor Documentation

NtpCluster3D::NtpCluster3D (  )  [inline]

Definition at line 24 of file NtpCluster3D.h.

00024 : index(0),nstrip(0),stp(0) {} // def const'r

NtpCluster3D::NtpCluster3D ( Int_t  nstripinit  ) 

Definition at line 44 of file NtpCluster3D.cxx.

References nstrip, and stp.

00044                                           : index(0),
00045                                             nstrip(nstripinit),stp(0) {
00046   // Normal constructor
00047 
00048   if ( nstrip ) {
00049     stp = new Int_t[nstrip];
00050     for ( Int_t i = 0; i < nstrip; i++ ) stp[i] = -1;
00051   }
00052 
00053 }

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

Definition at line 26 of file NtpCluster3D.h.

References Clear().

00026 { this -> Clear(); }


Member Function Documentation

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

Definition at line 22 of file NtpCluster3D.cxx.

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

Referenced by NtpCluster3DModule::FillNtpCluster().

00022                                                          {
00023   //
00024   //  Purpose:  Add stripindex to fStripInd array at position ind.
00025   //
00026   //  Arguments: stripindex: index of strip in assoc fStrips TClonesArray. 
00027   //             ind: index in fStripInd array, cannot exceed bounds
00028   //                  0->fNStrip-1.
00029   //
00030 
00031 
00032   if ( ind < 0 || ind >= nstrip ) {
00033     MSG("NtpSR",Msg::kWarning) 
00034       << "Attempt to add strip at index " << ind
00035       << " outside of array size " << nstrip << " ignored." << endl;
00036     return;
00037   }
00038     
00039   stp[ind] = stripindex;
00040   return;
00041     
00042 }

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

Definition at line 34 of file NtpCluster3D.h.

References stp.

Referenced by ~NtpCluster3D().

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

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

Definition at line 65 of file NtpCluster3D.cxx.

References Print().

00065                                                      {
00066   //
00067   //  Purpose:  Print strip in form supported by TObject::Print.
00068   //
00069   //  Arguments: option (not used)
00070   //
00071 
00072   Print(std::cout);
00073   return;
00074 
00075 }

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

Definition at line 55 of file NtpCluster3D.cxx.

Referenced by Print().

00055                                                     {
00056   //
00057   //  Purpose:  Print strip data on ostream.
00058   //
00059 
00060   os << "NtpCluster3D::Print" << endl;
00061   return os;
00062 
00063 }


Member Data Documentation

Definition at line 41 of file NtpCluster3D.h.

Referenced by NtpCluster3DModule::FillNtpCluster().

Definition at line 43 of file NtpCluster3D.h.

Referenced by AddStripAt(), and NtpCluster3D().

Definition at line 45 of file NtpCluster3D.h.

Referenced by NtpCluster3DModule::FillNtpCluster().

Definition at line 44 of file NtpCluster3D.h.

Referenced by AddStripAt(), Clear(), and NtpCluster3D().


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

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1