Public Member Functions | |
AnalysisTestFramework (string isFilter=".*TestResult", string isServer="TestData") | |
Creates the framework. | |
virtual | ~AnalysisTestFramework () |
void | analyzeAll (int argc, char **argv) |
void | printHelp () |
Call to print the help message and exit. | |
int | getExitCode () |
Return the exit code. | |
Protected Member Functions | |
virtual int | handleArg (int argc, int i, char **argv) |
May be overriden to handle additional args Should return the last used argument index If it doesn't understand the arg, it should call printHelp(). | |
virtual void | printAdditionalArgs () |
Override to print addition help messages. | |
virtual void | printHelpHeader () |
Override to change print help header. | |
virtual void | summaryOutput () |
virtual void | doModule (string serialNumber) |
The main method for doing anything. | |
virtual vector< boost::shared_ptr< T > > | readData (string serialNumber) |
Waits for and returns the data corresponding to serialNumber Reads nData objects. | |
virtual void | publishData () |
Should override this to publish the data. | |
virtual void | downloadData (string serialNumber) |
Should override this to download data from the database. | |
virtual void | compare (const T &t) |
virtual void | setup () |
virtual void | tearDown () |
Close the TFile. | |
Protected Attributes | |
int | exitCode |
bool | readOnly |
bool | debug |
SctTestApi::HighLevelApi_var | highLevelApi |
unsigned int | nModules |
unsigned int | nSkip |
list< string > | modules |
TFile * | file |
TTree * | tree |
SctTest::ModuleData | moduleData |
unsigned int | maxModules |
unsigned int | nData |
string | isFilter |
string | isServer |
list< string > | ignoreModules |
string | ignoreFile |
Private Member Functions | |
void | loadIgnoreFile () |
void | handleArgs (int argc, char **argv) |
Static Private Member Functions | |
static void | getRootApp () |
Definition at line 33 of file AnalysisTestFramework.h.
|
Creates the framework. The isFilter is a string which selects the object in IS. It is assumed that the serial number can be appended to it to create the correct filter. The isServer is the server to get the objects from. Definition at line 335 of file AnalysisTestFramework.h. References AnalysisTestFramework< T >::debug, AnalysisTestFramework< T >::exitCode, AnalysisTestFramework< T >::file, AnalysisTestFramework< T >::maxModules, AnalysisTestFramework< T >::nData, AnalysisTestFramework< T >::nModules, AnalysisTestFramework< T >::nSkip, AnalysisTestFramework< T >::readOnly, and AnalysisTestFramework< T >::tree. |
|
The main method for doing anything. Sets the appropriate module serialNumber, then calls publishData, then calls downloadData, waits for the data to be published, and calls compare. Reimplemented in NagRootCompare. Definition at line 160 of file AnalysisTestFramework.h. References AnalysisTestFramework< T >::compare(), AnalysisTestFramework< T >::downloadData(), AnalysisTestFramework< T >::highLevelApi, AnalysisTestFramework< T >::publishData(), AnalysisTestFramework< T >::readData(), and AnalysisTestFramework< T >::readOnly. Here is the call graph for this function: ![]() |
|
Should override this to download data from the database.
Reimplemented in FullBypassCompare, NoiseOccupancyCompare, NPtGainCompare, PipelineCompare, StrobeDelayCompare, TimeWalkCompare, TrimRangeCompare, and FitCompare. Definition at line 96 of file AnalysisTestFramework.h. Referenced by AnalysisTestFramework< T >::doModule(). |
|
Return the exit code.
Definition at line 53 of file AnalysisTestFramework.h. |
|
May be overriden to handle additional args Should return the last used argument index If it doesn't understand the arg, it should call printHelp().
Reimplemented in NPtGainCompare, and FitCompare. Definition at line 205 of file AnalysisTestFramework.h. References AnalysisTestFramework< T >::printHelp(). Here is the call graph for this function: ![]() |
|
Override to print addition help messages.
Reimplemented in NPtGainCompare, and FitCompare. Definition at line 66 of file AnalysisTestFramework.h. Referenced by AnalysisTestFramework< T >::printHelp(). |
|
Call to print the help message and exit.
Definition at line 191 of file AnalysisTestFramework.h. References AnalysisTestFramework< T >::printAdditionalArgs(), and AnalysisTestFramework< T >::printHelpHeader(). Referenced by AnalysisTestFramework< T >::handleArg(). Here is the call graph for this function: ![]() |
|
Override to change print help header.
Definition at line 184 of file AnalysisTestFramework.h. Referenced by AnalysisTestFramework< T >::printHelp(). |
|
Should override this to publish the data.
Reimplemented in FullBypassCompare, NoiseOccupancyCompare, NPtGainCompare, PipelineCompare, StrobeDelayCompare, TimeWalkCompare, TrimRangeCompare, NagRootCompare, and FitCompare. Definition at line 91 of file AnalysisTestFramework.h. Referenced by AnalysisTestFramework< T >::doModule(). |
|
Waits for and returns the data corresponding to serialNumber Reads nData objects.
Definition at line 128 of file AnalysisTestFramework.h. References AnalysisTestFramework< T >::isFilter, AnalysisTestFramework< T >::isServer, and AnalysisTestFramework< T >::nData. Referenced by AnalysisTestFramework< T >::doModule(). |
|
Close the TFile.
Definition at line 153 of file AnalysisTestFramework.h. References AnalysisTestFramework< T >::file. |