![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
#include <Reco_4mu.h>
|
| Reco_4mu (const std::string &t, const std::string &n, const IInterface *p) |
|
StatusCode | initialize () |
|
StatusCode | finalize () |
|
virtual StatusCode | addBranches () const |
| Pass the thinning service
More...
|
|
ServiceHandle< StoreGateSvc > & | evtStore () |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | evtStore () const |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | detStore () const |
| The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
virtual StatusCode | sysInitialize () override |
| Perform system initialization for an algorithm. More...
|
|
virtual StatusCode | sysStart () override |
| Handle START transition. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. More...
|
|
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T > &t) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
| Declare a new Gaudi property. More...
|
|
void | updateVHKA (Gaudi::Details::PropertyBase &) |
|
MsgStream & | msg () const |
|
MsgStream & | msg (const MSG::Level lvl) const |
|
bool | msgLvl (const MSG::Level lvl) const |
|
Definition at line 34 of file Reco_4mu.h.
◆ StoreGateSvc_t
◆ Reco_4mu()
DerivationFramework::Reco_4mu::Reco_4mu |
( |
const std::string & |
t, |
|
|
const std::string & |
n, |
|
|
const IInterface * |
p |
|
) |
| |
Definition at line 20 of file Reco_4mu.cxx.
28 declareInterface<DerivationFramework::IAugmentationTool>(
this);
◆ addBranches()
StatusCode DerivationFramework::Reco_4mu::addBranches |
( |
| ) |
const |
|
virtual |
Pass the thinning service
Implements DerivationFramework::IAugmentationTool.
Definition at line 75 of file Reco_4mu.cxx.
82 bool acceptEvent =
false;
86 if( !
m_fourMuonTool->performSearch(pairContainer, pairAuxContainer, quadContainer, quadAuxContainer, acceptEvent).isSuccess() ) {
88 return StatusCode::FAILURE;
110 return StatusCode::FAILURE;
121 refPvContainer->setStore(refPvAuxContainer);
127 if(quadContainer->
size() >0){
130 ATH_MSG_FATAL(
"refitting failed - check the vertices you passed");
131 return StatusCode::FAILURE;
134 if(pairContainer->
size()>0) {
137 ATH_MSG_FATAL(
"refitting failed - check the vertices you passed");
138 return StatusCode::FAILURE;
142 if(quadContainer->
size() >0){
146 if(pairContainer->
size() >0)
157 std::vector<double> muonPairMasses = std::vector<double>(2, 105.658);
158 std::vector<double> muonQuadMasses = std::vector<double>(4, 105.658);
168 for(; pairItr!=pairContainer->
end(); ++pairItr) {
176 if( !pairHelper.setMass(muonPairMasses) )
ATH_MSG_WARNING(
"Decoration pair.setMass failed");
178 double massErr =
m_v0Tools->invariantMassError(pairHelper.vtx(), muonPairMasses);
179 if( !pairHelper.setMassErr(massErr) )
ATH_MSG_WARNING(
"Decoration pair.setMassErr failed");
188 ATH_MSG_DEBUG(CombinationCodeAcc(**pairItr) <<
" : " << pairHelper.mass() <<
" +/- " << pairHelper.massErr());
194 for(; quadItr!=quadContainer->
end(); ++quadItr) {
202 if( !quadHelper.setMass(muonQuadMasses) )
ATH_MSG_WARNING(
"Decoration quad.setMass failed");
204 double massErr =
m_v0Tools->invariantMassError(quadHelper.vtx(), muonQuadMasses);
205 if( !quadHelper.setMassErr(massErr) )
ATH_MSG_WARNING(
"Decoration quad.setMassErr failed");
214 ATH_MSG_DEBUG(CombinationCodeAcc(**quadItr) <<
" : " << quadHelper.mass() <<
" +/- " << quadHelper.massErr());
238 return StatusCode::SUCCESS;
◆ 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);
◆ 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.
◆ 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.
◆ 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 DerivationFramework::Reco_4mu::finalize |
( |
| ) |
|
Definition at line 67 of file Reco_4mu.cxx.
70 return StatusCode::SUCCESS;
◆ initialize()
StatusCode DerivationFramework::Reco_4mu::initialize |
( |
| ) |
|
Definition at line 47 of file Reco_4mu.cxx.
61 return StatusCode::SUCCESS;
◆ 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& DerivationFramework::IAugmentationTool::interfaceID |
( |
| ) |
|
|
inlinestaticinherited |
AlgTool interface methods.
Definition at line 31 of file IAugmentationTool.h.
31 {
return IID_IAugmentationTool; }
◆ 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.
◆ ProcessVertex()
tools
Definition at line 242 of file Reco_4mu.cxx.
259 const float errConst = -9999999;
◆ 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_detStore
◆ m_DoVertexType
int DerivationFramework::Reco_4mu::m_DoVertexType |
|
private |
◆ m_evtStore
◆ m_fourMuonTool
◆ m_pairName
std::string DerivationFramework::Reco_4mu::m_pairName |
|
private |
◆ m_PV_max
int DerivationFramework::Reco_4mu::m_PV_max |
|
private |
◆ m_pvContainerName
std::string DerivationFramework::Reco_4mu::m_pvContainerName |
|
private |
◆ m_pvRefitter
◆ m_quadName
std::string DerivationFramework::Reco_4mu::m_quadName |
|
private |
◆ m_refitPV
bool DerivationFramework::Reco_4mu::m_refitPV |
|
private |
◆ m_refPVContainerName
std::string DerivationFramework::Reco_4mu::m_refPVContainerName |
|
private |
◆ m_v0Tools
ToolHandle<Trk::V0Tools> DerivationFramework::Reco_4mu::m_v0Tools |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
Temporary container used until we have I/O for AuxStoreInternal.
bool setTauErr(const float val, const pv_type vertexType=BPhysHelper::PV_MIN_A0, const tau_type tauType=BPhysHypoHelper::TAU_CONST_MASS)
proper decay time error
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
std::string m_pvContainerName
void ProcessVertex(xAOD::BPhysHypoHelper &, xAOD::BPhysHelper::pv_type, std::vector< double > trackMasses) const
tools
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
Helper class to provide constant type-safe access to aux data.
VertexContainer_v1 VertexContainer
Definition of the current "Vertex container version".
virtual void setOwner(IDataHandleHolder *o)=0
ToolHandle< Analysis::PrimaryVertexRefitter > m_pvRefitter
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
#define BPHYS_CHECK(EXP)
Useful CHECK macro.
std::string m_pairName
job options
ToolHandle< Trk::V0Tools > m_v0Tools
(Non-const) Iterator class for DataVector/DataList.
VertexAuxContainer_v1 VertexAuxContainer
Definition of the current jet auxiliary container.
::StatusCode StatusCode
StatusCode definition for legacy code.
const float SC[NC]
Cross sections for Carbon.
#define CHECK(...)
Evaluate an expression and check for errors.
std::string m_refPVContainerName
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
ToolHandle< DerivationFramework::FourMuonTool > m_fourMuonTool
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
const xAOD::Vertex * vtx() const
Getter method for the cached xAOD::Vertex.
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
Class describing a Vertex.
#define ATH_MSG_WARNING(x)
const xAOD::Vertex * pv(const pv_type vertexType=BPhysHelper::PV_MIN_A0)
Get the refitted collision vertex of type pv_type.
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
bool setTau(const float val, const pv_type vertexType=BPhysHelper::PV_MIN_A0, const tau_type tauType=BPhysHypoHelper::TAU_CONST_MASS)
: Set the proper decay time and error.
size_type size() const noexcept
Returns the number of elements in the collection.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.