All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ScintTimeLAr.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 // Class: ScintTimeLAr
3 // Plugin Type: tool
4 // File: ScintTimeLAr_tool.cc ScintTimeLAr.h
5 // Description:
6 // Generate a random number for timing of LAr scintillation
7 // Oct. 8 by Mu Wei
8 ////////////////////////////////////////////////////////////////////////
9 #ifndef ScintTimeLAr_H
10 #define ScintTimeLAr_H
11 
13 
14 namespace fhicl {
15  class ParameterSet;
16 }
17 
18 namespace phot
19 {
20  class ScintTimeLAr : public ScintTime
21  {
22  public:
23  explicit ScintTimeLAr(fhicl::ParameterSet const& pset);
24  void GenScintTime(bool is_fast, CLHEP::HepRandomEngine& engine);
25 
26  private:
27  int LogLevel;
28 
29  // parameters for the shape of argon scinitllation light time distribution
30  double SRTime; // PureLAr: rising time of slow LAr scinitllation;
31  double SDTime; // PureLAr: decay time of slow LAr scintillation;
32  double FRTime; // PureLAr: rising time of fast LAr scinitllation;
33  double FDTime; // PureLAr: decay time of fast LAr scintillation;
34 
35  // general functions
36  double single_exp(double t, double tau2) const;
37  double bi_exp(double t, double tau1, double tau2) const;
38  };
39 }
40 #endif
double bi_exp(double t, double tau1, double tau2) const
Definition: ScintTimeLAr.cc:43
void GenScintTime(bool is_fast, CLHEP::HepRandomEngine &engine)
Definition: ScintTimeLAr.cc:54
ScintTimeLAr(fhicl::ParameterSet const &pset)
Definition: ScintTimeLAr.cc:19
double single_exp(double t, double tau2) const
Definition: ScintTimeLAr.cc:37