LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
IonizationAndScintillation.h
Go to the documentation of this file.
1 #ifndef LARG4_IONIZATIONANDSCINTILLATION_H
9 #define LARG4_IONIZATIONANDSCINTILLATION_H
10 
11 #include <cstring>
12 
14 
15 #include "Geant4/G4Step.hh"
16 
17 #include "TH1.h"
18 #include "TH2.h"
19 
20 namespace CLHEP { class HepRandomEngine; }
21 
22 namespace larg4 {
23 
24  // The Ionization and Scintillation singleton
26  {
27  public:
28 
29  static IonizationAndScintillation* CreateInstance(CLHEP::HepRandomEngine& engine);
30  static IonizationAndScintillation* Instance();
31 
32  // Method to reset the internal variables held in the ISCalculation
33  // This method should be called at the start of any G4Step
34  void Reset(const G4Step* step);
35 
36  double EnergyDeposit() const { return fISCalc->EnergyDeposit(); }
37  double VisibleEnergyDeposit() const { return fISCalc->VisibleEnergyDeposit(); }
38  double NumberIonizationElectrons() const { return fISCalc->NumberIonizationElectrons(); }
39  double NumberScintillationPhotons() const { return fISCalc->NumberScintillationPhotons(); }
40  double StepSizeLimit() const { return fISCalc->StepSizeLimit(); }
41 
42  private:
43 
44  IonizationAndScintillation(CLHEP::HepRandomEngine& engine);
46 
48  std::string fISCalculator;
50  G4Step const* fStep;
52  int fTrkID;
53 
55  TH1F* fStepSize;
63  CLHEP::HepRandomEngine& fEngine;
64  };
65 
66 } // namespace larg4
67 
68 
69 #endif // LARG4_IONIZATIONANDSCINTILLATION
TH1F * fPhotonsPerEDep
histogram of photons per MeV deposited
TH1F * fElectronsPerEDep
histogram of electrons per MeV deposited
Geant4 interface.
G4Step const * fStep
pointer to the current G4 step
TH1F * fElectronsPerLength
histogram of electrons per cm
ntupleExperimental Reset()
CLHEP::HepRandomEngine & fEngine
random engine
TH1F * fStepSize
histogram of the step sizes
Interface to algorithm class for a specific detector channel mapping.
TH1F * fElectronsPerStep
histogram of electrons per step
TH1F * fPhotonsPerStep
histogram of the photons per step
TH1F * fEnergyPerStep
histogram of the energy deposited per step
TH1F * fPhotonsPerLength
histogram of photons per cm
TH2F * fElectronsVsPhotons
histogram of electrons vs photons per step