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

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
UShort_t planeview
UShort_t nplane
UShort_t begplane
UShort_t endplane
UShort_t id
Short_t slc
Int_t ndigit
Int_t nstpcnt
Int_t nstrip
Int_t * stp
Float_t probem
Float_t zvtx
Float_t tposvtx
Float_t slope
Float_t avgdev
NtpSRStripPulseHeight ph


Constructor & Destructor Documentation

NtpSRCluster::NtpSRCluster  )  [inline]
 

Definition at line 22 of file NtpSRCluster.h.

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

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 id, MSG, 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, 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, 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

Float_t NtpSRCluster::avgdev
 

Definition at line 63 of file NtpSRCluster.h.

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

UShort_t NtpSRCluster::begplane
 

Definition at line 45 of file NtpSRCluster.h.

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

UShort_t NtpSRCluster::endplane
 

Definition at line 46 of file NtpSRCluster.h.

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

UShort_t NtpSRCluster::id
 

Definition at line 47 of file NtpSRCluster.h.

Referenced by MadMKAnalysis::CreatePAN(), MadCluAnalysis::DataDistributions(), MadEvDisplay::Display(), NtpSRModule::FillNtpCluster(), NtpSRCluster(), MadCluAnalysis::PassDataCleaningCuts(), MadCluAnalysis::PID(), MadCluAnalysis::PIDPlot(), MadCluAnalysis::Plot(), MadQuantities::RecoEMFrac(), and MadCluAnalysis::RecoEMFrac().

UShort_t NtpSRCluster::index
 

Definition at line 42 of file NtpSRCluster.h.

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

Int_t NtpSRCluster::ndigit
 

Definition at line 51 of file NtpSRCluster.h.

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

UShort_t NtpSRCluster::nplane
 

Definition at line 44 of file NtpSRCluster.h.

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

Int_t NtpSRCluster::nstpcnt
 

Definition at line 55 of file NtpSRCluster.h.

Referenced by NtpSRCluster(), and Print().

Int_t NtpSRCluster::nstrip
 

Definition at line 56 of file NtpSRCluster.h.

Referenced by AddStripAt(), ClearStrips(), MadEvDisplay::Display(), NtpSRCluster(), MadCluAnalysis::PIDPlot(), and Print().

NtpSRStripPulseHeight NtpSRCluster::ph
 

Definition at line 65 of file NtpSRCluster.h.

Referenced by MadMKAnalysis::CreatePAN(), MadCluAnalysis::DataDistributions(), NtpSRModule::FillNtpCluster(), MadCluAnalysis::PID(), MadCluAnalysis::PIDPlot(), MadCluAnalysis::Plot(), MadQuantities::RecoEMFrac(), and MadCluAnalysis::RecoEMFrac().

UShort_t NtpSRCluster::planeview
 

Definition at line 43 of file NtpSRCluster.h.

Referenced by MadMKAnalysis::CreatePAN(), MadCluAnalysis::DataDistributions(), MadEvDisplay::Display(), NtpSRModule::FillNtpCluster(), NtpSRCluster(), MadCluAnalysis::PassDataCleaningCuts(), MadCluAnalysis::PID(), MadCluAnalysis::PIDPlot(), MadCluAnalysis::Plot(), Print(), MadQuantities::RecoEMFrac(), and MadCluAnalysis::RecoEMFrac().

Float_t NtpSRCluster::probem
 

Definition at line 59 of file NtpSRCluster.h.

Referenced by MadCluAnalysis::DataDistributions(), MadEvDisplay::Display(), NtpSRModule::FillNtpCluster(), NtpSRCluster(), MadCluAnalysis::PID(), MadCluAnalysis::Plot(), MadQuantities::RecoEMFrac(), and MadCluAnalysis::RecoEMFrac().

Short_t NtpSRCluster::slc
 

Definition at line 49 of file NtpSRCluster.h.

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

Float_t NtpSRCluster::slope
 

Definition at line 62 of file NtpSRCluster.h.

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

Int_t* NtpSRCluster::stp
 

Definition at line 57 of file NtpSRCluster.h.

Referenced by AddStripAt(), ClearStrips(), MadEvDisplay::Display(), and NtpSRCluster().

Float_t NtpSRCluster::tposvtx
 

Definition at line 61 of file NtpSRCluster.h.

Referenced by MadMKAnalysis::CreatePAN(), NtpSRModule::FillNtpCluster(), NtpSRCluster(), MadCluAnalysis::PIDPlot(), and Print().

Float_t NtpSRCluster::zvtx
 

Definition at line 60 of file NtpSRCluster.h.

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


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