Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes

WCSimRecoParameters Class Reference

#include "WCSimRecoParameters.hh"

List of all members.

Public Member Functions

void RunPrintParameters ()
void SetSimpleTimeResolution ()
Bool_t SimpleTimeResolution ()
void SetSimpleTimeSlew ()
Bool_t SimpleTimeSlew ()
void SetSimpleRefractiveIndex ()
Bool_t SimpleRefractiveIndex ()
Double_t GetTimeResolution (Double_t Q)
Double_t GetTimeSlew (Double_t Q)
Double_t GetRefractiveIndex (Double_t r)
Double_t GetSimpleTimeResolution (Double_t Q)
Double_t GetSimpleTimeSlew ()
Double_t GetSimpleRefractiveIndex ()

Static Public Member Functions

static WCSimRecoParametersInstance ()
static void UseSimpleParameters ()
static void UseSimpleTimeResolution ()
static void UseSimpleTimeSlew ()
static void UseSimpleRefractiveIndex ()
static Double_t TimeResolution (Double_t Q)
static Double_t TimeSlew (Double_t Q)
static Double_t RefractiveIndex (Double_t r)
static void PrintParameters ()

Private Member Functions

 WCSimRecoParameters ()
 ~WCSimRecoParameters ()

Private Attributes

Bool_t fUseSimpleTimeResolution
Bool_t fUseSimpleTimeSlew
Bool_t fUseSimpleRefractiveIndex

Detailed Description

Definition at line 6 of file WCSimRecoParameters.hh.


Constructor & Destructor Documentation

WCSimRecoParameters::WCSimRecoParameters (  )  [private]

Definition at line 30 of file WCSimRecoParameters.cc.

References fUseSimpleRefractiveIndex, fUseSimpleTimeResolution, and fUseSimpleTimeSlew.

{
  std::cout << " *** WCSimRecoParameters::WCSimRecoParameters() *** " << std::endl;

  fUseSimpleTimeResolution = 0;
  fUseSimpleTimeSlew = 0;
  fUseSimpleRefractiveIndex = 0;
}

WCSimRecoParameters::~WCSimRecoParameters (  )  [private]

Definition at line 39 of file WCSimRecoParameters.cc.

{

}


Member Function Documentation

Double_t WCSimRecoParameters::GetRefractiveIndex ( Double_t  r  ) 

Definition at line 156 of file WCSimRecoParameters.cc.

Referenced by RefractiveIndex().

{
  Double_t c = 29.98;
  Double_t n0 = 1.33;
  Double_t L0 = 40.0;
  Double_t dndx = 0.00014;

  Double_t L = r/c;

  Double_t n = n0*(1.0+dndx*(L-L0));;
  
  return n;
}

Double_t WCSimRecoParameters::GetSimpleRefractiveIndex (  )  [inline]

Definition at line 38 of file WCSimRecoParameters.hh.

Referenced by RefractiveIndex().

{ return 1.33; }

Double_t WCSimRecoParameters::GetSimpleTimeResolution ( Double_t  Q  ) 

Definition at line 170 of file WCSimRecoParameters.cc.

Referenced by TimeResolution().

{  
  Double_t qpes = Q;
  if( qpes<0.25 ) qpes = 0.25;
  if( qpes>64.0 ) qpes = 64.0;

  Double_t res = 2.0/sqrt(qpes);

  return res;
}

Double_t WCSimRecoParameters::GetSimpleTimeSlew (  )  [inline]

Definition at line 37 of file WCSimRecoParameters.hh.

Referenced by TimeSlew().

{ return 0.0; }

Double_t WCSimRecoParameters::GetTimeResolution ( Double_t  Q  ) 

Definition at line 113 of file WCSimRecoParameters.cc.

Referenced by TimeResolution().

{  
  /*
   // Old Parameterisation (lifted from WCSim)
   // ========================================
   Double_t qpes = Q;
   if( qpes<0.5 ) qpes = 0.5;
   if( qpes>32.0 ) qpes = 32.0;
   Double_t res = 0.33 + sqrt(2.0/qpes);  
  */

  Double_t qpes = Q;
  if( qpes<0.25 ) qpes = 0.25;
  if( qpes>40.0 ) qpes = 40.0;

  Double_t c0 = +0.271;
  Double_t c1 = +3.037;
  Double_t c2 = +2.543;

  Double_t res = c0 
               + c1/sqrt(qpes) 
               + c2/qpes;
  
  return res;
}

