|
ATLAS Offline Software
|
#include <Bmumu_reco_mumu.h>
|
| Bmumu_reco_mumu (const std::string &t, const std::string &n, const IInterface *p) |
|
StatusCode | initialize () override |
|
virtual StatusCode | addBranches () const override |
| Pass the thinning service
More...
|
|
virtual StatusCode | sysInitialize () override |
| Perform system initialization for an algorithm. More...
|
|
virtual bool | addEvent (const std::string &name, double weight=1.) const |
|
virtual bool | addToCounter (const std::string &name, uint64_t counts=1, double weight=1.) 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 | 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 |
|
|
ToolHandle< Trk::V0Tools > | m_v0Tools {this, "V0Tools", "Trk::V0Tools"} |
| tools More...
|
|
ToolHandle< Analysis::ICandidateSearch > | m_jpsiFinder {this,"JpsiFinder", "Analysis::JpsiFinder"} |
|
ToolHandle< Analysis::PrimaryVertexRefitter > | m_pvRefitter {this, "PVRefitter", "Analysis::PrimaryVertexRefitter"} |
|
SG::ReadHandleKey< xAOD::EventInfo > | m_eventInfo_key {this, "EventInfo", "EventInfo", "Input event information"} |
|
SG::ReadHandleKey< xAOD::VertexContainer > | m_pvContainerKey {this, "PVContainerName", "PrimaryVertices"} |
| job options More...
|
|
SG::WriteHandleKey< xAOD::VertexContainer > | m_refContainerKey {this, "RefPVContainerName" , "RefittedPrimaryVertices"} |
|
SG::WriteHandleKey< xAOD::VertexContainer > | m_outVtxContainerKey {this, "OutputVtxContainerName" , "OniaCandidates"} |
|
Gaudi::Property< bool > | m_refitPV {this, "RefitPV", false} |
|
Gaudi::Property< int > | m_PV_max {this, "MaxPVrefit", 1} |
|
Gaudi::Property< int > | m_DoVertexType {this, "DoVertexType", 1} |
|
Gaudi::Property< unsigned int > | m_PV_minNTracks {this, "MinNTracksInPV", 0} |
|
Gaudi::Property< bool > | m_do3d {this, "Do3d", false} |
|
ServiceHandle< ICutFlowSvc > | m_cutFlowSvc |
|
std::string | m_ctbasename |
|
NameIdMap_t | m_mctn |
|
CutIdentifier | m_bid |
|
bool | m_bidisset |
|
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 |
|
Definition at line 42 of file Bmumu_reco_mumu.h.
◆ NameIdMap_t
◆ StoreGateSvc_t
◆ Bmumu_reco_mumu()
DerivationFramework::Bmumu_reco_mumu::Bmumu_reco_mumu |
( |
const std::string & |
t, |
|
|
const std::string & |
n, |
|
|
const IInterface * |
p |
|
) |
| |
Definition at line 32 of file Bmumu_reco_mumu.cxx.
36 declareInterface<DerivationFramework::IAugmentationTool>(
this);
◆ addBranches()
StatusCode DerivationFramework::Bmumu_reco_mumu::addBranches |
( |
| ) |
const |
|
overridevirtual |
Pass the thinning service
Implements DerivationFramework::IAugmentationTool.
Definition at line 66 of file Bmumu_reco_mumu.cxx.
68 const EventContext& ctx = Gaudi::Hive::currentContext();
70 std::unique_ptr<xAOD::VertexContainer> vtxContainer = std::make_unique<xAOD::VertexContainer>();
71 std::unique_ptr<xAOD::VertexAuxContainer> vtxAuxContainer = std::make_unique<xAOD::VertexAuxContainer>();
72 vtxContainer->setStore(vtxAuxContainer.get());
77 if( !
m_jpsiFinder->performSearch(ctx, *vtxContainer).isSuccess() ) {
79 return StatusCode::FAILURE;
86 if (!pvContainer.isValid()){
88 return StatusCode::FAILURE;
95 std::unique_ptr<xAOD::VertexContainer> refPvContainer = std::make_unique<xAOD::VertexContainer>();
96 std::unique_ptr<xAOD::VertexAuxContainer> refPvAuxContainer = std::make_unique<xAOD::VertexAuxContainer>();
97 refPvContainer->setStore(refPvAuxContainer.get());
104 return StatusCode::FAILURE;
122 ATH_CHECK(outputVertices.record(std::move(vtxContainer), std::move(vtxAuxContainer)));
126 ATH_CHECK(refitVertices.record(std::move(refPvContainer), std::move(refPvAuxContainer)));
138 return StatusCode::SUCCESS;
◆ addEvent()
bool DerivationFramework::CfAthAlgTool::addEvent |
( |
const std::string & |
name, |
|
|
double |
weight = 1. |
|
) |
| const |
|
virtualinherited |
◆ addToCounter()
bool DerivationFramework::CfAthAlgTool::addToCounter |
( |
const std::string & |
name, |
|
|
uint64_t |
counts = 1 , |
|
|
double |
weight = 1. |
|
) |
| const |
|
virtualinherited |
◆ 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
◆ getCounter()
CutIdentifier DerivationFramework::CfAthAlgTool::getCounter |
( |
const std::string & |
name | ) |
const |
|
protectedinherited |
Definition at line 128 of file CfAthAlgTool.cxx.
134 throw std::runtime_error(
"cutFlowSvc()->registerFilter is no longer supported. code an alternative here");
138 throw std::runtime_error(
"cutFlowSvc()->registerCut is no longer supported. code an alternative here");
◆ getCounterIdByName()
CutIdentifier DerivationFramework::CfAthAlgTool::getCounterIdByName |
( |
const std::string & |
name | ) |
const |
|
protectedinherited |
◆ getCounterNameById()
std::string DerivationFramework::CfAthAlgTool::getCounterNameById |
( |
CutIdentifier |
id | ) |
const |
|
protectedinherited |
◆ initialize()
StatusCode DerivationFramework::Bmumu_reco_mumu::initialize |
( |
| ) |
|
|
override |
◆ 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.
◆ renounce()
◆ renounceArray()
◆ sysInitialize()
StatusCode DerivationFramework::CfAthAlgTool::sysInitialize |
( |
| ) |
|
|
overridevirtualinherited |
◆ 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_bid
◆ m_bidisset
bool DerivationFramework::CfAthAlgTool::m_bidisset |
|
mutableprivateinherited |
◆ m_ctbasename
std::string DerivationFramework::CfAthAlgTool::m_ctbasename |
|
privateinherited |
◆ m_cutFlowSvc
◆ m_detStore
◆ m_do3d
Gaudi::Property<bool> DerivationFramework::Bmumu_reco_mumu::m_do3d {this, "Do3d", false} |
|
private |
◆ m_DoVertexType
Gaudi::Property<int> DerivationFramework::Bmumu_reco_mumu::m_DoVertexType {this, "DoVertexType", 1} |
|
private |
◆ m_eventInfo_key
◆ m_evtStore
◆ m_jpsiFinder
◆ m_mctn
◆ m_outVtxContainerKey
◆ m_PV_max
Gaudi::Property<int> DerivationFramework::Bmumu_reco_mumu::m_PV_max {this, "MaxPVrefit", 1} |
|
private |
◆ m_PV_minNTracks
Gaudi::Property<unsigned int> DerivationFramework::Bmumu_reco_mumu::m_PV_minNTracks {this, "MinNTracksInPV", 0} |
|
private |
◆ m_pvContainerKey
◆ m_pvRefitter
◆ m_refContainerKey
◆ m_refitPV
Gaudi::Property<bool> DerivationFramework::Bmumu_reco_mumu::m_refitPV {this, "RefitPV", false} |
|
private |
◆ m_v0Tools
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
JetConstituentVector::iterator iterator
Gaudi::Property< bool > m_refitPV
int nVertices(const Polygon &p)
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Gaudi::Property< int > m_DoVertexType
ToolHandle< Analysis::ICandidateSearch > m_jpsiFinder
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
const std::string & key() const
Return the StoreGate ID for the referenced object.
virtual void setOwner(IDataHandleHolder *o)=0
Gaudi::Property< unsigned int > m_PV_minNTracks
Gaudi::Property< bool > m_do3d
std::pair< std::vector< unsigned int >, bool > res
#define CHECK(...)
Evaluate an expression and check for errors.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
uint32_t CutIdentifier
InstanceIdentifier is a unique identifer used for every AthFilterAlgorithm instance.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
SG::ReadHandleKey< xAOD::VertexContainer > m_pvContainerKey
job options
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Gaudi::Property< int > m_PV_max
virtual StatusCode sysInitialize() override
Perform system initialization for an algorithm.
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfo_key
ToolHandle< Trk::V0Tools > m_v0Tools
tools
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
SG::WriteHandleKey< xAOD::VertexContainer > m_refContainerKey
SG::WriteHandleKey< xAOD::VertexContainer > m_outVtxContainerKey
ToolHandle< Analysis::PrimaryVertexRefitter > m_pvRefitter
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>