CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
Simulation/BOOST/BesSim/BesSim-00-04-16/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/TMcHitCgem.h"
8#include "RootEventData/TMcHitEvent.h"
9#include "RootEventData/TDigiEvent.h"
10#include "RootEventData/TEmcDigi.h"
11#include "G4Event.hh"
12#include "TFile.h"
13#include "TTree.h"
14
15class BesEventAction;
16class G4DigiManager;
17
18class BesRootIO
19{
20 public:
21 BesRootIO(G4int, G4int, G4int, G4int, G4int, G4int,
22 G4int, G4int ,G4int, G4int, G4String);
23
24 TFile *f;
25 TTree *HitTree;
26
28
29 public:
30 void SetMdcDigiFlag(G4int flag) {m_mdcDigiFlag=flag;}
31 void SetCgemDigiFlag(G4int flag) {m_cgemDigiFlag=flag;}
32
34 void SaveHitRootEvent(G4int, const G4Event*);
38 private:
39 G4int m_mdcTruFlag;
40 G4int m_cgemTruFlag;
41 G4int m_mdcDigiFlag;
42 G4int m_cgemDigiFlag;
43 G4int m_tofTruFlag;
44 G4int m_tofDigiFlag;
45 G4int m_emcTruFlag;
46 G4int m_emcDigiFlag;
47 G4int m_mucTruFlag;
48 G4int m_mucDigiFlag;
49 G4String m_rootFile;
50
51
52 Int_t m_trackIndex;
53
54 TMcHitEvent* m_TMcHitEvent;
55 TMcHitTof* m_TMcHitTof;
56 TMcHitMdc* m_TMcHitMdc;
57 TMcHitCgem* m_TMcHitCgem;
58 TEmcDigi* m_TMmcDigi;
59
60 G4DigiManager* m_DigiMan;
61};
62
63#endif
void SaveMdcHitRoot()
void SaveHitRootEvent(G4int, const G4Event *)
void SaveCgemHitRoot()
void SaveEmcDigiRootEvent()
BesRootIO(G4int, G4int, G4int, G4int, G4int, G4int, G4int, G4int, G4int, G4int, G4String)
void SaveTofHitRoot()