-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #357 from rest-for-physics/fix_processes_streamer
Fix processes streamer
- Loading branch information
Showing
18 changed files
with
100 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Int_t StreamerOutput(std::string fname) { | ||
TFile* f = TFile::Open((TString)fname); | ||
f->ShowStreamerInfo(); | ||
|
||
f->Close(); | ||
|
||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import os, sys | ||
|
||
os.system("restRoot -b -q StreamerOutput.C'(\"Hits_01928.root\")' | grep Process | grep TRest | grep version | wc -l > output.log 2>&1") | ||
|
||
with open('output.log') as f: | ||
lines = f.readlines() | ||
|
||
for line in lines: | ||
if( line.find("9") == 0): | ||
print ("The number of processes inside the event data chain is 9. Succeed!") | ||
sys.exit(0) | ||
else: | ||
print ("The number of processes inside the event data chain is NOT 6! Fail!") | ||
sys.exit(1) | ||
|
||
sys.exit(0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule axion
updated
17 files
Submodule connectors
updated
6 files
Submodule detector
updated
20 files
Submodule geant4
updated
12 files
Submodule raw
updated
18 files
Submodule track
updated
9 files
Submodule restG4
updated
8 files
+1 −1 | examples/04.MuonScan/ValidateCosmicMuonsFromWall.C | |
+1 −1 | include/SimulationManager.h | |
+19 −14 | src/DetectorConstruction.cxx | |
+9 −9 | src/PhysicsList.cxx | |
+25 −15 | src/PrimaryGeneratorAction.cxx | |
+3 −3 | src/SensitiveDetector.cxx | |
+3 −3 | src/SimulationManager.cxx | |
+5 −3 | src/StackingAction.cxx |