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

Electron selector tool to select objects in Asgena using an underlying pure ROOT tool. More...

#include <AsgForwardElectronLikelihoodTool.h>

Inheritance diagram for AsgForwardElectronLikelihoodTool:
Collaboration diagram for AsgForwardElectronLikelihoodTool:

Public Member Functions

double calculate (const xAOD::IParticle *part) const
 The main result method: the actual likelihood is calculated here. More...
 
double calculate (const EventContext &ctx, const xAOD::IParticle *part) const override
 calculate method: for pointer to IParticle More...
 
double calculate (const xAOD::Electron *eg) const
 The main result method: the actual likelihood is calculated here. More...
 
double calculate (const EventContext &ctx, const xAOD::Electron *eg) const override
 calculate method: for pointer to electron More...
 
double calculate (const xAOD::Egamma *eg) const
 The main result method: the actual likelihood is calculated here. More...
 
double calculate (const EventContext &ctx, const xAOD::Egamma *eg) const override
 calculate method: for pointer to egamma More...
 
double calculate (const xAOD::Electron *eg, double mu) const
 The main result method: the actual likelihood is calculated here. More...
 
double calculate (const EventContext &ctx, const xAOD::Electron *eg, double mu) const override
 calculate method: for pointer to electron when mu not in EventInfo for online More...
 
double calculate (const xAOD::Egamma *eg, double mu) const
 The main result method: the actual likelihood is calculated here. More...
 
double calculate (const EventContext &ctx, const xAOD::Egamma *eg, double mu) const override
 calculate method: for pointer to egamma when mu not in EventInfo for online More...
 
virtual std::vector< float > calculateMultipleOutputs (const EventContext &ctx, const xAOD::Electron *eg, double mu=-99) const override
 The result method for multiple outputs: only one output is used so return vector of that output. More...
 
virtual std::string getOperatingPointName () const override
 Get the name of the current operating point. More...
 
virtual void print () const
 Print the state of the tool. 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
 

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

virtual ASG_TOOL_CLASS2(AsgForwardElectronLikelihoodTool, IAsgElectronLikelihoodTool, IAsgSelectionTool) public ~AsgForwardElectronLikelihoodTool ()
 Standard constructor. More...
 
virtual StatusCode initialize () override final
 Gaudi Service Interface method implementations. More...
 
virtual const asg::AcceptInfogetAcceptInfo () const override
 Method to get the plain AcceptInfo. More...
 
asg::AcceptData accept (const xAOD::IParticle *part) const override
 The main accept method: using the generic interface. More...
 
asg::AcceptData accept (const EventContext &ctx, const xAOD::IParticle *part) const override
 
asg::AcceptData accept (const xAOD::Electron *eg) const
 The main accept method: the actual cuts are applied here. More...
 
asg::AcceptData accept (const EventContext &ctx, const xAOD::Electron *eg) const override
 accept method with pointer to electron More...
 
asg::AcceptData accept (const xAOD::Egamma *eg) const
 The main accept method: the actual cuts are applied here. More...
 
asg::AcceptData accept (const EventContext &ctx, const xAOD::Egamma *eg) const override
 accept method with pointer to egamma More...
 
asg::AcceptData accept (const xAOD::Electron *eg, double mu) const
 The main accept method: in case mu not in EventInfo online. More...
 
asg::AcceptData accept (const EventContext &ctx, const xAOD::Electron *eg, double mu) const override
 accept method with pointer to electron when mu not in EventInfo for online More...
 
asg::AcceptData accept (const xAOD::Egamma *eg, double mu) const
 The main accept method: in case mu not in EventInfo online. More...
 
asg::AcceptData accept (const EventContext &ctx, const xAOD::Egamma *eg, double mu) const override
 accept method with pointer to egammma when mu not in EventInfo for online More...
 
unsigned int getNPrimVertices (const EventContext &ctx) const
 Get the number of primary vertices. More...
 
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

std::string m_WorkingPoint
 Get the name of the current operating point. More...
 
std::string m_configFile
 
Root::TForwardElectronLikelihoodToolm_rootForwardTool
 Pointer to the underlying ROOT based tool. More...
 
bool m_usePVCont
 Whether to use the PV (not available for trigger) More...
 
unsigned int m_nPVdefault
 defualt nPV (when not using PVCont) More...
 
SG::ReadHandleKey< xAOD::VertexContainerm_primVtxContKey
 read handle key to primary vertex container More...
 
std::string m_pdfFileName
 The input ROOT file name that holds the PDFs. More...
 
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

Electron selector tool to select objects in Asgena using an underlying pure ROOT tool.

Definition at line 25 of file AsgForwardElectronLikelihoodTool.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

◆ ~AsgForwardElectronLikelihoodTool()

AsgForwardElectronLikelihoodTool::~AsgForwardElectronLikelihoodTool ( )
privatevirtual

Standard constructor.

Standard destructor

Definition at line 85 of file AsgForwardElectronLikelihoodTool.cxx.

