-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathmcpBenchSetup.sh
59 lines (46 loc) · 2.03 KB
/
mcpBenchSetup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# load in initial files from full sim
cp include/default/* include/
cp src/default/*.cc src/
cp src/default/MilliQPrimaryGeneratorAction.cc.MCPbench src/MilliQPrimaryGeneratorAction.cc
# load the bench geometry
cp include/Bench/mqDetectorConstruction.hh include/mqDetectorConstruction.hh
cp include/Bench/mqPMTSD.hh include/mqPMTSD.hh
cp include/Bench/mqScintSD.hh include/mqScintSD.hh
cp include/Bench/mqUserEventInformation.hh include/mqUserEventInformation.hh
cp include/Bench/mqEventAction.hh include/mqEventAction.hh
cp include/Bench/mqShieldingPhysicsList.hh include/mqShieldingPhysicsList.hh
cp include/Bench/mqTrackingAction.hh include/mqTrackingAction.hh
cp include/Bench/mqMuonTrack.hh include/mqMuonTrack.hh
cp include/Bench/mqScintHit.hh include/mqScintHit.hh
cp include/Bench/mqScintRHit.hh include/mqScintRHit.hh
cp include/Bench/mqROOTEvent.hh include/mqROOTEvent.hh
################ detector geometry ################
cp src/Bench/mqDetectorConstruction.cc src/mqDetectorConstruction.cc
# histogram/data management
cp src/Bench/mqHistoManager.cc src/mqHistoManager.cc
cp src/Bench/mqUserEventInformation.cc src/mqUserEventInformation.cc
cp src/Bench/mqROOTEvent.cc src/mqROOTEvent.cc
cp src/Bench/mqEventAction.cc src/mqEventAction.cc
# particle info
cp src/Bench/mqMuonTrack.cc src/mqMuonTrack.cc
# energy deposit hit info
cp src/Bench/mqScintHit.cc src/mqScintHit.cc
cp src/Bench/mqScintRHit.cc src/mqScintRHit.cc
# PMT detector hit manager
cp src/Bench/mqPMTSD.cc src/mqPMTSD.cc
# scintillator energy hit manager
cp src/Bench/mqScintSD.cc src/mqScintSD.cc
##### interaction tracking happens here #####
cp src/Bench/mqSteppingAction.cc src/mqSteppingAction.cc
# particle collections
cp src/Bench/mqTrackingAction.cc src/mqTrackingAction.cc
# physics list
cp src/Bench/mqShieldingPhysicsList.cc src/mqShieldingPhysicsList.cc
cp inputData/config/particlesMCP.ini inputData/config/particles.ini
. buildsetup.sh
cp MilliQan.cc.BeamGen MilliQan.cc
cp CMakeLists.txt.default CMakeLists.txt
cd build
cmake ../
make -j8
./MilliQan ../runMac/mcp_novis.mac