![]() |
ATLAS Offline Software
|
#include <fstream>#include <map>#include <memory>#include <getopt.h>#include <TSystem.h>#include <TError.h>#include <TFile.h>#include <TH1F.h>#include "POOLRootAccess/TEvent.h"#include "AsgTools/AnaToolHandle.h"#include "xAODEventInfo/EventInfo.h"#include "xAODEventInfo/EventAuxInfo.h"#include "xAODEgamma/Electron.h"#include "xAODMuon/Muon.h"#include "AthContainers/Accessor.h"#include "AsgMessaging/MessageCheck.h"#include "AsgAnalysisInterfaces/IFakeBkgTool.h"#include "AsgAnalysisInterfaces/ILinearFakeBkgTool.h"#include "TruthUtils/ParticleConstants.h"Go to the source code of this file.
Classes | |
| struct | Result |
Macros | |
| #define | FBT_CHECK1(x, FAIL) |
| #define | FBT_CHECK(x) |
Typedefs | |
| using | Store_t = StoreGateSvc* |
Functions | |
| bool | successful (bool arg) |
| bool | successful (const StatusCode &arg) |
| bool | allTests (Store_t &store) |
| bool | minimalTest (const std::string &type, const std::vector< std::string > &config, Store_t &store, Result &result) |
| bool | parallelJob (const std::string &type, const std::vector< std::string > &config, Store_t &store, const std::string &saveAs, int nEvents, int eventOffset) |
| bool | readFromROOT (std::vector< std::string > &config) |
| bool | readFromXML (std::vector< std::string > &config) |
| template<class Interface = CP::IFakeBkgTool> | |
| bool | setup (asg::AnaToolHandle< Interface > &tool, const std::string &type, const std::vector< std::string > &config, const std::string &progressFile) |
| mostly useful for athena, which will otherwise re-use the previous tool | |
| template<class Interface = CP::IFakeBkgTool> | |
| bool | eventLoop (asg::AnaToolHandle< Interface > &tool, Store_t &store, Result &result, int nEvents, int eventOffset=0) |
| bool | addEventWeight (asg::AnaToolHandle< CP::ILinearFakeBkgTool > &tool, Result &result) |
| bool | addEventWeight (asg::AnaToolHandle< CP::IFakeBkgTool > &tool, Result &result) |
| template<class Interface = CP::IFakeBkgTool> | |
| bool | fillResult (asg::AnaToolHandle< Interface > &tool, Result &result) |
| int | main (int argc, char *argv[]) |
Variables | |
| const std::string | selection = ">=1T" |
| const std::string | process = ">=1F[T]" |
| const bool | readCPVariations = true |
| const int | nEvents = 48 |
| std::atomic< bool > | verbose = false |
| static std::atomic< long > | instance = 0 |
| #define FBT_CHECK | ( | x | ) |
Definition at line 47 of file fbtTestBasics.cxx.
| #define FBT_CHECK1 | ( | x, | |
| FAIL ) |
Definition at line 40 of file fbtTestBasics.cxx.
| using Store_t = StoreGateSvc* |
Definition at line 60 of file fbtTestBasics.cxx.
| bool addEventWeight | ( | asg::AnaToolHandle< CP::IFakeBkgTool > & | tool, |
| Result & | result ) |
Definition at line 254 of file fbtTestBasics.cxx.
| bool addEventWeight | ( | asg::AnaToolHandle< CP::ILinearFakeBkgTool > & | tool, |
| Result & | result ) |
Definition at line 237 of file fbtTestBasics.cxx.
| bool allTests | ( | Store_t & | store | ) |
Definition at line 110 of file fbtTestBasics.cxx.
| bool eventLoop | ( | asg::AnaToolHandle< Interface > & | tool, |
| Store_t & | store, | ||
| Result & | result, | ||
| int | nEvents, | ||
| int | eventOffset = 0 ) |
Definition at line 205 of file fbtTestBasics.cxx.
| bool fillResult | ( | asg::AnaToolHandle< Interface > & | tool, |
| Result & | result ) |
Definition at line 260 of file fbtTestBasics.cxx.
| int main | ( | int | argc, |
| char * | argv[] ) |
Definition at line 82 of file fbtTestBasics.cxx.
| bool parallelJob | ( | const std::string & | type, |
| const std::vector< std::string > & | config, | ||
| Store_t & | store, | ||
| const std::string & | saveAs, | ||
| int | nEvents, | ||
| int | eventOffset ) |
| bool readFromROOT | ( | std::vector< std::string > & | config | ) |
Definition at line 310 of file fbtTestBasics.cxx.
| bool readFromXML | ( | std::vector< std::string > & | config | ) |
note: the declarations must be placed in the "good" order, otherwise the definitions of the SystematicVariations will be different than those obtained with readFromROOT()
Definition at line 337 of file fbtTestBasics.cxx.
| bool setup | ( | asg::AnaToolHandle< Interface > & | tool, |
| const std::string & | type, | ||
| const std::vector< std::string > & | config, | ||
| const std::string & | progressFile = "" ) |
mostly useful for athena, which will otherwise re-use the previous tool
Definition at line 186 of file fbtTestBasics.cxx.
| bool successful | ( | bool | arg | ) |
Definition at line 37 of file fbtTestBasics.cxx.
| bool successful | ( | const StatusCode & | arg | ) |
Definition at line 38 of file fbtTestBasics.cxx.
|
static |
Definition at line 183 of file fbtTestBasics.cxx.
| const int nEvents = 48 |
Definition at line 78 of file fbtTestBasics.cxx.
| const std::string process = ">=1F[T]" |
Definition at line 76 of file fbtTestBasics.cxx.
| const bool readCPVariations = true |
Definition at line 77 of file fbtTestBasics.cxx.
| const std::string selection = ">=1T" |
Definition at line 75 of file fbtTestBasics.cxx.
| std::atomic<bool> verbose = false |
Definition at line 80 of file fbtTestBasics.cxx.