ATLAS Offline Software
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
DerivationFramework::Bmumu_reco_mumu Class Reference

#include <Bmumu_reco_mumu.h>

Inheritance diagram for DerivationFramework::Bmumu_reco_mumu:
Collaboration diagram for DerivationFramework::Bmumu_reco_mumu:

Public Member Functions

 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
 

Static Public Member Functions

static const InterfaceID & interfaceID ()
 AlgTool interface methods. More...
 

Protected Member Functions

CutIdentifier getCounter (const std::string &name) const
 
std::string getCounterNameById (CutIdentifier id) const
 
CutIdentifier getCounterIdByName (const std::string &name) const
 
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 std::map< std::string, CutIdentifierNameIdMap_t
 
typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

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

ToolHandle< Trk::V0Toolsm_v0Tools {this, "V0Tools", "Trk::V0Tools"}
 tools More...
 
ToolHandle< Analysis::ICandidateSearchm_jpsiFinder {this,"JpsiFinder", "Analysis::JpsiFinder"}
 
ToolHandle< Analysis::PrimaryVertexRefitterm_pvRefitter {this, "PVRefitter", "Analysis::PrimaryVertexRefitter"}
 
SG::ReadHandleKey< xAOD::EventInfom_eventInfo_key {this, "EventInfo", "EventInfo", "Input event information"}
 
SG::ReadHandleKey< xAOD::VertexContainerm_pvContainerKey {this, "PVContainerName", "PrimaryVertices"}
 job options More...
 
SG::WriteHandleKey< xAOD::VertexContainerm_refContainerKey {this, "RefPVContainerName" , "RefittedPrimaryVertices"}
 
SG::WriteHandleKey< xAOD::VertexContainerm_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< ICutFlowSvcm_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
 

Detailed Description

Definition at line 42 of file Bmumu_reco_mumu.h.

Member Typedef Documentation

◆ NameIdMap_t

typedef std::map<std::string, CutIdentifier> DerivationFramework::CfAthAlgTool::NameIdMap_t
privateinherited

Definition at line 72 of file CfAthAlgTool.h.

◆ StoreGateSvc_t

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

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ 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.

34  :
35  CfAthAlgTool(t,n,p){
36  declareInterface<DerivationFramework::IAugmentationTool>(this);
37 
38  }

Member Function Documentation

◆ 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.

66  {
67 
68  const EventContext& ctx = Gaudi::Hive::currentContext();
69  // Jpsi container and its auxilliary store
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());
73 
74  //----------------------------------------------------
75  // call Jpsi finder
76  //----------------------------------------------------
77  if( !m_jpsiFinder->performSearch(ctx, *vtxContainer).isSuccess() ) {
78  ATH_MSG_FATAL("Jpsi finder (" << m_jpsiFinder << ") failed.");
79  return StatusCode::FAILURE;
80  }
81 
82  //----------------------------------------------------
83  // retrieve primary vertices
84  //----------------------------------------------------
86  if (!pvContainer.isValid()){
87  ATH_MSG_FATAL("Failed to retrieve "<<m_pvContainerKey);
88  return StatusCode::FAILURE;
89  }
90 
91 
92  //----------------------------------------------------
93  // Try to retrieve refitted primary vertices
94  //----------------------------------------------------
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());
98 
99 
100  // Give the helper class the ptr to v0tools and beamSpotsSvc to use
102  if(!evt.isValid()) {
103  ATH_MSG_ERROR("Cannot Retrieve " << m_eventInfo_key.key() );
104  return StatusCode::FAILURE;
105  }
106  BPhysPVTools helper(&(*m_v0Tools), evt.cptr());
107  helper.SetMinNTracksInPV(m_PV_minNTracks);
108  helper.SetSave3d(m_do3d);
109 
110  if(m_refitPV && vtxContainer->size()){
111  ATH_CHECK(helper.FillCandwithRefittedVertices(vtxContainer.get(), pvContainer.cptr(), refPvContainer.get(), &(*m_pvRefitter) , m_PV_max, m_DoVertexType));
112  }else if (!m_refitPV && vtxContainer->size() >0){
113  ATH_CHECK(helper.FillCandExistingVertices(vtxContainer.get(), pvContainer.cptr(), m_DoVertexType));
114  }
115 
116 
117  //----------------------------------------------------
118  // save in the StoreGate
119  //----------------------------------------------------
121  auto nVertices = vtxContainer->size();
122  ATH_CHECK(outputVertices.record(std::move(vtxContainer), std::move(vtxAuxContainer)));
123 
124  if(m_refitPV) {
126  ATH_CHECK(refitVertices.record(std::move(refPvContainer), std::move(refPvAuxContainer)));
127  }
128 
129  // add counter for number of events seen
130  addEvent("dimuEvents");
131  // add counter for the number of events with >= 1 reco'd vertices
132  if ( nVertices > 0 ) {
133  addEvent("dimuWithVertexCand");
134  }
135  // add counter for the number of vertices
136  addToCounter("dimuNumVertices", nVertices);
137 
138  return StatusCode::SUCCESS;
139  }

◆ addEvent()

bool DerivationFramework::CfAthAlgTool::addEvent ( const std::string &  name,
double  weight = 1. 
) const
virtualinherited

Definition at line 104 of file CfAthAlgTool.cxx.

104  {
105 
107  if ( id > 0 ) {
108  m_cutFlowSvc->addEvent(id, weight);
109  }
110  return (id > 0);
111  }

◆ addToCounter()

bool DerivationFramework::CfAthAlgTool::addToCounter ( const std::string &  name,
uint64_t  counts = 1,
double  weight = 1. 
) const
virtualinherited

Definition at line 115 of file CfAthAlgTool.cxx.

116  {
117 
119  if ( id > 0 ) {
120  for (uint64_t i=0; i<counts; ++i) {
121  m_cutFlowSvc->addEvent(id, weight);
122  }
123  }
124  return (id > 0);
125  }

◆ 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  }

◆ 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

◆ getCounter()

CutIdentifier DerivationFramework::CfAthAlgTool::getCounter ( const std::string &  name) const
protectedinherited

Definition at line 128 of file CfAthAlgTool.cxx.

128  {
129 
131  if ( id < 1 ) {
132  std::string fullname = m_ctbasename + "_" + name;
133  if ( ! m_bidisset ) {
134  throw std::runtime_error("cutFlowSvc()->registerFilter is no longer supported. code an alternative here");
135  //id = cutFlowSvc()->registerFilter(fullname, "N/A");
136  m_bid = id;
137  } else {
138  throw std::runtime_error("cutFlowSvc()->registerCut is no longer supported. code an alternative here");
139  //id = cutFlowSvc()->registerCut(fullname, "N/A", m_bid);
140  }
141  m_mctn[name] = id;
142  }
143  return id;
144  }

◆ getCounterIdByName()

CutIdentifier DerivationFramework::CfAthAlgTool::getCounterIdByName ( const std::string &  name) const
protectedinherited

Definition at line 161 of file CfAthAlgTool.cxx.

161  {
162 
163  CutIdentifier id = 0;
164 
165  NameIdMap_t::const_iterator it = m_mctn.find(name);
166  if ( it != m_mctn.end() ) {
167  id = it->second;
168  }
169  return id;
170  }

◆ getCounterNameById()

std::string DerivationFramework::CfAthAlgTool::getCounterNameById ( CutIdentifier  id) const
protectedinherited

Definition at line 147 of file CfAthAlgTool.cxx.

147  {
148 
149  std::string res = "__NOT_FOUND__";
150 
151  for (NameIdMap_t::iterator it = m_mctn.begin(); it != m_mctn.end(); ++it) {
152  if ( it->second == id ) {
153  res = it->first;
154  break;
155  }
156  }
157  return res;
158  }

◆ initialize()

StatusCode DerivationFramework::Bmumu_reco_mumu::initialize ( )
override

Definition at line 42 of file Bmumu_reco_mumu.cxx.

43  {
44 
45  ATH_MSG_DEBUG("in initialize()");
46 
47  // retrieve V0 tools
48  CHECK( m_v0Tools.retrieve() );
49 
50  // get the JpsiFinder tool
51  CHECK( m_jpsiFinder.retrieve() );
52 
53  // get the PrimaryVertexRefitter tool
54  CHECK( m_pvRefitter.retrieve() );
55 
56  // Get the beam spot service
58  ATH_CHECK(m_pvContainerKey.initialize());
60  ATH_CHECK(m_outVtxContainerKey.initialize());
61 
62  return StatusCode::SUCCESS;
63 
64  }

◆ 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.

◆ 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]

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()

StatusCode DerivationFramework::CfAthAlgTool::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 from AthCommonDataStore< AthCommonMsg< AlgTool > >.

Definition at line 94 of file CfAthAlgTool.cxx.

94  {
95 
96  // retrieve CutFlowSvc instance
97  CHECK( m_cutFlowSvc.retrieve() );
98 
99  // re-direct to base class...
100  return AthAlgTool::sysInitialize();
101  }

◆ 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_bid

CutIdentifier DerivationFramework::CfAthAlgTool::m_bid
mutableprivateinherited

Definition at line 76 of file CfAthAlgTool.h.

◆ m_bidisset

bool DerivationFramework::CfAthAlgTool::m_bidisset
mutableprivateinherited

Definition at line 77 of file CfAthAlgTool.h.

◆ m_ctbasename

std::string DerivationFramework::CfAthAlgTool::m_ctbasename
privateinherited

Definition at line 69 of file CfAthAlgTool.h.

