ATLAS Offline Software
Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
InDet::V0MainDecorator Class Reference

#include <V0MainDecorator.h>

Inheritance diagram for InDet::V0MainDecorator:
Collaboration diagram for InDet::V0MainDecorator:

Public Member Functions

 V0MainDecorator (const std::string &t, const std::string &n, const IInterface *p)
 
 ~V0MainDecorator ()
 
StatusCode initialize ()
 
StatusCode decorateV0 (xAOD::VertexContainer *container, const EventContext &ctx) const
 
StatusCode decorateks (xAOD::VertexContainer *container, const EventContext &ctx) const
 
StatusCode decoratela (xAOD::VertexContainer *container, const EventContext &ctx) const
 
StatusCode decoratelb (xAOD::VertexContainer *container, const EventContext &ctx) const
 
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
 

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution More...
 
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. More...
 

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

StatusCode initKey (const std::string &, SG::WriteDecorHandleKey< xAOD::VertexContainer > &decokey) const
 
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...
 

Private Attributes

int m_masses
 = 1 if using PDG values, = 2 if user set (1) More...
 
double m_masspi
 pion mass (139.57 MeV) More...
 
double m_massp
 proton mass (938.272 MeV) More...
 
double m_masse
 electron mass (0.510999 MeV) More...
 
double m_massK0S
 Kshort mass (497.672 MeV) More...
 
double m_massLambda
 Lambda mass (1115.68 MeV) More...
 
ToolHandle< Trk::V0Toolsm_V0Tools {this, "V0Tools", "Trk::V0Tools", "V0 tools to calculate things like Lxy"}
 
Gaudi::Property< std::string > m_v0Key { this, "V0ContainerName", "V0Candidates", "V0 container name (same calling alg)" }
 
Gaudi::Property< std::string > m_ksKey { this, "KshortContainerName", "KshortCandidates", "Ks container" }
 
Gaudi::Property< std::string > m_laKey
 
Gaudi::Property< std::string > m_lbKey
 
SG::WriteDecorHandleKey< xAOD::VertexContainerm_decorKsMass { this, "KsMass_v0", ".Kshort_mass", "Ks mass for v0" }
 
SG::WriteDecorHandleKey< xAOD::VertexContainerm_decorKsMassErr { this, "KsMassErr_v0", ".Kshort_massError", "Ks mass error for v0" }
 
SG::WriteDecorHandleKey< xAOD::VertexContainerm_decorLaMass { this, "LaMass_v0", ".Lambda_mass", "Lambda mass for v0" }
 
SG::WriteDecorHandleKey< xAOD::VertexContainerm_decorLaMassErr { this, "LaMassErr_v0", ".Lambda_massError", "Lambda mass error for v0" }
 
SG::WriteDecorHandleKey< xAOD::VertexContainerm_decorLbMass { this, "LbMass_v0", ".Lambdabar_mass", "Lambdabar mass for v0" }
 
SG::WriteDecorHandleKey< xAOD::VertexContainerm_decorLbMassErr { this, "LbMassErr_v0", ".Lambdabar_massError", "Lambdabar mass error for v0" }
 
SG::WriteDecorHandleKey< xAOD::VertexContainerm_decorPt_v0 { this, "Pt_v0", ".pT", "Transverse momentum for v0" }
 
SG::WriteDecorHandleKey< xAOD::VertexContainerm_decorPtErr_v0 { this, "PtErr_v0", ".pTError", "Transverse momentum error for v0" }
 
SG::WriteDecorHandleKey< xAOD::VertexContainerm_decorRxy_v0 { this, "Rxy_v0", ".Rxy", "Rxy for v0" }
 
SG::WriteDecorHandleKey< xAOD::VertexContainerm_decorRxyErr_v0 { this, "RxyErr_v0", ".RxyError", "Rxy error for v0" }
 
SG::WriteDecorHandleKey< xAOD::VertexContainerm_decorPx_v0 { this, "Px_v0", ".px", "Px for v0" }
 
SG::WriteDecorHandleKey< xAOD::VertexContainerm_decorPy_v0 { this, "Py_v0", ".py", "Py for v0" }
 
SG::WriteDecorHandleKey< xAOD::VertexContainerm_decorPz_v0 { this, "Pz_v0", ".pz", "Pz for v0" }
 
SG::WriteDecorHandleKey< xAOD::VertexContainerm_decorMass_ks { this, "Mass_ks", ".mass", "mass for Ks" }
 
SG::WriteDecorHandleKey< xAOD::VertexContainerm_decorMassErr_ks { this, "MassErr_ks", ".massError", "mass error for Ks" }
 
SG::WriteDecorHandleKey< xAOD::VertexContainerm_decorPt_ks { this, "Pt_ks", ".pT", "Transverse momentum for Ks" }
 
SG::WriteDecorHandleKey< xAOD::VertexContainerm_decorPtErr_ks { this, "PtErr_ks", ".pTError", "Transverse momentum error for Ks" }
 
SG::WriteDecorHandleKey< xAOD::VertexContainerm_decorRxy_ks { this, "Rxy_ks", ".Rxy", "Rxy for Ks" }
 
SG::WriteDecorHandleKey< xAOD::VertexContainerm_decorRxyErr_ks { this, "RxyErr_ks", ".RxyError", "Rxy error for Ks" }
 
SG::WriteDecorHandleKey< xAOD::VertexContainerm_decorPx_ks { this, "Px_ks", ".px", "Px for Ks" }
 
SG::WriteDecorHandleKey< xAOD::VertexContainerm_decorPy_ks { this, "Py_ks", ".py", "Py for Ks" }
 
SG::WriteDecorHandleKey< xAOD::VertexContainerm_decorPz_ks { this, "Pz_ks", ".pz", "Pz for Ks" }
 
SG::WriteDecorHandleKey< xAOD::VertexContainerm_decorMass_la { this, "Mass_la", ".mass", "mass for Lambda" }
 
SG::WriteDecorHandleKey< xAOD::VertexContainerm_decorMassErr_la { this, "MassErr_la", ".massError", "mass error for Lambda" }
 
SG::WriteDecorHandleKey< xAOD::VertexContainerm_decorPt_la { this, "Pt_la", ".pT", "Transverse momentum for Lambda" }
 
SG::WriteDecorHandleKey< xAOD::VertexContainerm_decorPtErr_la { this, "PtErr_la", ".pTError", "Transverse momentum error for Lambda" }
 
SG::WriteDecorHandleKey< xAOD::VertexContainerm_decorRxy_la { this, "Rxy_la", ".Rxy", "Rxy for la" }
 
SG::WriteDecorHandleKey< xAOD::VertexContainerm_decorRxyErr_la { this, "RxyErr_la", ".RxyError", "Rxy error for Lambda" }
 
SG::WriteDecorHandleKey< xAOD::VertexContainerm_decorPx_la { this, "Px_la", ".px", "Px for Lambda" }
 
SG::WriteDecorHandleKey< xAOD::VertexContainerm_decorPy_la { this, "Py_la", ".py", "Py for Lambda" }
 
SG::WriteDecorHandleKey< xAOD::VertexContainerm_decorPz_la { this, "Pz_la", ".pz", "Pz for Lambda" }
 
SG::WriteDecorHandleKey< xAOD::VertexContainerm_decorMass_lb { this, "Mass_lb", ".mass", "mass for Lambdabar" }
 
SG::WriteDecorHandleKey< xAOD::VertexContainerm_decorMassErr_lb { this, "MassErr_lb", ".massError", "mass error for Lambdabar" }
 
SG::WriteDecorHandleKey< xAOD::VertexContainerm_decorPt_lb { this, "Pt_lb", ".pT", "Transverse momentum for Lambdabar" }
 
SG::WriteDecorHandleKey< xAOD::VertexContainerm_decorPtErr_lb { this, "PtErr_lb", ".pTError", "Transverse momentum error for Lambdabar" }
 
SG::WriteDecorHandleKey< xAOD::VertexContainerm_decorRxy_lb { this, "Rxy_lb", ".Rxy", "Rxy for Lambdabar" }
 
SG::WriteDecorHandleKey< xAOD::VertexContainerm_decorRxyErr_lb { this, "RxyErr_lb", ".RxyError", "Rxy error for Lambdabar" }
 
SG::WriteDecorHandleKey< xAOD::VertexContainerm_decorPx_lb { this, "Px_lb", ".px", "Px for Lambdabar" }
 
SG::WriteDecorHandleKey< xAOD::VertexContainerm_decorPy_lb { this, "Py_lb", ".py", "Py for Lambdabar" }
 
SG::WriteDecorHandleKey< xAOD::VertexContainerm_decorPz_lb { this, "Pz_lb", ".pz", "Pz for Lambdabar" }
 
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default) More...
 
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default) More...
 
std::vector< SG::VarHandleKeyArray * > m_vhka
 
bool m_varHandleArraysDeclared
 

Detailed Description

Definition at line 17 of file V0MainDecorator.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< AlgTool > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ V0MainDecorator()

InDet::V0MainDecorator::V0MainDecorator ( const std::string &  t,
const std::string &  n,
const IInterface *  p 
)

Definition at line 13 of file V0MainDecorator.cxx.

14  :
15  AthAlgTool(t,n,p), m_masses(1),
16  m_masspi(139.57),
17  m_massp(938.272),
18  m_masse(0.510999),
19  m_massK0S(497.672),
20  m_massLambda(1115.68)
21  {
22  declareProperty("masses", m_masses);
23  declareProperty("masspi", m_masspi);
24  declareProperty("massp", m_massp);
25  declareProperty("masse", m_masse);
26  declareProperty("massK0S", m_massK0S);
27  declareProperty("massLambda", m_massLambda);
28  }

◆ ~V0MainDecorator()

InDet::V0MainDecorator::~V0MainDecorator ( )
default

Member Function Documentation

◆ declareGaudiProperty() [1/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleKeyArrayType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKeyArray>

Definition at line 170 of file AthCommonDataStore.h.

172  {
173  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
174  hndl.value(),
175  hndl.documentation());
176 
177  }

◆ declareGaudiProperty() [2/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleKeyType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158  {
159  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
160  hndl.value(),
161  hndl.documentation());
162 
163  }

◆ declareGaudiProperty() [3/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleBase>

Definition at line 184 of file AthCommonDataStore.h.

186  {
187  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
188  hndl.value(),
189  hndl.documentation());
190  }

◆ declareGaudiProperty() [4/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  t,
const SG::NotHandleType  
)
inlineprivateinherited

specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>

Definition at line 199 of file AthCommonDataStore.h.

200  {
201  return PBASE::declareProperty(t);
202  }