86 {
87  delete m_rootForwardTool;
88 }

Member Function Documentation

◆ accept() [1/10]

asg::AcceptData AsgForwardElectronLikelihoodTool::accept ( const EventContext &  ctx,
const xAOD::Egamma part 
) const
inlineoverrideprivatevirtual

accept method with pointer to egamma

Implements IAsgElectronLikelihoodTool.

Definition at line 73 of file AsgForwardElectronLikelihoodTool.h.

75  {
76  return accept(ctx, eg, -99); // mu = -99 as input will force accept to grab
77  // the pileup variable from the xAOD object
78  }

◆ accept() [2/10]

asg::AcceptData AsgForwardElectronLikelihoodTool::accept ( const EventContext &  ctx,
const xAOD::Egamma part,
double  mu 
) const
overrideprivatevirtual

accept method with pointer to egammma when mu not in EventInfo for online

Implements IAsgElectronLikelihoodTool.

Definition at line 222 of file AsgForwardElectronLikelihoodTool.cxx.

225 {
226 
227  const xAOD::Electron* el = dynamic_cast<const xAOD::Electron*>(eg);
228  return accept(ctx, el, mu);
229 }

◆ accept() [3/10]

asg::AcceptData AsgForwardElectronLikelihoodTool::accept ( const EventContext &  ctx,
const xAOD::Electron part 
) const
inlineoverrideprivatevirtual

accept method with pointer to electron

Implements IAsgElectronLikelihoodTool.

Definition at line 60 of file AsgForwardElectronLikelihoodTool.h.

62  {
63  return accept(ctx, eg, -99); // mu = -99 as input will force accept to grab
64  // the pileup variable from the xAOD object
65  }

◆ accept() [4/10]

asg::AcceptData AsgForwardElectronLikelihoodTool::accept ( const EventContext &  ctx,
const xAOD::Electron part,
double  mu 
) const
overrideprivatevirtual

accept method with pointer to electron when mu not in EventInfo for online

Implements IAsgElectronLikelihoodTool.

Definition at line 235 of file AsgForwardElectronLikelihoodTool.cxx.

238 {
239  if (!eg) {
240  ATH_MSG_ERROR("Failed, no egamma object.");
241  return m_rootForwardTool->accept();
242  }
243 
244  const xAOD::CaloCluster* cluster = eg->caloCluster();
245  if (!cluster) {
246  ATH_MSG_WARNING("Failed, no cluster.");
247  return m_rootForwardTool->accept();
248  }
249 
250  const double energy = cluster->e();
251  const float eta = (cluster->eta());
252  if (fabs(eta) > 300.0) {
253  ATH_MSG_WARNING("Failed, eta > 3000.");
254  return m_rootForwardTool->accept();
255  }
256 
257  // transverse energy of the electron (using the track eta)
258  double et = (cosh(eta) != 0.) ? energy / cosh(eta) : 0.;
259  double ip(0);
260 
261  // Get the number of primary vertices in this event
262  if (mu < 0) { // use npv if mu is negative (not given)
263  ip = static_cast<double>(m_usePVCont ? this->getNPrimVertices(ctx)
264  : m_nPVdefault);
265  } else {
266  ip = mu;
267  }
268 
269  // for now don't cache.
270  double likelihood = calculate(ctx, eg, ip);
271 
272  // Get the answer from the underlying ROOT tool
273  return m_rootForwardTool->accept(likelihood, eta, et, ip);
274 }

◆ accept() [5/10]

asg::AcceptData AsgForwardElectronLikelihoodTool::accept ( const EventContext &  ctx,
const xAOD::IParticle part 
) const
overrideprivatevirtual

Implements IAsgElectronLikelihoodTool.

Definition at line 448 of file AsgForwardElectronLikelihoodTool.cxx.

450 {
451  if (part->type() == xAOD::Type::Electron) {
452  const xAOD::Electron* el = static_cast<const xAOD::Electron*>(part);
453  return accept(ctx, el);
454  }
455  ATH_MSG_ERROR("Input is not an electron");
456  return m_rootForwardTool->accept();
457 }

◆ accept() [6/10]

asg::AcceptData AsgForwardElectronLikelihoodTool::accept ( const xAOD::Egamma eg) const
inlineprivate

The main accept method: the actual cuts are applied here.

Definition at line 68 of file AsgForwardElectronLikelihoodTool.h.

69  {
70  return accept(eg, -99); // mu = -99 as input will force accept to grab the
71  // pileup variable from the xAOD object
72  }

◆ accept() [7/10]

asg::AcceptData AsgForwardElectronLikelihoodTool::accept ( const xAOD::Egamma eg,
double  mu 
) const
private

The main accept method: in case mu not in EventInfo online.

Definition at line 204 of file AsgForwardElectronLikelihoodTool.cxx.

206 {
207 
208  const xAOD::Electron* el = dynamic_cast<const xAOD::Electron*>(eg);
209  return accept(el, mu);
210 }

◆ accept() [8/10]

asg::AcceptData AsgForwardElectronLikelihoodTool::accept ( const xAOD::Electron eg) const
inlineprivate

The main accept method: the actual cuts are applied here.

Definition at line 55 of file AsgForwardElectronLikelihoodTool.h.

56  {
57  return accept(eg, -99); // mu = -99 as input will force accept to grab the
58  // pileup variable from the xAOD object
59  }

◆ accept() [9/10]

asg::AcceptData AsgForwardElectronLikelihoodTool::accept ( const xAOD::Electron eg,
double  mu 
) const
private

The main accept method: in case mu not in EventInfo online.

Definition at line 213 of file AsgForwardElectronLikelihoodTool.cxx.

215 {
216 
217  // Backwards compatbility
218  return accept(Gaudi::Hive::currentContext(), eg, mu);
219 }

◆ accept() [10/10]

asg::AcceptData AsgForwardElectronLikelihoodTool::accept ( const xAOD::IParticle part) const
overrideprivatevirtual

The main accept method: using the generic interface.

Implements IAsgElectronLikelihoodTool.

Definition at line 441 of file AsgForwardElectronLikelihoodTool.cxx.

442 {
443  // Backwards compatibility
444  return accept(Gaudi::Hive::currentContext(), part);
445 }

◆ calculate() [1/10]

double AsgForwardElectronLikelihoodTool::calculate ( const EventContext &  ctx,
const xAOD::Egamma eg 
) const
inlineoverridevirtual

calculate method: for pointer to egamma

Implements IAsgElectronLikelihoodTool.

Definition at line 119 of file AsgForwardElectronLikelihoodTool.h.

121  {
122  return calculate(
123  ctx, eg, -99); // mu = -99 as input will force accept to grab the pileup
124  // variable from the xAOD object
125  }

◆ calculate() [2/10]

double AsgForwardElectronLikelihoodTool::calculate ( const EventContext &  ctx,
const xAOD::Egamma eg,
double  mu 
) const
overridevirtual

calculate method: for pointer to egamma when mu not in EventInfo for online

Implements IAsgElectronLikelihoodTool.

Definition at line 297 of file AsgForwardElectronLikelihoodTool.cxx.

300 {
301 
302  const xAOD::Electron* el = dynamic_cast<const xAOD::Electron*>(eg);
303  return calculate(ctx, el, mu);
304 }

◆ calculate() [3/10]

double AsgForwardElectronLikelihoodTool::calculate ( const EventContext &  ctx,
const xAOD::Electron eg 
) const
inlineoverridevirtual

calculate method: for pointer to electron

Implements IAsgElectronLikelihoodTool.

Definition at line 105 of file AsgForwardElectronLikelihoodTool.h.

107  {
108  return calculate(
109  ctx, eg, -99); // mu = -99 as input will force accept to grab the pileup
110  // variable from the xAOD object
111  }

◆ calculate() [4/10]

double AsgForwardElectronLikelihoodTool::calculate ( const EventContext &  ctx,
const xAOD::Electron eg,
double  mu 
) const
overridevirtual

calculate method: for pointer to electron when mu not in EventInfo for online

Implements IAsgElectronLikelihoodTool.

Definition at line 310 of file AsgForwardElectronLikelihoodTool.cxx.

