MUSIC unknown
Analysis for the MUSIC active-target ionization chamber
Loading...
Searching...
No Matches

Builds the strip-sum scatters, tags reactions, and draws the results. More...

#include <StripSumScatter.hpp>

Public Member Functions

 StripSumScatter ()
 Construct with empty scatters and no cache loaded.
 ~StripSumScatter ()
 Frees the scatters and the reservoir.
void Run ()
 Build or load the scatters, tag reactions, and draw everything.

Static Public Member Functions

static TString CacheName ()
 Filename of the scatter cache for this configuration.
static void PlaneXY (const Double_t *total, Int_t reac, Double_t &x, Double_t &y)
 Where an event sits in the scatter plane for a given reaction strip.
static Int_t YLoOf (Int_t reac)
 First strip of the post-trigger window summed onto y.
static Int_t YHiOf (Int_t reac)
 Last strip of the post-trigger window, inclusive.
static Bool_t PassesReaction (const EnergyView &ev, Int_t reac)
 Whether an event is tagged as a reaction at a given strip.
Measured beam noise

Measured once from the data and stamped into the cache.

Set before any tagging begins and read-only afterwards, which is what makes them safe to share across the worker threads without synchronisation.

static Double_t JumpSigma (Int_t strip)
 Sigma of the strip-to-strip difference total[s] - total[s-1].
static Double_t StripSigma (Int_t strip)
 Sigma of a strip's own deposit.
static void SetJumpSigma (const Double_t *sigma)
 Install the jump sigmas.
static void SetStripSigma (const Double_t *sigma)
 Install the per-strip sigmas.
static Double_t JumpMin (Int_t reac)
 Minimum jump for a tag: REAC_JUMP_NSIGMA * JumpSigma(reac).

Detailed Description

Builds the strip-sum scatters, tags reactions, and draws the results.

The entry point behind the strip-sum-scatter binary. Fills per-strip scatters from the events files, caches them alongside a reservoir of tagged events, and draws the regions and trace overlays.

Note
The cache carries a fingerprint of every configuration knob that changes its contents — filters, gates, strip spans — so editing any of them rebuilds it automatically on the next run. There is no cache-clearing step to remember.

Definition at line 188 of file StripSumScatter.hpp.

Constructor & Destructor Documentation

◆ StripSumScatter()

StripSumScatter::StripSumScatter ( )

Construct with empty scatters and no cache loaded.

Definition at line 5 of file StripSumScatter.cpp.

◆ ~StripSumScatter()

StripSumScatter::~StripSumScatter ( )

Frees the scatters and the reservoir.

Definition at line 22 of file StripSumScatter.cpp.

Member Function Documentation

◆ CacheName()

TString StripSumScatter::CacheName ( )
static

Filename of the scatter cache for this configuration.

Note
compute-regions reads the same file, so the name is defined here and nowhere else.

Definition at line 350 of file StripSumScatter.cpp.

Referenced by main(), Run(), and TagEfficiency::Run().

◆ JumpMin()

Double_t StripSumScatter::JumpMin ( Int_t reac)
static

Minimum jump for a tag: REAC_JUMP_NSIGMA * JumpSigma(reac).

Parameters
reacReaction strip index.

Definition at line 68 of file StripSumScatter.cpp.

Referenced by PassesReaction(), and Run().

◆ JumpSigma()

Double_t StripSumScatter::JumpSigma ( Int_t strip)
static

Sigma of the strip-to-strip difference total[s] - total[s-1].

Parameters
stripStrip index.

Definition at line 50 of file StripSumScatter.cpp.

Referenced by JumpMin().

◆ PassesReaction()

Bool_t StripSumScatter::PassesReaction ( const EnergyView & ev,
Int_t reac )
static

Whether an event is tagged as a reaction at a given strip.

Parameters
evDecoded event.
reacReaction strip index.
Returns
kTRUE if the event is tagged there.
Note
Public because TagEfficiency pushes bootstrapped traces through this same tag. An efficiency measured against a different selection than the one that produced the count would not apply to it.

Definition at line 181 of file StripSumScatter.cpp.

◆ PlaneXY()

void StripSumScatter::PlaneXY ( const Double_t * total,
Int_t reac,
Double_t & x,
Double_t & y )
static

Where an event sits in the scatter plane for a given reaction strip.

x is the sum over X_LO..X_HI; y is the sum over the post-trigger window.

Parameters
totalCalibrated per-strip totals for the event.
reacReaction strip index.
[out]xPlane x coordinate.
[out]yPlane y coordinate.
Note
Every consumer of a region cut goes through this, which is what stops the fill, the overlay and the cross section from ever disagreeing about where an event sits.

Definition at line 324 of file StripSumScatter.cpp.

◆ Run()

void StripSumScatter::Run ( )

Build or load the scatters, tag reactions, and draw everything.

The entry point called from main_strip_sum_scatter.cpp.

Definition at line 2848 of file StripSumScatter.cpp.

Referenced by main().

◆ SetJumpSigma()

void StripSumScatter::SetJumpSigma ( const Double_t * sigma)
static

Install the jump sigmas.

Call before tagging starts.

Parameters
sigma18 values, one per strip.

Definition at line 58 of file StripSumScatter.cpp.

Referenced by Run().

◆ SetStripSigma()

void StripSumScatter::SetStripSigma ( const Double_t * sigma)
static

Install the per-strip sigmas.

Call before tagging starts.

Parameters
sigma18 values, one per strip.

Definition at line 63 of file StripSumScatter.cpp.

Referenced by Run().

◆ StripSigma()

Double_t StripSumScatter::StripSigma ( Int_t strip)
static

Sigma of a strip's own deposit.

Parameters
stripStrip index.

Definition at line 54 of file StripSumScatter.cpp.

◆ YHiOf()

Int_t StripSumScatter::YHiOf ( Int_t reac)
static

Last strip of the post-trigger window, inclusive.

Parameters
reacReaction strip index.

Definition at line 35 of file StripSumScatter.cpp.

Referenced by PlaneXY().

◆ YLoOf()

Int_t StripSumScatter::YLoOf ( Int_t reac)
static

First strip of the post-trigger window summed onto y.

Parameters
reacReaction strip index.
Returns
The strip index, inclusive, per the POST_TRIGGER_SUM_STRIPS / POST_WINDOW_LAST_STRIP / POST_WINDOW_STRIPS rule.

Definition at line 33 of file StripSumScatter.cpp.

Referenced by PlaneXY().


The documentation for this class was generated from the following files: