-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
122 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no" ?> | ||
|
||
<!--In this example, when launching the analysis, we are doing following operations inside TRestManager: | ||
1. Initialize TRestRun | ||
1.1 set input and output file for TRestRun(here input and output is in "globals") | ||
1.2 addMetadata to TRestRun | ||
2. Initialize TRestProcessRunner | ||
2.1 set number of events to process | ||
2.2 set thread number | ||
2.3 set output tree branches | ||
2.4 add multiple processes | ||
2.4.1 override some parameters in the process | ||
2.4.1 add additional observables in the process | ||
3. Add a task to call TRestProcessRunner to run | ||
--> | ||
|
||
<TRestManager name="CoBoDataAnalysis" title="Example" verboseLevel="info"> | ||
|
||
<TRestRun name="SJTU_Proto"> | ||
<parameter name="runNumber" value="auto"/>//change this value to "auto" to enable database | ||
<parameter name="inputFileName" value="auto"/> | ||
</TRestRun> | ||
|
||
<TRestProcessRunner name="Processor" verboseLevel="info"> | ||
<parameter name="eventsToProcess" value="0"/> | ||
<parameter name="threadNumber" value="2"/> | ||
|
||
<parameter name="inputAnalysisStorage" value="on"/> | ||
<parameter name="inputEventStorage" value="off"/> | ||
<parameter name="outputEventStorage" value="on"/> | ||
|
||
<addProcess type="TRestRawMultiCoBoAsAdToSignalProcess" name="virtualDAQ" value="ON"/> | ||
<addProcess type="TRestRawSignalAnalysisProcess" name="sAna" value="ON"> | ||
<parameter name="pointsOverThreshold" value="3"/> | ||
/// We define all observables except MinValue because it is not yet in validation chain | ||
<observable name="BaseLineMean" value="ON"/> | ||
<observable name="BaseLineSigmaMean" value="ON"/> | ||
<observable name="TimeBinsLength" value="ON"/> | ||
<observable name="FullIntegral" value="ON"/> | ||
<observable name="ThresholdIntegral" value="ON"/> | ||
<observable name="RiseSlopeAvg" value="ON"/> | ||
<observable name="SlopeIntegral" value="ON"/> | ||
<observable name="RateOfChangeAvg" value="ON"/> | ||
<observable name="RiseTimeAvg" value="ON"/> | ||
<observable name="TripleMaxIntegral" value="ON"/> | ||
<observable name="IntegralBalance" value="ON"/> | ||
<observable name="AmplitudeIntegralRatio" value="ON"/> | ||
<observable name="MinPeakAmplitude" value="ON"/> | ||
<observable name="MaxPeakAmplitude" value="ON"/> | ||
<observable name="PeakAmplitudeIntegral" value="ON"/> | ||
<observable name="AmplitudeRatio" value="ON"/> | ||
<observable name="MaxPeakTime" value="ON"/> | ||
<observable name="MinPeakTime" value="ON"/> | ||
<observable name="MaxPeakTimeDelay" value="ON"/> | ||
<observable name="AveragePeakTime" value="ON"/> | ||
|
||
</addProcess> | ||
<addProcess type="TRestEventRateAnalysisProcess" name="rateAna" value="ON" observable="all"/> | ||
<addProcess type="TRestRawToDetectorSignalProcess" name="rawSignalToSignal" value="ON"> | ||
<parameter name="sampling" value="0.2us"/> | ||
<parameter name="zeroSuppression" value="true"/> | ||
<parameter name="nPointsOverThreshold" value="3"/> | ||
</addProcess> | ||
|
||
<addProcess type="TRestRealTimeDrawingProcess" name="rD" value="ON" drawInterval="1000"> | ||
<TRestAnalysisPlot name="TriggerRatePlot" previewPlot="false"> | ||
<canvas size="(1000,800)" save="TriggerRate.png"/> | ||
<plot name="TriggerRate" title="Trigger Rate" xlabel="Seconds From Start" ylabel="Counts" value="ON" | ||
stats="ON"> | ||
<variable name="rateAna_SecondsFromStart" range="auto" nbins="100"/> | ||
</plot> | ||
</TRestAnalysisPlot> | ||
</addProcess> | ||
|
||
|
||
</TRestProcessRunner> | ||
|
||
<addTask type="processEvents" value="ON"/> | ||
|
||
|
||
<globals> | ||
<searchPath value="$ENV{REST_INPUTDATA}/definitions/"/> | ||
<parameter name="mainDataPath" value=""/> | ||
|
||
<parameter name="pointThreshold" value="3"/> | ||
</globals> | ||
|
||
</TRestManager> | ||
|
||
|
||
<!--parameter here is accessible to all the classes--> |