CGEM BOSS 6.6.5.i
BESIII Offline Software System
Loading...
Searching...
No Matches
BesAsciiIO.hh
Go to the documentation of this file.
1//---------------------------------------------------------------------------//
2//// BOOST --- BESIII Object_Oriented Simulation Tool //
3////---------------------------------------------------------------------------//
4////Description: Persistent store of objects in BOOST
5////Author : Dengzy
6
7////Created: Mar, 2004
8////Modified:
9////Comment:
10////---------------------------------------------------------------------------//
11//// $Id:BesAsciiIO.hh
12
13#ifndef BesAsciiIO_h
14#define BesAsciiIO_h 1
15
16#include "G4Event.hh"
17#include "AsciiDmp/AsciiData.hh"
18
19class BesEventAction;
20class G4DigiManager;
21
23{
24 public:
25 BesAsciiIO(G4int, G4int, G4int, G4int, G4int,
26 G4int, G4int ,G4int, G4int, G4int, G4String) ;
28
29 public:
30 void SetMdcTruFlag (G4int flag) { m_mdcTruFlag=flag ;}
31 void SetCgemTruFlag (G4int flag) { m_cgemTruFlag=flag ;}
32 void SetTofTruFlag (G4int flag) { m_tofTruFlag=flag ;}
33 void SetEmcTruFlag (G4int flag) { m_emcTruFlag=flag ;}
34 void SetMucTruFlag (G4int flag) { m_mucTruFlag=flag ;}
35
36 void SetMdcDigiFlag ( G4int flag ) { m_mdcDigiFlag=flag ;}
37 void SetCgemDigiFlag ( G4int flag ) { m_cgemDigiFlag=flag ;}
38 void SetTofDigiFlag ( G4int flag ) { m_tofDigiFlag=flag ;}
39 void SetEmcDigiFlag ( G4int flag ) { m_emcDigiFlag=flag ;}
40 void SetMucDigiFlag ( G4int flag ) { m_mucDigiFlag=flag ;}
41 void SetAsciiFile ( G4String name ) { m_asciiFile=name ;}
42
43 void SaveAsciiEvents(G4int, const G4Event*);
44
45 void SaveDecayMode ( EVENT& );
46 void SaveTrackTruth ( EVENT& );
47 void SaveVertexTruth ( EVENT& );
48 void SaveMdcTruth ( EVENT& );
49 void SaveCgemTruth ( EVENT& );
50 void SaveTofTruth ( EVENT& );
51 void SaveEmcTruth ( EVENT& );
52 void SaveMucTruth ( EVENT& );
53
54 void SaveMdcDigits ( EVENT& );
55 void SaveCgemDigits ( EVENT& );
56 void SaveTofDigits ( EVENT& );
57 void SaveEmcDigits ( EVENT& );
58 void SaveMucDigits ( EVENT& );
59
60 //Below used when do MC tuning. Now only Mdc is implemented.
61 //Below used when do MC tuning. Now only Cgem is implemented.
62 //yuany 2007-10-31
63 void SaveHitAsciiEvents(G4int, const G4Event*);
64
65 void SaveDecayMode ( HitEVENT& );
66 void SaveTrackTruth ( HitEVENT& );
67 void SaveVertexTruth ( HitEVENT& );
68 void SaveMdcTruth ( HitEVENT& );
69 void SaveCgemTruth ( HitEVENT& );
70 void SaveTofTruth ( HitEVENT& ) {};
71 void SaveEmcTruth ( HitEVENT& ) {};
72 void SaveMucTruth ( HitEVENT& ) {};
73
74 void SaveMdcHits ( HitEVENT& );
75 void SaveCgemHits ( HitEVENT& );
76 void SaveTofHits ( HitEVENT& ) {};
77 void SaveEmcHits ( HitEVENT& ) {};
78 void SaveMucHits ( HitEVENT& ) {};
79
80 private:
81
82 G4int m_mdcTruFlag;
83 G4int m_cgemTruFlag;
84 G4int m_mdcDigiFlag;
85 G4int m_cgemDigiFlag;
86 G4int m_tofTruFlag;
87 G4int m_tofDigiFlag;
88 G4int m_emcTruFlag;
89 G4int m_emcDigiFlag;
90 G4int m_mucTruFlag;
91 G4int m_mucDigiFlag;
92 G4String m_asciiFile;
93
94 G4DigiManager* m_DigiMan;
95};
96
97#endif
BesAsciiIO(G4int, G4int, G4int, G4int, G4int, G4int, G4int, G4int, G4int, G4int, G4String)
Definition BesAsciiIO.cc:44
void SaveMdcHits(HitEVENT &)
void SetTofTruFlag(G4int flag)
Definition BesAsciiIO.hh:32
void SaveCgemDigits(EVENT &)
void SetMucTruFlag(G4int flag)
Definition BesAsciiIO.hh:34
void SaveMucTruth(HitEVENT &)
Definition BesAsciiIO.hh:72
void SaveMucHits(HitEVENT &)
Definition BesAsciiIO.hh:78
void SetTofDigiFlag(G4int flag)
Definition BesAsciiIO.hh:38
void SetAsciiFile(G4String name)
Definition BesAsciiIO.hh:41
void SaveMucDigits(EVENT &)
void SaveTrackTruth(EVENT &)
void SaveDecayMode(EVENT &)
void SetMdcTruFlag(G4int flag)
Definition BesAsciiIO.hh:30
void SetCgemTruFlag(G4int flag)
Definition BesAsciiIO.hh:31
void SaveMdcDigits(EVENT &)
void SaveMucTruth(EVENT &)
void SaveEmcDigits(EVENT &)
void SaveEmcHits(HitEVENT &)
Definition BesAsciiIO.hh:77
void SetMdcDigiFlag(G4int flag)
Definition BesAsciiIO.hh:36
void SetMucDigiFlag(G4int flag)
Definition BesAsciiIO.hh:40
void SaveCgemHits(HitEVENT &)
void SaveCgemTruth(EVENT &)
void SetCgemDigiFlag(G4int flag)
Definition BesAsciiIO.hh:37
void SaveEmcTruth(HitEVENT &)
Definition BesAsciiIO.hh:71
void SaveEmcTruth(EVENT &)
void SaveTofTruth(EVENT &)
void SetEmcDigiFlag(G4int flag)
Definition BesAsciiIO.hh:39
void SaveTofTruth(HitEVENT &)
Definition BesAsciiIO.hh:70
void SaveHitAsciiEvents(G4int, const G4Event *)
void SaveTofHits(HitEVENT &)
Definition BesAsciiIO.hh:76
void SaveMdcTruth(EVENT &)
void SaveTofDigits(EVENT &)
void SaveVertexTruth(EVENT &)
void SaveAsciiEvents(G4int, const G4Event *)
Definition BesAsciiIO.cc:65
void SetEmcTruFlag(G4int flag)
Definition BesAsciiIO.hh:33