313 {
314  if (!eg) {
315  ATH_MSG_ERROR("Failed, no egamma object.");
316  return -999;
317  }
318 
319  const xAOD::CaloCluster* cluster = eg->caloCluster();
320  if (!cluster) {
321  ATH_MSG_ERROR("Failed, no cluster.");
322  return -999;
323  }
324 
325  const double energy = cluster->e();
326  const float eta = cluster->eta();
327  if (fabs(eta) > 300.0) {
328  ATH_MSG_ERROR("Failed, eta range.");
329  ATH_MSG_ERROR("checking at other place ." << eta);
330  return -999;
331  }
332 
333  const double et = (cosh(eta) != 0.) ? energy / cosh(eta) : 0.;
334 
335  // Shower shape variables
336  double secondDensity(0), significance(0), secondLambda(0), lateral(0),
337  longitudinal(0), fracMax(0), secondR(0), centerLambda(0);
338 
339  bool allFound = true;
340  std::string notFoundList = "";
341 
342  // secondLambda
344  secondLambda)) {
345  allFound = false;
346  notFoundList += "secondLambda ";
347  }
348  // lateral
349  if (!cluster->retrieveMoment(xAOD::CaloCluster::LATERAL, lateral)) {
350  allFound = false;
351  notFoundList += "lateral ";
352  }
353  // longitudinal
354  if (!cluster->retrieveMoment(xAOD::CaloCluster::LONGITUDINAL, longitudinal)) {
355  allFound = false;
356  notFoundList += "longitudinal ";
357  }
358  // fracMax
359  if (!cluster->retrieveMoment(xAOD::CaloCluster::ENG_FRAC_MAX, fracMax)) {
360  allFound = false;
361  notFoundList += "fracMax ";
362  }
363  // secondR
364  if (!cluster->retrieveMoment(xAOD::CaloCluster::SECOND_R, secondR)) {
365  allFound = false;
366  notFoundList += "secondR ";
367  }
368  // centerlambda
370  centerLambda)) {
371  allFound = false;
372  notFoundList += "centerLambda ";
373  }
375  secondDensity)) {
376  allFound = false;
377  notFoundList += "secondDensity ";
378  }
379  if (!cluster->retrieveMoment(xAOD::CaloCluster::SIGNIFICANCE, significance)) {
380  allFound = false;
381  notFoundList += "significance ";
382  }
383 
384  // Get the number of primary vertices in this event
385  double ip = static_cast<double>(m_nPVdefault);
386 
387  if (mu < 0) { // use npv if mu is negative (not given)
388  ip = static_cast<double>(m_usePVCont ? this->getNPrimVertices(ctx)
389  : m_nPVdefault);
390  } else {
391  ip = mu;
392  }
393 
395  Form("Vars: eta=%8.5f, et=%8.5f, 2nd lambda=%8.5f, lateral=%8.5f, "
396  "longitudinal=%8.5f, center lambda=%8.5f, frac max=%8.5f, "
397  "secondR=%8.5f, significance=%8.5f, 2nd density=%8.5f, ip=%8.5f",
398  eta,
399  et,
400  secondLambda,
401  lateral,
402  longitudinal,
403  centerLambda,
404  fracMax,
405  secondR,
406  significance,
407  secondDensity,
408  ip));
409 
410  if (!allFound) {
412  "Skipping LH calculation! The following variables are missing: "
413  << notFoundList);
414  return -999;
415  }
416 
417  // Get the answer from the underlying ROOT tool
419  et,
420  secondLambda,
421  lateral,
422  longitudinal,
423  centerLambda,
424  fracMax,
425  secondR,
426  significance,
427  secondDensity,
428  ip);
429 }

◆ calculate() [5/10]

double AsgForwardElectronLikelihoodTool::calculate ( const EventContext &  ctx,
const xAOD::IParticle part 
) const
overridevirtual

calculate method: for pointer to IParticle

Implements IAsgElectronLikelihoodTool.

Definition at line 467 of file AsgForwardElectronLikelihoodTool.cxx.

469 {
470  if (part->type() == xAOD::Type::Electron) {
471  const xAOD::Electron* el = static_cast<const xAOD::Electron*>(part);
472  return calculate(ctx, el);
473  }
474  ATH_MSG_ERROR("Input is not an electron");
475  return -999;
476 }

◆ calculate() [6/10]

double AsgForwardElectronLikelihoodTool::calculate ( const xAOD::Egamma eg) const
inline

The main result method: the actual likelihood is calculated here.

Definition at line 114 of file AsgForwardElectronLikelihoodTool.h.

115  {
116  return calculate(eg, -99); // mu = -99 as input will force accept to grab
117  // the pileup variable from the xAOD object
118  }

◆ calculate() [7/10]

double AsgForwardElectronLikelihoodTool::calculate ( const xAOD::Egamma eg,
double  mu 
) const

The main result method: the actual likelihood is calculated here.

Definition at line 280 of file AsgForwardElectronLikelihoodTool.cxx.

282 {
283 
284  const xAOD::Electron* el = dynamic_cast<const xAOD::Electron*>(eg);
285  return calculate(el, mu);
286 }

◆ calculate() [8/10]

double AsgForwardElectronLikelihoodTool::calculate ( const xAOD::Electron eg) const
inline

The main result method: the actual likelihood is calculated here.

Definition at line 100 of file AsgForwardElectronLikelihoodTool.h.

101  {
102  return calculate(eg, -99); // mu = -99 as input will force accept to grab
103  // the pileup variable from the xAOD object
104  }

◆ calculate() [9/10]

double AsgForwardElectronLikelihoodTool::calculate ( const xAOD::Electron eg,
double  mu 
) const

The main result method: the actual likelihood is calculated here.

Definition at line 289 of file AsgForwardElectronLikelihoodTool.cxx.

291 {
292  // Backward compatbility
293  return calculate(Gaudi::Hive::currentContext(), el, mu);
294 }

◆ calculate() [10/10]

double AsgForwardElectronLikelihoodTool::calculate ( const xAOD::IParticle part) const

The main result method: the actual likelihood is calculated here.

Definition at line 460 of file AsgForwardElectronLikelihoodTool.cxx.

461 {
462  // Backwards compatibily
463  return calculate(Gaudi::Hive::currentContext(), part);
464 }

◆ calculateMultipleOutputs()

virtual std::vector<float> AsgForwardElectronLikelihoodTool::calculateMultipleOutputs ( const EventContext &  ctx,
const xAOD::Electron eg,
double  mu = -99 
) const
inlineoverridevirtual

The result method for multiple outputs: only one output is used so return vector of that output.

