Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Namespaces | Enumerations | Functions | Variables
SUSYToolsAlg.cxx File Reference
#include "SUSYTools/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 1564 of file SUSYToolsAlg.cxx.

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

◆ getSize()

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

Definition at line 1578 of file SUSYToolsAlg.cxx.

1578  {
1579  if (collection.find(object) == collection.end()) return 1;
1580  return static_cast<int>(collection[object].size());
1581 }
SG::AuxTypeRegistry::getName
std::string getName(SG::auxid_t auxid) const
Return the name of an aux data item.
Definition: AuxTypeRegistry.cxx:881
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