Skip to content
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
2 changes: 1 addition & 1 deletion CRV/CrvCalibration.C
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const int minHistEntries=100;
const int spectrumNPeaks=6;
const double spectrumPeakSigma=4.0;
const double spectrumPeakThreshold=0.01;
const double peakRatioTolerance=0.1;
const double peakRatioTolerance=0.2;

bool FindSPEpeak(TH1F *hist, TSpectrum &spectrum, double &SPEpeak);

Expand Down
10 changes: 9 additions & 1 deletion CRV/CrvCalibration_extracted.fcl
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,21 @@ services :
physics: {
producers :
{
CrvDigi :
{
module_type : CrvDigisFromArtdaqFragmentsFEBII
diagLevel : 0
useSubsystem0 : false
produceZS : false
}
CrvRecoPulses: @local::CrvRecoPulses
}
analyzers:
{
CrvCalibration: @local::CrvCalibration
}

TriggerPath : [ CrvRecoPulses ]
TriggerPath : [ CrvDigi, CrvRecoPulses ]
EndPath : [ CrvCalibration ]
trigger_paths : [ TriggerPath ]
end_paths : [ EndPath ]
Expand All @@ -35,6 +42,7 @@ physics: {
physics.producers.CrvRecoPulses.NZSdata : true
physics.producers.CrvRecoPulses.pedestalUndershootThreshold : 10000.0 //prevents it from taking the 1st ADC sample
physics.producers.CrvRecoPulses.minADCdifference : 5 //minimum ADC difference above pedestal to be considered for reconstruction
physics.analyzers.CrvCalibration.peakRatioTolerance : 0.2
physics.analyzers.CrvCalibration.tmpDBfileName : "calibrationExtracted.txt"
services.TFileService.fileName : "calibrationExtracted.root"
services.GeometryService.inputFile: "Offline/Mu2eG4/geom/geom_common_extracted.txt"
Expand Down
13 changes: 1 addition & 12 deletions CRV/CrvPedestal_extracted.fcl
Original file line number Diff line number Diff line change
Expand Up @@ -36,21 +36,10 @@ physics: {
}

TriggerPath : [ CrvDigi ]
EndPath : [ CrvPedestalFinder, outfileNZS ]
EndPath : [ CrvPedestalFinder ]
trigger_paths : [ TriggerPath ]
end_paths : [ EndPath ]
}
outputs:
{
outfileNZS :
{
module_type : RootOutput
fileName : "crvDigiNZSExtracted.art"
outputCommands : [ "drop *_*_*_*" ,
"keep mu2e::CrvDAQerrors_*_*_*" ,
"keep mu2e::CrvDigis_*_NZS_*" ]
}
}

physics.analyzers.CrvPedestalFinder.tmpDBfileName : "pedestalsExtracted.txt"
physics.analyzers.CrvPedestalFinder.firstSampleOnly : true
Expand Down