|
ATLAS Offline Software
|
Go to the documentation of this file.
27 msg(MSG::ERROR) <<
"Unable to retrieve TileTBID helper" <<
endmsg;
28 return StatusCode::FAILURE;
32 return StatusCode::SUCCESS;
42 return StatusCode::SUCCESS;
48 unsigned int countA = 0;
49 unsigned int countC = 0;
54 for (; MBTSCellItr != MBTSCellsEnd; ++MBTSCellItr) {
59 msg(
MSG::DEBUG) <<
"Energy = " << (*MBTSCellItr)->energy() <<
" pC\t";
60 msg(
MSG::DEBUG) <<
"Time = " << (*MBTSCellItr)->time() <<
" ns\t";
66 timeA += (*MBTSCellItr)->time();
69 timeC += (*MBTSCellItr)->time();
75 if ( countA < 1 || countC < 1 ){
76 msg(MSG::INFO) <<
"Need at least one hit on each side" <<
endmsg;
77 setFilterPassed(
false);
78 msg(MSG::INFO ) <<
"Event is rejected" <<
endmsg;
79 return StatusCode::SUCCESS;
83 float timeDiff = fabs(timeA/countA - timeC/countC);
84 msg(MSG::INFO) <<
"Calculated time difference of " << timeDiff <<
" ns" <<
endmsg;
88 setFilterPassed(
true);
89 msg(MSG::INFO ) <<
"Event is accepted" <<
endmsg;
91 setFilterPassed(
false);
92 msg(MSG::INFO ) <<
"Event is rejected" <<
endmsg;
95 return StatusCode::SUCCESS;
100 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
Const iterator class for DataVector/DataList.
FilterUsingMBTSTiming(const std::string &name, ISvcLocator *pSvcLocator)
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
int type(const Identifier &id) const
extract type field from TileTB identifier
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
::StatusCode StatusCode
StatusCode definition for legacy code.
float m_MBTSThreshold
Only count cell above this threshold (default = 40/222[pC])");.
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
const TileTBID * m_tileTBID
std::string m_mbtsContainerName
MBTSContainer", "StoreGate key of the MBTS container (default="MBTSContainer")");.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
float m_maxTimeDifference
Maximum difference of the average time of hits on A and C-side (default=10[ns])");.