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

TRestDetectorSignalToRawSignalProcess adding optional noise process #45

Merged
merged 6 commits into from
May 6, 2024

Conversation

mariajmz
Copy link
Contributor

@mariajmz mariajmz commented Apr 30, 2024

mariajmz Ok: 29 Powered by Pull Request Badge

Adding optional noise process before and after the shaping process. For the moment, it applies the same noiseLevel before and after the shaping.

To use it, in the rml the user must specify noiseLevel for each type of signal tpc noiseLevelTpc and/or veto noiseLevelVeto. Here we show an example of the rml section:

<addProcess type="TRestDetectorSignalToRawSignalProcess" name="DetectorSignalToRaw" value="ON">   
            <parameter name="nPoints" value="512"/>
            <parameter name="triggerMode" value="integralThresholdTPC"/>
            <parameter name="triggerDelay" value="127"/>
            <parameter name="integralThresholdTPCkeV" value="0.1"/>
            <observable name="triggerTimeTPC" value="ON"/>
            <parameter name="readoutTypes" value="tpc,veto"/>

            <parameter name="samplingTpc" value="20ns"/>
            <parameter name="shapingTimeTpc" value="1200ns"/> 
            <parameter name="noiseLevelTpc" value="10"/>
            <parameter name="calibrationEnergyTpc" value="(0,1.83)keV"/>        
            <parameter name="calibrationRangeTpc" value="(0.05,0.5)"/>

            <parameter name="samplingVeto" value="500ns"/>
            <parameter name="shapingTimeVeto" value="3000ns"/> 
            <parameter name="noiseLevelVeto" value="5"/>
            <parameter name="calibrationEnergyVeto" value="(0,10)MeV"/>
            <parameter name="calibrationRangeVeto" value="(0.05,0.50)"/>
</addProcess>

For example, for a signal induced by an xray of 5.9keV:

noise_0

The signal processed with noiseLevelTpc = 10 is:
noise_10

And, with noiseLevelTpc= 50 is:
noise_50

@lobis lobis self-requested a review May 6, 2024 09:18
@mariajmz mariajmz merged commit a577f65 into master May 6, 2024
63 checks passed
@mariajmz mariajmz deleted the mariajmz_raw_noise branch May 6, 2024 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants