From 1a23aa027d78a49b15a43499e6f22c49f9589c6f Mon Sep 17 00:00:00 2001 From: fengyvoid Date: Fri, 11 Oct 2024 14:13:11 -0500 Subject: [PATCH] EventBuilderV2 tool chain --- .../EventBuilderV2/DefaultTriggerMask.txt | 10 +++++ configfiles/EventBuilderV2/EBLAPPDConfig | 7 ++++ configfiles/EventBuilderV2/EBLoadRawConfig | 10 +++++ configfiles/EventBuilderV2/EBMRDConfig | 5 +++ configfiles/EventBuilderV2/EBPMTConfig | 5 +++ configfiles/EventBuilderV2/EBSaverConfig | 10 +++++ .../EventBuilderV2/EBTriggerGrouperConfig | 28 +++++++++++++ .../EventBuilderV2/LAPPDLoadStoreConfig | 39 +++++++++++++++++++ .../EventBuilderV2/MRDDataDecoderConfig | 2 + .../EventBuilderV2/PMTDataDecoderConfig | 5 +++ .../EventBuilderV2/PhaseIIADCCalibratorConfig | 15 +++++++ .../EventBuilderV2/PhaseIIADCHitFinderConfig | 10 +++++ .../EventBuilderV2/SaveConfigInfoConfig | 3 ++ configfiles/EventBuilderV2/ToolChainConfig | 23 +++++++++++ configfiles/EventBuilderV2/ToolsConfig | 24 ++++++++++++ .../EventBuilderV2/TriggerDataDecoderConfig | 3 ++ configfiles/EventBuilderV2/my_files.txt | 2 + 17 files changed, 201 insertions(+) create mode 100644 configfiles/EventBuilderV2/DefaultTriggerMask.txt create mode 100644 configfiles/EventBuilderV2/EBLAPPDConfig create mode 100644 configfiles/EventBuilderV2/EBLoadRawConfig create mode 100644 configfiles/EventBuilderV2/EBMRDConfig create mode 100644 configfiles/EventBuilderV2/EBPMTConfig create mode 100644 configfiles/EventBuilderV2/EBSaverConfig create mode 100644 configfiles/EventBuilderV2/EBTriggerGrouperConfig create mode 100644 configfiles/EventBuilderV2/LAPPDLoadStoreConfig create mode 100644 configfiles/EventBuilderV2/MRDDataDecoderConfig create mode 100644 configfiles/EventBuilderV2/PMTDataDecoderConfig create mode 100644 configfiles/EventBuilderV2/PhaseIIADCCalibratorConfig create mode 100644 configfiles/EventBuilderV2/PhaseIIADCHitFinderConfig create mode 100644 configfiles/EventBuilderV2/SaveConfigInfoConfig create mode 100644 configfiles/EventBuilderV2/ToolChainConfig create mode 100644 configfiles/EventBuilderV2/ToolsConfig create mode 100644 configfiles/EventBuilderV2/TriggerDataDecoderConfig create mode 100644 configfiles/EventBuilderV2/my_files.txt diff --git a/configfiles/EventBuilderV2/DefaultTriggerMask.txt b/configfiles/EventBuilderV2/DefaultTriggerMask.txt new file mode 100644 index 000000000..398850355 --- /dev/null +++ b/configfiles/EventBuilderV2/DefaultTriggerMask.txt @@ -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 diff --git a/configfiles/EventBuilderV2/EBLAPPDConfig b/configfiles/EventBuilderV2/EBLAPPDConfig new file mode 100644 index 000000000..b6981cdec --- /dev/null +++ b/configfiles/EventBuilderV2/EBLAPPDConfig @@ -0,0 +1,7 @@ +verbosityEBLAPPD 5 +matchTargetTrigger 14 +matchTolerance_ns 400000 +#matchTolerance_ns 10000 +exePerMatch 500 + +matchToAllTriggers 0 diff --git a/configfiles/EventBuilderV2/EBLoadRawConfig b/configfiles/EventBuilderV2/EBLoadRawConfig new file mode 100644 index 000000000..083ae9111 --- /dev/null +++ b/configfiles/EventBuilderV2/EBLoadRawConfig @@ -0,0 +1,10 @@ +verbosityEBLoadRaw 2 +ReadTriggerOverlap 1 + +InputFile ./configfiles/EventBuilderV2/my_files.txt + +LoadPMT 1 +LoadMRD 1 +LoadCTC 1 +LoadLAPPD 1 + diff --git a/configfiles/EventBuilderV2/EBMRDConfig b/configfiles/EventBuilderV2/EBMRDConfig new file mode 100644 index 000000000..9ad287f6a --- /dev/null +++ b/configfiles/EventBuilderV2/EBMRDConfig @@ -0,0 +1,5 @@ +verbosityEBMRD 1 +matchTargetTrigger 8 +matchTolerance_ns 3000000 +matchToAllTriggers 0 +exePerMatch 300 \ No newline at end of file diff --git a/configfiles/EventBuilderV2/EBPMTConfig b/configfiles/EventBuilderV2/EBPMTConfig new file mode 100644 index 000000000..ffe10668d --- /dev/null +++ b/configfiles/EventBuilderV2/EBPMTConfig @@ -0,0 +1,5 @@ +verbosityEBPMT 1 +matchTargetTrigger 5 +#matchTargetTrigger 46 +matchTolerance_ns 100 +matchToAllTriggers 1 diff --git a/configfiles/EventBuilderV2/EBSaverConfig b/configfiles/EventBuilderV2/EBSaverConfig new file mode 100644 index 000000000..bb1637547 --- /dev/null +++ b/configfiles/EventBuilderV2/EBSaverConfig @@ -0,0 +1,10 @@ +verbosityEBSaver 4 + +savePMT 1 +saveMRD 1 +saveCTC 1 +saveLAPPD 1 +saveRunInfo 1 +saveBeamInfo 1 + +beamInfoFileName beamfetcher_tree.root diff --git a/configfiles/EventBuilderV2/EBTriggerGrouperConfig b/configfiles/EventBuilderV2/EBTriggerGrouperConfig new file mode 100644 index 000000000..f5328aaa4 --- /dev/null +++ b/configfiles/EventBuilderV2/EBTriggerGrouperConfig @@ -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 + diff --git a/configfiles/EventBuilderV2/LAPPDLoadStoreConfig b/configfiles/EventBuilderV2/LAPPDLoadStoreConfig new file mode 100644 index 000000000..daa420ebe --- /dev/null +++ b/configfiles/EventBuilderV2/LAPPDLoadStoreConfig @@ -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 + + diff --git a/configfiles/EventBuilderV2/MRDDataDecoderConfig b/configfiles/EventBuilderV2/MRDDataDecoderConfig new file mode 100644 index 000000000..d9937ca9a --- /dev/null +++ b/configfiles/EventBuilderV2/MRDDataDecoderConfig @@ -0,0 +1,2 @@ +verbosity 0 +DaylightSavingsSpring 1 diff --git a/configfiles/EventBuilderV2/PMTDataDecoderConfig b/configfiles/EventBuilderV2/PMTDataDecoderConfig new file mode 100644 index 000000000..cca7bb6b5 --- /dev/null +++ b/configfiles/EventBuilderV2/PMTDataDecoderConfig @@ -0,0 +1,5 @@ +verbosity 1 +ADCCountsToBuildWaves 0 +Mode Offline +OffsetVME03 0 +OffsetVME01 0 diff --git a/configfiles/EventBuilderV2/PhaseIIADCCalibratorConfig b/configfiles/EventBuilderV2/PhaseIIADCCalibratorConfig new file mode 100644 index 000000000..158dc6ed1 --- /dev/null +++ b/configfiles/EventBuilderV2/PhaseIIADCCalibratorConfig @@ -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 diff --git a/configfiles/EventBuilderV2/PhaseIIADCHitFinderConfig b/configfiles/EventBuilderV2/PhaseIIADCHitFinderConfig new file mode 100644 index 000000000..d183b7b27 --- /dev/null +++ b/configfiles/EventBuilderV2/PhaseIIADCHitFinderConfig @@ -0,0 +1,10 @@ +verbosity 0 + +UseLEDWaveforms 0 + +PulseFindingApproach threshold +PulseWindowType dynamic +DefaultADCThreshold 7 +DefaultThresholdType relative + +EventBuilding 1 diff --git a/configfiles/EventBuilderV2/SaveConfigInfoConfig b/configfiles/EventBuilderV2/SaveConfigInfoConfig new file mode 100644 index 000000000..569dcf758 --- /dev/null +++ b/configfiles/EventBuilderV2/SaveConfigInfoConfig @@ -0,0 +1,3 @@ +verbosity 5 +OutFileName config_info.txt +FullDepth 0 diff --git a/configfiles/EventBuilderV2/ToolChainConfig b/configfiles/EventBuilderV2/ToolChainConfig new file mode 100644 index 000000000..b661e1dfd --- /dev/null +++ b/configfiles/EventBuilderV2/ToolChainConfig @@ -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 + diff --git a/configfiles/EventBuilderV2/ToolsConfig b/configfiles/EventBuilderV2/ToolsConfig new file mode 100644 index 000000000..007d55c76 --- /dev/null +++ b/configfiles/EventBuilderV2/ToolsConfig @@ -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 + + diff --git a/configfiles/EventBuilderV2/TriggerDataDecoderConfig b/configfiles/EventBuilderV2/TriggerDataDecoderConfig new file mode 100644 index 000000000..a8ef6641f --- /dev/null +++ b/configfiles/EventBuilderV2/TriggerDataDecoderConfig @@ -0,0 +1,3 @@ +verbosity 0 +StoreTrigOverlap 0 +ReadTrigOverlap 0 diff --git a/configfiles/EventBuilderV2/my_files.txt b/configfiles/EventBuilderV2/my_files.txt new file mode 100644 index 000000000..20d80ce49 --- /dev/null +++ b/configfiles/EventBuilderV2/my_files.txt @@ -0,0 +1,2 @@ +/pnfs/annie/persistent/raw/raw/4779/RAWDataR4779S0p0 +/pnfs/annie/persistent/raw/raw/4779/RAWDataR4779S0p1