EmcScSectorRec Class Reference
[Tower clustering]

#include <EmcScSectorRec.h>

Inherits EmcSectorRec.

Inheritance diagram for EmcScSectorRec:

Inheritance graph
[legend]
List of all members.

Detailed Description

PbSc implementation of EmcSectorRec.

Definition at line 16 of file EmcScSectorRec.h.

Public Member Functions

 EmcScSectorRec ()
virtual ~EmcScSectorRec ()
virtual void CorrectPosition (float energy, float x, float y, float *xcorr, float *ycorr, bool callSetPar=true)
virtual void CorrectEnergy (float energy, float x, float y, float *ecorr)
virtual void CorrectECore (float ecore, float x, float y, float *ecorecorr)
virtual void CalculateErrors (float e, float x, float y, float *pde, float *pdx, float *pdy, float *pdz)
virtual void SetProfileParameters (int, float, float, float)
virtual float PredictEnergy (float, float, float)
virtual void TwoGamma (int, EmcModule *, float *, float *, float *, float *, float *, float *, float *)
virtual float ClusterChisq (int, EmcModule *, float, float, float, int &ndf)
virtual float Chi2Limit (int ndf)
virtual float Chi2Correct (float chi2, int ndf)
virtual void SetTowerThreshold (float Thresh)
virtual void getTowerPos (int ix, int iy, float &x, float &y)
void TowersToSector (float, float, float &, float &)
 Converts coordinates in units of towers into cm's (Local coord. system).
void TowersToSector (int, int, float &, float &)
 Returns coordinates of the tower centers in cm's (Local coord. system).
void SectorToTowers (float, float, int &, int &)
 Converts Local Sector coordinates in cm into integer tower numbers.

Protected Attributes

float fSin4T
float fSinTx
float fSinTy
float fPpar1
float fPpar2
float fPpar3
float fPpar4
float fPshiftx
float fPshifty

Static Protected Attributes

static float fgEpar00 = 0.005
static float fgEpar0 = 0.0014
static float fgEpar1 = 0.03
static float fgEpar2 = -0.03
static float fgEpar3 = 0.
static float fgEpar4 = 4.0


Constructor & Destructor Documentation

EmcScSectorRec::EmcScSectorRec  )  [inline]
 

Definition at line 43 of file EmcScSectorRec.h.

References SetTowerThreshold().

virtual EmcScSectorRec::~EmcScSectorRec  )  [inline, virtual]
 

Definition at line 44 of file EmcScSectorRec.h.


Member Function Documentation

void EmcScSectorRec::CalculateErrors float  e,
float  x,
float  y,
float *  pde,
float *  pdx,
float *  pdy,
float *  pdz
[virtual]
 

Implements EmcSectorRec.

Definition at line 218 of file EmcScSectorRec.cxx.

References fSinTx, fSinTy, and EmcSectorRec::SectorToGlobalErr().

float EmcScSectorRec::Chi2Correct float  chi2,
int  ndf
[virtual]
 

Implements EmcSectorRec.

Definition at line 522 of file EmcScSectorRec.cxx.

float EmcScSectorRec::Chi2Limit int  ndf  )  [virtual]
 

Implements EmcSectorRec.

Definition at line 501 of file EmcScSectorRec.cxx.

References EmcSectorRec::fgChi2Level, and EmcCluster::min().

float EmcScSectorRec::ClusterChisq int  ,
EmcModule ,
float  ,
float  ,
float  ,
int &  ndf
[virtual]
 

Implements EmcSectorRec.

Definition at line 473 of file EmcScSectorRec.cxx.

References EmcModule::amp, fgEpar0, fgEpar00, fgEpar1, fgEpar2, fgEpar3, fgEpar4, fSin4T, and PredictEnergy().

void EmcScSectorRec::CorrectECore float  ecore,
float  x,
float  y,
float *  ecorecorr
[virtual]
 

Implements EmcSectorRec.

Definition at line 131 of file EmcScSectorRec.cxx.

References CorrectEnergy(), and EmcSectorRec::GetImpactAngle().

void EmcScSectorRec::CorrectEnergy float  energy,
float  x,
float  y,
float *  ecorr
[virtual]
 

Implements EmcSectorRec.

Definition at line 105 of file EmcScSectorRec.cxx.

References EmcSectorRec::GetImpactAngle().

Referenced by CorrectECore().

void EmcScSectorRec::CorrectPosition float  energy,
float  x,
float  y,
float *  xcorr,
float *  ycorr,
bool  callSetPar = true
[virtual]
 

Implements EmcSectorRec.

Definition at line 157 of file EmcScSectorRec.cxx.

References EmcCluster::ABS(), fSinTx, fSinTy, EmcSectorRec::GetModSizex(), EmcSectorRec::GetModSizey(), EmcCluster::lowint(), and SetProfileParameters().

void EmcScSectorRec::getTowerPos int  ix,
int  iy,
float &  x,
float &  y
[virtual]
 

Implements EmcSectorRec.

Definition at line 553 of file EmcScSectorRec.cxx.

float EmcScSectorRec::PredictEnergy float  ,
float  ,
float 
[virtual]
 

Implements EmcSectorRec.

Definition at line 299 of file EmcScSectorRec.cxx.

References EmcCluster::ABS(), fPpar1, fPpar2, fPpar3, fPpar4, fPshiftx, fPshifty, r3, and SetProfileParameters().

