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::SkimmingToolHIGG5VBF Class Reference

#include <SkimmingToolHIGG5VBF.h>

Inheritance diagram for DerivationFramework::SkimmingToolHIGG5VBF:
Collaboration diagram for DerivationFramework::SkimmingToolHIGG5VBF:

Public Member Functions

 SkimmingToolHIGG5VBF (const std::string &t, const std::string &n, const IInterface *p)
 Constructor with parameters. More...
 
 ~SkimmingToolHIGG5VBF ()
 Destructor. More...
 
virtual StatusCode initialize () override
 
virtual StatusCode finalize () override
 
virtual bool eventPassesFilter () const override
 Check that the current event passes this filter. 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
 

Static Public Member Functions

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

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

bool checkAllJetQuality (const TLorentzVector &jet) const
 
bool checkCentralJetQuality (const TLorentzVector &jet) const
 
TLorentzVector getCalibedJets (const xAOD::Jet *jet) 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

bool m_debug
 
ToolHandle< Trig::TrigDecisionToolm_trigDecisionTool
 
std::atomic< unsigned int > m_ntot
 
std::atomic< unsigned int > m_npass
 
std::string m_jetSGKey
 
std::string m_calibedJetMomKey
 
bool m_reqNAllJets
 
unsigned int m_nAllJets
 
double m_allJetPtCut
 
double m_allJetEtaCut
 
bool m_reqNCentralJets
 
unsigned int m_nCentralJets
 
double m_centralJetPtCut
 
double m_centralJetEtaCut
 
bool m_reqTrigger
 
std::vector< std::string > m_triggers
 
bool m_reqVbfMjj
 
double m_vbfMjjCut
 
std::string m_phSGKey
 
bool m_reqPh
 
double m_phPtCut
 
double m_centralPhEtaCut
 
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

Author
Yasuy.nosp@m.uki..nosp@m.Okumu.nosp@m.ra@c.nosp@m.ern.c.nosp@m.h

Definition at line 34 of file SkimmingToolHIGG5VBF.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

◆ SkimmingToolHIGG5VBF()

DerivationFramework::SkimmingToolHIGG5VBF::SkimmingToolHIGG5VBF ( const std::string &  t,
const std::string &  n,
const IInterface *  p 
)

Constructor with parameters.

Definition at line 19 of file SkimmingToolHIGG5VBF.cxx.

21  :
22  AthAlgTool(t, n, p),
23  m_trigDecisionTool("Trig::TrigDecisionTool/TrigDecisionTool"),
24  m_ntot(0),
25  m_npass(0)
26 {
27  declareInterface<DerivationFramework::ISkimmingTool>(this);
28 
29  // for jet multiplicity requirement
30  declareProperty("JetContainerKey", m_jetSGKey="AntiKt4EMTopoJets");
31  declareProperty("CalibedJetMomentKey", m_calibedJetMomKey="DFCommonJets_Calib");
32 
33  // for jet multiplicity
34  declareProperty("ReqNAllJets", m_reqNAllJets=false);
35  declareProperty("NumberOfAllJets", m_nAllJets=4);
36  declareProperty("AllJetPtCut", m_allJetPtCut=40.*CLHEP::GeV);
37  declareProperty("AllJetEtaCut", m_allJetEtaCut=4.9);
38 
39  declareProperty("ReqNCentralJets", m_reqNCentralJets=false);
40  declareProperty("NumberOfCentralJets", m_nCentralJets=2);
41  declareProperty("CentralJetPtCut", m_centralJetPtCut=40.*CLHEP::GeV);
42  declareProperty("CentralJetEtaCut", m_centralJetEtaCut=2.6);
43 
44  // for trigger requirement
45  declareProperty("ReqTrigger", m_reqTrigger=false);
46  declareProperty("Triggers", m_triggers=std::vector<std::string>());
47 
48  // for Mjj requirement ()
49  declareProperty("ReqVBFMjj", m_reqVbfMjj=false); // logical "ORed" with ReqPhoton
51 
52  declareProperty("DoDebug", m_debug=false);
53 
54  // photon requirement (p. rose)
55  declareProperty("PhotonContainerKey", m_phSGKey="Photons");
56  declareProperty("ReqPhoton", m_reqPh=false); // logical "ORed" with ReqVBFMjj
57  declareProperty("PhotonPtCut", m_phPtCut=0.*CLHEP::GeV);
58  declareProperty("CentralPhotonEtaCut", m_centralPhEtaCut=2.6);
59 
60 }

