55 m_accept.addCut(
"goodMBTSTime",
"good MBTS timing");
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)
#define ATH_CHECK
Evaluate an expression and check for errors.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
ServiceHandle< StoreGateSvc > & evtStore()
const T * at(size_type n) const
Access an element, as an rvalue.
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.
void setCutResult(const std::string &cutName, bool cutResult)
Set the result of a cut, based on the cut name (safer)
const std::string & getCutName(unsigned int cutPosition) const
Get the name of a cut, based on the cut position (slow, avoid usage)
bool getCutResult(const std::string &cutName) const
Get the result of a cut, based on the cut name (safer)
unsigned short countC() const
unsigned short countA() const
ZdcModuleContainer_v1 ZdcModuleContainer
ForwardEventInfo_v1 ForwardEventInfo
VertexContainer_v1 VertexContainer
Definition of the current "Vertex container version".
ForwardEventInfoContainer_v1 ForwardEventInfoContainer
HIEventShapeContainer_v2 HIEventShapeContainer
Define the latest version of the container.