Skip to content

Commit

Permalink
Add BeamFetcherV2 toolchain (#297)
Browse files Browse the repository at this point in the history
* Add files via upload

BeamFetcherV2 toolchain

* Update README.md

* Update LoadRawDataConfig
  • Loading branch information
S81D authored Nov 18, 2024
1 parent 3fc9a21 commit decb4cc
Show file tree
Hide file tree
Showing 9 changed files with 67 additions and 0 deletions.
8 changes: 8 additions & 0 deletions configfiles/BeamFetcherV2/BeamFetcherV2Config
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# BeamFetcher config file
verbose 5
DevicesFile ./configfiles/BeamFetcherV2/devices.txt # File containing one device per line or a bundle
IsBundle 1 # bool stating whether DevicesFile contains bundles or individual devices
FetchFromTimes 0 # bool defining how to grab the data (from input times (1) or trigger(0))
TimeChunkStepInMilliseconds 3600000 # one hour
SaveROOT 1 # bool, do you want to write a ROOT file with the timestamps and devices?
DeleteCTCData 1
3 changes: 3 additions & 0 deletions configfiles/BeamFetcherV2/DefaultTriggerMask.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#Triggers are given by Jonathan; place one number per line. Values are index + 1
#4+1: Delayed beam. 32+1: LED trigger. 34+1: AmBe and Cosmic trigger. 35+1: MRD_CR_Trigger. 30+1: LED_Start. 45+1, 46+1: Laser. 14+1: AmBe external trigger
14
8 changes: 8 additions & 0 deletions configfiles/BeamFetcherV2/LoadRawDataConfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
verbosity 11
BuildType CTC
Mode FileList
InputFile ./configfiles/BeamFetcherV2/my_files.txt
DummyRunInfo 1
StoreTrigOverlap 0
ReadTrigOverlap 0
StoreRawData 0
9 changes: 9 additions & 0 deletions configfiles/BeamFetcherV2/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Configure files

***********************
#Description
**********************

See the BeamFetcherV2 tool for description/usage.

Loads CTC triggers from the TriggerDataDecoder tool, then fetches the beam database entries through queries based on the CTC trigger timestamps.
26 changes: 26 additions & 0 deletions configfiles/BeamFetcherV2/ToolChainConfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#ToolChain dynamic setup file

##### Runtime Parameters #####
verbose 1 ## Verbosity level of ToolChain
error_level 0 # 0= do not exit, 1= exit on unhandled errors only, 2= exit on unhandled errors and handled errors
attempt_recover 1 ## 1= will attempt to finalise if an execute fails
remote_port 24002
IO_Threads 1 ## Number of threads for network traffic (~ 1/Gbps)

###### Logging #####
log_mode Interactive # Interactive=cout , Remote= remote logging system "serservice_name Remote_Logging" , Local = local file log;
log_local_path ./log
log_service LogStore


###### Service discovery ##### Ignore these settings for local analysis
service_publish_sec -1
service_kick_sec -1

##### Tools To Add #####
Tools_File configfiles/BeamFetcherV2/ToolsConfig ## list of tools to run and their config files

##### Run Type #####
Inline -1 ## number of Execute steps in program, -1 infinite loop that is ended by user
Interactive 0 ## set to 1 if you want to run the code interactively

4 changes: 4 additions & 0 deletions configfiles/BeamFetcherV2/ToolsConfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
LoadGeometry LoadGeometry ./configfiles/LoadGeometry/LoadGeometryConfig
LoadRawData LoadRawData ./configfiles/BeamFetcherV2/LoadRawDataConfig
TriggerDataDecoder TriggerDataDecoder ./configfiles/BeamFetcherV2/TriggerDataDecoderConfig
BeamFetcherV2 BeamFetcherV2 ./configfiles/BeamFetcherV2/BeamFetcherV2Config
4 changes: 4 additions & 0 deletions configfiles/BeamFetcherV2/TriggerDataDecoderConfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
verbosity 0
TriggerMaskFile ./configfiles/BeamFetcherV2/DefaultTriggerMask.txt
StoreTrigOverlap 0
ReadTrigOverlap 0
1 change: 1 addition & 0 deletions configfiles/BeamFetcherV2/devices.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
BoosterNeutrinoBeam_read
4 changes: 4 additions & 0 deletions configfiles/BeamFetcherV2/my_files.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/pnfs/annie/persistent/raw/raw/4774/RAWDataR4774S0p1
/pnfs/annie/persistent/raw/raw/4774/RAWDataR4774S0p2
/pnfs/annie/persistent/raw/raw/4774/RAWDataR4774S0p3
/pnfs/annie/persistent/raw/raw/4774/RAWDataR4774S0p4

0 comments on commit decb4cc

Please sign in to comment.