Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
#include <DiTauTrackFinder.h>
|
| DiTauTrackFinder (const std::string &type, const std::string &name, const IInterface *parent) |
| Constructor. More...
|
|
virtual | ~DiTauTrackFinder () |
| Destructor. More...
|
|
virtual StatusCode | initialize () override |
| Tool initializer. More...
|
|
virtual StatusCode | execute (DiTauCandidateData *data, const EventContext &ctx) const override |
| Execute - called for each Ditau candidate. More...
|
|
void | getTracksFromPV (const DiTauCandidateData *, const xAOD::TrackParticleContainer *, const xAOD::Vertex *, std::vector< const xAOD::TrackParticle * > &, std::vector< const xAOD::TrackParticle * > &, std::vector< const xAOD::TrackParticle * > &) const |
|
DiTauTrackType | diTauTrackType (const DiTauCandidateData *, const xAOD::TrackParticle *, const xAOD::Vertex *) const |
|
virtual StatusCode | eventInitialize (DiTauCandidateData *data) |
| Event initializer - called at the beginning of each event. More...
|
|
virtual StatusCode | finalize () |
| Finalizer. More...
|
|
template<class T > |
bool | retrieveTool (T &tool) |
| Convenience functions to handle storegate objects. More...
|
|
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 |
|
Definition at line 15 of file DiTauTrackFinder.h.
◆ StoreGateSvc_t
◆ DiTauTrackType
Enumerator |
---|
DiTauSubjetTrack | |
DiTauIsoTrack | |
DiTauOtherTrack | |
OutsideTrack | |
Definition at line 39 of file DiTauTrackFinder.h.
◆ DiTauTrackFinder()
DiTauTrackFinder::DiTauTrackFinder |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ ~DiTauTrackFinder()
DiTauTrackFinder::~DiTauTrackFinder |
( |
| ) |
|
|
virtualdefault |
◆ 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()
◆ diTauTrackType()
Definition at line 160 of file DiTauTrackFinder.cxx.
174 std::vector<fastjet::PseudoJet> vSubjets =
data->subjets;
175 for (
const auto &
subjet : vSubjets) {
177 TLorentzVector temp_p4;
◆ eventInitialize()
Event initializer - called at the beginning of each event.
Definition at line 32 of file DiTauToolBase.cxx.
34 return StatusCode::SUCCESS;
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ execute()
Execute - called for each Ditau candidate.
Reimplemented from DiTauToolBase.
Definition at line 40 of file DiTauTrackFinder.cxx.
47 if (pDiTau ==
nullptr) {
49 return StatusCode::FAILURE;
55 std::vector<const xAOD::TrackParticle*> tauTracks;
56 std::vector<const xAOD::TrackParticle*> isoTracks;
57 std::vector<const xAOD::TrackParticle*> otherTracks;
69 getTracksFromPV(
data, pTrackParticleCont.get(), pVertex, tauTracks, isoTracks, otherTracks);
77 std::vector<fastjet::PseudoJet> vSubjets =
data->subjets;
79 for (
auto subjet_itr = vSubjets.begin(); subjet_itr != vSubjets.end(); ) {
82 TLorentzVector temp_p4;
83 temp_p4.SetPtEtaPhiM(subjet_itr->pt(), subjet_itr->eta(), subjet_itr->phi_std(), subjet_itr->m());
85 for (
const auto&
track : tauTracks) {
93 subjet_itr = vSubjets.erase(subjet_itr);
95 ATH_MSG_DEBUG(
"number of tracks greater than MaxNTracksSubjet threshold. Drop subjet");
96 subjet_itr = vSubjets.erase(subjet_itr);
104 if (vSubjets.size()<=1) {
105 ATH_MSG_DEBUG(
"Found less than 2 subjets. Reject ditau candidate");
106 return StatusCode::FAILURE;
109 data->subjets = vSubjets;
110 ATH_MSG_DEBUG(
"number of subjets after track association: " <<
data->subjets.size());
115 for (
const auto&
track : tauTracks ) {
121 for (
const auto&
track : isoTracks ) {
127 for (
const auto&
track : otherTracks ) {
132 return StatusCode::SUCCESS;
◆ 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 DiTauToolBase::finalize |
( |
| ) |
|
|
virtualinherited |
◆ getTracksFromPV()
◆ initialize()
StatusCode DiTauTrackFinder::initialize |
( |
| ) |
|
|
overridevirtual |
◆ 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 & DiTauToolBase::interfaceID |
( |
| ) |
|
|
staticinherited |
InterfaceID implementation needed for ToolHandle.
Definition at line 9 of file DiTauToolBase.cxx.
10 return DiTauToolBaseID;
◆ 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()
◆ retrieveTool()
template<class T >
bool DiTauToolBase::retrieveTool |
( |
T & |
tool | ) |
|
|
inherited |
Convenience functions to handle storegate objects.
Definition at line 54 of file DiTauToolBase.cxx.
55 if (
tool.retrieve().isFailure()) {
◆ 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_detStore
◆ m_evtStore
◆ m_MaxDrJet
float DiTauTrackFinder::m_MaxDrJet |
|
private |
◆ m_MaxDrSubjet
float DiTauTrackFinder::m_MaxDrSubjet |
|
private |
◆ m_MaxNTracksSubjet
int DiTauTrackFinder::m_MaxNTracksSubjet |
|
private |
◆ m_TrackParticleContainerName
◆ m_TrackSelectorTool
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
char data[hepevt_bytes_allocation_ATLAS]
const VertexLink_t & vertexLink() const
virtual FourMom_t p4() const
The full 4-momentum of the particle.
void clearIsoTrackLinks()
void addOtherTrack(const xAOD::TrackParticleContainer *, const xAOD::TrackParticle *)
void getTracksFromPV(const DiTauCandidateData *, const xAOD::TrackParticleContainer *, const xAOD::Vertex *, std::vector< const xAOD::TrackParticle * > &, std::vector< const xAOD::TrackParticle * > &, std::vector< const xAOD::TrackParticle * > &) const
ToolHandle< Trk::ITrackSelectorTool > m_TrackSelectorTool
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Helper method to sort tracks.
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
#define ATH_MSG_VERBOSE(x)
void clearOtherTrackLinks()
bool isValid() const
Test to see if the link can be dereferenced.
void addTrack(const xAOD::TrackParticleContainer *, const xAOD::TrackParticle *)
virtual void setOwner(IDataHandleHolder *o)=0
void addIsoTrack(const xAOD::TrackParticleContainer *, const xAOD::TrackParticle *)
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
DiTauTrackType diTauTrackType(const DiTauCandidateData *, const xAOD::TrackParticle *, const xAOD::Vertex *) const
Class describing a Vertex.
void sort(typename std::reverse_iterator< DataModel_detail::iterator< DVL > > beg, typename std::reverse_iterator< DataModel_detail::iterator< DVL > > end, const Compare &comp)
Specialization of sort for DataVector/List.
#define ATH_MSG_WARNING(x)
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_TrackParticleContainerName
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>