ATLAS Offline Software
Namespaces | Functions
Tools.cxx File Reference
#include "TopAnalysis/Tools.h"
#include "TopAnalysis/ObjectLoaderBase.h"
#include "TopAnalysis/EventSaverBase.h"
#include "TopEvent/Event.h"
#include "TopEvent/EventTools.h"
#include "TopEventSelectionTools/ToolLoaderBase.h"
#include <cmath>
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <memory>
#include <sstream>
#include <utility>
#include "TTree.h"
#include "TFile.h"
#include "TSystem.h"
#include "TROOT.h"
#include "xAODRootAccess/Init.h"
#include "AsgMessaging/StatusCode.h"
#include "PATInterfaces/CorrectionCode.h"
#include "AsgTools/AsgMetadataTool.h"
#include "xAODTruth/TruthMetaData.h"
#include "xAODTruth/TruthMetaDataContainer.h"
#include "AthAnalysisBaseComps/AthAnalysisHelper.h"
#include "TopAnalysis/MsgCategory.h"

Go to the source code of this file.

Namespaces

 top
 TopConfig A simple configuration that is NOT a singleton.
 

Functions

void top::xAODInit (bool failOnUnchecked=true)
 A little wrapper for the xAOD tools. More...
 
std::string top::getDerivationStream (TFile *inputFile)
 Function to determine the derivation type using string manipulation. More...
 
void top::parseCutBookkeepers (xAOD::TEvent &event, const std::size_t size, std::vector< std::string > &names, std::vector< float > &sumW)
 Search bookkeepers for ones matching AllExecutedEvents, and which originate from AOD before skimming. More...
 
ULong64_t top::getRawEventsBookkeeper (const xAOD::CutBookkeeperContainer *cutBookKeepers)
 Get raw number of events before skimming from "AllExecutedEvents" bookkeeper. More...
 
void top::renameCutBookkeepers (std::vector< std::string > &bookkepeer_names, const std::vector< std::string > &pmg_weight_names)
 Rename CutBookkeeper names according to MC generator weight names reported by PMGTruthWeightTool. More...
 
std::vector< std::string > top::loadCuts (const std::string &filename)
 Load the file and make a vector of the cuts to pass on to the selection tool. More...
 
size_t top::checkFiles (const std::vector< std::string > &filenames)
 Open each file in the vector and get the number of events in it. More...
 
std::vector< std::string > top::fileList (const std::string &filename)
 Given a filename for a text file, parse it and extract a list of root files. More...
 
void top::loadLibraries (const std::string &libraryNames)
 So that we can load external libraries with (1) extra event selection tools in, (2) user defined object selection and (3) user defined output file formats. More...
 
top::TopObjectSelectiontop::loadObjectSelection (const std::shared_ptr< top::TopConfig > &config)
 Users may want to define (and load!) their own object selection. More...
 
top::EventSaverBasetop::loadEventSaver (const std::shared_ptr< top::TopConfig > &config)
 Users may also want to write out custom ntuples / xAODs. More...
 
bool top::readMetaData (TFile *inputFile, const std::shared_ptr< top::TopConfig > &config)
 This function will be used to load the metadata object and pull information from it. More...
 
void top::readMetaData (const xAOD::FileMetaData *FMD, const std::shared_ptr< top::TopConfig > &config)
 Retrieve metadata from xAOD::FileMetaData object, to be stored in the TopConfig instance. More...