BOSS 7.0.1
BESIII Offline Software System
Loading...
Searching...
No Matches
Simulation/BOOST/BesSim/BesSim-00-01-24/BesSim/BesRootIO.hh
Go to the documentation of this file.
1#ifndef BesRootIO_h
2#define BesRootIO_h 1
3
4
5#include "RootEventData/TMcHitTof.h"
6#include "RootEventData/TMcHitMdc.h"
7#include "RootEventData/TMcHitEvent.h"
8#include "RootEventData/TDigiEvent.h"
9#include "RootEventData/TEmcDigi.h"
10#include "G4Event.hh"
11#include "TFile.h"
12#include "TTree.h"
13
14class BesEventAction;
15class G4DigiManager;
16
17class BesRootIO
18{
19 public:
20 BesRootIO(G4int, G4int, G4int, G4int,
21 G4int, G4int ,G4int, G4int, G4String);
22
23 TFile *f;
24 TTree *HitTree;
25
27
28 public:
29 void SetMdcDigiFlag(G4int flag) {m_mdcDigiFlag=flag;}
30
32 void SaveHitRootEvent(G4int, const G4Event*);
35 private:
36 G4int m_mdcTruFlag;
37 G4int m_mdcDigiFlag;
38 G4int m_tofTruFlag;
39 G4int m_tofDigiFlag;
40 G4int m_emcTruFlag;
41 G4int m_emcDigiFlag;
42 G4int m_mucTruFlag;
43 G4int m_mucDigiFlag;
44 G4String m_rootFile;
45
46
47 Int_t m_trackIndex;
48
49 TMcHitEvent* m_TMcHitEvent;
50 TMcHitTof* m_TMcHitTof;
51 TMcHitMdc* m_TMcHitMdc;
52 TEmcDigi* m_TMmcDigi;
53
54 G4DigiManager* m_DigiMan;
55};
56
57#endif
void SaveMdcHitRoot()
void SaveHitRootEvent(G4int, const G4Event *)
void SaveEmcDigiRootEvent()
void SaveTofHitRoot()
BesRootIO(G4int, G4int, G4int, G4int, G4int, G4int, G4int, G4int, G4String)