Skip to content

Commit

Permalink
EventBuilderV2 tool chain
Browse files Browse the repository at this point in the history
  • Loading branch information
fengyvoid committed Oct 11, 2024
1 parent 2049927 commit 1a23aa0
Show file tree
Hide file tree
Showing 17 changed files with 201 additions and 0 deletions.
10 changes: 10 additions & 0 deletions configfiles/EventBuilderV2/DefaultTriggerMask.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#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
5
15
36
31
33
35
46
47
7 changes: 7 additions & 0 deletions configfiles/EventBuilderV2/EBLAPPDConfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
verbosityEBLAPPD 5
matchTargetTrigger 14
matchTolerance_ns 400000
#matchTolerance_ns 10000
exePerMatch 500

matchToAllTriggers 0
10 changes: 10 additions & 0 deletions configfiles/EventBuilderV2/EBLoadRawConfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
verbosityEBLoadRaw 2
ReadTriggerOverlap 1

InputFile ./configfiles/EventBuilderV2/my_files.txt

LoadPMT 1
LoadMRD 1
LoadCTC 1
LoadLAPPD 1

5 changes: 5 additions & 0 deletions configfiles/EventBuilderV2/EBMRDConfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
verbosityEBMRD 1
matchTargetTrigger 8
matchTolerance_ns 3000000
matchToAllTriggers 0
exePerMatch 300
5 changes: 5 additions & 0 deletions configfiles/EventBuilderV2/EBPMTConfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
verbosityEBPMT 1
matchTargetTrigger 5
#matchTargetTrigger 46
matchTolerance_ns 100
matchToAllTriggers 1
10 changes: 10 additions & 0 deletions configfiles/EventBuilderV2/EBSaverConfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
verbosityEBSaver 4

savePMT 1
saveMRD 1
saveCTC 1
saveLAPPD 1
saveRunInfo 1
saveBeamInfo 1

beamInfoFileName beamfetcher_tree.root
28 changes: 28 additions & 0 deletions configfiles/EventBuilderV2/EBTriggerGrouperConfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
verbosityEBTG 5
GroupMode beam
GroupTolerance 3000000
GroupTrigWord 14 //undelayed beam

groupBeam 1
BeamTolerance 25000000

groupCosmic 1
CosmicTriggerMain 36

groupLaser 1
LaserTolerance 10000

groupLED 1
#LEDTriggerMain 31
#LEDTolerance 10000

groupAmBe 1
AmBeTolerance 10000 # 10us for testing
AmBeTriggerMain 11

groupPPS 0

groupNuMI 1

maxNumAllowedInBuffer 30000

39 changes: 39 additions & 0 deletions configfiles/EventBuilderV2/LAPPDLoadStoreConfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
General Parameters
Nsamples 256 #Number of samples in a waveform
SampleSize 100 #Sample size for baseline substraction
TrigChannel 5 #Specified channel the trigger signal will be on
NUM_VECTOR_METADATA 103 #Fixed META vector size
LAPPDchannelOffset 1000
NChannels 30

LAPPDStoreReadInVerbosity 0

mergingModeReadIn 0
RawDataInputWavLabel RawWaveform
RawDataOutputWavLabel RawLAPPDData
BoardIndexLabel BoardIndex #Label of the vector of read out boards

PsecReceiveMode 1
stopEntries 10000000000

DoPedSubtraction 0
Nboards 6 #Number of pedestal files to be read in
PedinputfileTXT ../Pedestals/Laser2024Feb/P
PSECinputfile /pnfs/annie/persistent/processed/LAPPD40Merged/FinalVersion_withRawTS/FilteredData_PMT_MRDtrack_noveto_15mV_7strips_3xxx_104


Pedinputfile1 ../Pedestals/PEDS_ACDC_board0.txt
Pedinputfile2 ../Pedestals/PEDS_ACDC_board1.txt


ReadStore 0
num_vector_data 7795
num_vector_pps 16
OutputWavLabel RawLAPPDData
SelectSingleLAPPD false
SelectedLAPPD 0
loadPSEC 1
loadPPS 1
loadOffsets 1


2 changes: 2 additions & 0 deletions configfiles/EventBuilderV2/MRDDataDecoderConfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
verbosity 0
DaylightSavingsSpring 1
5 changes: 5 additions & 0 deletions configfiles/EventBuilderV2/PMTDataDecoderConfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
verbosity 1
ADCCountsToBuildWaves 0
Mode Offline
OffsetVME03 0
OffsetVME01 0
15 changes: 15 additions & 0 deletions configfiles/EventBuilderV2/PhaseIIADCCalibratorConfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# PhaseIIADCCalibrator config file

verbosity 0

BaselineEstimationType ze3ra_multi
NumBaselineSamples 15
NumSubWaveforms 10

SamplesPerBaselineEstimate 2000
BaselineUncertaintyTolerance 2
PCritical 0.01
MakeCalLEDWaveforms 0

EventBuilding 1
ExecutesPerBuild 10
10 changes: 10 additions & 0 deletions configfiles/EventBuilderV2/PhaseIIADCHitFinderConfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
verbosity 0

UseLEDWaveforms 0

PulseFindingApproach threshold
PulseWindowType dynamic
DefaultADCThreshold 7
DefaultThresholdType relative

EventBuilding 1
3 changes: 3 additions & 0 deletions configfiles/EventBuilderV2/SaveConfigInfoConfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
verbosity 5
OutFileName config_info.txt
FullDepth 0
23 changes: 23 additions & 0 deletions configfiles/EventBuilderV2/ToolChainConfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#ToolChain dynamic setup file

##### Runtime Paramiters #####
verbose 1
error_level 0 # 0= do not exit, 1= exit on unhandeled errors only, 2= exit on unhandeled errors and handeled errors
attempt_recover 1

###### 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 #####
service_publish_sec -1
service_kick_sec -1

##### Tools To Add #####
Tools_File ./configfiles/EventBuilderV2/ToolsConfig

##### Run Type #####
Inline -1
Interactive 0

24 changes: 24 additions & 0 deletions configfiles/EventBuilderV2/ToolsConfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
LoadGeometry LoadGeometry ./configfiles/LoadGeometry/LoadGeometryConfig
EBLoadRaw EBLoadRaw ./configfiles/EventBuilderV2/EBLoadRawConfig


PMTDataDecoder PMTDataDecoder ./configfiles/EventBuilderV2/PMTDataDecoderConfig
MRDDataDecoder MRDDataDecoder ./configfiles/EventBuilderV2/MRDDataDecoderConfig
TriggerDataDecoder TriggerDataDecoder ./configfiles/EventBuilderV2/TriggerDataDecoderConfig
LAPPDLoadStore LAPPDLoadStore ./configfiles/EventBuilderV2/LAPPDLoadStoreConfig


PhaseIIADCCalibrator PhaseIIADCCalibrator ./configfiles/EventBuilderV2/PhaseIIADCCalibratorConfig
PhaseIIADCHitFinder PhaseIIADCHitFinder ./configfiles/EventBuilderV2/PhaseIIADCHitFinderConfig


EBTriggerGrouper EBTriggerGrouper ./configfiles/EventBuilderV2/EBTriggerGrouperConfig
EBPMT EBPMT ./configfiles/EventBuilderV2/EBPMTConfig
EBMRD EBMRD ./configfiles/EventBuilderV2/EBMRDConfig
EBLAPPD EBLAPPD ./configfiles/EventBuilderV2/EBLAPPDConfig

SaveConfigInfo SaveConfigInfo ./configfiles/EventBuilderV2/SaveConfigInfoConfig

EBSaver EBSaver ./configfiles/EventBuilderV2/EBSaverConfig


3 changes: 3 additions & 0 deletions configfiles/EventBuilderV2/TriggerDataDecoderConfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
verbosity 0
StoreTrigOverlap 0
ReadTrigOverlap 0
2 changes: 2 additions & 0 deletions configfiles/EventBuilderV2/my_files.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/pnfs/annie/persistent/raw/raw/4779/RAWDataR4779S0p0
/pnfs/annie/persistent/raw/raw/4779/RAWDataR4779S0p1

0 comments on commit 1a23aa0

Please sign in to comment.