ATLAS Offline Software
Loading...
Searching...
No Matches
CommonTruthMatchWeights.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
7
8namespace Trk {
9
10//================================================================
12 const std::string& name,
13 const IInterface* parent)
14 : AthAlgTool(type,name,parent)
15 , m_subDetWeights(SubDetHitStatistics::NUM_SUBDETECTORS)
16{
24}
25
26//================================================================
28 MsgStream& log = msg(MSG::INFO);
29 log<<"Weights = (";
30 for(unsigned i=0; i<SubDetHitStatistics::NUM_SUBDETECTORS; i++) {
31 log<<m_subDetWeights[i]<<" ";
32 }
33 log<<")"<<endmsg;
34
35 return StatusCode::SUCCESS;
36}
37
38//================================================================
39
40} // namespace Trk
#define endmsg
A struture to keep per-subdetector numbers of hits for truth matching.
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
MsgStream & msg() const
virtual StatusCode initialize() override
CommonTruthMatchWeights(const std::string &type, const std::string &name, const IInterface *parent)
Ensure that the ATLAS eigen extensions are properly loaded.