|
MUSIC unknown
Analysis for the MUSIC active-target ionization chamber
|
On-disk home of the per-strip (a,n) and (a,a') region cuts. More...
Functions | |
| TString | Dir () |
| Directory holding the region cut files. | |
| TString | Path (const char *name, Int_t reac) |
| Path to one cut's file. | |
| void | Save (Int_t reac, TCutG *cut_an, TCutG *cut_aa, Double_t n_an_assigned=-1.0) |
| Write a strip's two region cuts. | |
| TCutG * | Load (const char *name, Int_t reac) |
| Load a cut, from either storage generation. | |
| TCutG * | LoadDrawn (const char *name, Int_t reac) |
| Load only a hand-drawn cut, never a fitted one. | |
| Double_t | LoadAssigned (const char *name, Int_t reac) |
| The attributed count stored with a cut. | |
| void | SaveFit (Int_t reac, const RegionFit &fit) |
| Store the fitted components beside the (a,n) cut. | |
| Bool_t | LoadFit (Int_t reac, RegionFit &fit) |
| Read back a stored fit. | |
On-disk home of the per-strip (a,n) and (a,a') region cuts.
Shared by strip-sum-scatter, which draws or loads them, and compute-regions, which fits them — so the two tools can never disagree about where a cut lives.
One cut per file, written RECREATE. Saving one strip's region therefore cannot touch another's, and never touches the scatter cache: cuts are applied at read time, so a new cut is picked up on the next read with no cache rebuild.
| TString RegionCutStore::Dir | ( | ) |
Directory holding the region cut files.
Definition at line 25 of file RegionCuts.cpp.
| TCutG * RegionCutStore::Load | ( | const char * | name, |
| Int_t | reac ) |
Load a cut, from either storage generation.
Tries the per-cut file first, then the pre-split combined RegionCuts.root, so cuts drawn before the split keep working until they are next replaced.
| name | Cut name. |
| reac | Reaction strip index. |
Definition at line 158 of file RegionCuts.cpp.
| Double_t RegionCutStore::LoadAssigned | ( | const char * | name, |
| Int_t | reac ) |
The attributed count stored with a cut.
| name | Cut name. |
| reac | Reaction strip index. |
Definition at line 127 of file RegionCuts.cpp.
| TCutG * RegionCutStore::LoadDrawn | ( | const char * | name, |
| Int_t | reac ) |
Load only a hand-drawn cut, never a fitted one.
Sources are interactive strip-sum-scatter and the pre-split RegionCuts.root. Used where a measurement must rest on a human's judgement rather than on the mixture fit — the tag efficiency bootstrap, for instance.
| name | Cut name. |
| reac | Reaction strip index. |
Definition at line 168 of file RegionCuts.cpp.
| Bool_t RegionCutStore::LoadFit | ( | Int_t | reac, |
| RegionFit & | fit ) |
Read back a stored fit.
| reac | Reaction strip index. | |
| [out] | fit | Set on success; untouched otherwise. |
Definition at line 97 of file RegionCuts.cpp.
| TString RegionCutStore::Path | ( | const char * | name, |
| Int_t | reac ) |
Path to one cut's file.
| name | Cut name, e.g. the (a,n) or (a,a') label. |
| reac | Reaction strip index. |
Definition at line 27 of file RegionCuts.cpp.
Referenced by Load(), LoadAssigned(), LoadDrawn(), LoadFit(), and SaveFit().
| void RegionCutStore::Save | ( | Int_t | reac, |
| TCutG * | cut_an, | ||
| TCutG * | cut_aa, | ||
| Double_t | n_an_assigned = -1.0 ) |
Write a strip's two region cuts.
| reac | Reaction strip index. |
| cut_an | The (a,n) region. |
| cut_aa | The (a,a') region. |
| n_an_assigned | Events the fit attributed to the reaction component. When >= 0 this is stored beside the (a,n) cut, for the cross section to prefer over a geometric count of the region. Hand-drawn cuts have none, hence the -1 default. |
Definition at line 55 of file RegionCuts.cpp.
Referenced by main().
| void RegionCutStore::SaveFit | ( | Int_t | reac, |
| const RegionFit & | fit ) |
Store the fitted components beside the (a,n) cut.
Kept so a later step can weight events by the mixture's own posterior rather than by a geometric cut.
| reac | Reaction strip index. |
| fit | Fit to store. |
Definition at line 80 of file RegionCuts.cpp.
Referenced by main().