StripCluster Class Reference

#include <UtilStrip.h>

List of all members.

Public Member Functions

 StripCluster ()
void Clear ()
void AddStripDList (const StripDList &sdl)
double CentU ()
double CentV ()
double CentZ ()
double RMSU ()
double RMSV ()
double RMSZ ()
double WCentU ()
double WCentV ()
double WCentZ ()
double WRMSU ()
double WRMSV ()
double WRMSZ ()

Public Attributes

std::set< SetStripStrips
unsigned int NStrips
double SumU
double SumV
double SumZ
double SumSqU
double SumSqV
double SumSqZ
double SumPE
double WSumU
double WSumV
double WSumZ
double WSumSqU
double WSumSqV
double WSumSqZ

Friends

bool operator< (const StripCluster &scl1, const StripCluster &scl2)

Detailed Description

Definition at line 62 of file UtilStrip.h.


Constructor & Destructor Documentation

StripCluster::StripCluster (  )  [inline]

Definition at line 64 of file UtilStrip.h.

References Clear().

00064 {Clear();}


Member Function Documentation

void StripCluster::AddStripDList ( const StripDList sdl  ) 

Definition at line 109 of file UtilStrip.cxx.

References NStrips, StripDList::PE, Strips, SumPE, SumSqU, SumSqV, SumSqZ, SumU, SumV, SumZ, StripDList::TCIndex, StripDList::U, StripDList::V, WSumSqU, WSumSqV, WSumSqZ, WSumU, WSumV, WSumZ, and StripDList::Z.

00109                                                       {
00110   NStrips++;
00111   SumPE += sdl.PE;
00112 
00113   SumU += sdl.U;
00114   SumV += sdl.V;
00115   SumZ += sdl.Z;
00116   
00117   SumSqU += sdl.U * sdl.U;
00118   SumSqV += sdl.V * sdl.V;
00119   SumSqZ += sdl.Z * sdl.Z;
00120 
00121   WSumU += sdl.U * sdl.PE;
00122   WSumV += sdl.V * sdl.PE;
00123   WSumZ += sdl.Z * sdl.PE;
00124   
00125   WSumSqU += sdl.U * sdl.U * sdl.PE;
00126   WSumSqV += sdl.V * sdl.V * sdl.PE;
00127   WSumSqZ += sdl.Z * sdl.Z * sdl.PE;
00128 
00129   Strips.insert(SetStrip(sdl.TCIndex,false,sdl.PE));
00130 }

double StripCluster::CentU (  )  [inline]

Definition at line 75 of file UtilStrip.h.

References NStrips, and SumU.

Referenced by RMSU().

00075 {return SumU/(double)NStrips;}

double StripCluster::CentV (  )  [inline]

Definition at line 76 of file UtilStrip.h.

References NStrips, and SumV.

Referenced by RMSV().

00076 {return SumV/(double)NStrips;}

double StripCluster::CentZ (  )  [inline]

Definition at line 77 of file UtilStrip.h.

References NStrips, and SumZ.

Referenced by RMSZ().

00077 {return SumZ/(double)NStrips;}

void StripCluster::Clear (  ) 

Definition at line 99 of file UtilStrip.cxx.

References NStrips, Strips, SumPE, SumSqU, SumSqV, SumSqZ, SumU, SumV, SumZ, WSumSqU, WSumSqV, WSumSqZ, WSumU, WSumV, and WSumZ.

Referenced by StripCluster().

00099                          {
00100   NStrips = 0;
00101   SumU = SumV = SumZ = SumSqU = SumSqV = SumSqZ = 0.0;
00102 
00103   SumPE = 0.0;
00104   WSumU = WSumV = WSumZ = WSumSqU = WSumSqV = WSumSqZ = 0.0;
00105 
00106   Strips.clear();
00107 }

double StripCluster::RMSU (  ) 

Definition at line 132 of file UtilStrip.cxx.

References CentU(), NStrips, and SumSqU.

00132                           {
00133   return TMath::Sqrt(SumSqU/(double)NStrips + (CentU()*CentU()));
00134 }

double StripCluster::RMSV (  ) 

Definition at line 136 of file UtilStrip.cxx.

References CentV(), NStrips, and SumSqV.

00136                           {
00137   return TMath::Sqrt(SumSqV/(double)NStrips + (CentV()*CentV()));
00138 }

double StripCluster::RMSZ (  ) 

Definition at line 140 of file UtilStrip.cxx.

References CentZ(), NStrips, and SumSqZ.

00140                           {
00141   return TMath::Sqrt(SumSqZ/(double)NStrips + (CentZ()*CentZ()));
00142 }

double StripCluster::WCentU (  )  [inline]

Definition at line 87 of file UtilStrip.h.

References SumPE, and WSumU.

00087 {return WSumU/SumPE;}

double StripCluster::WCentV (  )  [inline]

Definition at line 88 of file UtilStrip.h.

References SumPE, and WSumV.

00088 {return WSumV/SumPE;}

double StripCluster::WCentZ (  )  [inline]

Definition at line 89 of file UtilStrip.h.

References SumPE, and WSumZ.

00089 {return WSumZ/SumPE;}

double StripCluster::WRMSU (  ) 
double StripCluster::WRMSV (  ) 
double StripCluster::WRMSZ (  ) 

Friends And Related Function Documentation

bool operator< ( const StripCluster scl1,
const StripCluster scl2 
) [friend]

Definition at line 96 of file UtilStrip.h.

00097     {return(scl1.NStrips > scl2.NStrips);}


Member Data Documentation

unsigned int StripCluster::NStrips

Definition at line 72 of file UtilStrip.h.

Referenced by AddStripDList(), CentU(), CentV(), CentZ(), Clear(), RMSU(), RMSV(), and RMSZ().

Definition at line 69 of file UtilStrip.h.

Referenced by AddStripDList(), and Clear().

Definition at line 84 of file UtilStrip.h.

Referenced by AddStripDList(), Clear(), WCentU(), WCentV(), and WCentZ().

Definition at line 73 of file UtilStrip.h.

Referenced by AddStripDList(), Clear(), and RMSU().

Definition at line 73 of file UtilStrip.h.

Referenced by AddStripDList(), Clear(), and RMSV().

Definition at line 73 of file UtilStrip.h.

Referenced by AddStripDList(), Clear(), and RMSZ().

Definition at line 73 of file UtilStrip.h.

Referenced by AddStripDList(), CentU(), and Clear().

Definition at line 73 of file UtilStrip.h.

Referenced by AddStripDList(), CentV(), and Clear().

Definition at line 73 of file UtilStrip.h.

Referenced by AddStripDList(), CentZ(), and Clear().

Definition at line 85 of file UtilStrip.h.

Referenced by AddStripDList(), and Clear().

Definition at line 85 of file UtilStrip.h.

Referenced by AddStripDList(), and Clear().

Definition at line 85 of file UtilStrip.h.

Referenced by AddStripDList(), and Clear().

Definition at line 85 of file UtilStrip.h.

Referenced by AddStripDList(), Clear(), and WCentU().

Definition at line 85 of file UtilStrip.h.

Referenced by AddStripDList(), Clear(), and WCentV().

Definition at line 85 of file UtilStrip.h.

Referenced by AddStripDList(), Clear(), and WCentZ().


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

Generated on 15 Nov 2018 for loon by  doxygen 1.6.1