12 const std::string& inContainer,
14 const std::string& collName):
27 for (
const auto track : *tracks) {
29 const double chi2 = track.chi2();
30 const int q = track.charge();
31 const unsigned nDoF = track.nDoF();
39 m_parentSeed += track.component<std::size_t, Acts::hashString(
"parentSeed")>();
Handle class for reading from StoreGate.
bool msgLvl(const MSG::Level lvl) const
Test the output level.
TesterModuleBase(MuonTesterTree &tree, const std::string &grp_name, MSG::Level msglvl=MSG::Level::INFO)
MuonVal::VectorBranch< int > & m_trackQ
bool declare_keys() override final
SG::ReadHandleKey< ActsTrk::TrackContainer > m_key
MuonVal::VectorBranch< float > & m_trackEta
MuonVal::VectorBranch< float > & m_trackPt
MuonVal::VectorBranch< float > & m_trackPhi
TrackContainerModule(MuonTesterTree &tree, const std::string &inContainer, MSG::Level msgLvl=MSG::Level::INFO, const std::string &collName="ActsMsTracks")
MuonVal::VectorBranch< unsigned > & m_trackNdoF
MuonVal::VectorBranch< unsigned > & m_parentSeed
MuonVal::VectorBranch< float > & m_trackChi2
bool fill(const EventContext &ctx) override final
The fill method checks if enough information is provided such that the branch is cleared from the inf...
bool declare_dependency(Key &key)
Declares the ReadHandle/ ReadCondHandleKey as data dependency of the algorithm.
TTree * tree() override final
Returns the underlying TTree object.
double chi2(TH1 *h0, TH1 *h1)
std::pair< Amg::Vector3D, double > convertMomFromActs(const Acts::Vector4 &actsMom)
Converts an Acts four-momentum vector into an pair of an Athena three-momentum and the paritcle's ene...
Eigen::Matrix< double, 3, 1 > Vector3D
Lightweight algorithm to read xAOD MDT sim hits and (fast-digitised) drift circles from SG and fill a...
const T * get(const ReadCondHandleKey< T > &key, const EventContext &ctx)
Convenience function to retrieve an object given a ReadCondHandleKey.