Implements IAsgElectronLikelihoodTool.

Definition at line 141 of file AsgForwardElectronLikelihoodTool.h.

144  {
145  return {static_cast<float>(calculate(ctx, eg, mu))};
146  }

◆ 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

◆ getAcceptInfo()

const asg::AcceptInfo & AsgForwardElectronLikelihoodTool::getAcceptInfo ( ) const
overrideprivatevirtual

Method to get the plain AcceptInfo.

This is needed so that one can already get the AcceptInfo and query what cuts are defined before the first object is passed to the tool.

Implements IAsgSelectionTool.

Definition at line 195 of file AsgForwardElectronLikelihoodTool.cxx.

196 {
198 }

◆ getKey()

SG::sgkey_t asg::AsgTool::getKey ( const void *  ptr) const
inherited

Get the (hashed) key of an object that is in the event store.

This is a bit of a special one. StoreGateSvc and xAOD::TEvent both provide ways for getting the SG::sgkey_t key for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.

In order to allow tools to efficiently perform this operation, they can use this helper function.

See also
asg::AsgTool::getName
Parameters
ptrThe bare pointer to the object that the event store should know about
Returns
The hashed key of the object in the store. If not found, an invalid (zero) key.

Definition at line 119 of file AsgTool.cxx.

119  {
120 
121 #ifdef XAOD_STANDALONE
122  // In case we use @c xAOD::TEvent, we have a direct function call
123  // for this.
124  return evtStore()->event()->getKey( ptr );
125 #else
126  const SG::DataProxy* proxy = evtStore()->proxy( ptr );
127  return ( proxy == nullptr ? 0 : proxy->sgkey() );
128 #endif // XAOD_STANDALONE
129  }

◆ getName()

const std::string & asg::AsgTool::getName ( const void *  ptr) const
inherited

Get the name of an object that is / should be in the event store.

This is a bit of a special one. StoreGateSvc and xAOD::TEvent both provide ways for getting the std::string name for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.

In order to allow tools to efficiently perform this operation, they can use this helper function.

See also
asg::AsgTool::getKey
Parameters
ptrThe bare pointer to the object that the event store should know about
Returns
The string name of the object in the store. If not found, an empty string.

Definition at line 106 of file AsgTool.cxx.

106  {
107 
108 #ifdef XAOD_STANDALONE
109  // In case we use @c xAOD::TEvent, we have a direct function call
110  // for this.
111  return evtStore()->event()->getName( ptr );
112 #else
113  const SG::DataProxy* proxy = evtStore()->proxy( ptr );
114  static const std::string dummy = "";
115  return ( proxy == nullptr ? dummy : proxy->name() );
116 #endif // XAOD_STANDALONE
117  }

◆ getNPrimVertices()

unsigned int AsgForwardElectronLikelihoodTool::getNPrimVertices ( const EventContext &  ctx) const
private

Get the number of primary vertices.

Definition at line 485 of file AsgForwardElectronLikelihoodTool.cxx.

487 {
488  unsigned int nVtx(0);
490  if (!vtxCont.isValid()) {
491  ATH_MSG_WARNING("Cannot find " << m_primVtxContKey.key()
492  << " container, returning default nVtx");
493  return m_nPVdefault;
494  }
495  for (const auto *vxcand : *vtxCont) {
496  if (vxcand->nTrackParticles() >= 2)
497  nVtx++;
498  }
499  return nVtx;
500 }

◆ getOperatingPointName()

std::string AsgForwardElectronLikelihoodTool::getOperatingPointName ( ) const
overridevirtual

Get the name of the current operating point.

Implements IAsgElectronLikelihoodTool.

Definition at line 435 of file AsgForwardElectronLikelihoodTool.cxx.

436 {
437  return m_WorkingPoint;
438 }

◆ getProperty()

template<class T >
const T* asg::AsgTool::getProperty ( const std::string &  name) const
inherited

Get one of the tool's properties.

◆ initialize()

StatusCode AsgForwardElectronLikelihoodTool::initialize ( )
finaloverrideprivatevirtual

Gaudi Service Interface method implementations.

--------—End of text config-------------------------—

Reimplemented from asg::AsgTool.

Definition at line 94 of file AsgForwardElectronLikelihoodTool.cxx.