◆ ~SkimmingToolHIGG5VBF()

DerivationFramework::SkimmingToolHIGG5VBF::~SkimmingToolHIGG5VBF ( )

Destructor.

Definition at line 63 of file SkimmingToolHIGG5VBF.cxx.

63  {
64 }

Member Function Documentation

◆ checkAllJetQuality()

bool DerivationFramework::SkimmingToolHIGG5VBF::checkAllJetQuality ( const TLorentzVector &  jet) const
private

Definition at line 177 of file SkimmingToolHIGG5VBF.cxx.

178 {
179  if(jet.Pt()<m_allJetPtCut) return false;
180  if(fabs(jet.Eta())>m_allJetEtaCut) return false;
181 
182  return true;
183 }

◆ checkCentralJetQuality()

bool DerivationFramework::SkimmingToolHIGG5VBF::checkCentralJetQuality ( const TLorentzVector &  jet) const
private

Definition at line 185 of file SkimmingToolHIGG5VBF.cxx.

186 {
187  if(jet.Pt()<m_centralJetPtCut) return false;
188  if(fabs(jet.Eta())>m_centralJetEtaCut) return false;
189 
190  return true;
191 }

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

◆ eventPassesFilter()

bool DerivationFramework::SkimmingToolHIGG5VBF::eventPassesFilter ( ) const
overridevirtual

Check that the current event passes this filter.

Implements DerivationFramework::ISkimmingTool.

Definition at line 89 of file SkimmingToolHIGG5VBF.cxx.

90 {
91  m_ntot++;
92  bool acceptEvent(true);
93 
94  StatusCode sc(StatusCode::SUCCESS);
95 
96  bool isTriggerFired(m_triggers.empty());
97  for(unsigned int i(0); i<m_triggers.size(); i++) {
98  if(m_trigDecisionTool->isPassed(m_triggers.at(i))) {
99  isTriggerFired = true;
100  break;
101  }
102  }
103 
104  // (1) Count Jet Multiplicity
105  std::vector<TLorentzVector> goodAllJets;
106  std::vector<TLorentzVector> goodCentralJets;
107 
108  const xAOD::JetContainer *jets(nullptr);
110  xAOD::JetContainer::const_iterator jet_itr(jets->begin());
112  for(; jet_itr != jet_end; ++jet_itr) {
113  TLorentzVector jetP4 = getCalibedJets( (*jet_itr) );
114  if(this->checkAllJetQuality(jetP4)) { goodAllJets.push_back(jetP4); }
115  if(this->checkCentralJetQuality(jetP4)) { goodCentralJets.push_back(jetP4); }
116  }
117 
118  // (2) evaluate maximum Mjj in the event
119  double maxM = 0.;
120  for(unsigned int jet_i = 0; jet_i<goodAllJets.size(); jet_i++) {
121  const TLorentzVector& iP4 = goodAllJets.at(jet_i);
122 
123  for(unsigned int jet_k=jet_i+1; jet_k<goodAllJets.size(); jet_k++) {
124  const TLorentzVector& kP4 = goodAllJets.at(jet_k);
125 
126  const TLorentzVector jjP4 = iP4 + kP4;
127  const double jjM = jjP4.M();
128 
129  if (maxM<jjM) {maxM=jjM;}
130  }
131  }
132 
133  //get max pt of any photon in the event (p. rose)
134  double maxPhPt=0.;
135  if(m_reqPh){
136  const xAOD::PhotonContainer *phots(nullptr);
137  ATH_CHECK(evtStore()->retrieve(phots, m_phSGKey), false);
138  for (const auto* ph : *phots){
139  if(abs(ph->eta())<m_centralPhEtaCut)
140  if(ph->pt()>maxPhPt) maxPhPt = ph->pt();
141  }//for
142  }//if
143 
144 
145 
146  const bool passNAllJet = (goodAllJets.size()>=m_nAllJets);
147  const bool passNCentralJet = (goodCentralJets.size()>=m_nCentralJets);
148  const bool passMjjCut = (maxM>m_vbfMjjCut);
149  const bool passPhPtCut = (maxPhPt>m_phPtCut);
150 
151  if (m_reqNAllJets) { if (not passNAllJet) {acceptEvent=false;} }
152  if (m_reqNCentralJets) { if (not passNCentralJet) {acceptEvent=false;} }
153  //if (m_reqVbfMjj) { if (not passMjjCut) {acceptEvent=false;} }
154  if (m_reqTrigger) { if (not isTriggerFired) {acceptEvent=false;} }
155  //vbf+gamma addition -- logical OR of mjj and phpt cut
156  if(m_reqVbfMjj and not m_reqPh) { if (not passMjjCut) {acceptEvent=false;} }
157  if(m_reqPh and not m_reqVbfMjj) { if (not passPhPtCut) {acceptEvent=false;} }
158  if(m_reqPh and m_reqVbfMjj) { if (not (passMjjCut or passPhPtCut) ) {acceptEvent=false;} }
159 
160  if (acceptEvent) {m_npass++;}
161 
162  if (m_debug) {
163  printf("dbg> L%3d : event accepted [%s] "
164  "(NJets=%2d [%6s], NCentralJets=%2d [%6s] Mjj=%10.1f [%6s], Trigger [%6s]) \n",
165  __LINE__,
166  acceptEvent? "Y" : "N",
167  (int)goodAllJets.size(), passNAllJet ? "PASSED" : "FAILED",
168  (int)goodCentralJets.size(), passNCentralJet ? "PASSED" : "FAILED",
169  maxM, passMjjCut ? "PASSED" : "FAILED",
170  isTriggerFired ? "PASSED" : "FAILED"
171  );
172  }
173 
174  return acceptEvent;
175 }