◆ m_cutFlowSvc

ServiceHandle<ICutFlowSvc> DerivationFramework::CfAthAlgTool::m_cutFlowSvc
privateinherited

Definition at line 66 of file CfAthAlgTool.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_do3d

Gaudi::Property<bool> DerivationFramework::Bmumu_reco_mumu::m_do3d {this, "Do3d", false}
private

Definition at line 73 of file Bmumu_reco_mumu.h.

◆ m_DoVertexType

Gaudi::Property<int> DerivationFramework::Bmumu_reco_mumu::m_DoVertexType {this, "DoVertexType", 1}
private

Definition at line 70 of file Bmumu_reco_mumu.h.

◆ m_eventInfo_key

SG::ReadHandleKey<xAOD::EventInfo> DerivationFramework::Bmumu_reco_mumu::m_eventInfo_key {this, "EventInfo", "EventInfo", "Input event information"}
private

Definition at line 57 of file Bmumu_reco_mumu.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_jpsiFinder

ToolHandle<Analysis::ICandidateSearch> DerivationFramework::Bmumu_reco_mumu::m_jpsiFinder {this,"JpsiFinder", "Analysis::JpsiFinder"}
private

Definition at line 55 of file Bmumu_reco_mumu.h.

◆ m_mctn

NameIdMap_t DerivationFramework::CfAthAlgTool::m_mctn
mutableprivateinherited

Definition at line 73 of file CfAthAlgTool.h.

◆ m_outVtxContainerKey

SG::WriteHandleKey<xAOD::VertexContainer> DerivationFramework::Bmumu_reco_mumu::m_outVtxContainerKey {this, "OutputVtxContainerName" , "OniaCandidates"}
private

Definition at line 66 of file Bmumu_reco_mumu.h.

◆ m_PV_max

Gaudi::Property<int> DerivationFramework::Bmumu_reco_mumu::m_PV_max {this, "MaxPVrefit", 1}
private

Definition at line 69 of file Bmumu_reco_mumu.h.

◆ m_PV_minNTracks

Gaudi::Property<unsigned int> DerivationFramework::Bmumu_reco_mumu::m_PV_minNTracks {this, "MinNTracksInPV", 0}
private

Definition at line 72 of file Bmumu_reco_mumu.h.

◆ m_pvContainerKey

SG::ReadHandleKey<xAOD::VertexContainer> DerivationFramework::Bmumu_reco_mumu::m_pvContainerKey {this, "PVContainerName", "PrimaryVertices"}
private

job options

Definition at line 62 of file Bmumu_reco_mumu.h.

◆ m_pvRefitter

ToolHandle<Analysis::PrimaryVertexRefitter> DerivationFramework::Bmumu_reco_mumu::m_pvRefitter {this, "PVRefitter", "Analysis::PrimaryVertexRefitter"}
private

Definition at line 56 of file Bmumu_reco_mumu.h.

◆ m_refContainerKey

SG::WriteHandleKey<xAOD::VertexContainer> DerivationFramework::Bmumu_reco_mumu::m_refContainerKey {this, "RefPVContainerName" , "RefittedPrimaryVertices"}
private

Definition at line 64 of file Bmumu_reco_mumu.h.

◆ m_refitPV

Gaudi::Property<bool> DerivationFramework::Bmumu_reco_mumu::m_refitPV {this, "RefitPV", false}
private

Definition at line 68 of file Bmumu_reco_mumu.h.

◆ m_v0Tools

ToolHandle<Trk::V0Tools> DerivationFramework::Bmumu_reco_mumu::m_v0Tools {this, "V0Tools", "Trk::V0Tools"}
private

tools

Definition at line 54 of file Bmumu_reco_mumu.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:
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
DerivationFramework::CfAthAlgTool::getCounter
CutIdentifier getCounter(const std::string &name) const
Definition: CfAthAlgTool.cxx:128
DerivationFramework::Bmumu_reco_mumu::m_refitPV
Gaudi::Property< bool > m_refitPV
Definition: Bmumu_reco_mumu.h:68
DerivationFramework::CfAthAlgTool::m_mctn
NameIdMap_t m_mctn
Definition: CfAthAlgTool.h:73
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition: AthMsgStreamMacros.h:34
NSWL1::nVertices
int nVertices(const Polygon &p)
Definition: GeoUtils.cxx:35
DerivationFramework::CfAthAlgTool::addToCounter
virtual bool addToCounter(const std::string &name, uint64_t counts=1, double weight=1.) const
Definition: CfAthAlgTool.cxx:115
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
DerivationFramework::Bmumu_reco_mumu::m_DoVertexType
Gaudi::Property< int > m_DoVertexType
Definition: Bmumu_reco_mumu.h:70
skel.it
it
Definition: skel.GENtoEVGEN.py:396
DerivationFramework::Bmumu_reco_mumu::m_jpsiFinder
ToolHandle< Analysis::ICandidateSearch > m_jpsiFinder
Definition: Bmumu_reco_mumu.h:55
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
DerivationFramework::CfAthAlgTool::addEvent
virtual bool addEvent(const std::string &name, double weight=1.) const
Definition: CfAthAlgTool.cxx:104
LArG4FSStartPointFilter.evt
evt
Definition: LArG4FSStartPointFilter.py:42
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
SG::VarHandleKey::key
const std::string & key() const
Return the StoreGate ID for the referenced object.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:141
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
dqt_zlumi_pandas.weight
int weight
Definition: dqt_zlumi_pandas.py:189
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:29
runBeamSpotCalibration.helper
helper
Definition: runBeamSpotCalibration.py:112
DerivationFramework::Bmumu_reco_mumu::m_PV_minNTracks
Gaudi::Property< unsigned int > m_PV_minNTracks
Definition: Bmumu_reco_mumu.h:72
DerivationFramework::CfAthAlgTool::m_cutFlowSvc
ServiceHandle< ICutFlowSvc > m_cutFlowSvc
Definition: CfAthAlgTool.h:66
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
AthCommonDataStore
Definition: AthCommonDataStore.h:52
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
DerivationFramework::Bmumu_reco_mumu::m_do3d
Gaudi::Property< bool > m_do3d
Definition: Bmumu_reco_mumu.h:73
lumiFormat.i
int i
Definition: lumiFormat.py:85
beamspotman.n
n
Definition: beamspotman.py:731
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
res
std::pair< std::vector< unsigned int >, bool > res
Definition: JetGroupProductTest.cxx:14
xAOD::uint64_t
uint64_t
Definition: EventInfo_v1.cxx:123
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
CHECK
#define CHECK(...)
Evaluate an expression and check for errors.
Definition: Control/AthenaKernel/AthenaKernel/errorcheck.h:422
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
CutIdentifier
uint32_t CutIdentifier
InstanceIdentifier is a unique identifer used for every AthFilterAlgorithm instance.
Definition: ICutFlowSvc.h:22
SG::VarHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:103
DerivationFramework::Bmumu_reco_mumu::m_pvContainerKey
SG::ReadHandleKey< xAOD::VertexContainer > m_pvContainerKey
job options
Definition: Bmumu_reco_mumu.h:62
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
DerivationFramework::CfAthAlgTool::m_bidisset
bool m_bidisset
Definition: CfAthAlgTool.h:77
DerivationFramework::CfAthAlgTool::getCounterIdByName
CutIdentifier getCounterIdByName(const std::string &name) const
Definition: CfAthAlgTool.cxx:161
DerivationFramework::Bmumu_reco_mumu::m_PV_max
Gaudi::Property< int > m_PV_max
Definition: Bmumu_reco_mumu.h:69
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:227
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
DerivationFramework::CfAthAlgTool::m_ctbasename
std::string m_ctbasename
Definition: CfAthAlgTool.h:69
AthCommonDataStore< AthCommonMsg< AlgTool > >::sysInitialize
virtual StatusCode sysInitialize() override
Perform system initialization for an algorithm.
DerivationFramework::Bmumu_reco_mumu::m_eventInfo_key
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfo_key
Definition: Bmumu_reco_mumu.h:57
SG::WriteHandle
Definition: StoreGate/StoreGate/WriteHandle.h:76
a
TList * a
Definition: liststreamerinfos.cxx:10
h
DerivationFramework::Bmumu_reco_mumu::m_v0Tools
ToolHandle< Trk::V0Tools > m_v0Tools
tools
Definition: Bmumu_reco_mumu.h:54
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:623
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
DerivationFramework::Bmumu_reco_mumu::m_refContainerKey
SG::WriteHandleKey< xAOD::VertexContainer > m_refContainerKey
Definition: Bmumu_reco_mumu.h:64
DerivationFramework::Bmumu_reco_mumu::m_outVtxContainerKey
SG::WriteHandleKey< xAOD::VertexContainer > m_outVtxContainerKey
Definition: Bmumu_reco_mumu.h:66
DerivationFramework::Bmumu_reco_mumu::m_pvRefitter
ToolHandle< Analysis::PrimaryVertexRefitter > m_pvRefitter
Definition: Bmumu_reco_mumu.h:56
DataVector::size
size_type size() const noexcept
Returns the number of elements in the collection.
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
DerivationFramework::CfAthAlgTool::m_bid
CutIdentifier m_bid
Definition: CfAthAlgTool.h:76
fitman.k
k
Definition: fitman.py:528
DerivationFramework::CfAthAlgTool::CfAthAlgTool
CfAthAlgTool(const std::string &t, const std::string &n, const IInterface *p)
Definition: CfAthAlgTool.cxx:67