|
ATLAS Offline Software
|
Go to the documentation of this file.
9 #include "GaudiKernel/MsgStream.h"
13 using CLHEP::Hep3Vector;
46 return StatusCode::SUCCESS;
57 log << MSG::WARNING <<
"TrackRecordCollection with key " <<
m_key <<
" not found" <<
endmsg;
60 return StatusCode::SUCCESS;
65 for (
const TrackRecord& trackRecord : *trackRecordCollection) {
66 const int pdgCode=trackRecord.GetPDGCode();
67 Hep3Vector
p=trackRecord.GetMomentum();
68 double pr=sqrt(
p.y()*
p.y()+
p.z()*
p.z());
71 m_PhotEne->push_back(trackRecord.GetEnergy());
75 else if (pdgCode==11 || pdgCode==-11) {
76 m_ElecEne->push_back(trackRecord.GetEnergy());
81 log << MSG::INFO <<
"Found particle code " << pdgCode <<
endmsg;
84 return StatusCode::SUCCESS;
89 return StatusCode::SUCCESS;
98 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
std::vector< float > * m_ElecEne
std::vector< float > * m_PhotAng
virtual StatusCode CBNT_execute() override
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
msgSvc
Provide convenience handles for various services.
virtual StatusCode CBNT_finalize() override
::StatusCode StatusCode
StatusCode definition for legacy code.
void addBranch(const std::string &branchname, T &obj, const std::string &leaflist)
std::vector< float > * m_PhotEne
virtual StatusCode CBNT_initialize() override
virtual StatusCode CBNT_clear() override
std::vector< float > * m_ElecAng
virtual ~CBNT_UpstreamMat()