OMSim
Geant4 for IceCube optical module studies
Loading...
Searching...
No Matches
OMSimSNAnalysis.hh
1
#pragma once
2
3
#include "G4Types.hh"
4
#include "G4String.hh"
5
#include "G4ThreeVector.hh"
6
7
#include "OMSimHitManager.hh"
8
9
#include <vector>
10
#include <fstream>
11
#include <tuple>
12
13
struct
SNEventStats
14
{
15
G4double neutrinoTime;
16
G4double meanEnergy;
17
G4double neutrinoEnergy;
18
G4double cosTheta;
19
G4double primaryEnergy;
20
G4double weight;
21
};
22
23
class
OMSimSNAnalysis
24
{
25
public
:
26
OMSimSNAnalysis
();
27
~OMSimSNAnalysis
(){};
28
33
static
OMSimSNAnalysis
&
getInstance
()
34
{
35
static
OMSimSNAnalysis
instance;
36
return
instance;
37
}
38
39
void
analyseEvent();
40
void
initEventStat();
41
void
processEvent();
42
void
writeHeaders();
43
void
writeInfoFileHeader();
44
void
writeDataFileHeader();
45
void
writeInfoFile();
46
void
writeDataFile();
47
48
G4ThreadLocal
static
SNEventStats
*m_eventStat;
49
G4ThreadLocal
static
bool
m_headerWasWritten;
50
51
private
:
52
G4String m_outputSufix;
53
};
54
OMSimSNAnalysis
Definition
OMSimSNAnalysis.hh:24
OMSimSNAnalysis::getInstance
static OMSimSNAnalysis & getInstance()
Returns the singleton instance of the OMSimSNAnalysis.
Definition
OMSimSNAnalysis.hh:33
SNEventStats
Definition
OMSimSNAnalysis.hh:14
simulations
supernova
include
OMSimSNAnalysis.hh
Generated on Sat Mar 28 2026 19:15:27 for OMSim by
1.9.8