NtpSRCluster Class Reference

#include <NtpSRCluster.h>

List of all members.

Public Member Functions

 NtpSRCluster ()
 NtpSRCluster (Int_t nstripinit)
virtual ~NtpSRCluster ()
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 shower in shower array
UShort_t planeview
 view
UShort_t nplane
 number of planes
UShort_t begplane
 begin plane
UShort_t endplane
 end plane
UShort_t id
 subshower id of type ClusterType_t
Short_t slc
 index of associated slice in slice array
Int_t ndigit
Int_t nstpcnt
 number of strips in cluster
Int_t nstrip
 number of strips in stp array
Int_t * stp
Float_t probem
 em probability
Float_t zvtx
 vertex in z
Float_t tposvtx
 vertex in tpos
Float_t slope
 d(tpos)/dz
Float_t avgdev
 ph weighted average deviation around long axis
NtpSRStripPulseHeight ph
 summed strip pulse height

Detailed Description

Definition at line 19 of file NtpSRCluster.h.


Constructor & Destructor Documentation

NtpSRCluster::NtpSRCluster (  )  [inline]

Definition at line 22 of file NtpSRCluster.h.

00022                 : index(0),planeview(0),nplane(0),begplane(0),endplane(0),
00023     id(0),slc(0),ndigit(0),nstpcnt(0),nstrip(0),stp(0),probem(0),
00024     zvtx(0),tposvtx(0),slope(0),avgdev(0) {} // def const'r

NtpSRCluster::NtpSRCluster ( Int_t  nstripinit  ) 

Definition at line 45 of file NtpSRCluster.cxx.

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

00045                                           : index(0),planeview(0),nplane(0),
00046            begplane(0),endplane(0),id(0),slc(0),ndigit(0),nstpcnt(nstripinit),
00047            nstrip(nstripinit),stp(0),probem(0),zvtx(0),tposvtx(0),slope(0),
00048            avgdev(0) {
00049   // Normal constructor
00050 
00051   if ( nstrip ) {
00052     stp = new Int_t[nstrip];
00053     for ( Int_t i = 0; i < nstrip; i++ ) stp[i] = -1;
00054   }
00055   else {
00056     MSG("NtpSR",Msg::kWarning) << "NtpSRCluster called with nstrip = 0" << endl;
00057   }
00058 
00059 }

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

Definition at line 26 of file NtpSRCluster.h.

References Clear().

00026 { this -> Clear(); }


Member Function Documentation

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

Definition at line 20 of file NtpSRCluster.cxx.

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

Referenced by NtpSRModule::FillNtpCluster().

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

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

Definition at line 34 of file NtpSRCluster.h.

References ClearStrips().

Referenced by ~NtpSRCluster().

00034 { ClearStrips(); }

void NtpSRCluster::ClearStrips (  )  [inline]

Definition at line 35 of file NtpSRCluster.h.

References nstrip, and stp.

Referenced by Clear(), and NtpSRRecord::ClearStrips().

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

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

Definition at line 79 of file NtpSRCluster.cxx.

References Print().

00079                                                      {
00080   //
00081   //  Purpose:  Print strip in form supported by TObject::Print.
00082   //
00083   //  Arguments: option (not used)
00084   //
00085 
00086   Print(std::cout);
00087   return;
00088 
00089 }

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

Definition at line 61 of file NtpSRCluster.cxx.

References avgdev, begplane, endplane, index, ndigit, nplane, nstpcnt, nstrip, ph, planeview, slc, slope, tposvtx, and zvtx.

Referenced by Print().

00061                                                     {
00062   //
00063   //  Purpose:  Print strip data on ostream.
00064   //
00065 
00066   os << "NtpSRCluster::Print" << endl;
00067   os << "index " << index << " slc " << slc << " ndigit " << ndigit
00068      << " nstpcnt " << nstpcnt << " nstrip " << nstrip << " planeview " 
00069      << planeview << " id " << id << endl;
00070   os << "plane(n,beg,end)(" << nplane << "," << begplane << "," 
00071      << endplane << ")" << " vtx(z,tpos)(" << zvtx << ","  
00072      << tposvtx << ") slope " <<  slope 
00073      << " avgdev " << avgdev << endl;
00074   os << ph;
00075   return os;
00076 
00077 }


Member Data Documentation

begin plane

Definition at line 45 of file NtpSRCluster.h.

Referenced by NtpSRModule::FillNtpCluster(), MadCluAnalysis::PID(), and Print().

end plane

Definition at line 46 of file NtpSRCluster.h.

Referenced by NtpSRModule::FillNtpCluster(), and Print().

UShort_t NtpSRCluster::id

index of this shower in shower array

Definition at line 42 of file NtpSRCluster.h.

Referenced by NtpSRModule::FillNtpCluster(), and Print().

number of digits in cluster 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 51 of file NtpSRCluster.h.

Referenced by NtpSRModule::FillNtpCluster(), and Print().

number of planes

Definition at line 44 of file NtpSRCluster.h.

Referenced by NtpSRModule::FillNtpCluster(), and Print().

number of strips in cluster

Definition at line 55 of file NtpSRCluster.h.

Referenced by Print().

index of associated slice in slice array

Definition at line 49 of file NtpSRCluster.h.

Referenced by NtpSRModule::FillNtpCluster(), and Print().

vertex in tpos

Definition at line 61 of file NtpSRCluster.h.

Referenced by MadMKAnalysis::CreatePAN(), MadTVAnalysis::CreatePAN(), NtpSRModule::FillNtpCluster(), and Print().

vertex in z

Definition at line 60 of file NtpSRCluster.h.

Referenced by NtpSRModule::FillNtpCluster(), and Print().


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

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1