◆ 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

◆ finalize()

StatusCode DerivationFramework::SkimmingToolHIGG5VBF::finalize ( )
overridevirtual

Definition at line 81 of file SkimmingToolHIGG5VBF.cxx.

82 {
83  ATH_MSG_VERBOSE("finalize() ...");
84  ATH_MSG_INFO("Processed " << m_ntot << " events, " << m_npass << " events passed filter ");
85  return StatusCode::SUCCESS;
86 }

◆ getCalibedJets()

TLorentzVector DerivationFramework::SkimmingToolHIGG5VBF::getCalibedJets ( const xAOD::Jet jet) const
private

Definition at line 194 of file SkimmingToolHIGG5VBF.cxx.

195 {
196  TLorentzVector rc;
197 
198  if(!jet) return rc;
199 
204  const float& pt =ptAcc(*jet);
205  const float& eta=etaAcc(*jet);
206  const float& phi=phiAcc(*jet);
207  const float& m =mAcc(*jet);
208 
209  rc.SetPtEtaPhiM(pt, eta, phi, m);
210 
211  return rc;
212 }

◆ initialize()

StatusCode DerivationFramework::SkimmingToolHIGG5VBF::initialize ( )
overridevirtual

Definition at line 67 of file SkimmingToolHIGG5VBF.cxx.

68 {
69  ATH_MSG_VERBOSE("initialize() ...");
70 
71  // trigger decision tool
72  if(m_trigDecisionTool.retrieve(DisableTool{!m_reqTrigger}).isFailure()) {
73  ATH_MSG_FATAL("Failed to retrieve tool: " << m_trigDecisionTool);
74  return StatusCode::FAILURE;
75  }
76  ATH_MSG_INFO("Retrieved tool: " << m_trigDecisionTool);
77 
78  return StatusCode::SUCCESS;
79 }

◆ 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::ISkimmingTool::interfaceID ( )
inlinestaticinherited

AlgTool interface methods.

Definition at line 32 of file ISkimmingTool.h.

32 { return IID_ISkimmingTool; }

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

double DerivationFramework::SkimmingToolHIGG5VBF::m_allJetEtaCut
private

Definition at line 65 of file SkimmingToolHIGG5VBF.h.

◆ m_allJetPtCut

double DerivationFramework::SkimmingToolHIGG5VBF::m_allJetPtCut
private

Definition at line 64 of file SkimmingToolHIGG5VBF.h.

◆ m_calibedJetMomKey

std::string DerivationFramework::SkimmingToolHIGG5VBF::m_calibedJetMomKey
private

Definition at line 59 of file SkimmingToolHIGG5VBF.h.

◆ m_centralJetEtaCut

double DerivationFramework::SkimmingToolHIGG5VBF::m_centralJetEtaCut
private

Definition at line 70 of file SkimmingToolHIGG5VBF.h.

◆ m_centralJetPtCut

double DerivationFramework::SkimmingToolHIGG5VBF::m_centralJetPtCut
private

Definition at line 69 of file SkimmingToolHIGG5VBF.h.

◆ m_centralPhEtaCut

double DerivationFramework::SkimmingToolHIGG5VBF::m_centralPhEtaCut
private

Definition at line 88 of file SkimmingToolHIGG5VBF.h.

◆ m_debug

