![]() |
ATLAS Offline Software
|
This class selects tracks for b-taggers. More...
#include <TrackSelector.h>
Public Member Functions | |
| TrackSelector (const std::string &type, const std::string &name, const IInterface *parent) | |
| virtual | ~TrackSelector () |
| virtual StatusCode | initialize () override |
| virtual StatusCode | finalize () override |
| bool | selectTrack (const Amg::Vector3D &pv, const xAOD::TrackParticle *track, double refPt=0) const |
| Returns true if the argument track fulfills the selection. | |
| bool | selectTrack (const Amg::Vector3D &pv, const xAOD::TrackParticle *track, std::bitset< 17 > &failedCuts, double refPt=0) const |
| Also return individual cuts. | |
| const std::bitset< 17 > & | currentTrackpassedCuts () const |
| ServiceHandle< StoreGateSvc > & | evtStore () |
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. | |
| const ServiceHandle< StoreGateSvc > & | detStore () const |
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. | |
| virtual StatusCode | sysInitialize () override |
| Perform system initialization for an algorithm. | |
| virtual StatusCode | sysStart () override |
| Handle START transition. | |
| virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. | |
| virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. | |
| Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T, V, H > &t) |
| void | updateVHKA (Gaudi::Details::PropertyBase &) |
| MsgStream & | msg () const |
| bool | msgLvl (const MSG::Level lvl) const |
Static Public Member Functions | |
| static const InterfaceID & | interfaceID () |
Protected Member Functions | |
| void | renounceArray (SG::VarHandleKeyArray &handlesArray) |
| remove all handles from I/O resolution | |
| std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > | renounce (T &h) |
| void | extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps) |
| Add StoreName to extra input/output deps as needed. | |
Private Types | |
| enum | m_Cuts { pTMin , d0Max , z0Max , sigd0Max , sigz0Max , etaMax , nHitBLayer , deadBLayer , nHitPix , nHitSct , nHitSi , nHitTrt , nHitTrtHighE , fitChi2 , fitProb , fitChi2OnNdfMax , trackingTightDef , numCuts } |
| typedef ServiceHandle< StoreGateSvc > | StoreGateSvc_t |
Private Member Functions | |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKey> | |
Private Attributes | |
| bool | m_usePerigeeParameters {} |
| Properties for V0 finding: not yet implemented. | |
| double | m_pTMin {} |
| if true use perigee parameters instead of parameters w.r.t. primary vertex | |
| bool | m_usepTDepTrackSel {} |
| min. pT: |pT|>pTMin | |
| double | m_pTMinOffset {} |
| double | m_pTMinSlope {} |
| double | m_d0Max {} |
| double | m_z0Max {} |
| max. d0: |d0|<d0Max | |
| double | m_sigd0Max {} |
| max. z0: | |
| double | m_sigz0Max {} |
| double | m_etaMax {} |
| bool | m_useTrackSummaryInfo {} |
| max. pseudo-rapidity | |
| bool | m_useBLayerHitPrediction {} |
| if false the following cuts are ignored | |
| int | m_nHitBLayer {} |
| int | m_nHitPix {} |
| at least n hits in Blayer | |
| int | m_nHitSct {} |
| at least n hits in pixels | |
| int | m_nHitSi {} |
| at least n hits in SCT | |
| int | m_nHitTrt {} |
| at least n hits in pixels+SCT | |
| int | m_nHitTrtHighE {} |
| at least n hits in TRT | |
| bool | m_useDeadPixInfo {} |
| at least n transition hits in TRT | |
| bool | m_useDeadSctInfo {} |
| if true uses dead pixel sensors from conddb (except b-layer) to compute nPix | |
| bool | m_useTrackQualityInfo {} |
| if true uses dead SCT sensors to compute nSct | |
| double | m_fitChi2 {} |
| if false the following cuts are ignored | |
| double | m_fitProb {} |
| max. fit chi2 | |
| double | m_fitChi2OnNdfMax {} |
| min. fit chi2 probability | |
| std::string | m_inputTrackCollection |
| std::string | m_outputTrackCollection |
| location of inputTracks in StoreGate | |
| std::string | m_sharedHitMapLocation |
| location of outputTracks in StoreGate | |
| bool | m_useAntiPileUpCuts {} |
| location of shared map in StoreGate | |
| double | m_antiPileUpSigD0Cut {} |
| activate antiPU cut d0z0 | |
| double | m_antiPileUpSigZ0Cut {} |
| int | m_antiPileUpNHitSiCut {} |
| int | m_antiPileUpNHolePixCut {} |
| bool | m_useTrackingTightDefinition {} |
| int | m_ntri {} |
| int | m_ntrf {} |
| std::atomic< int > | m_ntrc [numCuts] {} |
| ToolHandle< Reco::ITrackToVertex > | m_trackToVertexTool {this, "trackToVertexTool", "Reco::TrackToVertex"} |
| std::bitset< numCuts > | m_passedCuts |
| bool | m_useEtaDependentCuts {} |
| ServiceHandle< InDet::IInDetEtaDependentCutsSvc > | m_etaDependentCutsSvc {this, "InDetEtaDependentCutsSvc", ""} |
| service to get cut values depending on different variable | |
| StoreGateSvc_t | m_evtStore |
| Pointer to StoreGate (event store by default) | |
| StoreGateSvc_t | m_detStore |
| Pointer to StoreGate (detector store by default) | |
| std::vector< SG::VarHandleKeyArray * > | m_vhka |
| bool | m_varHandleArraysDeclared |
This class selects tracks for b-taggers.
Definition at line 29 of file PhysicsAnalysis/JetTagging/JetTagTools/JetTagTools/TrackSelector.h.
|
privateinherited |
Definition at line 388 of file AthCommonDataStore.h.
|
private |
| Enumerator | |
|---|---|
| pTMin | |
| d0Max | |
| z0Max | |
| sigd0Max | |
| sigz0Max | |
| etaMax | |
| nHitBLayer | |
| deadBLayer | |
| nHitPix | |
| nHitSct | |
| nHitSi | |
| nHitTrt | |
| nHitTrtHighE | |
| fitChi2 | |
| fitProb | |
| fitChi2OnNdfMax | |
| trackingTightDef | |
| numCuts | |
Definition at line 96 of file PhysicsAnalysis/JetTagging/JetTagTools/JetTagTools/TrackSelector.h.
| Analysis::TrackSelector::TrackSelector | ( | const std::string & | type, |
| const std::string & | name, | ||
| const IInterface * | parent ) |
Definition at line 23 of file TrackSelector.cxx.
|
virtual |
Definition at line 65 of file TrackSelector.cxx.
|
inline |
Definition at line 54 of file PhysicsAnalysis/JetTagging/JetTagTools/JetTagTools/TrackSelector.h.
|
inlineprivateinherited |
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
|
inlineinherited |
Definition at line 145 of file AthCommonDataStore.h.
|
inlineinherited |
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
Definition at line 95 of file AthCommonDataStore.h.
|
inlineinherited |
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Definition at line 85 of file AthCommonDataStore.h.
|
protectedinherited |
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
|
overridevirtual |
Definition at line 161 of file TrackSelector.cxx.
|
overridevirtual |
retrieving TrackToVertex:
dump cuts:
Definition at line 72 of file TrackSelector.cxx.
|
overridevirtualinherited |
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.
|
static |
Definition at line 68 of file TrackSelector.cxx.
|
inlineinherited |
Definition at line 24 of file AthCommonMsg.h.
|
inlineinherited |
Definition at line 30 of file AthCommonMsg.h.
|
overridevirtualinherited |
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.
|
inlineprotectedinherited |
Definition at line 380 of file AthCommonDataStore.h.
|
inlineprotectedinherited |
remove all handles from I/O resolution
Definition at line 364 of file AthCommonDataStore.h.
| bool Analysis::TrackSelector::selectTrack | ( | const Amg::Vector3D & | pv, |
| const xAOD::TrackParticle * | track, | ||
| double | refPt = 0 ) const |
Returns true if the argument track fulfills the selection.
Definition at line 169 of file TrackSelector.cxx.
| bool Analysis::TrackSelector::selectTrack | ( | const Amg::Vector3D & | pv, |
| const xAOD::TrackParticle * | track, | ||
| std::bitset< 17 > & | failedCuts, | ||
| double | refPt = 0 ) const |
Also return individual cuts.
apply cuts:
std::string showPassedCuts = ~failedCuts.to_string(); // not available !
Definition at line 177 of file TrackSelector.cxx.
|
overridevirtualinherited |
Perform system initialization for an algorithm.
We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.
Reimplemented in asg::AsgMetadataTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and DerivationFramework::CfAthAlgTool.
|
overridevirtualinherited |
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
|
inlineinherited |
Definition at line 308 of file AthCommonDataStore.h.
|
private |
Definition at line 92 of file PhysicsAnalysis/JetTagging/JetTagTools/JetTagTools/TrackSelector.h.
|
private |
Definition at line 93 of file PhysicsAnalysis/JetTagging/JetTagTools/JetTagTools/TrackSelector.h.
|
private |
activate antiPU cut d0z0
Definition at line 90 of file PhysicsAnalysis/JetTagging/JetTagTools/JetTagTools/TrackSelector.h.
|
private |
Definition at line 91 of file PhysicsAnalysis/JetTagging/JetTagTools/JetTagTools/TrackSelector.h.
|
private |
Definition at line 67 of file PhysicsAnalysis/JetTagging/JetTagTools/JetTagTools/TrackSelector.h.
|
privateinherited |
Pointer to StoreGate (detector store by default)
Definition at line 393 of file AthCommonDataStore.h.
|
private |
service to get cut values depending on different variable
Definition at line 111 of file PhysicsAnalysis/JetTagging/JetTagTools/JetTagTools/TrackSelector.h.
|
private |
Definition at line 71 of file PhysicsAnalysis/JetTagging/JetTagTools/JetTagTools/TrackSelector.h.
|
privateinherited |
Pointer to StoreGate (event store by default)
Definition at line 390 of file AthCommonDataStore.h.
|
private |
if false the following cuts are ignored
Definition at line 83 of file PhysicsAnalysis/JetTagging/JetTagTools/JetTagTools/TrackSelector.h.
|
private |
min. fit chi2 probability
Definition at line 85 of file PhysicsAnalysis/JetTagging/JetTagTools/JetTagTools/TrackSelector.h.
|
private |
max. fit chi2
Definition at line 84 of file PhysicsAnalysis/JetTagging/JetTagTools/JetTagTools/TrackSelector.h.
|
private |
Definition at line 86 of file PhysicsAnalysis/JetTagging/JetTagTools/JetTagTools/TrackSelector.h.
|
private |
Definition at line 74 of file PhysicsAnalysis/JetTagging/JetTagTools/JetTagTools/TrackSelector.h.
|
private |
at least n hits in Blayer
Definition at line 75 of file PhysicsAnalysis/JetTagging/JetTagTools/JetTagTools/TrackSelector.h.
|
private |
at least n hits in pixels
Definition at line 76 of file PhysicsAnalysis/JetTagging/JetTagTools/JetTagTools/TrackSelector.h.
|
private |
at least n hits in SCT
Definition at line 77 of file PhysicsAnalysis/JetTagging/JetTagTools/JetTagTools/TrackSelector.h.
|
private |
at least n hits in pixels+SCT
Definition at line 78 of file PhysicsAnalysis/JetTagging/JetTagTools/JetTagTools/TrackSelector.h.
|
private |
at least n hits in TRT
Definition at line 79 of file PhysicsAnalysis/JetTagging/JetTagTools/JetTagTools/TrackSelector.h.
|
mutableprivate |
Definition at line 103 of file PhysicsAnalysis/JetTagging/JetTagTools/JetTagTools/TrackSelector.h.
|
private |
Definition at line 102 of file PhysicsAnalysis/JetTagging/JetTagTools/JetTagTools/TrackSelector.h.
|
private |
Definition at line 101 of file PhysicsAnalysis/JetTagging/JetTagTools/JetTagTools/TrackSelector.h.
|
private |
location of inputTracks in StoreGate
Definition at line 87 of file PhysicsAnalysis/JetTagging/JetTagTools/JetTagTools/TrackSelector.h.
|
private |
Definition at line 107 of file PhysicsAnalysis/JetTagging/JetTagTools/JetTagTools/TrackSelector.h.
|
private |
if true use perigee parameters instead of parameters w.r.t. primary vertex
Definition at line 63 of file PhysicsAnalysis/JetTagging/JetTagTools/JetTagTools/TrackSelector.h.
|
private |
Definition at line 65 of file PhysicsAnalysis/JetTagging/JetTagTools/JetTagTools/TrackSelector.h.
|
private |
Definition at line 66 of file PhysicsAnalysis/JetTagging/JetTagTools/JetTagTools/TrackSelector.h.
|
private |
location of outputTracks in StoreGate
Definition at line 88 of file PhysicsAnalysis/JetTagging/JetTagTools/JetTagTools/TrackSelector.h.
|
private |
max. z0:
Definition at line 69 of file PhysicsAnalysis/JetTagging/JetTagTools/JetTagTools/TrackSelector.h.
|
private |
Definition at line 70 of file PhysicsAnalysis/JetTagging/JetTagTools/JetTagTools/TrackSelector.h.
|
private |
Definition at line 105 of file PhysicsAnalysis/JetTagging/JetTagTools/JetTagTools/TrackSelector.h.
|
private |
location of shared map in StoreGate
Definition at line 89 of file PhysicsAnalysis/JetTagging/JetTagTools/JetTagTools/TrackSelector.h.
|
private |
if false the following cuts are ignored
Definition at line 73 of file PhysicsAnalysis/JetTagging/JetTagTools/JetTagTools/TrackSelector.h.
|
private |
at least n transition hits in TRT
Definition at line 80 of file PhysicsAnalysis/JetTagging/JetTagTools/JetTagTools/TrackSelector.h.
|
private |
if true uses dead pixel sensors from conddb (except b-layer) to compute nPix
Definition at line 81 of file PhysicsAnalysis/JetTagging/JetTagTools/JetTagTools/TrackSelector.h.
|
private |
Definition at line 109 of file PhysicsAnalysis/JetTagging/JetTagTools/JetTagTools/TrackSelector.h.
|
private |
Properties for V0 finding: not yet implemented.
Properties for track selection: all cuts are ANDed
Definition at line 62 of file PhysicsAnalysis/JetTagging/JetTagTools/JetTagTools/TrackSelector.h.
|
private |
min. pT: |pT|>pTMin
Definition at line 64 of file PhysicsAnalysis/JetTagging/JetTagTools/JetTagTools/TrackSelector.h.
|
private |
Definition at line 94 of file PhysicsAnalysis/JetTagging/JetTagTools/JetTagTools/TrackSelector.h.
|
private |
if true uses dead SCT sensors to compute nSct
Definition at line 82 of file PhysicsAnalysis/JetTagging/JetTagTools/JetTagTools/TrackSelector.h.
|
private |
max. pseudo-rapidity
Definition at line 72 of file PhysicsAnalysis/JetTagging/JetTagTools/JetTagTools/TrackSelector.h.
|
privateinherited |
Definition at line 399 of file AthCommonDataStore.h.
|
privateinherited |
Definition at line 398 of file AthCommonDataStore.h.
|
private |
max. d0: |d0|<d0Max
Definition at line 68 of file PhysicsAnalysis/JetTagging/JetTagTools/JetTagTools/TrackSelector.h.