Double_t WCSimRecoParameters::GetTimeSlew ( Double_t  Q  ) 

Definition at line 139 of file WCSimRecoParameters.cc.

Referenced by TimeSlew().

{
  Double_t qpes = Q;
  if( qpes<0.25 ) qpes = 0.25;
  if( qpes>40.0 ) qpes = 40.0;

  Double_t c0 = +3.406;
  Double_t c1 = -2.423;
  Double_t c2 = +0.335;

  Double_t dt = c0 
              + c1*log(qpes) 
              + c2*log(qpes)*log(qpes);

  return dt;
}

WCSimRecoParameters * WCSimRecoParameters::Instance (  )  [static]

Definition at line 13 of file WCSimRecoParameters.cc.

Referenced by PrintParameters(), RefractiveIndex(), TimeResolution(), TimeSlew(), UseSimpleRefractiveIndex(), UseSimpleTimeResolution(), and UseSimpleTimeSlew().

{
  if( !fgRecoParameters ){
    fgRecoParameters = new WCSimRecoParameters();
  }

  if( !fgRecoParameters ){
    assert(fgRecoParameters);
  }

  if( fgRecoParameters ){

  }

  return fgRecoParameters;
}

void WCSimRecoParameters::PrintParameters (  )  [static]
Double_t WCSimRecoParameters::RefractiveIndex ( Double_t  r  )  [static]
void WCSimRecoParameters::RunPrintParameters (  ) 

Definition at line 101 of file WCSimRecoParameters.cc.

References fUseSimpleRefractiveIndex, fUseSimpleTimeResolution, and fUseSimpleTimeSlew.

Referenced by PrintParameters().

{
  std::cout << " *** WCSimRecoParameters::PrintParameters() *** " << std::endl;

  std::cout << "  Reco Parameters: " << std::endl
            << "   UseSimpleTimeResolution = " << fUseSimpleTimeResolution << std::endl
            << "   UseSimpleTimeSlew = " << fUseSimpleTimeSlew << std::endl
            << "   UseSimpleRefractiveIndex = " << fUseSimpleRefractiveIndex << std::endl;

  return;
}

void WCSimRecoParameters::SetSimpleRefractiveIndex (  )  [inline]

Definition at line 29 of file WCSimRecoParameters.hh.

References fUseSimpleRefractiveIndex.

Referenced by UseSimpleRefractiveIndex().

void WCSimRecoParameters::SetSimpleTimeResolution (  )  [inline]

Definition at line 23 of file WCSimRecoParameters.hh.

References fUseSimpleTimeResolution.

Referenced by UseSimpleTimeResolution().

void WCSimRecoParameters::SetSimpleTimeSlew (  )  [inline]

Definition at line 26 of file WCSimRecoParameters.hh.

References fUseSimpleTimeSlew.

Referenced by UseSimpleTimeSlew().

Bool_t WCSimRecoParameters::SimpleRefractiveIndex (  )  [inline]

Definition at line 30 of file WCSimRecoParameters.hh.

References fUseSimpleRefractiveIndex.

Referenced by RefractiveIndex().

Bool_t WCSimRecoParameters::SimpleTimeResolution (  )  [inline]

Definition at line 24 of file WCSimRecoParameters.hh.

References fUseSimpleTimeResolution.

Referenced by TimeResolution().

Bool_t WCSimRecoParameters::SimpleTimeSlew (  )  [inline]

Definition at line 27 of file WCSimRecoParameters.hh.

References fUseSimpleTimeSlew.

Referenced by TimeSlew().

{ return fUseSimpleTimeSlew; }

Double_t WCSimRecoParameters::TimeResolution ( Double_t  Q  )  [static]
Double_t WCSimRecoParameters::TimeSlew ( Double_t  Q  )  [static]
void WCSimRecoParameters::UseSimpleParameters (  )  [static]
void WCSimRecoParameters::UseSimpleRefractiveIndex (  )  [static]
void WCSimRecoParameters::UseSimpleTimeResolution (  )  [static]
void WCSimRecoParameters::UseSimpleTimeSlew (  )  [static]

Member Data Documentation


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