ScintCalPlane Class Reference

#include <ScintCalPlane.h>

List of all members.

Public Member Functions

 ScintCalPlane ()
 ScintCalPlane (UInt_t planenum)
virtual ~ScintCalPlane ()
virtual Float_t CorrectedPH () const
virtual Float_t MeanPHRSq () const
virtual Float_t MeanPHX () const
virtual Float_t MeanPHY () const
virtual Float_t PH () const
virtual void SetCorrectedPH (Float_t correctedph)
virtual void SingleHitUpdate (const Float_t hitph, const Float_t hitx, const Float_t hity)

Private Attributes

Float_t fcorrectedph
UInt_t fnumhits
Float_t fph
UInt_t fplanenum
Float_t ftotphx
Float_t ftotphy
Bool_t fparametersuptodate

Detailed Description

Definition at line 9 of file ScintCalPlane.h.


Constructor & Destructor Documentation

ScintCalPlane::ScintCalPlane (  ) 

Definition at line 12 of file ScintCalPlane.cxx.

00013 {
00014   fcorrectedph = 0.0;
00015   fnumhits = 0;
00016   fph = 0.0;
00017   fplanenum = 0;
00018   ftotphx = 0.0;
00019   ftotphy = 0.0;
00020 
00021   fparametersuptodate = false;
00022 }

ScintCalPlane::ScintCalPlane ( UInt_t  planenum  ) 

Definition at line 25 of file ScintCalPlane.cxx.

References fcorrectedph, fnumhits, fparametersuptodate, fph, fplanenum, ftotphx, and ftotphy.

00026 {
00027   fcorrectedph = 0.0;
00028   fnumhits = 0;
00029   fph = 0.0;
00030   fplanenum = planenum;
00031   ftotphx = 0.0;
00032   ftotphy = 0.0;
00033 
00034   fparametersuptodate = false;
00035 }

ScintCalPlane::~ScintCalPlane (  )  [virtual]

Definition at line 38 of file ScintCalPlane.cxx.

00039 {
00040 }


Member Function Documentation

Float_t ScintCalPlane::CorrectedPH (  )  const [virtual]

Definition at line 43 of file ScintCalPlane.cxx.

References fcorrectedph.

Referenced by ScintCalTrack::CorrectedPH(), ScintCalTrack::MeanPHX(), and ScintCalTrack::MeanPHY().

00044 {
00045   return fcorrectedph;
00046 }

Float_t ScintCalPlane::MeanPHRSq (  )  const [virtual]

Definition at line 49 of file ScintCalPlane.cxx.

References MeanPHX(), and MeanPHY().

00050 {
00051   Float_t meanphx = this->MeanPHX();
00052   if (-9999.9 == meanphx){return meanphx;}
00053   Float_t meanphy = this->MeanPHY();
00054   if (-9999.9 == meanphy){return meanphy;}
00055   Float_t meanphrsq = meanphx*meanphx + meanphy*meanphy;
00056   return meanphrsq;
00057 }

Float_t ScintCalPlane::MeanPHX (  )  const [virtual]

Definition at line 60 of file ScintCalPlane.cxx.

References fph, and ftotphx.

Referenced by MeanPHRSq(), and ScintCalTrack::MeanPHX().

00061 {
00062   if (fph){return ftotphx/fph;}
00063   else {return -9999.9;}
00064 }

Float_t ScintCalPlane::MeanPHY (  )  const [virtual]

Definition at line 67 of file ScintCalPlane.cxx.

References fph, and ftotphy.

Referenced by MeanPHRSq(), and ScintCalTrack::MeanPHY().

00068 {
00069   if (fph){return ftotphy/fph;}
00070   else {return -9999.9;}
00071 }

Float_t ScintCalPlane::PH (  )  const [virtual]

Definition at line 74 of file ScintCalPlane.cxx.

References fph.

00075 {
00076   return fph;
00077 }

void ScintCalPlane::SetCorrectedPH ( Float_t  correctedph  )  [virtual]

Definition at line 80 of file ScintCalPlane.cxx.

References fcorrectedph.

00081 {
00082   fcorrectedph = correctedph;
00083 }

void ScintCalPlane::SingleHitUpdate ( const Float_t  hitph,
const Float_t  hitx,
const Float_t  hity 
) [virtual]

Definition at line 86 of file ScintCalPlane.cxx.

References fnumhits, fparametersuptodate, fph, ftotphx, and ftotphy.

Referenced by ScintCalTrack::ScintCalTrack().

00089 {
00090   ++fnumhits;
00091   fph += hitph;
00092   ftotphx += hitph*hitx;
00093   ftotphy += hitph*hity;
00094   fparametersuptodate = false;
00095 }


Member Data Documentation

Float_t ScintCalPlane::fcorrectedph [private]

Definition at line 26 of file ScintCalPlane.h.

Referenced by CorrectedPH(), ScintCalPlane(), and SetCorrectedPH().

UInt_t ScintCalPlane::fnumhits [private]

Definition at line 27 of file ScintCalPlane.h.

Referenced by ScintCalPlane(), and SingleHitUpdate().

Definition at line 33 of file ScintCalPlane.h.

Referenced by ScintCalPlane(), and SingleHitUpdate().

Float_t ScintCalPlane::fph [private]

Definition at line 28 of file ScintCalPlane.h.

Referenced by MeanPHX(), MeanPHY(), PH(), ScintCalPlane(), and SingleHitUpdate().

UInt_t ScintCalPlane::fplanenum [private]

Definition at line 29 of file ScintCalPlane.h.

Referenced by ScintCalPlane().

Float_t ScintCalPlane::ftotphx [private]

Definition at line 30 of file ScintCalPlane.h.

Referenced by MeanPHX(), ScintCalPlane(), and SingleHitUpdate().

Float_t ScintCalPlane::ftotphy [private]

Definition at line 31 of file ScintCalPlane.h.

Referenced by MeanPHY(), ScintCalPlane(), and SingleHitUpdate().


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

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1