bool DerivationFramework::SkimmingToolHIGG5VBF::m_debug
private

Definition at line 51 of file SkimmingToolHIGG5VBF.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_jetSGKey

std::string DerivationFramework::SkimmingToolHIGG5VBF::m_jetSGKey
private

Definition at line 58 of file SkimmingToolHIGG5VBF.h.

◆ m_nAllJets

unsigned int DerivationFramework::SkimmingToolHIGG5VBF::m_nAllJets
private

Definition at line 63 of file SkimmingToolHIGG5VBF.h.

◆ m_nCentralJets

unsigned int DerivationFramework::SkimmingToolHIGG5VBF::m_nCentralJets
private

Definition at line 68 of file SkimmingToolHIGG5VBF.h.

◆ m_npass

std::atomic<unsigned int> DerivationFramework::SkimmingToolHIGG5VBF::m_npass
mutableprivate

Definition at line 56 of file SkimmingToolHIGG5VBF.h.

◆ m_ntot

std::atomic<unsigned int> DerivationFramework::SkimmingToolHIGG5VBF::m_ntot
mutableprivate

Definition at line 55 of file SkimmingToolHIGG5VBF.h.

◆ m_phPtCut

double DerivationFramework::SkimmingToolHIGG5VBF::m_phPtCut
private

Definition at line 87 of file SkimmingToolHIGG5VBF.h.

◆ m_phSGKey

std::string DerivationFramework::SkimmingToolHIGG5VBF::m_phSGKey
private

Definition at line 85 of file SkimmingToolHIGG5VBF.h.

◆ m_reqNAllJets

bool DerivationFramework::SkimmingToolHIGG5VBF::m_reqNAllJets
private

Definition at line 62 of file SkimmingToolHIGG5VBF.h.

◆ m_reqNCentralJets

bool DerivationFramework::SkimmingToolHIGG5VBF::m_reqNCentralJets
private

Definition at line 67 of file SkimmingToolHIGG5VBF.h.

◆ m_reqPh

bool DerivationFramework::SkimmingToolHIGG5VBF::m_reqPh
private

Definition at line 86 of file SkimmingToolHIGG5VBF.h.

◆ m_reqTrigger

bool DerivationFramework::SkimmingToolHIGG5VBF::m_reqTrigger
private

Definition at line 73 of file SkimmingToolHIGG5VBF.h.

◆ m_reqVbfMjj

bool DerivationFramework::SkimmingToolHIGG5VBF::m_reqVbfMjj
private

Definition at line 77 of file SkimmingToolHIGG5VBF.h.

◆ m_trigDecisionTool

ToolHandle<Trig::TrigDecisionTool> DerivationFramework::SkimmingToolHIGG5VBF::m_trigDecisionTool
private

Definition at line 53 of file SkimmingToolHIGG5VBF.h.

◆ m_triggers

std::vector<std::string> DerivationFramework::SkimmingToolHIGG5VBF::m_triggers
private

Definition at line 74 of file SkimmingToolHIGG5VBF.h.

◆ m_varHandleArraysDeclared

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

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vbfMjjCut

double DerivationFramework::SkimmingToolHIGG5VBF::m_vbfMjjCut
private

