|
ATLAS Offline Software
|
This is the tool, which inherits from AthAlgTool, which clients can use for track-cluster matching.
More...
#include <PFTrackClusterMatchingTool.h>
|
| PFTrackClusterMatchingTool (const std::string &type, const std::string &name, const IInterface *parent) |
|
virtual | ~PFTrackClusterMatchingTool () |
|
StatusCode | initialize () |
|
StatusCode | finalize () |
|
std::vector< std::pair< eflowRecCluster *, float > > | doMatches (const eflowRecTrack *track, eflowRecClusterContainer *clusters, int n) const |
| Get n clusters that matches best to a given track. More...
|
|
std::vector< std::pair< eflowRecCluster *, float > > | doMatches (const eflowRecTrack *track, std::vector< eflowRecCluster * > &clusters, int n) const |
|
ServiceHandle< StoreGateSvc > & | evtStore () |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | evtStore () const |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | detStore () const |
| The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
virtual StatusCode | sysInitialize () override |
| Perform system initialization for an algorithm. More...
|
|
virtual StatusCode | sysStart () override |
| Handle START transition. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. More...
|
|
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T > &t) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
| Declare a new Gaudi property. More...
|
|
void | updateVHKA (Gaudi::Details::PropertyBase &) |
|
MsgStream & | msg () const |
|
MsgStream & | msg (const MSG::Level lvl) const |
|
bool | msgLvl (const MSG::Level lvl) const |
|
This is the tool, which inherits from AthAlgTool, which clients can use for track-cluster matching.
Clients should define the type of cluster position, the type of track position and the type of distance to use. This tool uses the PF::TrackClusterMatcher tool and returns a vector of matched eflowRecCluster to the client. The client must provide an eflowRecTrack and a list of eflowRecCluster to consider for matching.
Definition at line 32 of file PFTrackClusterMatchingTool.h.
◆ StoreGateSvc_t
◆ PFTrackClusterMatchingTool()
PFTrackClusterMatchingTool::PFTrackClusterMatchingTool |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ ~PFTrackClusterMatchingTool()
virtual PFTrackClusterMatchingTool::~PFTrackClusterMatchingTool |
( |
| ) |
|
|
inlinevirtual |
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
253 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
229 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey
. It just forwards to the base class version of declareProperty
.
Definition at line 333 of file AthCommonDataStore.h.
338 return PBASE::declareProperty(
name, property,
doc);
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This dispatches to either the generic declareProperty
or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
◆ declareProperty() [6/6]
◆ detStore()
◆ doMatches() [1/2]
◆ doMatches() [2/2]
Definition at line 67 of file PFTrackClusterMatchingTool.cxx.
77 matched_clusters_eta, matched_clusters_phi);
81 std::vector<eflowMatchCluster*> matchClusters;
82 matchClusters.reserve(
clusters.size());
85 matchClusters.push_back(cluster->getMatchCluster());
90 std::vector<MatchDistance> allMatches =
m_matcher->bestMatches(
91 &matchTrack, matchClusters, nMatches, 0.1 *
track->getTrack()->e());
95 std::vector<std::pair<eflowRecCluster*, float>>
results;
102 matched_clusters_e = thisMatch->
e() *
m_invGeV;
103 matched_clusters_eta = thisMatch->
eta();
104 matched_clusters_phi = thisMatch->
phi();
106 matched_tracks_pt =
track->getTrack()->pt() / 1000;
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
◆ finalize()
StatusCode PFTrackClusterMatchingTool::finalize |
( |
| ) |
|
◆ initialize()
StatusCode PFTrackClusterMatchingTool::initialize |
( |
| ) |
|
◆ inputHandles()
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ interfaceID()
const InterfaceID & PFTrackClusterMatchingTool::interfaceID |
( |
| ) |
|
|
inlinestatic |
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ outputHandles()
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ renounce()
◆ renounceArray()
◆ sysInitialize()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
◆ m_clusterPositionType
std::string PFTrackClusterMatchingTool::m_clusterPositionType |
|
private |
◆ m_detStore
◆ m_distanceType
std::string PFTrackClusterMatchingTool::m_distanceType |
|
private |
◆ m_evtStore
◆ m_invGeV
◆ m_matchCut
double PFTrackClusterMatchingTool::m_matchCut |
|
private |
◆ m_matcher
◆ m_monTool
◆ m_trackPositionType
std::string PFTrackClusterMatchingTool::m_trackPositionType |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
std::pair< ICluster *, double > MatchDistance
Group
Properties of a chain group.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
virtual double phi() const
#define ATH_MSG_VERBOSE(x)
virtual void setOwner(IDataHandleHolder *o)=0
This class, which inherits from the pure virtual ITrack, stores a pointer to an eflowRecTrack and has...
T * Get(TFile &f, const std::string &n, const std::string &dir="", const chainmap_t *chainmap=0, std::vector< std::string > *saved=0)
get a histogram given a path, and an optional initial directory if histogram is not found,...
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
eflowRecCluster * getEfRecCluster()
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
This class, which inherits from the pure virtual ICluster, stores a pointer to an eflowRecCluster.
virtual double eta() const
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Declare a monitored scalar variable.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
bool match(std::string s1, std::string s2)
match the individual directories of two strings