Referenced by ClusterChisq().

void EmcScSectorRec::SectorToTowers float  ,
float  ,
int &  ,
int & 
[virtual]
 

Converts Local Sector coordinates in cm into integer tower numbers.

Implements EmcSectorRec.

Definition at line 580 of file EmcScSectorRec.cxx.

References EmcSectorRec::fModSizex, and EmcSectorRec::fModSizey.

void EmcScSectorRec::SetProfileParameters int  ,
float  ,
float  ,
float 
[virtual]
 

Implements EmcSectorRec.

Definition at line 247 of file EmcScSectorRec.cxx.

References EmcCluster::ABS(), EmcSectorRec::fModSizex, EmcSectorRec::fModSizey, fPpar1, fPpar2, fPpar3, fPpar4, fPshiftx, fPshifty, fSin4T, fSinTx, fSinTy, EmcSectorRec::fVx, EmcSectorRec::fVy, EmcSectorRec::fVz, and EmcSectorRec::GlobalToSector().

Referenced by CorrectPosition(), and PredictEnergy().

void EmcScSectorRec::SetTowerThreshold float  Thresh  )  [virtual]
 

Implements EmcSectorRec.

Definition at line 544 of file EmcScSectorRec.cxx.

References fgEpar0, fgEpar00, EmcSectorRec::fgTowerThresh, and EmcCluster::max().

Referenced by EmcScSectorRec(), and mEmcClusterNewModule::SetTowerThreshold().

void EmcScSectorRec::TowersToSector int  ,
int  ,
float &  ,
float & 
[virtual]
 

Returns coordinates of the tower centers in cm's (Local coord. system).

Implements EmcSectorRec.

Definition at line 573 of file EmcScSectorRec.cxx.

References EmcSectorRec::fModSizex, and EmcSectorRec::fModSizey.

void EmcScSectorRec::TowersToSector float  ,
float  ,
float &  ,
float & 
[virtual]
 

Converts coordinates in units of towers into cm's (Local coord. system).

Implements EmcSectorRec.

Definition at line 562 of file EmcScSectorRec.cxx.

References EmcSectorRec::fModSizex, and EmcSectorRec::fModSizey.

void EmcScSectorRec::TwoGamma int  ,
EmcModule ,
float *  ,
float *  ,
float *  ,
float *  ,
float *  ,
float *  ,
float * 
[virtual]
 

Implements EmcSectorRec.

Definition at line 323 of file EmcScSectorRec.cxx.

References EmcCluster::ABS(), EmcModule::amp, EmcSectorRec::fNx, EmcSectorRec::Momenta(), and r.


Member Data Documentation

float EmcScSectorRec::fgEpar0 = 0.0014 [static, protected]
 

Definition at line 23 of file EmcScSectorRec.h.

Referenced by ClusterChisq(), and SetTowerThreshold().

float EmcScSectorRec::fgEpar00 = 0.005 [static, protected]
 

Definition at line 22 of file EmcScSectorRec.h.

Referenced by ClusterChisq(), and SetTowerThreshold().

float EmcScSectorRec::fgEpar1 = 0.03 [static, protected]
 

Definition at line 24 of file EmcScSectorRec.h.

Referenced by ClusterChisq().

float EmcScSectorRec::fgEpar2 = -0.03 [static, protected]
 

Definition at line 25 of file EmcScSectorRec.h.

Referenced by ClusterChisq().

float EmcScSectorRec::fgEpar3 = 0. [static, protected]
 

Definition at line 26 of file EmcScSectorRec.h.

Referenced by ClusterChisq().

float EmcScSectorRec::fgEpar4 = 4.0 [static, protected]
 

Definition at line 27 of file EmcScSectorRec.h.

Referenced by ClusterChisq().

float EmcScSectorRec::fPpar1 [protected]
 

Definition at line 34 of file EmcScSectorRec.h.

Referenced by PredictEnergy(), and SetProfileParameters().

float EmcScSectorRec::fPpar2 [protected]
 

Definition at line 35 of file EmcScSectorRec.h.

Referenced by PredictEnergy(), and SetProfileParameters().

float EmcScSectorRec::fPpar3 [protected]
 

Definition at line 36 of file EmcScSectorRec.h.

Referenced by PredictEnergy(), and SetProfileParameters().

float EmcScSectorRec::fPpar4 [protected]
 

Definition at line 37 of file EmcScSectorRec.h.

Referenced by PredictEnergy(), and SetProfileParameters().

float EmcScSectorRec::fPshiftx [protected]
 

Definition at line 38 of file EmcScSectorRec.h.

Referenced by PredictEnergy(), and SetProfileParameters().

float EmcScSectorRec::fPshifty [protected]
 

Definition at line 39 of file EmcScSectorRec.h.

Referenced by PredictEnergy(), and SetProfileParameters().

float EmcScSectorRec::fSin4T [protected]
 

Definition at line 31 of file EmcScSectorRec.h.

Referenced by ClusterChisq(), and SetProfileParameters().

float EmcScSectorRec::fSinTx [protected]
 

Definition at line 32 of file EmcScSectorRec.h.

Referenced by CalculateErrors(), CorrectPosition(), and SetProfileParameters().

float EmcScSectorRec::fSinTy [protected]
 

Definition at line 33 of file EmcScSectorRec.h.

Referenced by CalculateErrors(), CorrectPosition(), and SetProfileParameters().


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