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

LAPPDProcessedAna tool chain #309

Merged
Merged
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
11 changes: 11 additions & 0 deletions configfiles/LAPPDProcessedAna/ConfigGeo
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#LoadGeometry
verbosity 0
LAPPDChannelCount 60
FACCMRDGeoFile ./configfiles/LoadGeometry/FullMRDGeometry.csv
DetectorGeoFile ./configfiles/LoadGeometry/DetectorGeometrySpecs.csv
LAPPDGeoFile ./configfiles/LAPPDana/LAPPDGeometry.csv
TankPMTGeoFile ./configfiles/LoadGeometry/FullTankPMTGeometry.csv
TankPMTGainFile ./configfiles/LoadGeometry/ChannelSPEGains_BeamRun20192020.csv
AuxiliaryChannelFile ./configfiles/LoadGeometry/AuxChannels.csv
LAPPDMerging 0

136 changes: 136 additions & 0 deletions configfiles/LAPPDProcessedAna/ConfigPlot
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
oldLaser 0 #1 for old data, 0 for new trigger boards

#LAPPDBaselineSubtract
BLSInputWavLabel AlignedLAPPDData
BaselineSubstractVerbosityLevel 0
TrigChannel 5 #Specified channel the trigger signal will be on
LAPPDchannelOffset 1000
LowBLfitrange 25;
HiBLfitrange 60;
TrigLowBLfitrange 30
TrigHiBLfitrange 100
BLSOutputWavLabel ABLSLAPPDData
oldLaserTrigAmpRange 40

#LAPPDFindPeak
FindPeakVerbosity 0
FiltPeakInputWavLabel FiltLAPPDData
RawPeakInputWavLabel LAPPDWaveforms
BLSPeakInputWavLabel ABLSLAPPDData
FindPeakOutLabel SimpleRecoLAPPDPulses
TotThreshold 7.
MinimumTot 900.
Deltat 100.

# General Parameters
Nsamples 256
SampleSize 100
NChannels 60

#LAPPDPlotWaveForms
requireT0signal 0
SaveByChannel 1
#PlotWavLabel RawLAPPDData
#PlotWavLabel LAPPDWaveforms
PlotWavLabel BLsubtractedLAPPDData
#PlotWavLabel AlignedLAPPDData
switchBit 0

outfile WaveForms_ablsub.root
NHistos 200
SaveSingleStrip 0
SingleStripNo 9
plotLow -10
plotHigh 20

#LAPPDPlotWaveForms2D
outfile2D RawDataWaveForms_2D.root
plot2DrecoPulseInputLabel thresRecoLAPPDPulses
plot2DrecoHitInputLabel thresRecoLAPPDHits
includeRecoPulses 1
includeRecoHits 1
plotAdditionalPart 1
titleSize 0.04
canvasMargin 0.15
canvasTitleOffset 1
#LAPPDSelectPlot2D
LAPPDSelectPlotWaveform2DLabel LAPPDWaveforms
SelectOutfile2D LAPPDSelectPlot.root
MRDTrackExistSelection 0
verbosityPlot2D 10
colorContour 255
useDefaultPalette 1
colorPalette 112



#LAPPDThresReco
LAPPDThresRecoVerbosity 0
verbosity 0
printHitsTXT 0
threshold 10
minPulseWidth 5
#thresRecoInputWaveLabel AlignedLAPPDData
ThresRecoInputWaveLabel BLsubtractedLAPPDData
#thresRecoInputWaveLabel LAPPDWaveforms

ThresRecoOutputPulseLabel LAPPDPulses
ThresRecoOutputHitLabel LAPPDHits
useMaxTime 1 # 1: use max bin as pulse time, 0: use gaus fit bin as pulse peak time
#signalSpeedOnStrip 0.6667
signalSpeedOnStrip 0.567 #1.69982/2.99792
triggerBoardDelay 0
loadPrintMRDinfo 0
useRange 0 #set this to 0 for using pulse start time as the saved pulse time, 1 for high, -1 for using peak time
plusClockBit 0

savePositionOnStrip 1
LoadLAPPDMapInfo 1

#LAPPDStackStrip
verbosityStackStrip 0
StackOutputFileName stacked.root
#StackInputWaveLabel BLsubtractedLAPPDData
StackInputWaveLabel RawLAPPDData
#StackInputWaveLabel LAPPDWaveforms
StackStripNumber 1
StackStripSide 0

#LAPPDPlotWaveForms
NHistos 200
SaveByChannel 0
SaveSingleStrip 0
SingleStripNo 1
requireT0signal 0


#LAPPDTreeMaker
treeMakerVerbosity 0
treeMakerInputPulseLabel LAPPDPulses
treeMakerInputHitLabel LAPPDHits
treeMakerOutputFileName LAPPDTree.root


#LAPPDPlots
LAPPDPlotInputWaveLabel BLsubtractedLAPPDData
#LAPPDPlotInputWaveLabel LAPPDWaveforms
#LAPPDPlotInputWaveLabel AlignedLAPPDData
#LAPPDPlotInputWaveLabel RawLAPPDData
LAPPDPlotsVerbosity 0
CanvasXSubPlotNumber 2
CanvasYSubPlotNumber 2
canvasMargin 0.1
drawHighThreshold 50
drawLowThreshold -20

CanvasWidth 1000
CanvasHeight 500

