LDMX Software
|
Checks: More...
Public Member Functions | |
isGoodEventFile (const std::string &pass, const int &entries, const int &runs, bool existColl=true, bool existObj=true) | |
Constructor. | |
bool | match (const std::string &filename) const override |
Actually do the matching. | |
virtual std::string | describe () const override |
Human-readable statement for any match that is true. | |
Private Attributes | |
std::string | pass_ |
pass name to check the collection and/or object for | |
int | entries_ |
correct number of entries in the event ttree | |
int | runs_ |
correct number of runs | |
bool | existCollection_ |
collection should exist in file | |
bool | existObject_ |
object should exist in file | |
Checks:
Definition at line 235 of file FunctionalCoreTest.cxx.
|
inline |
Constructor.
Sets the correct number of entries and the other checking parameters
Definition at line 258 of file FunctionalCoreTest.cxx.
|
inlineoverridevirtual |
Human-readable statement for any match that is true.
Definition at line 358 of file FunctionalCoreTest.cxx.
References existCollection_, existObject_, and pass_.
|
inlineoverride |
Actually do the matching.
The event and run tree names are hardcoded. The branchnames are also hardcoded.
[in] | filename | name of event file to check |
Definition at line 274 of file FunctionalCoreTest.cxx.
References entries_, existCollection_, existObject_, pass_, and runs_.
|
private |
correct number of entries in the event ttree
Definition at line 241 of file FunctionalCoreTest.cxx.
Referenced by match().
|
private |
collection should exist in file
Definition at line 247 of file FunctionalCoreTest.cxx.
Referenced by describe(), and match().
|
private |
object should exist in file
Definition at line 250 of file FunctionalCoreTest.cxx.
Referenced by describe(), and match().
|
private |
pass name to check the collection and/or object for
Definition at line 238 of file FunctionalCoreTest.cxx.
Referenced by describe(), and match().
|
private |
correct number of runs
Definition at line 244 of file FunctionalCoreTest.cxx.
Referenced by match().