Blinder::BlindingFunction Class Reference

List of all members.

Public Member Functions

 BlindingFunction ()
void SetParameters (TRandom *paramChooser, Int_t seed)
Float_t EventBlindProb (Float_t eventLength, Float_t eventEnergy)

Public Attributes

Float_t fLFreq
Float_t fEFreq
Float_t fLPhase
Float_t fEPhase

Detailed Description

Definition at line 59 of file Blinder.h.


Constructor & Destructor Documentation

Blinder::BlindingFunction::BlindingFunction (  ) 

Definition at line 46 of file Blinder.cxx.

References fEFreq, fEPhase, fLFreq, and fLPhase.

00047 {
00048   fLFreq  = 0;
00049   fEFreq  = 0;
00050   fLPhase = 0;
00051   fEPhase = 0;
00052 }


Member Function Documentation

Float_t Blinder::BlindingFunction::EventBlindProb ( Float_t  eventLength,
Float_t  eventEnergy 
)

Definition at line 67 of file Blinder.cxx.

References fEFreq, fEPhase, fLFreq, and fLPhase.

Referenced by Blinder::Ana(), Blinder::GetBlindingProb(), and Blinder::Reco().

00069 {
00070   float b1 = 0.5*(sin(length*fLFreq + fLPhase)+1.);
00071   float b2 = 0.5*(sin(energy*fEFreq + fEPhase)+1.);
00072   float f = 0.25 + b1*b2;
00073   if(f>1.0) f=1.0;
00074   return f; 
00075 
00076 }

void Blinder::BlindingFunction::SetParameters ( TRandom *  paramChooser,
Int_t  seed 
)

Definition at line 55 of file Blinder.cxx.

References fEFreq, fEPhase, fLFreq, and fLPhase.

Referenced by Blinder::Ana(), Blinder::Blinder(), Blinder::Config(), and Blinder::GetBlindingProb().

00056 {
00057   assert(paramChooser);
00058   paramChooser->SetSeed(seed);
00059   
00060   fLFreq  = paramChooser->Uniform(1.0/15.0, 1.0/500.0); // Lphase. 5-200 planes.
00061   fEFreq  = paramChooser->Uniform(1.0/0.8, 1.0/2.0) / 10000; // efreq. 10000 ~= 1GeV
00062   fLPhase = paramChooser->Uniform(0,3.14); // phase
00063   fEPhase = 3.14-fLPhase; 
00064 }


Member Data Documentation

Definition at line 66 of file Blinder.h.

Referenced by BlindingFunction(), EventBlindProb(), and SetParameters().

Definition at line 68 of file Blinder.h.

Referenced by BlindingFunction(), EventBlindProb(), and SetParameters().

Definition at line 65 of file Blinder.h.

Referenced by BlindingFunction(), EventBlindProb(), and SetParameters().

Definition at line 67 of file Blinder.h.

Referenced by BlindingFunction(), EventBlindProb(), and SetParameters().


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

Generated on 16 Jan 2018 for loon by  doxygen 1.6.1