Collection of events for matching. More...
#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N21-01-16/LEM/func/Library.h"
Public Member Functions | |
~Library () | |
const LibrarySummary & | Summary () const |
unsigned int | NEvents () const |
const MatchableEvent & | Event (int i) const |
const MatchableEvent & | DownsampledEvent (int i) const |
const MatchableEvent * | Events () const |
const MatchableEvent * | DownsampledEvents () const |
Static Public Member Functions | |
static Library * | FromMMap (const std::string &libPath, bool touchAll) |
static Library * | FromMMapOnDemand (const std::string &libPath) |
static Library * | FromTrees (const std::string &libPath, int splitLibFactor, int splitLibIndex, int downsampleFactor) |
Protected Member Functions | |
Library () | |
Library (const Library &) | |
Library & | operator= (const Library &) |
Static Protected Member Functions | |
static double | SimpleSurvivalProb (const EventSummary &evt) |
Protected Attributes | |
LibrarySummary | fSummary |
unsigned int | fLibSize |
MatchableEvent * | fLib |
MatchableEvent * | fLibDownsample |
long | fMappingSize |
lem::Library::~Library | ( | ) |
|
inlineprotected |
Definition at line 38 of file Library.h.
References evt, operator=(), and SimpleSurvivalProb().
Referenced by FromMMap(), FromMMapOnDemand(), and FromTrees().
|
protected |
|
inline |
Definition at line 33 of file Library.h.
References fLibDownsample, and MECModelEnuComparisons::i.
Referenced by lem::FindMatchesTranspose::endRun().
|
inline |
Definition at line 35 of file Library.h.
References fLibDownsample.
Referenced by lem::LEM::produce().
|
inline |
Definition at line 32 of file Library.h.
References fLib, and MECModelEnuComparisons::i.
Referenced by dump_event(), lem::FindMatchesTranspose::endRun(), lem::FindLEMMatches::produce(), lem::LEM::produce(), refresh(), and show_potential().
|
inline |
|
static |
Definition at line 62 of file Library.cxx.
References fLib, fLibDownsample, fLibSize, fMappingSize, fSummary, cvnie::lib, Library(), lem::MMapFileAtAddress(), and lem::LibrarySummary::N.
Referenced by lem::LEM::beginJob(), dump_event(), lem::FindMatchesTranspose::endRun(), lem::FindMatchesAlg::FindMatchesAlg(), lem::LEMLibrary::LEMLibrary(), preload_lib(), show_event(), and show_potential().
|
static |
Definition at line 82 of file Library.cxx.
References lem::CreateOnDemandMapping(), fLib, fLibDownsample, fLibSize, fSummary, cvnie::lib, Library(), and lem::LibrarySummary::N.
Referenced by lem::LEM::beginJob(), lem::FindMatchesTranspose::endRun(), and lem::LEMLibrary::LEMLibrary().
|
static |
Definition at line 100 of file Library.cxx.
References ana::assert(), lem::EventSummary::ccnc, om::cout, lem::MatchableEvent::Downsampled(), allTimeWatchdog::endl, evt, fLib, fLibDownsample, fLibSize, fMappingSize, lem::EventSummary::FromTree(), fSummary, lem::EventSummary::id, lem::EventSummary::InitFromTree(), lem::EventSummary::IsSig(), cvnie::lib, Library(), getGoodRuns4SAM::n, lem::LibrarySummary::nSwapNC, lem::LibrarySummary::nTrueNC, lem::EventSummary::origPdg, P, lem::EventSummary::pdg, SimpleSurvivalProb(), sum, lem::LibrarySummary::totBkg, lem::LibrarySummary::totEnrich, lem::LibrarySummary::totSig, and lem::MatchableEvent::weight.
Referenced by lem::LEM::beginJob(), and lem::LEMLibrary::LEMLibrary().
|
inline |
Definition at line 31 of file Library.h.
References fLibSize.
Referenced by lem::FindMatchesTranspose::endRun(), and lem::LEM::produce().
|
staticprotected |
Definition at line 28 of file Library.cxx.
References abs(), lem::EventSummary::ccnc, e, lem::EventSummary::IsSig(), lem::EventSummary::origPdg, lem::EventSummary::pdg, std::sin(), util::sqr(), and lem::EventSummary::trueEVis.
Referenced by FromTrees(), and Library().
|
inline |
Definition at line 30 of file Library.h.
References fSummary.
Referenced by lem::FindLEMMatches::beginRun(), lem::LEM::beginRun(), and lem::FindMatchesTranspose::endRun().
|
protected |
Definition at line 46 of file Library.h.
Referenced by Event(), Events(), FromMMap(), FromMMapOnDemand(), FromTrees(), and ~Library().
|
protected |
Definition at line 47 of file Library.h.
Referenced by DownsampledEvent(), DownsampledEvents(), FromMMap(), FromMMapOnDemand(), FromTrees(), and ~Library().
|
protected |
Definition at line 45 of file Library.h.
Referenced by FromMMap(), FromMMapOnDemand(), FromTrees(), and NEvents().
|
protected |
Definition at line 49 of file Library.h.
Referenced by FromMMap(), FromTrees(), and ~Library().
|
protected |
Definition at line 44 of file Library.h.
Referenced by FromMMap(), FromMMapOnDemand(), FromTrees(), and Summary().