ATLAS Offline Software
Loading...
Searching...
No Matches
EGammaTracksThinning.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
6// TrackThinning.h, (c) ATLAS Detector software
8
9#ifndef DERIVATIONFRAMEWORK_EGAMMATRACKSTHINNING_H
10#define DERIVATIONFRAMEWORK_EGAMMATRACKSTHINNING_H
11
12#include <string>
13
16
17#include "TLorentzVector.h"
18
20#include "TrkTrack/Track.h"
26
27
28namespace DerivationFramework {
29
30 class EGammaTracksThinning:public extends<AthAlgTool, IThinningTool> {
31
32 public:
33
34 EGammaTracksThinning(const std::string& type,
35 const std::string& name,
36 const IInterface* parent);
37
39 virtual StatusCode initialize() override;
40 virtual StatusCode finalize() override;
41 virtual StatusCode doThinning() const override;
42
43 private:
44
45 StringProperty m_streamName
46 { this, "StreamName", "", "Name of the stream being thinned" };
48 { this, "electronContainerName", "Electrons", "" };
50 { this, "photonContainerName", "Photons", ""};
52 { this, "tracksCollectionName", "Tracks", "" };
53 Gaudi::Property<double> m_dr
54 { this, "deltaR", 0.5, "" };
55 Gaudi::Property<double> m_minEtEg
56 { this, "minEtEg", 0,""};
57
58 std::set<int> findGoodTracks(const TrackCollection* trackCont,
59 const TLorentzVector& candHepLorentz,
60 double maxDeltaR) const ;
61
62
63 StatusCode thinTracks( SG::ThinningHandle<TrackCollection>& trackCont ,
64 const std::set<int>& goodTracks ) const ;
65
66 };
67}
68
69#endif // DERIVATIONFRAMEWORK_EGAMMATRACKSTHINNING_H
70
Property holding a SG store/key/clid from which a ReadHandle is made.
HandleKey object for adding thinning to an object.
Handle for requesting thinning for a data object.
DataVector< Trk::Track > TrackCollection
This typedef represents a collection of Trk::Track objects.
SG::ThinningHandleKey< TrackCollection > m_tracksCollectionName
std::set< int > findGoodTracks(const TrackCollection *trackCont, const TLorentzVector &candHepLorentz, double maxDeltaR) const
SG::ReadHandleKey< xAOD::ElectronContainer > m_electronsContainerKey
StatusCode thinTracks(SG::ThinningHandle< TrackCollection > &trackCont, const std::set< int > &goodTracks) const
SG::ReadHandleKey< xAOD::PhotonContainer > m_photonsContainerKey
virtual StatusCode doThinning() const override
EGammaTracksThinning(const std::string &type, const std::string &name, const IInterface *parent)
Property holding a SG store/key/clid from which a ReadHandle is made.
HandleKey object for adding thinning to an object.
Handle for requesting thinning for a data object.
THE reconstruction tool.