BOSS 7.0.5
BESIII Offline Software System
Loading...
Searching...
No Matches
InstallArea/include/BesSim/BesSim/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,
26 G4int, G4int ,G4int, G4int, G4String) ;
28
29 public:
30 void SetMdcTruFlag(G4int flag) {m_mdcTruFlag=flag;}
31 void SetTofTruFlag(G4int flag) {m_tofTruFlag=flag;}
32 void SetEmcTruFlag(G4int flag) {m_emcTruFlag=flag;}
33 void SetMucTruFlag(G4int flag) {m_mucTruFlag=flag;}
34
35 void SetMdcDigiFlag(G4int flag) {m_mdcDigiFlag=flag;}
36 void SetTofDigiFlag(G4int flag) {m_tofDigiFlag=flag;}
37 void SetEmcDigiFlag(G4int flag) {m_emcDigiFlag=flag;}
38 void SetMucDigiFlag(G4int flag) {m_mucDigiFlag=flag;}
39 void SetAsciiFile(G4String name) {m_asciiFile=name;}
40
41 void SaveAsciiEvents(G4int, const G4Event*);
42
43 void SaveDecayMode(EVENT& );
44 void SaveTrackTruth( EVENT& );
45 void SaveVertexTruth( EVENT& );
46 void SaveMdcTruth( EVENT& );
47 void SaveTofTruth( EVENT& );
48 void SaveEmcTruth( EVENT& );
49 void SaveMucTruth( EVENT& );
50
51 void SaveMdcDigits( EVENT& );
52 void SaveTofDigits( EVENT& );
53 void SaveEmcDigits( EVENT& );
54 void SaveMucDigits( EVENT& );
55
56 //Below used when do MC tuning. Now only Mdc is implemented.
57 //yuany 2007-10-31
58 void SaveHitAsciiEvents(G4int, const G4Event*);
59
60 void SaveDecayMode(HitEVENT& );
61 void SaveTrackTruth( HitEVENT& );
63 void SaveMdcTruth( HitEVENT& );
67
68 void SaveMdcHits( HitEVENT& );
69 void SaveTofHits( HitEVENT& ) {};
70 void SaveEmcHits( HitEVENT& ) {};
71 void SaveMucHits( HitEVENT& ) {};
72
73 private:
74
75 G4int m_mdcTruFlag;
76 G4int m_mdcDigiFlag;
77 G4int m_tofTruFlag;
78 G4int m_tofDigiFlag;
79 G4int m_emcTruFlag;
80 G4int m_emcDigiFlag;
81 G4int m_mucTruFlag;
82 G4int m_mucDigiFlag;
83 G4String m_asciiFile;
84
85 G4DigiManager* m_DigiMan;
86};
87
88#endif
void SaveMdcHits(HitEVENT &)
Definition: BesAsciiIO.cc:816
void SaveMucDigits(EVENT &)
Definition: BesAsciiIO.cc:549
void SaveTrackTruth(EVENT &)
Definition: BesAsciiIO.cc:176
void SaveDecayMode(EVENT &)
Definition: BesAsciiIO.cc:151
void SaveMdcDigits(EVENT &)
Definition: BesAsciiIO.cc:441
void SaveMucTruth(EVENT &)
Definition: BesAsciiIO.cc:396
void SaveEmcDigits(EVENT &)
Definition: BesAsciiIO.cc:511
void SaveEmcTruth(EVENT &)
Definition: BesAsciiIO.cc:350
void SaveTofTruth(EVENT &)
Definition: BesAsciiIO.cc:304
void SaveHitAsciiEvents(G4int, const G4Event *)
Definition: BesAsciiIO.cc:577
void SaveMdcTruth(EVENT &)
Definition: BesAsciiIO.cc:260
void SaveTofDigits(EVENT &)
Definition: BesAsciiIO.cc:468
void SaveVertexTruth(EVENT &)
Definition: BesAsciiIO.cc:233
void SaveAsciiEvents(G4int, const G4Event *)
Definition: BesAsciiIO.cc:61