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 
17 #include "fhiclcpp/ParameterSet.h"
18 #include "nurandom/RandomUtils/NuRandomService.h"
20 
21 // Random number engine
22 #include "CLHEP/Random/RandFlat.h"
23 #include <string>
24 
25 namespace phot
26 {
27  class ScintTimeLAr : public ScintTime
28  {
29  public:
30  explicit ScintTimeLAr(fhicl::ParameterSet const& pset);
31  void GenScintTime(bool is_fast, CLHEP::HepRandomEngine& engine) ;
32 
33  private:
34  int LogLevel;
35 
36  // parameters for the shape of argon scinitllation light time distribution
37  double SRTime; // PureLAr: rising time of slow LAr scinitllation;
38  double SDTime; // PureLAr: decay time of slow LAr scintillation;
39  double FRTime; // PureLAr: rising time of fast LAr scinitllation;
40  double FDTime; // PureLAr: decay time of fast LAr scintillation;
41 
42  // general functions
43  double single_exp(double t, double tau2);
44  double bi_exp(double t, double tau1, double tau2);
45  };
46 }
47 #endif
G4double tau1[100]
Definition: G4S2Light.cc:61
void GenScintTime(bool is_fast, CLHEP::HepRandomEngine &engine)
ScintTimeLAr(fhicl::ParameterSet const &pset)
double single_exp(double t, double tau2)
General LArSoft Utilities.
double bi_exp(double t, double tau1, double tau2)