95 {
96 
97  ATH_MSG_INFO("initialize : WP " << m_WorkingPoint.size() << " "
98  << m_configFile.size());
99 
100  std::string PDFfilename(""); // Default
101 
102  if (!m_WorkingPoint.empty()) {
105  ATH_MSG_INFO("operating point : " << this->getOperatingPointName());
106  }
107 
108  if (!m_configFile.empty()) {
110  if (configFile.empty()) {
111  ATH_MSG_ERROR("Could not locate " << m_configFile);
112  return StatusCode::FAILURE;
113  }
114 
115  ATH_MSG_DEBUG("Get the input PDFs in the tool ");
116  TEnv env;
117  env.ReadFile(configFile.c_str(), kEnvLocal);
118 
119  // Get the input PDFs in the tool.
120  ATH_MSG_DEBUG("Get the input PDFs in the tool ");
121 
122  if (!m_pdfFileName
123  .empty()) { // If the property was set by the user, take that.
124  ATH_MSG_INFO("Setting user specified PDF file " << m_pdfFileName);
125  PDFfilename = m_pdfFileName;
126  } else {
127  if (m_configFile.find("dev/") != std::string::npos) {
128  std::string PDFdevval = env.GetValue(
129  "inputPDFFileName",
130  "ElectronPhotonSelectorTools/offline/mc16_20180716/"
131  "ForwardElectronLikelihoodPdfs.root"); // this is the first PDF ever
132  // released
133  PDFfilename = ("dev/" + PDFdevval);
134  ATH_MSG_DEBUG("Getting the input PDFs from: " << PDFfilename);
135  } else {
136  PDFfilename =
137  env.GetValue("inputPDFFileName",
138  "ElectronPhotonSelectorTools/offline/mc16_20180716/"
139  "ForwardElectronLikelihoodPdfs.root");
140  ATH_MSG_DEBUG("Getting the input PDFs from: " << PDFfilename);
141  }
142  }
143  std::string filename = PathResolverFindCalibFile(PDFfilename);
144 
145  if (!filename.empty()) {
147  } else {
148  ATH_MSG_ERROR("Could not find PDF file");
149  return StatusCode::FAILURE;
150  }
151 
152  m_rootForwardTool->m_variableNames = env.GetValue("VariableNames", "");
154  AsgConfigHelper::HelperDouble("CutLikelihood", env);
156  AsgConfigHelper::HelperDouble("DiscCutSlopeForPileupCorrection", env);
158  AsgConfigHelper::HelperDouble("DiscCutForPileupCorrection", env);
160  env.GetValue("doPileupCorrection", false);
161  } else { // Error if it cant find the conf
162  ATH_MSG_ERROR("Could not find configuration file");
163  return StatusCode::FAILURE;
164  }
165 
167 
168  // Setup primary vertex key handle
170 
171  // Get the name of the current operating point, and massage the other strings
172  // accordingly
174  "Going to massage the labels based on the provided operating point...");
175 
176  // Get the message level and set the underlying ROOT tool message level
177  // accordingly
178  m_rootForwardTool->msg().setLevel(this->msg().level());
179 
180  // We need to initialize the underlying ROOT TSelectorTool
181  if (m_rootForwardTool->initialize().isFailure()) {
183  "ERROR! Could not initialize the TForwardElectronLikelihoodTool!");
184  return StatusCode::FAILURE;
185  }
186 
187  return StatusCode::SUCCESS;
188 }

◆ inputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< AlgTool > >::inputHandles ( ) const
overridevirtualinherited

Return this algorithm's input handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ msg() [1/2]

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

Definition at line 24 of file AthCommonMsg.h.

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

◆ msg() [2/2]

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

Definition at line 27 of file AthCommonMsg.h.

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

◆ msg_level_name()

const std::string & asg::AsgTool::msg_level_name ( ) const
inherited

A deprecated function for getting the message level's name.

Instead of using this, weirdly named function, user code should get the string name of the current minimum message level (in case they really need it...), with:

MSG::name( msg().level() )

This function's name doesn't follow the ATLAS coding rules, and as such will be removed in the not too distant future.

Returns
The string name of the current minimum message level that's printed

Definition at line 101 of file AsgTool.cxx.

101  {
102 
103  return MSG::name( msg().level() );
104  }

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

◆ print()

void asg::AsgTool::print ( ) const
virtualinherited

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

std::string AsgForwardElectronLikelihoodTool::m_configFile
private

Definition at line 163 of file AsgForwardElectronLikelihoodTool.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_nPVdefault

unsigned int AsgForwardElectronLikelihoodTool::m_nPVdefault
private

defualt nPV (when not using PVCont)

Definition at line 172 of file AsgForwardElectronLikelihoodTool.h.

◆ m_pdfFileName

std::string AsgForwardElectronLikelihoodTool::m_pdfFileName
private

The input ROOT file name that holds the PDFs.

Definition at line 183 of file AsgForwardElectronLikelihoodTool.h.

◆ m_primVtxContKey

SG::ReadHandleKey<xAOD::VertexContainer> AsgForwardElectronLikelihoodTool::m_primVtxContKey
private
Initial value:
{
this,
"primaryVertexContainer",
"PrimaryVertices",
"The primary vertex container name"
}

read handle key to primary vertex container

Definition at line 175 of file AsgForwardElectronLikelihoodTool.h.

◆ m_rootForwardTool

Root::TForwardElectronLikelihoodTool* AsgForwardElectronLikelihoodTool::m_rootForwardTool
private

Pointer to the underlying ROOT based tool.

Definition at line 166 of file AsgForwardElectronLikelihoodTool.h.

◆ m_usePVCont

bool AsgForwardElectronLikelihoodTool::m_usePVCont
private

