ATLAS Offline Software
Loading...
Searching...
No Matches
CutFlowSvc.cxx File Reference
#include <EventBookkeeperTools/CutFlowSvc.h>
#include <GaudiKernel/Incident.h>
#include <GaudiKernel/FileIncident.h>
#include <GaudiKernel/IIncidentSvc.h>
#include <EventInfo/EventStreamInfo.h>
#include <xAODMetaData/FileMetaData.h>
Include dependency graph for CutFlowSvc.cxx:

Go to the source code of this file.

Functions

CutIdentifier CutFlowSvc::registerTopFilter ATLAS_NOT_THREAD_SAFE (const std::string &name, const std::string &description, unsigned int logic, const std::string &outputStream, bool nominalOnly)

Function Documentation

◆ ATLAS_NOT_THREAD_SAFE()

CutIdentifier CutFlowSvc::registerTopFilter ATLAS_NOT_THREAD_SAFE ( const std::string & name,
const std::string & description,
unsigned int logic,
const std::string & outputStream,
bool nominalOnly )

Definition at line 103 of file CutFlowSvc.cxx.

108{
109 ATH_MSG_DEBUG("Registering top filter with name '" << name << "' and description '" << description << "'"
110 << ", logic=" << logic << ", outputStream=" << outputStream << ")");
111
112 // Call the registerFilter method and get the correct CutBookkeeper
113 // from the returned cutID
114 CutIdentifier cutID = registerFilter(name, description, nominalOnly);
115 xAOD::CutBookkeeper* cbk = getCutBookkeeper(cutID, 0);
116 if (cbk == nullptr) {
117 ATH_MSG_ERROR("Could not find CutBookkeeper with CutID " << cutID);
118 throw std::runtime_error("Could not find CutBookkeeper");
119 }
120
121 // Then set the logic and outputStream of the relevant CutBookkeeper
123 cbk->setTopFilter(true);
124 cbk->addOutputStreamForAllUsed(outputStream);
125
126 return cutID;
127}
#define ATH_MSG_ERROR(x)
#define ATH_MSG_DEBUG(x)
uint32_t CutIdentifier
InstanceIdentifier is a unique identifer used for every AthFilterAlgorithm instance.
Definition ICutFlowSvc.h:26
CutLogic
Enumeration of the logic of a cut.
void setCutLogic(CutLogic logic)
Set the cut logic of this CutBookkeeper, e.g., ACCEPT, REQUIRE, VETO.
void setTopFilter(bool isTopFilter)
Set the top-filter property of this CutBookkeeper.
std::string description
glabal timer - how long have I taken so far?
Definition hcg.cxx:91
CutBookkeeper_v1 CutBookkeeper
Define the latest version of the CutBookkeeper class.