Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add BeamFetcherV2 toolchain #297

Open
wants to merge 3 commits into
base: Application
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading