ATLAS Offline Software
Namespaces | Enumerations | Functions | Variables
SUSYToolsAlg.cxx File Reference
#include "SUSYToolsAlg.h"
#include "xAODEventInfo/EventInfo.h"
#include "xAODMuon/MuonContainer.h"
#include "xAODEgamma/ElectronContainer.h"
#include "xAODEgamma/PhotonContainer.h"
#include "xAODJet/JetContainer.h"
#include "xAODTau/TauJetContainer.h"
#include "xAODMissingET/MissingETContainer.h"
#include "xAODMissingET/MissingETAuxContainer.h"
#include "xAODTrigger/TrigCompositeContainer.h"
#include "xAODCore/ShallowCopy.h"
#include "TauAnalysisTools/ITauTruthMatchingTool.h"
#include "AsgAnalysisInterfaces/IGoodRunsListSelectionTool.h"
#include "AsgMessaging/StatusCode.h"
#include "PATInterfaces/SystematicSet.h"
#include "PathResolver/PathResolver.h"
#include "xAODCutFlow/CutBookkeeper.h"
#include "xAODCutFlow/CutBookkeeperContainer.h"
#include "AthAnalysisBaseComps/AthAnalysisHelper.h"
#include "EventInfo/EventStreamInfo.h"
#include "SUSYTools/SUSYObjDef_xAOD.h"
#include "TH1.h"
#include "TH2.h"
#include "TFile.h"
#include "TEfficiency.h"
#include "TString.h"
#include "TEnv.h"
#include "THashList.h"
#include <regex>
#include <cmath>
#include <atomic>

Go to the source code of this file.

Namespaces

 Cut
 

Enumerations

enum  {
  Cut::all =0, Cut::baseline, Cut::passOR, Cut::signal,
  Cut::trigmatch
}
 

Functions

std::string findInReg (SG::AuxTypeRegistry &reg, xAOD::IParticle *obj, const std::string &searchkey)
 
int getSize (std::map< std::string, std::vector< std::string >> &collection, const std::string &object)
 

Variables

const unsigned int Cut::NSel =5
 

Function Documentation

◆ findInReg()

std::string findInReg ( SG::AuxTypeRegistry reg,
xAOD::IParticle obj,
const std::string &  searchkey 
)

Definition at line 1561 of file SUSYToolsAlg.cxx.

1561  {
1562  std::regex re_tag(searchkey);
1563  std::smatch matches;
1564  for (auto x : obj->getAuxIDs()) {
1565  std::string xname = reg.getName(x);
1566  std::regex_search(xname, matches, re_tag);
1567  if (matches.size()>1 and !matches[1].str().empty()) {
1568  return matches[1].str();
1569  }
1570  }
1571  return "";
1572 }

◆ getSize()

int getSize ( std::map< std::string, std::vector< std::string >> &  collection,
const std::string &  object 
)

Definition at line 1575 of file SUSYToolsAlg.cxx.

1575  {
1576  if (collection.find(object) == collection.end()) return 1;
1577  return static_cast<int>(collection[object].size());
1578 }
SG::AuxTypeRegistry::getName
std::string getName(SG::auxid_t auxid) const
Return the name of an aux data item.
Definition: AuxTypeRegistry.cxx:882
x
#define x
PrepareReferenceFile.regex
regex
Definition: PrepareReferenceFile.py:43
pickleTool.object
object
Definition: pickleTool.py:30
python.PyAthena.obj
obj
Definition: PyAthena.py:132