maxDrawEventNumber 200

DrawBinHist 1
printEventNumber 0
printLAPPDNumber 1
printEventWaveform 1

LoadLAPPDMap 1
67 changes: 67 additions & 0 deletions configfiles/LAPPDProcessedAna/ConfigPreProcess
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# 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
LAPPDchannelOffset 1000
Folder ../Data/3655/
#Folder ../Data/2022-06-10/

#LAPPDBaselineSubtract
BaselineSubstractVerbosityLevel 0
TrigChannel1 1005
TrigChannel2 1035
#BLSInputWavLabel LAPPDWaveforms #LAPPDWaveforms
BLSInputWavLabel AlignedLAPPDData
#BLSInputWavLabel RawLAPPDData

LowBLfitrange 0
HiBLfitrange 60
TrigLowBLfitrange 110
TrigHiBLfitrange 160
BLSOutputWavLabel BLsubtractedLAPPDData
oldLaserTrigAmpRange 40

#LAPPDFindT0
FindT0Verbosity 0
#FindT0InputWavLabel BLsubtractedLAPPDData
#FindT0InputWavLabel RawLAPPDData
FindT0InputWavLabel LAPPDWaveforms
OneBoardShift 0
OneBoardShiftValue 16
LoadLAPPDMap 1

TrigEarlyCut 20
TrigLateCut 200
T0channelNo 1005
T0channelNo1 1005
T0channelNo2 1005
T0signalmax -100.
T0signalthreshold -50.
T0signalmaxOld 50. #Older data uses a positive going signal
T0signalthresholdOld 80. #Older data uses a positive going signal
T0offset 0
FindT0OutputWavLabel AlignedLAPPDData
GlobalShiftT0 0 # for 2023 data
#GlobalShiftT0 80 # for 2024 data

#Added by Marc
Triggerdefault 5
LAPPDOffset 1000

#LAPPDPlotWaveForms
requireT0signal 0
SaveByChannel 1
PlotWavLabel BLsubtractedLAPPDData
#PlotWavLabel LAPPDWaveforms
outfile WaveForms_rawblsub.root
NHistos 400
SaveSingleStrip 0
SingleStripNo 9








42 changes: 42 additions & 0 deletions configfiles/LAPPDProcessedAna/ConfigStoreReadIn
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# 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_PPS 16 #Fixed PPS vector size
NUM_VECTOR_DATA 7795 #Fixed DATA vector size
NUM_VECTOR_METADATA 103 #Fixed META vector size
LAPPDchannelOffset 1000
NChannels 30
#StoreInputFile /pnfs/annie/persistent/users/redwards/data/filtered_lappd/R3649-R3844/LAPPDEventsBeamgateMRDTrack/FilteredEvents_LAPPDEventsBeamgateMRDTrack_R3649-R3844

LAPPDStoreReadInVerbosity 0

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

PsecReceiveMode 1
stopEntries 10000000000

DoPedSubtraction 1
Nboards 6 #Number of pedestal files to be read in
PedinputfileTXT ../Pedestals/swapLAPPD/Pedestal
#PedinputfileTXT ../Pedestals/change/Pedestal

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

#LAPPDReorderData
LAPPDReorderVerbosityLevel 0
ReorderInputWavLabel RawLAPPDData
ReorderOutputWavLabel LAPPDWaveforms
DelayOffset 0
GlobalShift 0

ReadStore 0
NUM_VECTOR_DATA 7795
NUM_VECTOR_PPS 16
OutputWavLabel RawLAPPDData
SelectSingleLAPPD false
SelectedLAPPD 0
LoadLAPPDMap 1
72 changes: 72 additions & 0 deletions configfiles/LAPPDProcessedAna/ConfigTXT
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
#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_PPS 16 #Fixed PPS vector size
NUM_VECTOR_DATA 7795 #Fixed DATA vector size
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 0
MultiLAPPDMap 1
stopEntries 10000000000

DoPedSubtraction 1
Nboards 6 #Number of pedestal files to be read in
#PedinputfileTXT ../Pedestals/LAPPD645839/P
PedinputfileTXT ../Pedestals/LAPPD40/P

PSECinputfile /pnfs/annie/persistent/processed/LAPPD40Merged/FinalVersion_withRawTS/FilteredData_PMT_MRDtrack_noveto_15mV_7strips_3xxx_104

ReadStorePdeFile 0
loadFromStoreDirectly 0

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

#LAPPDReorderData
ReorderVerbosityLevel 0
#ReorderInputWavLabel RawLAPPDData
ReorderInputWavLabel AlignedLAPPDData
ReorderOutputWavLabel LAPPDWaveforms
DelayOffset 0
GlobalShift 180

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

#LAPPDTreeMaker
LoadPulse 1
LoadHit 1
LoadWaveform 1
LoadLAPPDDataTimeStamp 1
LoadPPSTimestamp 0
LoadRunInfoRaw 0
LoadRunInfoANNIEEvent 1

treeMakerVerbosity 0
MultiLAPPDMapTreeMaker 1
treeMakerInputPulseLabel LAPPDPulses
treeMakerInputHitLabel LAPPDHits
treeMakerOutputFileName LAPPDTree_processedAna.root
LoadTriggerInfo 0
LoadGroupOption beam
LoadGroupedTriggerInfo 1
Loading
Loading