Definition at line 78 of file SkimmingToolHIGG5VBF.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:
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition: PyKernel.py:110
DerivationFramework::SkimmingToolHIGG5VBF::m_ntot
std::atomic< unsigned int > m_ntot
Definition: SkimmingToolHIGG5VBF.h:55
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition: AthMsgStreamMacros.h:34
DataModel_detail::const_iterator
Const iterator class for DataVector/DataList.
Definition: DVLIterator.h:82
DerivationFramework::SkimmingToolHIGG5VBF::m_reqNCentralJets
bool m_reqNCentralJets
Definition: SkimmingToolHIGG5VBF.h:67
DerivationFramework::SkimmingToolHIGG5VBF::m_triggers
std::vector< std::string > m_triggers
Definition: SkimmingToolHIGG5VBF.h:74
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:64
DerivationFramework::SkimmingToolHIGG5VBF::checkCentralJetQuality
bool checkCentralJetQuality(const TLorentzVector &jet) const
Definition: SkimmingToolHIGG5VBF.cxx:185
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:79
AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
test_pyathena.pt
pt
Definition: test_pyathena.py:11
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::SkimmingToolHIGG5VBF::m_reqPh
bool m_reqPh
Definition: SkimmingToolHIGG5VBF.h:86
SG::ConstAccessor< float >
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
DerivationFramework::SkimmingToolHIGG5VBF::m_calibedJetMomKey
std::string m_calibedJetMomKey
Definition: SkimmingToolHIGG5VBF.h:59
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
DerivationFramework::SkimmingToolHIGG5VBF::m_debug
bool m_debug
Definition: SkimmingToolHIGG5VBF.h:51
DerivationFramework::SkimmingToolHIGG5VBF::m_centralJetPtCut
double m_centralJetPtCut
Definition: SkimmingToolHIGG5VBF.h:69
AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Definition: AthCommonDataStore.h:85
DerivationFramework::SkimmingToolHIGG5VBF::m_nCentralJets
unsigned int m_nCentralJets
Definition: SkimmingToolHIGG5VBF.h:68
DerivationFramework::SkimmingToolHIGG5VBF::getCalibedJets
TLorentzVector getCalibedJets(const xAOD::Jet *jet) const
Definition: SkimmingToolHIGG5VBF.cxx:194
jet
Definition: JetCalibTools_PlotJESFactors.cxx:23
AthCommonDataStore
Definition: AthCommonDataStore.h:52
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
DerivationFramework::SkimmingToolHIGG5VBF::m_npass
std::atomic< unsigned int > m_npass
Definition: SkimmingToolHIGG5VBF.h:56
DerivationFramework::SkimmingToolHIGG5VBF::m_allJetEtaCut
double m_allJetEtaCut
Definition: SkimmingToolHIGG5VBF.h:65
lumiFormat.i
int i
Definition: lumiFormat.py:92
beamspotman.n
n
Definition: beamspotman.py:731
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
DerivationFramework::SkimmingToolHIGG5VBF::m_centralPhEtaCut
double m_centralPhEtaCut
Definition: SkimmingToolHIGG5VBF.h:88
DerivationFramework::SkimmingToolHIGG5VBF::m_reqVbfMjj
bool m_reqVbfMjj
Definition: SkimmingToolHIGG5VBF.h:77
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
DerivationFramework::SkimmingToolHIGG5VBF::m_centralJetEtaCut
double m_centralJetEtaCut
Definition: SkimmingToolHIGG5VBF.h:70
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
DerivationFramework::SkimmingToolHIGG5VBF::m_phPtCut
double m_phPtCut
Definition: SkimmingToolHIGG5VBF.h:87
DerivationFramework::SkimmingToolHIGG5VBF::m_phSGKey
std::string m_phSGKey
Definition: SkimmingToolHIGG5VBF.h:85
DerivationFramework::SkimmingToolHIGG5VBF::m_allJetPtCut
double m_allJetPtCut
Definition: SkimmingToolHIGG5VBF.h:64
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
DerivationFramework::SkimmingToolHIGG5VBF::m_vbfMjjCut
double m_vbfMjjCut
Definition: SkimmingToolHIGG5VBF.h:78
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
DerivationFramework::SkimmingToolHIGG5VBF::m_trigDecisionTool
ToolHandle< Trig::TrigDecisionTool > m_trigDecisionTool
Definition: SkimmingToolHIGG5VBF.h:53
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
DerivationFramework::SkimmingToolHIGG5VBF::m_nAllJets
unsigned int m_nAllJets
Definition: SkimmingToolHIGG5VBF.h:63
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
DerivationFramework::SkimmingToolHIGG5VBF::m_jetSGKey
std::string m_jetSGKey
Definition: SkimmingToolHIGG5VBF.h:58
DerivationFramework::SkimmingToolHIGG5VBF::checkAllJetQuality
bool checkAllJetQuality(const TLorentzVector &jet) const
Definition: SkimmingToolHIGG5VBF.cxx:177
DerivationFramework::SkimmingToolHIGG5VBF::m_reqNAllJets
bool m_reqNAllJets
Definition: SkimmingToolHIGG5VBF.h:62
a
TList * a
Definition: liststreamerinfos.cxx:10
h
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:616
declareProperty
#define declareProperty(n, p, h)
Definition: BaseFakeBkgTool.cxx:15
defineDB.jets
list jets
Definition: JetTagCalibration/share/defineDB.py:24
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:790
GeV
#define GeV
Definition: CaloTransverseBalanceVecMon.cxx:30
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
python.trfValidateRootFile.rc
rc
Definition: trfValidateRootFile.py:350
fitman.k
k
Definition: fitman.py:528
DerivationFramework::SkimmingToolHIGG5VBF::m_reqTrigger
bool m_reqTrigger
Definition: SkimmingToolHIGG5VBF.h:73