Whether to use the PV (not available for trigger)

Definition at line 169 of file AsgForwardElectronLikelihoodTool.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.

◆ m_WorkingPoint

std::string AsgForwardElectronLikelihoodTool::m_WorkingPoint
private

Get the name of the current operating point.

Definition at line 160 of file AsgForwardElectronLikelihoodTool.h.


The documentation for this class was generated from the following files:
xAOD::CaloCluster_v1::SECOND_R
@ SECOND_R
Second Moment in .
Definition: CaloCluster_v1.h:123
LArG4FSStartPointFilter.part
part
Definition: LArG4FSStartPointFilter.py:21
AsgForwardElectronLikelihoodTool::getNPrimVertices
unsigned int getNPrimVertices(const EventContext &ctx) const
Get the number of primary vertices.
Definition: AsgForwardElectronLikelihoodTool.cxx:485
et
Extra patterns decribing particle interation process.
AsgForwardElectronLikelihoodTool::m_usePVCont
bool m_usePVCont
Whether to use the PV (not available for trigger)
Definition: AsgForwardElectronLikelihoodTool.h:169
xAOD::Electron
Electron_v1 Electron
Definition of the current "egamma version".
Definition: Event/xAOD/xAODEgamma/xAODEgamma/Electron.h:17
Root::TForwardElectronLikelihoodTool::accept
asg::AcceptData accept(LikeEnumForward::LHAcceptVars_t &vars_struct) const
The main accept method: the actual cuts are applied here.
Definition: TForwardElectronLikelihoodTool.cxx:251
taskman.configFile
configFile
Definition: taskman.py:311
StateLessPT_NewConfig.proxy
proxy
Definition: StateLessPT_NewConfig.py:392
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
ParticleTest.eg
eg
Definition: ParticleTest.py:29
EgammaSelectors::ForwardLHPointToConfFile
const std::map< std::string, std::string > ForwardLHPointToConfFile
Definition: EGSelectorConfigurationMapping.h:89
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:79
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
AsgForwardElectronLikelihoodTool::getOperatingPointName
virtual std::string getOperatingPointName() const override
Get the name of the current operating point.
Definition: AsgForwardElectronLikelihoodTool.cxx:435
Root::TForwardElectronLikelihoodTool::setPDFFileName
void setPDFFileName(const std::string &val)
Add an input file that holds the PDFs.
Definition: TForwardElectronLikelihoodTool.h:131
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
xAOD::CaloCluster_v1::CENTER_LAMBDA
@ CENTER_LAMBDA
Shower depth at Cluster Centroid.
Definition: CaloCluster_v1.h:136
Root::TForwardElectronLikelihoodTool::m_cutLikelihoodPileupCorrectionA
std::vector< double > m_cutLikelihoodPileupCorrectionA
the cut on the PU discriminant is adjusted as a function of nVtx cut + nVtx*cutA + cutB this is diffe...
Definition: TForwardElectronLikelihoodTool.h:195
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
xAOD::CaloCluster_v1::ENG_FRAC_MAX
@ ENG_FRAC_MAX
Energy fraction of hottest cell.
Definition: CaloCluster_v1.h:140
AsgForwardElectronLikelihoodTool::m_nPVdefault
unsigned int m_nPVdefault
defualt nPV (when not using PVCont)
Definition: AsgForwardElectronLikelihoodTool.h:172
empty
bool empty(TH1 *h)
Definition: computils.cxx:294
AsgForwardElectronLikelihoodTool::m_primVtxContKey
SG::ReadHandleKey< xAOD::VertexContainer > m_primVtxContKey
read handle key to primary vertex container
Definition: AsgForwardElectronLikelihoodTool.h:175
Root::TForwardElectronLikelihoodTool::calculate
double calculate(LikeEnumForward::LHCalcVars_t &vars_struct) const
Definition: TForwardElectronLikelihoodTool.cxx:344
python.iconfTool.models.loaders.level
level
Definition: loaders.py:20
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
xAOD::CaloCluster_v1::SECOND_LAMBDA
@ SECOND_LAMBDA
Second Moment in .
Definition: CaloCluster_v1.h:124
AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Definition: AthCommonDataStore.h:85
xAOD::CaloCluster_v1::SECOND_ENG_DENS
@ SECOND_ENG_DENS
Second Moment in E/V.
Definition: CaloCluster_v1.h:144
xAOD::CaloCluster_v1
Description of a calorimeter cluster.
Definition: CaloCluster_v1.h:59
Root::TForwardElectronLikelihoodTool::m_cutLikelihood
std::vector< double > m_cutLikelihood
cut on likelihood output
Definition: TForwardElectronLikelihoodTool.h:189
AthCommonDataStore
Definition: AthCommonDataStore.h:52
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
ParticleGun_FastCalo_ChargeFlip_Config.energy
energy
Definition: ParticleGun_FastCalo_ChargeFlip_Config.py:78
AsgForwardElectronLikelihoodTool::m_pdfFileName
std::string m_pdfFileName
The input ROOT file name that holds the PDFs.
Definition: AsgForwardElectronLikelihoodTool.h:183
xAOD::CaloCluster_v1::eta
virtual double eta() const
The pseudorapidity ( ) of the particle.
Definition: CaloCluster_v1.cxx:251
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
asg::AsgMessaging::msg
MsgStream & msg() const
The standard message stream.
Definition: AsgMessaging.cxx:49
plotIsoValidation.el
el
Definition: plotIsoValidation.py:197
find_tgc_unfilled_channelids.ip
ip
Definition: find_tgc_unfilled_channelids.py:3
python.xAODType.dummy
dummy
Definition: xAODType.py:4
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
MSG::name
const std::string & name(Level lvl)
Convenience function for translating message levels to strings.
Definition: MsgLevel.cxx:19
xAOD::CaloCluster_v1::retrieveMoment
bool retrieveMoment(MomentType type, double &value) const
Retrieve individual moment.
Definition: CaloCluster_v1.cxx:738
AsgForwardElectronLikelihoodTool::m_WorkingPoint
std::string m_WorkingPoint
Get the name of the current operating point.
Definition: AsgForwardElectronLikelihoodTool.h:160
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
AsgForwardElectronLikelihoodTool::m_rootForwardTool
Root::TForwardElectronLikelihoodTool * m_rootForwardTool
Pointer to the underlying ROOT based tool.
Definition: AsgForwardElectronLikelihoodTool.h:166
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
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
xAOD::Electron_v1
Definition: Electron_v1.h:34
PathResolverFindCalibFile
std::string PathResolverFindCalibFile(const std::string &logical_file_name)
Definition: PathResolver.cxx:431
Root::TForwardElectronLikelihoodTool::m_doPileupCorrection
bool m_doPileupCorrection
Apply a transform to zoom into the LH output peaks.
Definition: TForwardElectronLikelihoodTool.h:187
a
TList * a
Definition: liststreamerinfos.cxx:10
h
xAOD::CaloCluster_v1::SIGNIFICANCE
@ SIGNIFICANCE
Cluster significance.
Definition: CaloCluster_v1.h:157
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
AthCommonMsg< AlgTool >::msg
MsgStream & msg() const
Definition: AthCommonMsg.h:24
CaloCellTimeCorrFiller.filename
filename
Definition: CaloCellTimeCorrFiller.py:24
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
xAOD::CaloCluster_v1::LATERAL
@ LATERAL
Normalized lateral moment.
Definition: CaloCluster_v1.h:137
Root::TForwardElectronLikelihoodTool::m_variableNames
std::string m_variableNames
variables to use in the LH
Definition: TForwardElectronLikelihoodTool.h:199
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:790
Root::TForwardElectronLikelihoodTool::getAcceptInfo
const asg::AcceptInfo & getAcceptInfo() const
accesss to the accept info object
Definition: TForwardElectronLikelihoodTool.h:105
AsgForwardElectronLikelihoodTool::calculate
double calculate(const xAOD::IParticle *part) const
The main result method: the actual likelihood is calculated here.
Definition: AsgForwardElectronLikelihoodTool.cxx:460
AsgForwardElectronLikelihoodTool::accept
asg::AcceptData accept(const xAOD::IParticle *part) const override
The main accept method: using the generic interface.
Definition: AsgForwardElectronLikelihoodTool.cxx:441
Root::TForwardElectronLikelihoodTool::m_cutLikelihoodPileupCorrectionB
std::vector< double > m_cutLikelihoodPileupCorrectionB
pileup constant factor for cut on likelihood output
Definition: TForwardElectronLikelihoodTool.h:197
AsgForwardElectronLikelihoodTool::m_configFile
std::string m_configFile
Definition: AsgForwardElectronLikelihoodTool.h:163
python.DataFormatRates.env
env
Definition: DataFormatRates.py:32
xAOD::CaloCluster_v1::LONGITUDINAL
@ LONGITUDINAL
Normalized longitudinal moment.
Definition: CaloCluster_v1.h:138
SG::DataProxy
Definition: DataProxy.h:44
CaloNoise_fillDB.mu
mu
Definition: CaloNoise_fillDB.py:53
AsgConfigHelper::HelperDouble
std::vector< double > HelperDouble(const std::string &input, TEnv &env)
Definition: AsgEGammaConfigHelper.cxx:105
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
xAOD::CaloCluster_v1::e
virtual double e() const
The total energy of the particle.
Definition: CaloCluster_v1.cxx:265
Root::TForwardElectronLikelihoodTool::initialize
StatusCode initialize()
Initialize this class.
Definition: TForwardElectronLikelihoodTool.cxx:65
fitman.k
k
Definition: fitman.py:528
AsgConfigHelper::findConfigFile
std::string findConfigFile(const std::string &input, const std::map< std::string, std::string > &configmap)
Definition: AsgEGammaConfigHelper.cxx:14