|
ATLAS Offline Software
|
#include <CaloCluster_OnTrackBuilder.h>
|
| CaloCluster_OnTrackBuilder (const std::string &, const std::string &, const IInterface *) |
| Constructor with AlgTool parameters. More...
|
|
| CaloCluster_OnTrackBuilder () |
|
| ~CaloCluster_OnTrackBuilder ()=default |
|
virtual StatusCode | initialize () override final |
|
virtual StatusCode | finalize () override final |
|
virtual std::unique_ptr< Trk::CaloCluster_OnTrack > | buildClusterOnTrack (const EventContext &ctx, const xAOD::CaloCluster *cl, int charge=0) const override final |
|
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 |
|
◆ StoreGateSvc_t
◆ CaloCluster_OnTrackBuilder() [1/2]
CaloCluster_OnTrackBuilder::CaloCluster_OnTrackBuilder |
( |
const std::string & |
t, |
|
|
const std::string & |
n, |
|
|
const IInterface * |
p |
|
) |
| |
◆ CaloCluster_OnTrackBuilder() [2/2]
CaloCluster_OnTrackBuilder::CaloCluster_OnTrackBuilder |
( |
| ) |
|
◆ ~CaloCluster_OnTrackBuilder()
CaloCluster_OnTrackBuilder::~CaloCluster_OnTrackBuilder |
( |
| ) |
|
|
default |
◆ buildClusterOnTrack()
◆ 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]
◆ 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 CaloCluster_OnTrackBuilder::finalize |
( |
| ) |
|
|
finaloverridevirtual |
◆ getCaloSurface()
Definition at line 126 of file CaloCluster_OnTrackBuilder.cxx.
131 std::unique_ptr<Trk::Surface> destinationSurface =
nullptr;
137 destinationSurface.reset(
m_calosurf->CreateUserSurface(
140 destinationSurface.reset(
m_calosurf->CreateUserSurface(
143 return destinationSurface;
◆ getClusterErrorMatrix()
Definition at line 206 of file CaloCluster_OnTrackBuilder.cxx.
217 const double clusterE = cluster->
e();
218 const double clusterEta = cluster->
eta();
221 double phivariance = phiVariance(clusterE, std::abs(clusterEta));
222 if (phivariance < 1
e-5) {
228 const double sigmaP_over_P =
m_eg_resol->getResolution(0,
233 const double qOverP = 1. / clusterE;
234 const double qOverP_variance =
241 constexpr
double zvariance = 400;
248 double r = surfRefPoint.perp();
252 covMatrix(indexCount, indexCount) = phivariance *
r2;
256 covMatrix(indexCount, indexCount) = zvariance;
260 covMatrix(indexCount, indexCount) = qOverP_variance;
270 covMatrix(indexCount, indexCount) = zvariance;
274 covMatrix(indexCount, indexCount) = phivariance;
278 covMatrix(indexCount, indexCount) = qOverP_variance;
◆ getClusterLocalParameters()
Definition at line 147 of file CaloCluster_OnTrackBuilder.cxx.
154 double eta = cluster->
eta();
155 double phi = cluster->
phi();
156 double clusterQoverE = cluster->
e() != 0 ? (
double)
charge / cluster->
e() : 0;
162 double r = surfRefPoint.perp();
163 std::vector<Trk::DefinedParameter> defPar;
171 double z = tantheta == 0 ? 0. :
r / tantheta;
173 defPar.push_back(
locZ);
184 double z = surfRefPoint.z();
185 std::vector<Trk::DefinedParameter> defPar;
189 double r =
z * tantheta;
191 defPar.push_back(
locR);
◆ initialize()
StatusCode CaloCluster_OnTrackBuilder::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()
static const InterfaceID& ICaloCluster_OnTrackBuilder::interfaceID |
( |
| ) |
|
|
inlinestaticinherited |
◆ 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_caloMgrKey
◆ m_calosurf
Initial value:{
this,
"CaloSurfaceBuilder",
"CaloSurfaceBuilder",
"Tool to build calorimeter layer surfaces"
}
Tool to build calorimeter layer surfaces.
Definition at line 69 of file CaloCluster_OnTrackBuilder.h.
◆ m_detStore
◆ m_eg_resol
std::unique_ptr<eg_resolution> CaloCluster_OnTrackBuilder::m_eg_resol {} |
|
private |
◆ m_evtStore
◆ m_useClusterEnergy
Gaudi::Property<bool> CaloCluster_OnTrackBuilder::m_useClusterEnergy { this, "UseClusterEnergy", true } |
|
private |
Which cluster measurements to use in order to add constraints by default we are interested in the ones that affect the bending plane Energy and phi.
Definition at line 84 of file CaloCluster_OnTrackBuilder.h.
◆ m_useClusterEta
Gaudi::Property<bool> CaloCluster_OnTrackBuilder::m_useClusterEta { this, "UseClusterEta", false } |
|
private |
◆ m_useClusterPhi
Gaudi::Property<bool> CaloCluster_OnTrackBuilder::m_useClusterPhi { this, "UseClusterPhi", true } |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
Trk::LocalParameters getClusterLocalParameters(const xAOD::CaloCluster *cluster, const Trk::Surface *surf, int charge) const
virtual double phi() const
The azimuthal angle ( ) of the particle.
Gaudi::Property< bool > m_useClusterEta
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Scalar phi() const
phi method
Scalar eta() const
pseudorapidity method
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Scalar theta() const
theta method
std::unique_ptr< Trk::Surface > getCaloSurface(const xAOD::CaloCluster *cluster, const CaloDetDescrManager *caloDDMgr) const
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
virtual const Amg::Vector3D & globalReferencePoint() const
Returns a global reference point on the surface, for PlaneSurface, StraightLineSurface,...
std::unique_ptr< eg_resolution > m_eg_resol
helper for returning energy resolution
Gaudi::Property< bool > m_useClusterPhi
Amg::MatrixX getClusterErrorMatrix(const xAOD::CaloCluster *cluster, const Trk::Surface &surf, int charge) const
std::pair< double, ParamDefs > DefinedParameter
virtual void setOwner(IDataHandleHolder *o)=0
bool isBarrel(const xAOD::Egamma *eg)
return true if the cluster is in the barrel
virtual double eta() const
The pseudorapidity ( ) of the particle.
ToolHandle< ICaloSurfaceBuilder > m_calosurf
Tool to build calorimeter layer surfaces.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
double charge(const T &p)
StatusCode initialize(bool used=true)
Eigen::Matrix< double, 3, 1 > Vector3D
This class provides the client interface for accessing the detector description information common to...
#define ATH_MSG_WARNING(x)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Gaudi::Property< bool > m_useClusterEnergy
Which cluster measurements to use in order to add constraints by default we are interested in the one...
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
virtual double e() const
The total energy of the particle.