OMSim
Geant4 for IceCube optical module studies
Loading...
Searching...
No Matches
ROOTHitManager.hh
Go to the documentation of this file.
1
5#pragma once
6
7#include "TFile.h"
8#include "TTree.h"
9#include "G4Types.hh"
10#include "G4ThreeVector.hh"
11#include "TString.h"
12
18 Int_t eventID;
19 Double_t hitTime;
20 Double_t flightTime;
21 Double_t entryTime;
22 Double_t pathLenght;
23 Double_t generationDetectionDistance;
24 Double_t energy;
25 Int_t PMTnr;
26 Double_t dir_x;
27 Double_t dir_y;
28 Double_t dir_z;
29 Double_t localPos_x;
30 Double_t localPos_y;
31 Double_t localPos_z;
32 Double_t globalPos_x;
33 Double_t globalPos_y;
34 Double_t globalPos_z;
35 Double_t deltaPos_x;
36 Double_t deltaPos_y;
37 Double_t deltaPos_z;
38 Double_t wavelength;
39 Int_t parentID;
40 TString parentType;
41 TString photonOrigin;
42 TString parentProcess;
43 Int_t nPhotoelectrons;
44};
45
51public:
56 ROOTHitManager(const std::string& filename);
57
62
67 void FillPhotonInfo(const PhotonInfoROOT& info);
68
69private:
70 TFile* m_file;
71 TTree* m_tree;
72 PhotonInfoROOT m_photonInfo;
73};
Manages ROOT file output for photon hit data.
Definition ROOTHitManager.hh:50
~ROOTHitManager()
Destructor - writes and closes ROOT file.
Definition ROOTHitManager.cc:53
void FillPhotonInfo(const PhotonInfoROOT &info)
Fills the TTree with photon hit information.
Definition ROOTHitManager.cc:67
Structure for storing photon hit data in ROOT format.
Definition ROOTHitManager.hh:17