|
ATLAS Offline Software
|
#include <EMTrackMatchBuilder.h>
|
| EMTrackMatchBuilder (const std::string &type, const std::string &name, const IInterface *parent) |
| Default constructor. More...
|
|
virtual | ~EMTrackMatchBuilder ()=default |
| Destructor. More...
|
|
StatusCode | initialize () override final |
| Gaudi algorithm hooks. More...
|
|
virtual StatusCode | executeRec (const EventContext &ctx, EgammaRecContainer *egammas) const override final |
| execute method 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 |
|
|
StatusCode | trackExecute (const EventContext &ctx, egammaRec *eg, const xAOD::TrackParticleContainer *trackPC, const CaloDetDescrManager &caloDD) const |
| execute method More...
|
|
bool | inBroadWindow (const EventContext &ctx, std::vector< TrackMatch > &trackMatches, const xAOD::CaloCluster &cluster, int trackNumber, const xAOD::TrackParticle &trkPB, const CaloDetDescrManager &caloDD) const |
| Compute for tracks passing the loose matching the distance between track extrapolated to 2nd sampling and cluster. More...
|
|
bool | isCandidateMatch (const xAOD::CaloCluster *cluster, const xAOD::TrackParticle *track, bool flip) const |
| Loose track-cluster matching. More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKey> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &) |
| specialization for handling Gaudi::Property<SG::VarHandleBase> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &) |
| specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
|
|
EMTrackMatch data object builder.
- Author
- H. Ma
-
RD schaffer
-
Thomas Koffas
-
Christos Anastopoulos The matching of a track to a cluster is driven by the EMTrackMatchBuilder tool located in the Reconstruction/egamma/egammaTools package.
Definition at line 39 of file EMTrackMatchBuilder.h.
◆ StoreGateSvc_t
◆ EMTrackMatchBuilder()
EMTrackMatchBuilder::EMTrackMatchBuilder |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ ~EMTrackMatchBuilder()
virtual EMTrackMatchBuilder::~EMTrackMatchBuilder |
( |
| ) |
|
|
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()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ executeRec()
◆ 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
◆ inBroadWindow()
Compute for tracks passing the loose matching the distance between track extrapolated to 2nd sampling and cluster.
Definition at line 152 of file EMTrackMatchBuilder.cxx.
168 std::array<double, 4>
eta = { -999.0, -999.0, -999.0, -999.0 };
169 std::array<double, 4>
phi = { -999.0, -999.0, -999.0, -999.0 };
170 std::array<double, 4>
deltaEta = { -999.0, -999.0, -999.0, -999.0 };
171 std::array<double, 4>
deltaPhi = { -999.0, -999.0, -999.0, -999.0 };
179 std::pair<std::vector<CaloSampling::CaloSample>,
180 std::vector<std::unique_ptr<Trk::Surface>>>
184 ->getMatchAtCalo(ctx,
187 layersAndSurfaces.first,
188 layersAndSurfaces.second,
200 std::array<double, 4> etaRes = { -999.0, -999.0, -999.0, -999.0 };
201 std::array<double, 4>
phiRes = { -999.0, -999.0, -999.0, -999.0 };
202 std::array<double, 4> deltaEtaRes = { -999.0, -999.0, -999.0, -999.0 };
203 std::array<double, 4> deltaPhiRes = { -999.0, -999.0, -999.0, -999.0 };
206 ->getMatchAtCalo(ctx,
209 layersAndSurfaces.first,
210 layersAndSurfaces.second,
220 double deltaPhiRescale = deltaPhiRes[2];
250 << deltaPhiRes[2] <<
" / " << deltaEtaRes[2]);
257 std::array<double, 4>
eta1 = { -999.0, -999.0, -999.0, -999.0 };
258 std::array<double, 4> phi1 = { -999.0, -999.0, -999.0, -999.0 };
259 std::array<double, 4>
deltaEta1 = { -999.0, -999.0, -999.0, -999.0 };
260 std::array<double, 4>
deltaPhi1 = { -999.0, -999.0, -999.0, -999.0 };
263 ->getMatchAtCalo(ctx,
266 layersAndSurfaces.first,
267 layersAndSurfaces.second,
284 TrackMatch trkmatch{};
288 trkmatch.deltaPhiRescaled = deltaPhiRes;
314 trkmatch.hasPix = (nPixel > 0);
322 trkmatch.hitsScore = 0;
333 trkmatch.hitsScore += (nPixel * 5);
336 trkmatch.hitsScore += 5;
340 trkmatch.hitsScore += 10;
344 <<
" hitsScore : " << trkmatch.hitsScore);
346 trackMatches.push_back(trkmatch);
◆ initialize()
StatusCode EMTrackMatchBuilder::initialize |
( |
| ) |
|
|
finaloverridevirtual |
◆ 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 & IEMTrackMatchBuilder::interfaceID |
( |
| ) |
|
|
inlinestaticinherited |
◆ isCandidateMatch()
Loose track-cluster matching.
Definition at line 351 of file EMTrackMatchBuilder.cxx.
363 const double trkPhi = (!flip) ? candidatePerigee.parameters()[
Trk::phi]
364 : -candidatePerigee.parameters()[
Trk::phi];
365 const double trkEta =
366 (!flip) ? candidatePerigee.eta() : -candidatePerigee.eta();
367 const double z_perigee = candidatePerigee.position().z();
368 const double r_perigee = candidatePerigee.position().perp();
369 const Amg::Vector3D PerigeeXYZPosition(candidatePerigee.position().x(),
370 candidatePerigee.position().y(),
373 const double clusterEta = cluster->
eta();
375 const double Et = cluster->
e() / cosh(trkEta);
376 const double clusterPhi = cluster->
phi();
379 if (std::abs(clusterEta) > 10.0 || Et < 10) {
386 *cluster, PerigeeXYZPosition, isEndCap);
388 const double clusterEtaCorrected = XYZClusterWrtTrackPerigee.eta();
392 ATH_MSG_DEBUG(
" Fails broad window eta match (track eta, cluster eta, "
393 "cluster eta corrected): ( "
394 << trkEta <<
", " << clusterEta <<
", " << clusterEtaCorrected
401 Et, trkEta,
track->charge(), r_perigee, isEndCap);
404 track->pt(), trkEta,
track->charge(), r_perigee, isEndCap);
406 const double clusterPhiCorrected = XYZClusterWrtTrackPerigee.phi();
416 const double deltaPhiTrack =
425 "FAILS broad window phi match (track phi, phirotCluster , phiRotTrack , "
426 <<
"cluster phi corrected, cluster phi): ( " << trkPhi <<
", "
427 << phiRotRescaled <<
", " << phiRotTrack <<
", " << clusterPhiCorrected
428 <<
", " << clusterPhi <<
")");
◆ 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.
◆ trackExecute()
execute method
Definition at line 85 of file EMTrackMatchBuilder.cxx.
90 if (!
eg || !trackPC) {
92 "trackExecute: NULL pointer to egammaRec or TrackParticleContainer");
93 return StatusCode::SUCCESS;
98 if (cluster && cluster->
e() == 0.0) {
99 ATH_MSG_WARNING(
"trackExecute: cluster energy is 0.0! Ignoring cluster.");
100 return StatusCode::SUCCESS;
104 std::vector<TrackMatch> trkMatches;
121 if (!trkMatches.empty()) {
125 TrackMatch bestTrkMatch = trkMatches.at(0);
126 eg->setDeltaEta(bestTrkMatch.deltaEta);
127 eg->setDeltaPhi(bestTrkMatch.deltaPhi);
128 eg->setDeltaPhiRescaled(bestTrkMatch.deltaPhiRescaled);
129 eg->setDeltaPhiLast(bestTrkMatch.deltaPhiLast);
135 const std::string
key =
EL(*trackPC, 0, ctx).dataID();
136 for (
const TrackMatch&
m : trkMatches) {
138 <<
" hasPix: " <<
m.hasPix
139 <<
" hitsScore: " <<
m.hitsScore);
148 return StatusCode::SUCCESS;
◆ updateVHKA()
◆ m_broadDeltaEta
Gaudi::Property<double> EMTrackMatchBuilder::m_broadDeltaEta |
|
private |
Initial value:{ this,
"broadDeltaEta",
0.1,
"Value of broad cut for delta eta" }
broad cut on deltaEta
Definition at line 125 of file EMTrackMatchBuilder.h.
◆ m_broadDeltaPhi
Gaudi::Property<double> EMTrackMatchBuilder::m_broadDeltaPhi |
|
private |
Initial value:{ this,
"broadDeltaPhi",
0.1,
"Value of broad cut for delta phi" }
broad cut on deltaPhi
Definition at line 131 of file EMTrackMatchBuilder.h.
◆ m_caloDetDescrMgrKey
Initial value:{
this,
"CaloDetDescrManager",
"CaloDetDescrManager",
"SG Key for CaloDetDescrManager in the Condition Store"
}
Definition at line 117 of file EMTrackMatchBuilder.h.
◆ m_deltaEtaResolution
Gaudi::Property<float> EMTrackMatchBuilder::m_deltaEtaResolution |
|
private |
Initial value:{ this,
"DeltaEtaResolution",
1.0,
"The deltaEta resolution" }
The resolutions: might be good to split in barrel/end-cap in the future.
Definition at line 213 of file EMTrackMatchBuilder.h.
◆ m_deltaEtaWeight
double EMTrackMatchBuilder::m_deltaEtaWeight {} |
|
private |
◆ m_deltaPhiRescaleResolution
Gaudi::Property<float> EMTrackMatchBuilder::m_deltaPhiRescaleResolution |
|
private |
Initial value:{
this,
"DeltaPhiRescaleResolution",
1.0,
"The deltaPhiRescale resolution"
}
Definition at line 223 of file EMTrackMatchBuilder.h.
◆ m_deltaPhiRescaleWeight
double EMTrackMatchBuilder::m_deltaPhiRescaleWeight {} |
|
private |
◆ m_deltaPhiResolution
Gaudi::Property<float> EMTrackMatchBuilder::m_deltaPhiResolution |
|
private |
Initial value:{ this,
"DeltaPhiResolution",
1.0,
"The deltaPhi resolution" }
Definition at line 218 of file EMTrackMatchBuilder.h.
◆ m_deltaPhiWeight
double EMTrackMatchBuilder::m_deltaPhiWeight {} |
|
private |
◆ m_detStore
◆ m_distanceForScore
Gaudi::Property<float> EMTrackMatchBuilder::m_distanceForScore |
|
private |
Initial value:{
this,
"DistanceForScore",
0.01,
"The distance from which one goes from using better deltaR to using score."
}
The distance from which one goes from using better deltaR to using score.
Note that this distance varies depending on the resolutions entered above. If you don't use resolutions (resolution = 1.0) this becomes deltaR distance.
Definition at line 235 of file EMTrackMatchBuilder.h.
◆ m_evtStore
◆ m_extrapolationTool
Initial value:{
this,
"ExtrapolationTool",
"EMExtrapolationTools",
"Name of the extrapolation tool"
}
Definition at line 242 of file EMTrackMatchBuilder.h.
◆ m_isCosmics
Gaudi::Property<bool> EMTrackMatchBuilder::m_isCosmics |
|
private |
Initial value:{ this,
"isCosmics",
false,
"Boolean for use of cosmics" }
Definition at line 250 of file EMTrackMatchBuilder.h.
◆ m_MaxDeltaPhiRescale
Gaudi::Property<double> EMTrackMatchBuilder::m_MaxDeltaPhiRescale |
|
private |
Initial value:{
this,
"MaxDeltaPhiRescale",
0.25,
"Maximum Value of the deltaPhi rescale"
}
@Maximum deltaPhi (Res) allowed for a match
Definition at line 177 of file EMTrackMatchBuilder.h.
◆ m_narrowDeltaEta
Gaudi::Property<double> EMTrackMatchBuilder::m_narrowDeltaEta |
|
private |
Initial value:{
this,
"narrowDeltaEta",
0.05,
"Value of narrow cut for delta eta"
}
narrow cut on deltaEta
Definition at line 137 of file EMTrackMatchBuilder.h.
◆ m_narrowDeltaPhi
Gaudi::Property<double> EMTrackMatchBuilder::m_narrowDeltaPhi |
|
private |
Initial value:{
this,
"narrowDeltaPhi",
0.05,
"Value of the narrowd cut for delta phi"
}
narrow cut on deltaPhiRescale
Definition at line 145 of file EMTrackMatchBuilder.h.
◆ m_narrowDeltaPhiBrem
Gaudi::Property<double> EMTrackMatchBuilder::m_narrowDeltaPhiBrem |
|
private |
Initial value:{
this,
"narrowDeltaPhiBrem",
0.1,
"Value of the narrow cut for delta phi Brem"
}
narrow cut on deltaPhi for electrons
Definition at line 153 of file EMTrackMatchBuilder.h.
◆ m_narrowDeltaPhiRescale
Gaudi::Property<double> EMTrackMatchBuilder::m_narrowDeltaPhiRescale |
|
private |
Initial value:{
this,
"narrowDeltaPhiRescale",
0.05,
"Value of the narrow cut for delta phi Rescale"
}
narrow cut on deltaPhiRescale
Definition at line 161 of file EMTrackMatchBuilder.h.
◆ m_narrowDeltaPhiRescaleBrem
Gaudi::Property<double> EMTrackMatchBuilder::m_narrowDeltaPhiRescaleBrem |
|
private |
Initial value:{
this,
"narrowDeltaPhiRescaleBrem",
0.1,
"Value of the narrow cut for delta phi Rescale Brem"
}
narrow cut on deltaPhiRescale for electrons
Definition at line 169 of file EMTrackMatchBuilder.h.
◆ m_SecondPassRescale
Gaudi::Property<bool> EMTrackMatchBuilder::m_SecondPassRescale |
|
private |
Initial value:{ this,
"SecondPassRescale",
true,
"Do second pass with rescale" }
Boolean to do second pass with Rescale.
Definition at line 207 of file EMTrackMatchBuilder.h.
◆ m_sorter
◆ m_TrackParticlesKey
Initial value:{
this,
"TrackParticlesName",
"",
"Name of the input track particle container"
}
name of TrackParticle container in TDS
Definition at line 110 of file EMTrackMatchBuilder.h.
◆ m_useCandidateMatch
Gaudi::Property<bool> EMTrackMatchBuilder::m_useCandidateMatch |
|
private |
Initial value:{
this,
"useCandidateMatch",
true,
"Boolean to use candidate matching"
}
flag to turn on/off use of isCandidateMatch
Definition at line 185 of file EMTrackMatchBuilder.h.
◆ m_useRescaleMetric
Gaudi::Property<bool> EMTrackMatchBuilder::m_useRescaleMetric |
|
private |
Initial value:{ this,
"UseRescaleMetric",
true,
"Use Rescale Metric" }
Boolean to use Rescale in the metric.
Definition at line 201 of file EMTrackMatchBuilder.h.
◆ m_useScoring
Gaudi::Property<bool> EMTrackMatchBuilder::m_useScoring |
|
private |
Initial value:{
this,
"useScoring",
true,
"Boolean to apply heuristic when tracks have close deltaR"
}
Boolean to apply heuristic when tracks have close deltaR.
Definition at line 193 of file EMTrackMatchBuilder.h.
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
Amg::Vector3D approxXYZwrtPoint(const xAOD::CaloCluster &cluster, const Amg::Vector3D &point, const bool isEndCap)
Function to get the (x,y,z) of the cluster wrt to a point (x0,y0,z0)
virtual double phi() const
The azimuthal angle ( ) of the particle.
virtual double pt() const override final
The transverse momentum ( ) of the particle.
@ deltaPhiRescaled
difference between the cluster phi (sampling 2) and the phi of the track extrapolated from the perige...
Const iterator class for DataVector/DataList.
Scalar phi() const
phi method
bool inBroadWindow(const EventContext &ctx, std::vector< TrackMatch > &trackMatches, const xAOD::CaloCluster &cluster, int trackNumber, const xAOD::TrackParticle &trkPB, const CaloDetDescrManager &caloDD) const
Compute for tracks passing the loose matching the distance between track extrapolated to 2nd sampling...
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloDetDescrMgrKey
Gaudi::Property< bool > m_useRescaleMetric
Boolean to use Rescale in the metric.
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_TrackParticlesKey
name of TrackParticle container in TDS
StatusCode trackExecute(const EventContext &ctx, egammaRec *eg, const xAOD::TrackParticleContainer *trackPC, const CaloDetDescrManager &caloDD) const
execute method
Scalar eta() const
pseudorapidity method
Gaudi::Property< float > m_deltaEtaResolution
The resolutions: might be good to split in barrel/end-cap in the future.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Dummy class used to allow special convertors to be called for surfaces owned by a detector element.
setSAddress setEtaMS setDirPhiMS setDirZMS setBarrelRadius setEndcapAlpha setEndcapRadius setInterceptInner setEtaMap setEtaBin setIsTgcFailure setDeltaPt deltaPhi
double PhiROT(const double pt, const double eta, const int charge, const double r_start, const bool isEndCap)
Function to calculate the approximate rotation in phi/bending of a track until it reaches the calo.
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
Gaudi::Property< float > m_deltaPhiRescaleResolution
setEt setPhi setE277 setWeta2 eta1
@ numberOfPixelHits
these are the pixel hits, including the b-layer [unit8_t].
@ expectInnermostPixelLayerHit
Do we expect a 0th-layer barrel hit for this track?
Gaudi::Property< bool > m_SecondPassRescale
Boolean to do second pass with Rescale.
TrackMatchSorter m_sorter
Gaudi::Property< double > m_narrowDeltaPhiRescale
narrow cut on deltaPhiRescale
Gaudi::Property< double > m_narrowDeltaPhiBrem
narrow cut on deltaPhi for electrons
Gaudi::Property< float > m_deltaPhiResolution
virtual void setOwner(IDataHandleHolder *o)=0
@ deltaPhi1
difference between the cluster eta (1st sampling) and the eta of the track extrapolated to the 1st sa...
bool isBarrel(const xAOD::Egamma *eg)
return true if the cluster is in the barrel
double m_deltaPhiRescaleWeight
Description of a calorimeter cluster.
double deltaPhi(double phiA, double phiB)
delta Phi in range [-pi,pi[
@ expectNextToInnermostPixelLayerHit
Do we expect a 1st-layer barrel hit for this track?
double deltaEta(const I4Momentum &p1, const I4Momentum &p2)
Computes efficiently .
virtual double eta() const
The pseudorapidity ( ) of the particle.
std::vector< ElementLink< xAOD::TrackParticleContainer > > trackParticleLinks(const xAOD::TauJet *tau, xAOD::TauJetParameters::TauTrackFlag flag=xAOD::TauJetParameters::TauTrackFlag::classifiedCharged)
Gaudi::Property< double > m_MaxDeltaPhiRescale
@Maximum deltaPhi (Res) allowed for a match
This module defines the arguments passed from the BATCH driver to the BATCH worker.
Gaudi::Property< double > m_broadDeltaPhi
broad cut on deltaPhi
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.
int summaryValueInt(const xAOD::TrackParticle &tp, const xAOD::SummaryType &info, int deflt=-999)
return the summary value for a TrackParticle or default value (-999) (to be used mostly in python whe...
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Gaudi::Property< double > m_narrowDeltaPhiRescaleBrem
narrow cut on deltaPhiRescale for electrons
@ numberOfNextToInnermostPixelLayerHits
these are the hits in the 1st pixel barrel layer
@ deltaPhiLast
deltaPhi from the las point
StatusCode initialize(bool used=true)
Eigen::Matrix< double, 3, 1 > Vector3D
std::size_t numberOfSiHits(const xAOD::TrackParticle *tp)
return the number of Si hits in the track particle
bool isCandidateMatch(const xAOD::CaloCluster *cluster, const xAOD::TrackParticle *track, bool flip) const
Loose track-cluster matching.
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
Gaudi::Property< double > m_narrowDeltaEta
narrow cut on deltaEta
Gaudi::Property< bool > m_useScoring
Boolean to apply heuristic when tracks have close deltaR.
Gaudi::Property< float > m_distanceForScore
The distance from which one goes from using better deltaR to using score.
This class provides the client interface for accessing the detector description information common to...
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)
Gaudi::Property< bool > m_useCandidateMatch
flag to turn on/off use of isCandidateMatch
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
@ numberOfPixelDeadSensors
number of dead pixel sensors crossed [unit8_t].
@ deltaEta1
difference between the cluster eta (first sampling) and the eta of the track extrapolated to the firs...
Gaudi::Property< double > m_narrowDeltaPhi
narrow cut on deltaPhiRescale
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
ToolHandle< IEMExtrapolationTools > m_extrapolationTool
virtual double e() const
The total energy of the particle.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
@ numberOfInnermostPixelLayerHits
these are the hits in the 0th pixel barrel layer
Gaudi::Property< double > m_broadDeltaEta
broad cut on deltaEta