|
ATLAS Offline Software
|
Go to the documentation of this file.
28 m_accept(
"HIEventSelection"),
29 m_vertexSelectionTool(
""),
58 m_accept.
addCut(
"hasPrimaryVertex",
"has at least one primary vertex");
60 m_accept.
addCut(
"pileupVeto",
"reject events with topological features indicating pileup");
82 return StatusCode::SUCCESS;
89 return StatusCode::SUCCESS;
115 int countA = forwardEventInfo->
countA();
116 int countC = forwardEventInfo->
countC();
117 float timeA = forwardEventInfo->
timeA();
118 float timeC = forwardEventInfo->
timeC();
120 if (countA==0||countC==0)
return;
122 float timeDiff = timeA - timeC;
134 std::stringstream
ss;
135 for(
unsigned int icut=0; icut < acceptData.
getNCuts(); icut++)
137 std::string cname=acceptData.
getCutName(icut);
138 ss << std::setw(15) << cname
150 acceptData.
setCutResult(
"hasPrimaryVertex", (numPrimaryVertices > 0) );
176 unsigned int nPriVx = 0;
186 for(
const auto vert: *pv_container)
def retrieve(aClass, aKey=None)
unsigned short countC() const
unsigned int getNCuts() const
Get the number of cuts defined.
const std::string & getCutDescription(const std::string &cutName) const
Get the description of a cut, based on the cut name.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
::StatusCode StatusCode
StatusCode definition for legacy code.
const std::string & getCutName(unsigned int cutPosition) const
Get the name of a cut, based on the cut position (slow, avoid usage)
void setCutResult(const std::string &cutName, bool cutResult)
Set the result of a cut, based on the cut name (safer)
bool getCutResult(const std::string &cutName) const
Get the result of a cut, based on the cut name (safer)
unsigned short countA() const
const T * at(size_type n) const
Access an element, as an rvalue.
int addCut(const std::string &cutName, const std::string &cutDescription)
Add a cut; returning the cut position.