◆ declareProperty() [1/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleBase hndl,
const std::string &  doc,
const SG::VarHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation 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.

249  {
250  this->declare(hndl.vhKey());
251  hndl.vhKey().setOwner(this);
252 
253  return PBASE::declareProperty(name,hndl,doc);
254  }

◆ declareProperty() [2/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleKey hndl,
const std::string &  doc,
const SG::VarHandleKeyType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation 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.

225  {
226  this->declare(hndl);
227  hndl.setOwner(this);
228 
229  return PBASE::declareProperty(name,hndl,doc);
230  }

◆ declareProperty() [3/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleKeyArray hndArr,
const std::string &  doc,
const SG::VarHandleKeyArrayType  
)
inlineinherited

Definition at line 259 of file AthCommonDataStore.h.

263  {
264 
265  // std::ostringstream ost;
266  // ost << Algorithm::name() << " VHKA declareProp: " << name
267  // << " size: " << hndArr.keys().size()
268  // << " mode: " << hndArr.mode()
269  // << " vhka size: " << m_vhka.size()
270  // << "\n";
271  // debug() << ost.str() << endmsg;
272 
273  hndArr.setOwner(this);
274  m_vhka.push_back(&hndArr);
275 
276  Gaudi::Details::PropertyBase* p = PBASE::declareProperty(name, hndArr, doc);
277  if (p != 0) {
278  p->declareUpdateHandler(&AthCommonDataStore<PBASE>::updateVHKA, this);
279  } else {
280  ATH_MSG_ERROR("unable to call declareProperty on VarHandleKeyArray "
281  << name);
282  }
283 
284  return p;
285 
286  }

◆ declareProperty() [4/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc,
const SG::NotHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation 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.

337  {
338  return PBASE::declareProperty(name, property, doc);
339  }

◆ declareProperty() [5/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc = "none" 
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation 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.

355  {
356  typedef typename SG::HandleClassifier<T>::type htype;
357  return declareProperty (name, property, doc, htype());
358  }

◆ declareProperty() [6/6]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( Gaudi::Property< T > &  t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145  {
146  typedef typename SG::HandleClassifier<T>::type htype;
148  }

◆ decorateks()

StatusCode InDet::V0MainDecorator::decorateks ( xAOD::VertexContainer container,
const EventContext &  ctx 
) const

Definition at line 157 of file V0MainDecorator.cxx.

158 {
159 
169 
170  for ( auto ksV0 : *container )
171  {
172  double mass_ks = m_V0Tools->invariantMass(ksV0,m_masspi,m_masspi);
173  double mass_error_ks = m_V0Tools->invariantMassError(ksV0,m_masspi,m_masspi);
174  double pt = m_V0Tools->pT(ksV0);
175  double ptError = m_V0Tools->pTError(ksV0);
176  double rxy = m_V0Tools->rxy(ksV0);
177  double rxyError = m_V0Tools->rxyError(ksV0);
178  Amg::Vector3D momentum = m_V0Tools->V0Momentum(ksV0);
179 
180  decorMass_ks( *ksV0 ) = mass_ks;
181  decorMassErr_ks( *ksV0 ) = mass_error_ks;
182  decorPt_ks( *ksV0 ) = pt;
183  decorPtErr_ks( *ksV0 ) = ptError;
184  decorRxy_ks( *ksV0 ) = rxy;
185  decorRxyErr_ks( *ksV0 ) = rxyError;
186  decorPx_ks( *ksV0 ) = momentum.x();
187  decorPy_ks( *ksV0 ) = momentum.y();
188  decorPz_ks( *ksV0 ) = momentum.z();
189  }
190  return StatusCode::SUCCESS;
191 }

◆ decoratela()

StatusCode InDet::V0MainDecorator::decoratela ( xAOD::VertexContainer container,
const EventContext &  ctx 
) const

Definition at line 193 of file V0MainDecorator.cxx.

194 {
204 
205  for ( auto laV0 : *container )
206  {
207  double mass_la = m_V0Tools->invariantMass(laV0,m_massp,m_masspi);
208  double mass_error_la = m_V0Tools->invariantMassError(laV0,m_massp,m_masspi);
209  double pt = m_V0Tools->pT(laV0);
210  double ptError = m_V0Tools->pTError(laV0);
211  double rxy = m_V0Tools->rxy(laV0);
212  double rxyError = m_V0Tools->rxyError(laV0);
213  Amg::Vector3D momentum = m_V0Tools->V0Momentum(laV0);
214 
215  decorMass_la( *laV0 ) = mass_la;
216  decorMassErr_la( *laV0 ) = mass_error_la;
217  decorPt_la( *laV0 ) = pt;
218  decorPtErr_la( *laV0 ) = ptError;
219  decorRxy_la( *laV0 ) = rxy;
220  decorRxyErr_la( *laV0 ) = rxyError;
221  decorPx_la( *laV0 ) = momentum.x();
222  decorPy_la( *laV0 ) = momentum.y();
223  decorPz_la( *laV0 ) = momentum.z();
224  }
225  return StatusCode::SUCCESS;
226 }

◆ decoratelb()

StatusCode InDet::V0MainDecorator::decoratelb ( xAOD::VertexContainer container,
const EventContext &  ctx 
) const

Definition at line 228 of file V0MainDecorator.cxx.

229 {
239 
240  for ( auto lbV0 : *container )
241  {
242  double mass_lb = m_V0Tools->invariantMass(lbV0,m_masspi,m_massp);
243  double mass_error_lb = m_V0Tools->invariantMassError(lbV0,m_masspi,m_massp);
244  double pt = m_V0Tools->pT(lbV0);
245  double ptError = m_V0Tools->pTError(lbV0);
246  double rxy = m_V0Tools->rxy(lbV0);
247  double rxyError = m_V0Tools->rxyError(lbV0);
248  Amg::Vector3D momentum = m_V0Tools->V0Momentum(lbV0);
249 
250  decorMass_lb( *lbV0 ) = mass_lb;
251  decorMassErr_lb( *lbV0 ) = mass_error_lb;
252  decorPt_lb( *lbV0 ) = pt;
253  decorPtErr_lb( *lbV0 ) = ptError;
254  decorRxy_lb( *lbV0 ) = rxy;
255  decorRxyErr_lb( *lbV0 ) = rxyError;
256  decorPx_lb( *lbV0 ) = momentum.x();
257  decorPy_lb( *lbV0 ) = momentum.y();
258  decorPz_lb( *lbV0 ) = momentum.z();
259  }
260  return StatusCode::SUCCESS;
261 }

◆ decorateV0()

StatusCode InDet::V0MainDecorator::decorateV0 ( xAOD::VertexContainer container,
const EventContext &  ctx 
) const

Definition at line 109 of file V0MainDecorator.cxx.

110 {
111 
125 
126  for ( auto unconstrV0 : *container )
127  {
128  double mass_ks = m_V0Tools->invariantMass(unconstrV0,m_masspi,m_masspi);
129  double mass_error_ks = m_V0Tools->invariantMassError(unconstrV0,m_masspi,m_masspi);
130  double mass_la = m_V0Tools->invariantMass(unconstrV0,m_massp,m_masspi);
131  double mass_error_la = m_V0Tools->invariantMassError(unconstrV0,m_massp,m_masspi);
132  double mass_lb = m_V0Tools->invariantMass(unconstrV0,m_masspi,m_massp);
133  double mass_error_lb = m_V0Tools->invariantMassError(unconstrV0,m_masspi,m_massp);
134  double pt = m_V0Tools->pT(unconstrV0);
135  double ptError = m_V0Tools->pTError(unconstrV0);
136  double rxy = m_V0Tools->rxy(unconstrV0);
137  double rxyError = m_V0Tools->rxyError(unconstrV0);
138  Amg::Vector3D momentum = m_V0Tools->V0Momentum(unconstrV0);
139 
140  decorKsMass( *unconstrV0 ) = mass_ks;
141  decorLaMass( *unconstrV0 ) = mass_la;
142  decorLbMass( *unconstrV0 ) = mass_lb;
143  decorKsMassErr( *unconstrV0 ) = mass_error_ks;
144  decorLaMassErr( *unconstrV0 ) = mass_error_la;
145  decorLbMassErr( *unconstrV0 ) = mass_error_lb;
146  decorPt_v0( *unconstrV0 ) = pt;
147  decorPtErr_v0( *unconstrV0 ) =ptError;
148  decorRxy_v0( *unconstrV0 ) = rxy;
149  decorRxyErr_v0( *unconstrV0 ) =rxyError;
150  decorPx_v0( *unconstrV0 ) = momentum.x();
151  decorPy_v0( *unconstrV0 ) = momentum.y();
152  decorPz_v0( *unconstrV0 ) = momentum.z();
153  }
154  return StatusCode::SUCCESS;
155 }

◆ detStore()

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

95 { return m_detStore; }

◆ evtStore() [1/2]

ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

85 { return m_evtStore; }

◆ evtStore() [2/2]

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore ( ) const
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 90 of file AthCommonDataStore.h.

90 { return m_evtStore; }

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase &  ExtraDeps)
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

◆ initialize()

StatusCode InDet::V0MainDecorator::initialize ( )

Definition at line 40 of file V0MainDecorator.cxx.

40  {
41 
42  ATH_CHECK( m_V0Tools.retrieve() );
49 
56 
85 
86 
87 
88  if (m_masses == 1) {
89  // get the Particle Properties Service
90  IPartPropSvc* partPropSvc = nullptr;
91  ATH_CHECK( service("PartPropSvc", partPropSvc, true) );
92  auto *particleDataTable = partPropSvc->PDT();
93 
94  const HepPDT::ParticleData* pd_pi = particleDataTable->particle(MC::PIPLUS);
95  const HepPDT::ParticleData* pd_p = particleDataTable->particle(MC::PROTON);
96  const HepPDT::ParticleData* pd_e = particleDataTable->particle(MC::ELECTRON);
97  const HepPDT::ParticleData* pd_K = particleDataTable->particle(MC::K0S);
98  const HepPDT::ParticleData* pd_L = particleDataTable->particle(MC::LAMBDA0);
99 
100  m_masspi = pd_pi->mass();
101  m_massp = pd_p->mass();
102  m_masse = pd_e->mass();
103  m_massK0S = pd_K->mass();
104  m_massLambda = pd_L->mass();
105  }
106  return StatusCode::SUCCESS;
107 }

◆ initKey()

StatusCode InDet::V0MainDecorator::initKey ( const std::string &  containerKey,
SG::WriteDecorHandleKey< xAOD::VertexContainer > &  decokey 
) const
private

Definition at line 32 of file V0MainDecorator.cxx.

33  {
34  decokey = containerKey + decokey.key();
35  ATH_MSG_DEBUG(" : " << decokey.key());
36  ATH_CHECK(decokey.initialize(!containerKey.empty()));
37  return StatusCode::SUCCESS;
38 }

◆ inputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< AlgTool > >::inputHandles ( ) const
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.

◆ msg() [1/2]

MsgStream& AthCommonMsg< AlgTool >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24  {
25  return this->msgStream();
26  }

◆ msg() [2/2]

MsgStream& AthCommonMsg< AlgTool >::msg ( const MSG::Level  lvl) const
inlineinherited

Definition at line 27 of file AthCommonMsg.h.

27  {
28  return this->msgStream(lvl);
29  }

◆ msgLvl()

bool AthCommonMsg< AlgTool >::msgLvl ( const MSG::Level  lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30  {
31  return this->msgLevel(lvl);
32  }

◆ outputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< AlgTool > >::outputHandles ( ) const
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.

◆ renounce()

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> AthCommonDataStore< AthCommonMsg< AlgTool > >::renounce ( T &  h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381  {
382  h.renounce();
383  PBASE::renounce (h);
384  }

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::renounceArray ( SG::VarHandleKeyArray handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364  {
365  handlesArray.renounce();
366  }

◆ sysInitialize()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysInitialize ( )
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 DerivationFramework::CfAthAlgTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and asg::AsgMetadataTool.

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::updateVHKA ( Gaudi::Details::PropertyBase &  )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308  {
309  // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310  // << " size: " << m_vhka.size() << endmsg;
311  for (auto &a : m_vhka) {
312  std::vector<SG::VarHandleKey*> keys = a->keys();
313  for (auto k : keys) {
314  k->setOwner(this);
315  }
316  }
317  }

Member Data Documentation

◆ m_decorKsMass

SG::WriteDecorHandleKey<xAOD::VertexContainer> InDet::V0MainDecorator::m_decorKsMass { this, "KsMass_v0", ".Kshort_mass", "Ks mass for v0" }
private

Definition at line 47 of file V0MainDecorator.h.

◆ m_decorKsMassErr

SG::WriteDecorHandleKey<xAOD::VertexContainer> InDet::V0MainDecorator::m_decorKsMassErr { this, "KsMassErr_v0", ".Kshort_massError", "Ks mass error for v0" }
private

Definition at line 49 of file V0MainDecorator.h.

◆ m_decorLaMass

SG::WriteDecorHandleKey<xAOD::VertexContainer> InDet::V0MainDecorator::m_decorLaMass { this, "LaMass_v0", ".Lambda_mass", "Lambda mass for v0" }
private

Definition at line 51 of file V0MainDecorator.h.

◆ m_decorLaMassErr

SG::WriteDecorHandleKey<xAOD::VertexContainer> InDet::V0MainDecorator::m_decorLaMassErr { this, "LaMassErr_v0", ".Lambda_massError", "Lambda mass error for v0" }
private

Definition at line 53 of file V0MainDecorator.h.

◆ m_decorLbMass

SG::WriteDecorHandleKey<xAOD::VertexContainer> InDet::V0MainDecorator::m_decorLbMass { this, "LbMass_v0", ".Lambdabar_mass", "Lambdabar mass for v0" }
private

Definition at line 55 of file V0MainDecorator.h.

◆ m_decorLbMassErr

SG::WriteDecorHandleKey<xAOD::VertexContainer> InDet::V0MainDecorator::m_decorLbMassErr { this, "LbMassErr_v0", ".Lambdabar_massError", "Lambdabar mass error for v0" }
private

Definition at line 57 of file V0MainDecorator.h.

◆ m_decorMass_ks

SG::WriteDecorHandleKey<xAOD::VertexContainer> InDet::V0MainDecorator::m_decorMass_ks { this, "Mass_ks", ".mass", "mass for Ks" }
private

Definition at line 75 of file V0MainDecorator.h.

◆ m_decorMass_la

SG::WriteDecorHandleKey<xAOD::VertexContainer> InDet::V0MainDecorator::m_decorMass_la { this, "Mass_la", ".mass", "mass for Lambda" }
private

Definition at line 95 of file V0MainDecorator.h.

◆ m_decorMass_lb

SG::WriteDecorHandleKey<xAOD::VertexContainer> InDet::V0MainDecorator::m_decorMass_lb { this, "Mass_lb", ".mass", "mass for Lambdabar" }
private

Definition at line 115 of file V0MainDecorator.h.

◆ m_decorMassErr_ks

SG::WriteDecorHandleKey<xAOD::VertexContainer> InDet::V0MainDecorator::m_decorMassErr_ks { this, "MassErr_ks", ".massError", "mass error for Ks" }
private

Definition at line 77 of file V0MainDecorator.h.

◆ m_decorMassErr_la

SG::WriteDecorHandleKey<xAOD::VertexContainer> InDet::V0MainDecorator::m_decorMassErr_la { this, "MassErr_la", ".massError", "mass error for Lambda" }
private

Definition at line 97 of file V0MainDecorator.h.

◆ m_decorMassErr_lb

SG::WriteDecorHandleKey<xAOD::VertexContainer> InDet::V0MainDecorator::m_decorMassErr_lb { this, "MassErr_lb", ".massError", "mass error for Lambdabar" }
private

Definition at line 117 of file V0MainDecorator.h.

◆ m_decorPt_ks

SG::WriteDecorHandleKey<xAOD::VertexContainer> InDet::V0MainDecorator::m_decorPt_ks { this, "Pt_ks", ".pT", "Transverse momentum for Ks" }
private

Definition at line 79 of file V0MainDecorator.h.

◆ m_decorPt_la

SG::WriteDecorHandleKey<xAOD::VertexContainer> InDet::V0MainDecorator::m_decorPt_la { this, "Pt_la", ".pT", "Transverse momentum for Lambda" }
private

Definition at line 99 of file V0MainDecorator.h.

◆ m_decorPt_lb

SG::WriteDecorHandleKey<xAOD::VertexContainer> InDet::V0MainDecorator::m_decorPt_lb { this, "Pt_lb", ".pT", "Transverse momentum for Lambdabar" }
private

Definition at line 119 of file V0MainDecorator.h.

◆ m_decorPt_v0

SG::WriteDecorHandleKey<xAOD::VertexContainer> InDet::V0MainDecorator::m_decorPt_v0 { this, "Pt_v0", ".pT", "Transverse momentum for v0" }
private

Definition at line 59 of file V0MainDecorator.h.

◆ m_decorPtErr_ks

SG::WriteDecorHandleKey<xAOD::VertexContainer> InDet::V0MainDecorator::m_decorPtErr_ks { this, "PtErr_ks", ".pTError", "Transverse momentum error for Ks" }
private

Definition at line 81 of file V0MainDecorator.h.

◆ m_decorPtErr_la

SG::WriteDecorHandleKey<xAOD::VertexContainer> InDet::V0MainDecorator::m_decorPtErr_la { this, "PtErr_la", ".pTError", "Transverse momentum error for Lambda" }
private

Definition at line 101 of file V0MainDecorator.h.

◆ m_decorPtErr_lb

SG::WriteDecorHandleKey<xAOD::VertexContainer> InDet::V0MainDecorator::m_decorPtErr_lb { this, "PtErr_lb", ".pTError", "Transverse momentum error for Lambdabar" }
private

Definition at line 121 of file V0MainDecorator.h.

◆ m_decorPtErr_v0

SG::WriteDecorHandleKey<xAOD::VertexContainer> InDet::V0MainDecorator::m_decorPtErr_v0 { this, "PtErr_v0", ".pTError", "Transverse momentum error for v0" }
private

Definition at line 61 of file V0MainDecorator.h.

◆ m_decorPx_ks

SG::WriteDecorHandleKey<xAOD::VertexContainer> InDet::V0MainDecorator::m_decorPx_ks { this, "Px_ks", ".px", "Px for Ks" }
private

Definition at line 87 of file V0MainDecorator.h.

◆ m_decorPx_la

SG::WriteDecorHandleKey<xAOD::VertexContainer> InDet::V0MainDecorator::m_decorPx_la { this, "Px_la", ".px", "Px for Lambda" }
private

Definition at line 107 of file V0MainDecorator.h.

◆ m_decorPx_lb

SG::WriteDecorHandleKey<xAOD::VertexContainer> InDet::V0MainDecorator::m_decorPx_lb { this, "Px_lb", ".px", "Px for Lambdabar" }
private

Definition at line 127 of file V0MainDecorator.h.

◆ m_decorPx_v0

SG::WriteDecorHandleKey<xAOD::VertexContainer> InDet::V0MainDecorator::m_decorPx_v0 { this, "Px_v0", ".px", "Px for v0" }
private

Definition at line 67 of file V0MainDecorator.h.

◆ m_decorPy_ks

SG::WriteDecorHandleKey<xAOD::VertexContainer> InDet::V0MainDecorator::m_decorPy_ks { this, "Py_ks", ".py", "Py for Ks" }
private

Definition at line 89 of file V0MainDecorator.h.

◆ m_decorPy_la

SG::WriteDecorHandleKey<xAOD::VertexContainer> InDet::V0MainDecorator::m_decorPy_la { this, "Py_la", ".py", "Py for Lambda" }
private

Definition at line 109 of file V0MainDecorator.h.

◆ m_decorPy_lb

SG::WriteDecorHandleKey<xAOD::VertexContainer> InDet::V0MainDecorator::m_decorPy_lb { this, "Py_lb", ".py", "Py for Lambdabar" }
private

Definition at line 129 of file V0MainDecorator.h.

◆ m_decorPy_v0

SG::WriteDecorHandleKey<xAOD::VertexContainer> InDet::V0MainDecorator::m_decorPy_v0 { this, "Py_v0", ".py", "Py for v0" }
private

Definition at line 69 of file V0MainDecorator.h.

◆ m_decorPz_ks

SG::WriteDecorHandleKey<xAOD::VertexContainer> InDet::V0MainDecorator::m_decorPz_ks { this, "Pz_ks", ".pz", "Pz for Ks" }
private

Definition at line 91 of file V0MainDecorator.h.

◆ m_decorPz_la

SG::WriteDecorHandleKey<xAOD::VertexContainer> InDet::V0MainDecorator::m_decorPz_la { this, "Pz_la", ".pz", "Pz for Lambda" }
private

Definition at line 111 of file V0MainDecorator.h.

◆ m_decorPz_lb

SG::WriteDecorHandleKey<xAOD::VertexContainer> InDet::V0MainDecorator::m_decorPz_lb { this, "Pz_lb", ".pz", "Pz for Lambdabar" }
private

Definition at line 131 of file V0MainDecorator.h.

◆ m_decorPz_v0

SG::WriteDecorHandleKey<xAOD::VertexContainer> InDet::V0MainDecorator::m_decorPz_v0 { this, "Pz_v0", ".pz", "Pz for v0" }
private

Definition at line 71 of file V0MainDecorator.h.

◆ m_decorRxy_ks

SG::WriteDecorHandleKey<xAOD::VertexContainer> InDet::V0MainDecorator::m_decorRxy_ks { this, "Rxy_ks", ".Rxy", "Rxy for Ks" }
private

Definition at line 83 of file V0MainDecorator.h.

◆ m_decorRxy_la

SG::WriteDecorHandleKey<xAOD::VertexContainer> InDet::V0MainDecorator::m_decorRxy_la { this, "Rxy_la", ".Rxy", "Rxy for la" }
private

Definition at line 103 of file V0MainDecorator.h.

◆ m_decorRxy_lb

SG::WriteDecorHandleKey<xAOD::VertexContainer> InDet::V0MainDecorator::m_decorRxy_lb { this, "Rxy_lb", ".Rxy", "Rxy for Lambdabar" }
private

Definition at line 123 of file V0MainDecorator.h.

◆ m_decorRxy_v0

SG::WriteDecorHandleKey<xAOD::VertexContainer> InDet::V0MainDecorator::m_decorRxy_v0 { this, "Rxy_v0", ".Rxy", "Rxy for v0" }
private

Definition at line 63 of file V0MainDecorator.h.

◆ m_decorRxyErr_ks

SG::WriteDecorHandleKey<xAOD::VertexContainer> InDet::V0MainDecorator::m_decorRxyErr_ks { this, "RxyErr_ks", ".RxyError", "Rxy error for Ks" }
private

Definition at line 85 of file V0MainDecorator.h.

◆ m_decorRxyErr_la

SG::WriteDecorHandleKey<xAOD::VertexContainer> InDet::V0MainDecorator::m_decorRxyErr_la { this, "RxyErr_la", ".RxyError", "Rxy error for Lambda" }
private

Definition at line 105 of file V0MainDecorator.h.

◆ m_decorRxyErr_lb

SG::WriteDecorHandleKey<xAOD::VertexContainer> InDet::V0MainDecorator::m_decorRxyErr_lb { this, "RxyErr_lb", ".RxyError", "Rxy error for Lambdabar" }
private

Definition at line 125 of file V0MainDecorator.h.

◆ m_decorRxyErr_v0

SG::WriteDecorHandleKey<xAOD::VertexContainer> InDet::V0MainDecorator::m_decorRxyErr_v0 { this, "RxyErr_v0", ".RxyError", "Rxy error for v0" }
private

Definition at line 65 of file V0MainDecorator.h.

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_ksKey

Gaudi::Property<std::string> InDet::V0MainDecorator::m_ksKey { this, "KshortContainerName", "KshortCandidates", "Ks container" }
private

Definition at line 40 of file V0MainDecorator.h.

◆ m_laKey

Gaudi::Property<std::string> InDet::V0MainDecorator::m_laKey
private
Initial value:
{ this, "LambdaContainerName", "LambdaCandidates",
"Lambda container" }

Definition at line 41 of file V0MainDecorator.h.

◆ m_lbKey

Gaudi::Property<std::string> InDet::V0MainDecorator::m_lbKey
private
Initial value:
{ this, "LambdabarContainerName", "LambdabarCandidates",
"Lambdabar container" }

Definition at line 43 of file V0MainDecorator.h.

◆ m_masse

double InDet::V0MainDecorator::m_masse
private

electron mass (0.510999 MeV)

Definition at line 32 of file V0MainDecorator.h.

◆ m_masses

int InDet::V0MainDecorator::m_masses
private

= 1 if using PDG values, = 2 if user set (1)

Definition at line 29 of file V0MainDecorator.h.

◆ m_massK0S

double InDet::V0MainDecorator::m_massK0S
private

Kshort mass (497.672 MeV)

Definition at line 33 of file V0MainDecorator.h.

◆ m_massLambda

double InDet::V0MainDecorator::m_massLambda
private

Lambda mass (1115.68 MeV)

Definition at line 34 of file V0MainDecorator.h.

◆ m_massp

double InDet::V0MainDecorator::m_massp
private

proton mass (938.272 MeV)

Definition at line 31 of file V0MainDecorator.h.

◆ m_masspi

double InDet::V0MainDecorator::m_masspi
private

pion mass (139.57 MeV)

Definition at line 30 of file V0MainDecorator.h.

◆ m_v0Key

Gaudi::Property<std::string> InDet::V0MainDecorator::m_v0Key { this, "V0ContainerName", "V0Candidates", "V0 container name (same calling alg)" }
private

Definition at line 38 of file V0MainDecorator.h.

◆ m_V0Tools

ToolHandle<Trk::V0Tools> InDet::V0MainDecorator::m_V0Tools {this, "V0Tools", "Trk::V0Tools", "V0 tools to calculate things like Lxy"}
private

Definition at line 35 of file V0MainDecorator.h.

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< AlgTool > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files:
InDet::V0MainDecorator::m_decorPx_v0
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_decorPx_v0
Definition: V0MainDecorator.h:68
InDet::V0MainDecorator::m_decorPy_ks
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_decorPy_ks
Definition: V0MainDecorator.h:90
InDet::V0MainDecorator::m_decorMass_la
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_decorMass_la
Definition: V0MainDecorator.h:96
InDet::V0MainDecorator::m_decorLbMass
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_decorLbMass
Definition: V0MainDecorator.h:56
InDet::V0MainDecorator::m_decorPz_v0
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_decorPz_v0
Definition: V0MainDecorator.h:72
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
InDet::V0MainDecorator::m_masspi
double m_masspi
pion mass (139.57 MeV)
Definition: V0MainDecorator.h:30
InDet::V0MainDecorator::m_decorMassErr_la
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_decorMassErr_la
Definition: V0MainDecorator.h:98
InDet::V0MainDecorator::initKey
StatusCode initKey(const std::string &, SG::WriteDecorHandleKey< xAOD::VertexContainer > &decokey) const
Definition: V0MainDecorator.cxx:32
InDet::V0MainDecorator::m_masses
int m_masses
= 1 if using PDG values, = 2 if user set (1)
Definition: V0MainDecorator.h:29
InDet::V0MainDecorator::m_V0Tools
ToolHandle< Trk::V0Tools > m_V0Tools
Definition: V0MainDecorator.h:35
AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
InDet::V0MainDecorator::m_decorKsMassErr
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_decorKsMassErr
Definition: V0MainDecorator.h:50
InDet::V0MainDecorator::m_decorLaMass
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_decorLaMass
Definition: V0MainDecorator.h:52
InDet::V0MainDecorator::m_laKey
Gaudi::Property< std::string > m_laKey
Definition: V0MainDecorator.h:41
test_pyathena.pt
pt
Definition: test_pyathena.py:11
InDet::V0MainDecorator::m_decorPy_v0
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_decorPy_v0
Definition: V0MainDecorator.h:70
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
InDet::V0MainDecorator::m_decorPtErr_la
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_decorPtErr_la
Definition: V0MainDecorator.h:102
InDet::V0MainDecorator::m_decorPx_la
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_decorPx_la
Definition: V0MainDecorator.h:108
InDet::V0MainDecorator::m_decorPt_la
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_decorPt_la
Definition: V0MainDecorator.h:100
InDet::V0MainDecorator::m_massLambda
double m_massLambda
Lambda mass (1115.68 MeV)
Definition: V0MainDecorator.h:34
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
InDet::V0MainDecorator::m_masse
double m_masse
electron mass (0.510999 MeV)
Definition: V0MainDecorator.h:32
InDet::V0MainDecorator::m_decorRxy_ks
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_decorRxy_ks
Definition: V0MainDecorator.h:84
SG::VarHandleKey::key
const std::string & key() const
Return the StoreGate ID for the referenced object.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:141
InDet::V0MainDecorator::m_decorRxy_v0
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_decorRxy_v0
Definition: V0MainDecorator.h:64
InDet::V0MainDecorator::m_decorRxyErr_lb
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_decorRxyErr_lb
Definition: V0MainDecorator.h:126
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
InDet::V0MainDecorator::m_decorPtErr_ks
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_decorPtErr_ks
Definition: V0MainDecorator.h:82
InDet::V0MainDecorator::m_lbKey
Gaudi::Property< std::string > m_lbKey
Definition: V0MainDecorator.h:43
InDet::V0MainDecorator::m_decorPy_lb
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_decorPy_lb
Definition: V0MainDecorator.h:130
AthCommonDataStore
Definition: AthCommonDataStore.h:52
InDet::V0MainDecorator::m_decorPt_lb
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_decorPt_lb
Definition: V0MainDecorator.h:120
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
ParticleGun_EoverP_Config.momentum
momentum
Definition: ParticleGun_EoverP_Config.py:63
InDet::V0MainDecorator::m_decorRxyErr_v0
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_decorRxyErr_v0
Definition: V0MainDecorator.h:66
InDet::V0MainDecorator::m_decorMassErr_lb
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_decorMassErr_lb
Definition: V0MainDecorator.h:118
beamspotman.n
n
Definition: beamspotman.py:731
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
SG::WriteDecorHandle
Handle class for adding a decoration to an object.
Definition: StoreGate/StoreGate/WriteDecorHandle.h:99
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
InDet::V0MainDecorator::m_decorPy_la
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_decorPy_la
Definition: V0MainDecorator.h:110
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
InDet::V0MainDecorator::m_decorPtErr_v0
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_decorPtErr_v0
Definition: V0MainDecorator.h:62
AthAlgTool::AthAlgTool
AthAlgTool()
Default constructor:
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
InDet::V0MainDecorator::m_decorRxyErr_la
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_decorRxyErr_la
Definition: V0MainDecorator.h:106
InDet::V0MainDecorator::m_ksKey
Gaudi::Property< std::string > m_ksKey
Definition: V0MainDecorator.h:40
InDet::V0MainDecorator::m_decorPt_v0
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_decorPt_v0
Definition: V0MainDecorator.h:60
InDet::V0MainDecorator::m_v0Key
Gaudi::Property< std::string > m_v0Key
Definition: V0MainDecorator.h:39
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
InDet::V0MainDecorator::m_decorPz_la
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_decorPz_la
Definition: V0MainDecorator.h:112
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
InDet::V0MainDecorator::m_decorMass_ks
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_decorMass_ks
Definition: V0MainDecorator.h:76
InDet::V0MainDecorator::m_decorRxy_lb
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_decorRxy_lb
Definition: V0MainDecorator.h:124
InDet::V0MainDecorator::m_decorRxy_la
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_decorRxy_la
Definition: V0MainDecorator.h:104
InDet::V0MainDecorator::m_decorLaMassErr
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_decorLaMassErr
Definition: V0MainDecorator.h:54
InDet::V0MainDecorator::m_decorRxyErr_ks
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_decorRxyErr_ks
Definition: V0MainDecorator.h:86
a
TList * a
Definition: liststreamerinfos.cxx:10
SG::WriteDecorHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
h
InDet::V0MainDecorator::m_massK0S
double m_massK0S
Kshort mass (497.672 MeV)
Definition: V0MainDecorator.h:33
InDet::V0MainDecorator::m_decorPt_ks
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_decorPt_ks
Definition: V0MainDecorator.h:80
InDet::V0MainDecorator::m_decorPz_ks
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_decorPz_ks
Definition: V0MainDecorator.h:92
InDet::V0MainDecorator::m_massp
double m_massp
proton mass (938.272 MeV)
Definition: V0MainDecorator.h:31
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:616
InDet::V0MainDecorator::m_decorPx_ks
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_decorPx_ks
Definition: V0MainDecorator.h:88
declareProperty
#define declareProperty(n, p, h)
Definition: BaseFakeBkgTool.cxx:15
InDet::V0MainDecorator::m_decorMass_lb
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_decorMass_lb
Definition: V0MainDecorator.h:116
InDet::V0MainDecorator::m_decorLbMassErr
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_decorLbMassErr
Definition: V0MainDecorator.h:58
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:790
InDet::V0MainDecorator::m_decorPtErr_lb
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_decorPtErr_lb
Definition: V0MainDecorator.h:122
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
InDet::V0MainDecorator::m_decorMassErr_ks
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_decorMassErr_ks
Definition: V0MainDecorator.h:78
fitman.k
k
Definition: fitman.py:528
InDet::V0MainDecorator::m_decorPz_lb
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_decorPz_lb
Definition: V0MainDecorator.h:132
InDet::V0MainDecorator::m_decorKsMass
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_decorKsMass
Definition: V0MainDecorator.h:48
InDet::V0MainDecorator::m_decorPx_lb
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_decorPx_lb
Definition: V0MainDecorator.h:128