Read output files from a search. More...
#include <SearchRead.h>
Public Member Functions | |
Long64_t | Draw (const string varexp, const string selection="", string option="") |
Draws clusters and coinc parameters. | |
double | GetCoincFrequency0 (void) |
Returns the event frequency for trigger sample 0. | |
double | GetCoincFrequency1 (void) |
Returns the event frequency for trigger sample 1. | |
int | GetCoincInjectionIndex (void) |
Returns the matching injection index. | |
double | GetCoincLiveTime (void) |
Returns the coinc livetime. | |
double | GetCoincMorphMatch (void) |
Returns the morphology match of the current coinc. | |
double | GetCoincMorphMatchShift (void) |
Returns the morphology match time shift of the current coinc. | |
double | GetCoincMorphMatchSumw2 (void) |
Returns the morphology sum of weigth squared of the current coinc. | |
double | GetCoincSNR0 (void) |
Returns the event SNR for trigger sample 0. | |
double | GetCoincSNR1 (void) |
Returns the event SNR for trigger sample 1. | |
double | GetCoincTime0 (void) |
Returns the event time for trigger sample 0. | |
double | GetCoincTime1 (void) |
Returns the event time for trigger sample 1. | |
double | GetCoincTimeOffset0 (void) |
Returns the time offset for trigger sample 0. | |
double | GetCoincTimeOffset1 (void) |
Returns the time offset for trigger sample 1. | |
int | GetEntry (Long64_t aCoincIndex=0, Int_t getall=0) |
Loads a given coinc. | |
double | GetStatus (void) |
Returns the class status. | |
bool | IsInjectionBestMatch (void) |
Returns true if this coinc best matches an injection. | |
Constructors and destructors | |
SearchRead (const string aFilePattern, const int aVerbose=0) | |
Constructor of the SearchRead class. | |
virtual | ~SearchRead (void) |
Destructor of the SearchRead class. | |
Protected Attributes | |
bool | status_OK |
class status | |
int | verbosity |
verbosity level |
Read output files from a search.
These files must be produced with the MorphMatch (or the derived InjCoi) class and contain coinc events. This class is able to detect the presence (or not) of injections with the InjRea class from which it inherits.
This class can be used interactively to plot coinc events and associated injection parameters.
SearchRead::SearchRead | ( | const string | aFilePattern, | |
const int | aVerbose = 0 | |||
) |
Constructor of the SearchRead class.
Coinc events are loaded. Cluster trees (clusters_0 and clusters_1) are loaded and added as friends. They are aliased as "c0" and "c1". If injections are found, they are connected to the coinc as well.
aFilePattern | coinc file pattern, morphmatch parameters must exist | |
aVerbose | verbosity level |
SearchRead::~SearchRead | ( | void | ) | [virtual] |
Destructor of the SearchRead class.
Long64_t SearchRead::Draw | ( | const string | varexp, | |
const string | selection = "" , |
|||
string | option = "" | |||
) | [inline] |
Draws clusters and coinc parameters.
This function is an overload of the ROOT function: TChain::Draw().
double SearchRead::GetCoincFrequency0 | ( | void | ) | [inline] |
Returns the event frequency for trigger sample 0.
double SearchRead::GetCoincFrequency1 | ( | void | ) | [inline] |
Returns the event frequency for trigger sample 1.
Use GetEntry() to load a given coinc event.
int SearchRead::GetCoincInjectionIndex | ( | void | ) | [inline] |
Returns the matching injection index.
When the coinc matches an injection, the injection index is returned. If the coinc does not match ay injection, -1 is returned.
double SearchRead::GetCoincLiveTime | ( | void | ) | [inline] |
Returns the coinc livetime.
double SearchRead::GetCoincMorphMatch | ( | void | ) | [inline] |
Returns the morphology match of the current coinc.
Use GetEntry() to load a given coinc event.
double SearchRead::GetCoincMorphMatchShift | ( | void | ) | [inline] |
Returns the morphology match time shift of the current coinc.
Use GetEntry() to load a given coinc event.
double SearchRead::GetCoincMorphMatchSumw2 | ( | void | ) | [inline] |
Returns the morphology sum of weigth squared of the current coinc.
Use GetEntry() to load a given coinc event.
double SearchRead::GetCoincSNR0 | ( | void | ) | [inline] |
Returns the event SNR for trigger sample 0.
Use GetEntry() to load a given coinc event.
double SearchRead::GetCoincSNR1 | ( | void | ) | [inline] |
Returns the event SNR for trigger sample 1.
Use GetEntry() to load a given coinc event.
double SearchRead::GetCoincTime0 | ( | void | ) | [inline] |
Returns the event time for trigger sample 0.
Use GetEntry() to load a given coinc event.
double SearchRead::GetCoincTime1 | ( | void | ) | [inline] |
Returns the event time for trigger sample 1.
Use GetEntry() to load a given coinc event.
double SearchRead::GetCoincTimeOffset0 | ( | void | ) | [inline] |
Returns the time offset for trigger sample 0.
Use GetEntry() to load a given coinc event.
double SearchRead::GetCoincTimeOffset1 | ( | void | ) | [inline] |
Returns the time offset for trigger sample 1.
Use GetEntry() to load a given coinc event.
int SearchRead::GetEntry | ( | Long64_t | aCoincIndex = 0 , |
|
Int_t | getall = 0 | |||
) | [inline] |
Loads a given coinc.
If this coinc matches an injection, injection parameters are also loaded. Use GetCoincInjectionIndex()<0 to test whether there is such a match.
aCoincIndex | coinc index |
double SearchRead::GetStatus | ( | void | ) | [inline] |
Returns the class status.
Reimplemented from InjRea.
bool SearchRead::IsInjectionBestMatch | ( | void | ) | [inline] |
Returns true if this coinc best matches an injection.
Always returns true if there is no injections.
bool SearchRead::status_OK [protected] |
class status
Reimplemented from InjRea.
int SearchRead::verbosity [protected] |
verbosity level