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

Tool to dump jets to the log. More...

#include <JetDumper.h>

Inheritance diagram for JetDumper:
Collaboration diagram for JetDumper:

Public Types

typedef std::string Name
 
typedef std::vector< NameNameList
 
typedef xAOD::JetFourMom_t FourVector
 
typedef std::vector< const xAOD::IParticle * > APVector
 
typedef ElementLink< xAOD::IParticleContainerAPEL
 
typedef std::vector< APELAPELVector
 
typedef std::vector< const xAOD::MuonSegment * > MSVector
 
typedef ElementLink< xAOD::MuonSegmentContainerMSEL
 
typedef std::vector< MSELMSELVector
 

Public Member Functions

 JetDumper (const std::string &myname)
 
template<typename T >
int dump_object (const T *pjet, const std::string &objtypename="Unknown") const
 
template<typename TList >
int dump_collection (const TList *pjets, const std::string &objtypename="Unknown") const
 
int execute () const
 Method to be called for each event. More...
 
void print () const
 Print the state of the tool. More...
 
virtual int inputContainerNames (std::vector< std::string > &connames)
 Method to return the list of input containers. More...
 
virtual int outputContainerNames (std::vector< std::string > &connames)
 Method to return the list of output containers. More...
 
virtual StatusCode initialize ()
 Dummy implementation of the initialisation function. 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

template<typename T >
std::string object_label (const T *pjet, const std::string &label) const
 
std::string object_label (const fastjet::PseudoJet &jet, const std::string &label) const
 
template<typename T >
int dump_object_after_prefix (const T *pjet, const std::string &objtypename) const
 
int dump_object_after_prefix (const fastjet::PseudoJet &jet, const std::string &objtypename) const
 
int dump_object_after_prefix (const xAOD::MuonSegment *seg, const std::string &objtypename) const
 
template<typename TObj , typename TMom >
void get_moment (TObj *pobj, std::string name, TMom &val) const
 
template<typename TObj >
void get_moment (TObj *pobj, std::string name, FourVector &val) const
 
template<typename TObj >
void get_moment (TObj *pobj, std::string name, std::string &val) const
 
template<typename TObj >
void get_moment (TObj *pobj, std::string name, std::vector< int > &) const
 
template<typename TObj >
void get_moment (TObj *pobj, std::string name, std::vector< float > &) const
 
template<typename TMom >
void get_moment (const xAOD::Jet *pobj, std::string name, TMom &val) const
 
void get_moment (const xAOD::Jet *pobj, const std::string &name, FourVector &val) const
 
void get_moment (const xAOD::Jet *pobj, const std::string &name, std::string &val) const
 
void get_moment (const xAOD::Jet *pobj, const std::string &name, std::vector< int > &vals) const
 
void get_moment (const xAOD::Jet *pobj, const std::string &name, std::vector< float > &vals) const
 
template<typename TObj >
std::string get_moment_as_string (const TObj &obj, std::string name) const
 
std::string get_moment_as_string (const xAOD::Jet *pobj, const std::string &name) const
 
template<typename TObj >
void getAssociatedParticles (TObj *pobj, std::string name, APVector &val) const
 
void getAssociatedParticles (const xAOD::Jet *pobj, const std::string &name, APVector &val) const
 
template<typename TObj >
void getAssociatedLinks (TObj *pobj, std::string name, APELVector &val) const
 
void getAssociatedLinks (const xAOD::Jet *pobj, const std::string &name, APELVector &val) const
 
template<typename TObj >
void getAssociatedParticles (TObj *pobj, std::string name, MSVector &val) const
 
void getAssociatedParticles (const xAOD::Jet *pobj, const std::string &name, MSVector &val) const
 
template<typename TObj >
void getAssociatedLinks (TObj *pobj, std::string name, MSELVector &val) const
 
void getAssociatedLinks (const xAOD::Jet *pobj, const std::string &name, MSELVector &val) const
 
template<typename T >
void extra_info (const T *, std::ostream &out, int) const
 
void extra_info (const xAOD::Jet *pjet, std::ostream &out, int iopt) const
 
void extra_info (const fastjet::PseudoJet *ppsj, std::ostream &out, int linedetail) 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

std::string m_cname
 
int m_detail
 
int m_linedetail
 
int m_prefix
 
int m_maxobj
 
float m_floatmax
 
NameList m_fmoms
 
NameList m_imoms
 Float moments. More...
 
NameList m_bmoms
 Int moments. More...
 
NameList m_cbmoms
 Bool moments. More...
 
NameList m_smoms
 Bool stored as char moments. More...
 
NameList m_fvmoms
 String moments. More...
 
NameList m_elmoms
 Four-vector moments. More...
 
NameList m_vimoms
 Element link moments. More...
 
NameList m_vfmoms
 Vector<int> moments. More...
 
NameList m_apmoms
 Vector<float> moments. 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

Tool to dump jets to the log.

Tool properties: ContainerName: Name of the container to be dumped Detail: 0 for container info, 1 for one line per object, 2 for object properties LineDetail: 0 for object index, 2 for kinematics, 2 for more Prefix: 0 for no prefix, 1 for type, 2 for container, 3 for type+contaienr MaxObject: Maximum number of objects for which detail is shown FloatMax: Above this value, floats are displayed in scientific notation. FloatMoments: Names of the float moments to display IntMoments: Names of the integer moments to display BoolMoments: Names of the bool moments to display CBoolMoments: Names of the bool moments storaed as char to display StringMoments: Names of the string moments to display FourVectorMoments: Names of the four-vector moments to display ElementLinkMoments: Names of the element link moments to display IntVectorMoments: Names of the int vector moments to display FloatVectorMoments: Names of the float vector moments to display AssociatedParticleVectors: Names of the associated object vectors to display

Definition at line 53 of file JetDumper.h.

Member Typedef Documentation

◆ APEL

Definition at line 64 of file JetDumper.h.

◆ APELVector

typedef std::vector<APEL> JetDumper::APELVector

Definition at line 65 of file JetDumper.h.

◆ APVector

typedef std::vector<const xAOD::IParticle*> JetDumper::APVector

Definition at line 63 of file JetDumper.h.

◆ FourVector

Definition at line 62 of file JetDumper.h.

◆ MSEL

Definition at line 67 of file JetDumper.h.

◆ MSELVector

typedef std::vector<MSEL> JetDumper::MSELVector

Definition at line 68 of file JetDumper.h.

◆ MSVector

Definition at line 66 of file JetDumper.h.

◆ Name

typedef std::string JetDumper::Name

Definition at line 60 of file JetDumper.h.

◆ NameList

typedef std::vector<Name> JetDumper::NameList

Definition at line 61 of file JetDumper.h.

◆ StoreGateSvc_t

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

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ JetDumper()

JetDumper::JetDumper ( const std::string &  myname)

Definition at line 24 of file JetDumper.cxx.

25 : AsgTool(myname) {
26  ATH_MSG_INFO("JetDumper::ctor: Declaring properties.");
27  declareProperty("ContainerName", m_cname ="");
28  declareProperty("Detail", m_detail =1);
29  declareProperty("LineDetail", m_linedetail =1);
30  declareProperty("Prefix", m_prefix =1);
31  declareProperty("MaxObject", m_maxobj =10);
32  declareProperty("FloatMax", m_floatmax = 0.999e6);
33  declareProperty("FloatMoments", m_fmoms);
34  declareProperty("IntMoments", m_imoms);
35  declareProperty("BoolMoments", m_bmoms);
36  declareProperty("CBoolMoments", m_cbmoms);
37  declareProperty("StringMoments", m_smoms);
38  declareProperty("FourVectorMoments", m_fvmoms);
39  declareProperty("ElementLinkMoments", m_elmoms);
40  declareProperty("IntVectorMoments", m_vimoms);
41  declareProperty("FloatVectorMoments", m_vfmoms);
42  declareProperty("AssociatedParticleVectors", m_apmoms);
43  ATH_MSG_DEBUG("JetDumper::ctor: Done.");
44 }

Member Function Documentation

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

◆ dump_collection()

template<typename TList >
int JetDumper::dump_collection ( const TList *  pjets,
const std::string &  objtypename = "Unknown" 
) const

Definition at line 369 of file JetDumper.h.

369  {
370  int njet = pjets->size();
371  ATH_MSG_INFO(" " << objtypename << " multiplicity: " << njet << " [" << m_cname << "]");
372  std::string line = "-------------------------------------------------------------------------";
373  int jstat = 0;
374  if ( m_detail > 0 ) {
375  unsigned int njetshow = njet;
376  if ( m_maxobj > 0 && m_maxobj < njet ) njetshow = m_maxobj;
377  typename TList::const_iterator itjet = pjets->begin();
378  typedef typename TList::const_iterator::reference TValue;
379  std::vector<std::string> labs;
380  unsigned int wlab = 0;
381  for ( unsigned int ijet=0; ijet<njetshow; ++ijet ) {
382  TValue pjet = *itjet++;
383  std::string lab = object_label(pjet, objtypename);
384  labs.push_back(lab);
385  if ( lab.size() > wlab ) wlab = lab.size();
386  }
387  itjet = pjets->begin();
388  int widx = 1;
389  if ( njetshow > 10 ) widx = 2;
390  if ( njetshow > 100 ) widx = 3;
391  if ( njetshow > 1000 ) widx = 4;
392  for ( unsigned int ijet=0; ijet<njetshow; ++ijet ) {
393  TValue pjet = *itjet++;
394  if ( m_detail > 1 && ijet==0 ) ATH_MSG_INFO(line);
395  // One line summary.
396  msg() << MSG::INFO << " ";
397  if ( m_prefix == 1 || m_prefix > 2 ) {
398  msg() << std::setw(wlab) << labs[ijet] << " ";
399  }
400  if ( m_prefix < 2 ) {
401  msg() << std::setw(widx) << ijet;
402  } else {
403  msg() << m_cname;
404  msg() << "[" << std::setw(widx) << ijet << "]";
405  }
406  msg() << ": ";
407  jstat += dump_object_after_prefix(pjet, objtypename);
408  if ( m_detail > 1 ) ATH_MSG_INFO(line);
409  }
410  }
411  return jstat;
412 }

◆ dump_object()

template<typename T >
int JetDumper::dump_object ( const T *  pjet,
const std::string &  objtypename = "Unknown" 
) const

Definition at line 177 of file JetDumper.h.

177  {
178  msg() << MSG::INFO << objtypename << " ";
179  return dump_object_after_prefix(pobj, objtypename);
180 }

◆ dump_object_after_prefix() [1/3]

int JetDumper::dump_object_after_prefix ( const fastjet::PseudoJet &  jet,
const std::string &  objtypename 
) const
private

Definition at line 122 of file JetDumper.cxx.

122  {
123  const double mevtogev = 0.001;
124  // One line summary.
125  std::ostringstream ssjetline;
126  double px = mevtogev*jet.px();
127  double py = mevtogev*jet.py();
128  double pt = sqrt(px*px+py*py);
129  if ( m_linedetail > 0 ) {
130  ssjetline << "pT =" << std::setw(6) << std::fixed << std::setprecision(1) << pt << " GeV";
131  ssjetline << ", m =" << std::setw(6) << std::fixed << std::setprecision(1)
132  << mevtogev*jet.m() << " GeV";
133  ssjetline << ", eta =" << std::setw(5) << std::fixed << std::setprecision(2) << jet.eta();
134  ssjetline << ", phi =" << std::setw(5) << std::fixed << std::setprecision(2) << jet.phi();
135  }
136  if ( m_linedetail > 1 ) extra_info(&jet, ssjetline, m_linedetail);
137  msg() << ssjetline.str() << endmsg;
138  return 0;
139 }

◆ dump_object_after_prefix() [2/3]

template<typename T >
int JetDumper::dump_object_after_prefix ( const T *  pjet,
const std::string &  objtypename 
) const
private

Definition at line 183 of file JetDumper.h.

183  {
184  const double mevtogev = 0.001;
185  const int wname = 30;
186  if ( pjet == 0 ) {
187  msg() << endmsg;
188  ATH_MSG_ERROR("Null jet.");
189  return 1;
190  }
191  // One line summary.
192  std::ostringstream ssjetline;
193  if ( m_linedetail > 0 ) {
194  ssjetline << "pT =" << std::setw(6) << std::fixed << std::setprecision(1) << mevtogev*pjet->pt() << " GeV";
195  ssjetline << ", m =" << std::setw(6) << std::fixed << std::setprecision(1) << mevtogev*pjet->m() << " GeV";
196  ssjetline << ", eta =" << std::setw(5) << std::fixed << std::setprecision(2) << pjet->eta();
197  ssjetline << ", phi =" << std::setw(5) << std::fixed << std::setprecision(2) << pjet->phi();
198  }
199  if ( m_linedetail > 1 ) extra_info(pjet, ssjetline, m_linedetail);
200  msg() << ssjetline.str() << endmsg;
201  // All properties.
202  if ( m_detail > 1 ) {
203  NameList fnames = m_fmoms;
204  NameList inames = m_imoms;
205  NameList bnames = m_bmoms;
206  NameList cbnames = m_cbmoms;
207  NameList snames = m_smoms;
208  NameList fvnames = m_fvmoms;
209  NameList elnames = m_elmoms;
210  NameList vinames = m_vimoms;
211  NameList vfnames = m_vfmoms;
212  NameList apnames = m_apmoms;
213  if ( fnames.size() == 0 ) fnames = get_moment_keys<T,float>(pjet);
214  ATH_MSG_INFO(" " << objtypename << " has " << fnames.size() << " float attributes:");
215  for ( NameList::const_iterator inam=fnames.begin(); inam!=fnames.end(); ++inam ) {
216  Name name = *inam;
217  float val;
218  get_moment(pjet, name, val);
219  if ( fabs(val) > m_floatmax ) {
220  ATH_MSG_INFO(std::setw(wname) << name << ":" << std::setw(16) << std::scientific << std::setprecision(3) << val);
221  } else {
222  ATH_MSG_INFO(std::setw(wname) << name << ":" << std::setw(12) << std::fixed << std::setprecision(3) << val);
223  }
224  }
225  if ( inames.size() == 0 ) inames = get_moment_keys<T,int>(pjet);
226  ATH_MSG_INFO(" " << objtypename << " has " << inames.size() << " int attributes:");
227  for ( NameList::const_iterator inam=inames.begin(); inam!=inames.end(); ++inam ) {
228  Name name = *inam;
229  int ival;
230  get_moment(pjet, name, ival);
231  ATH_MSG_INFO(std::setw(wname) << name << ":" << std::setw(12) << std::fixed << std::setprecision(3) << ival);
232  }
233  if ( bnames.size() == 0 ) bnames = get_moment_keys<T,int>(pjet);
234  ATH_MSG_INFO(" " << objtypename << " has " << bnames.size() << " bool attributes:");
235  for ( NameList::const_iterator inam=bnames.begin(); inam!=bnames.end(); ++inam ) {
236  Name name = *inam;
237  bool val;
238  get_moment(pjet, name, val);
239  std::string sval = val ? "true" : "false";
240  ATH_MSG_INFO(std::setw(wname) << name << ":" << std::setw(6) << sval);
241  }
242  if ( cbnames.size() == 0 ) cbnames = get_moment_keys<T,int>(pjet);
243  ATH_MSG_INFO(" " << objtypename << " has " << cbnames.size() << " cbool attributes:");
244  for ( NameList::const_iterator inam=cbnames.begin(); inam!=cbnames.end(); ++inam ) {
245  Name name = *inam;
246  char val;
247  get_moment(pjet, name, val);
248  std::string sval = val ? "true" : "false";
249  ATH_MSG_INFO(std::setw(wname) << name << ":" << std::setw(6) << sval);
250  }
251  ATH_MSG_INFO(" " << objtypename << " has " << snames.size() << " string attributes:");
252  for ( NameList::const_iterator inam=snames.begin(); inam!=snames.end(); ++inam ) {
253  Name name = *inam;
254  std::string sval;
255  get_moment(pjet, name, sval);
256  ATH_MSG_INFO(std::setw(wname) << name << ":" << std::setw(30) << sval);
257  }
258  ATH_MSG_INFO(" " << objtypename << " has " << vinames.size() << " vector<int> attributes:");
259  for ( NameList::const_iterator inam=vinames.begin(); inam!=vinames.end(); ++inam ) {
260  Name name = *inam;
261  std::vector<int> vals;
262  get_moment(pjet, name, vals);
263  if ( vals.size() == 0 ) {
264  ATH_MSG_INFO(std::setw(wname) << name << ": No entries.");
265  } else {
266  int widx = 1;
267  if ( vals.size() > 10 ) widx = 2;
268  for ( unsigned int ival=0; ival<vals.size(); ++ival ) {
269  ATH_MSG_INFO(std::setw(wname) << name << "[" << std::setw(widx) << ival << "]: "
270  << std::setw(8) << vals[ival]);
271  }
272  }
273  }
274  ATH_MSG_INFO(" " << objtypename << " has " << vfnames.size() << " vector<float> attributes:");
275  for ( NameList::const_iterator inam=vfnames.begin(); inam!=vfnames.end(); ++inam ) {
276  Name name = *inam;
277  std::vector<float> vals;
278  get_moment(pjet, name, vals);
279  if ( vals.size() == 0 ) {
280  ATH_MSG_INFO(std::setw(wname) << name << ": No entries.");
281  } else {
282  int widx = 1;
283  if ( vals.size() > 10 ) widx = 2;
284  for ( unsigned int ival=0; ival<vals.size(); ++ival ) {
285  ATH_MSG_INFO(std::setw(wname) << name << "[" << std::setw(widx) << ival << "]: "
286  << std::setw(12) << std::fixed << std::setprecision(3) << vals[ival]);
287  }
288  }
289  }
290  ATH_MSG_INFO(" " << objtypename << " has " << apnames.size() << " associated particle vectors:");
291  for ( NameList::const_iterator inam=apnames.begin(); inam!=apnames.end(); ++inam ) {
292  Name name = *inam;
293  if ( name.find("MuonSegment") != std::string::npos ) {
294  MSVector vals;
296  MSELVector els;
297  getAssociatedLinks(pjet, name, els);
298  std::string slab = "entries";
299  if ( vals.size() == 1 ) slab = "entry";
300  if ( vals.size() > 0 ) slab += ":";
301  ATH_MSG_INFO(std::setw(wname) << name << " has " << vals.size() << " " << slab);
302  if ( els.size() == vals.size() ) {
303  for (const MSEL& el : els) {
304  ATH_MSG_INFO(std::setw(wname+2) << "" << el.dataID() << "[" << el.index() << "]");
305  }
306  } else {
307  for (auto ppar : vals) {
308  ATH_MSG_INFO(std::setw(wname+2) << "" << ppar->container() << "[" << ppar->index() << "]");
309  }
310  }
311  } else {
312  APVector vals;
314  APELVector els;
315  getAssociatedLinks(pjet, name, els);
316  std::string slab = "entries";
317  if ( vals.size() == 1 ) slab = "entry";
318  if ( vals.size() > 0 ) slab += ":";
319  ATH_MSG_INFO(std::setw(wname) << name << " has " << vals.size() << " " << slab);
320  // Show container names if found, otherwise container addresses.
321  if ( els.size() == vals.size() ) {
322  for (const APEL& el : els) {
323  ATH_MSG_INFO(std::setw(wname+2) << "" << el.dataID() << "[" << el.index() << "]");
324  }
325  } else {
326  for (auto ppar : vals) {
327  ATH_MSG_INFO(std::setw(wname+2) << "" << ppar->container() << "[" << ppar->index() << "]");
328  }
329  }
330  }
331  }
332  if ( fvnames.size() == 0 ) fvnames = get_moment_keys<T,float>(pjet);
333  ATH_MSG_INFO(" " << objtypename << " has " << fvnames.size() << " four-vector attributes (pT m eta phi):");
334  for ( NameList::const_iterator inam=fvnames.begin(); inam!=fvnames.end(); ++inam ) {
335  Name name = *inam;
336  FourVector val;
337  get_moment(pjet, name, val);
338  ATH_MSG_INFO(std::setw(wname) << name << ":"
339  << std::setw(12) << std::fixed << std::setprecision(3) << val.Pt()
340  << std::setw(12) << std::fixed << std::setprecision(3) << val.M()
341  << std::setw(12) << std::fixed << std::setprecision(3) << val.Eta()
342  << std::setw(12) << std::fixed << std::setprecision(3) << val.Phi()
343  );
344  }
345  ATH_MSG_INFO(" " << objtypename << " has " << elnames.size() << " element-link attributes:");
346  for ( NameList::const_iterator inam=elnames.begin(); inam!=elnames.end(); ++inam ) {
347  std::string name = *inam;
348  std::string sel = get_moment_as_string(pjet, name);
349  ATH_MSG_INFO(std::setw(wname) << name << ": " << sel);
350  }
351  }
352  return 0;
353 }

◆ dump_object_after_prefix() [3/3]

int JetDumper::dump_object_after_prefix ( const xAOD::MuonSegment seg,
const std::string &  objtypename 
) const
private

Definition at line 143 of file JetDumper.cxx.

143  {
144  if ( pseg == nullptr ) return 1;
145  const xAOD::MuonSegment& seg = *pseg;
146  const double mmtom = 0.001;
147  // One line summary.
148  std::ostringstream ssline;
149  double x = mmtom*seg.x();
150  double y = mmtom*seg.y();
151  double z = mmtom*seg.z();
152  double r = sqrt(x*x+y*y);
153  double phi = atan2(y,x);
154  ssline << "r =" << std::setw(7) << std::fixed << std::setprecision(2) << r << " m";
155  ssline << ", z =" << std::setw(7) << std::fixed << std::setprecision(2) << z << " m";
156  ssline << ", phi =" << std::setw(7) << std::fixed << std::setprecision(2) << phi;
157  //if ( m_linedetail > 1 ) extra_info(&seg, ssline, m_linedetail);
158  msg() << ssline.str() << endmsg;
159  return 0;
160 }

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

◆ execute()

int JetDumper::execute ( ) const
virtual

Method to be called for each event.

Returns 0 for success.

Implements IJetExecuteTool.

Definition at line 63 of file JetDumper.cxx.

63  {
64  ATH_MSG_DEBUG("Looping over collection types...");
65  if ( evtStore()->contains<PseudoJetVector>(m_cname) ) {
66  ATH_MSG_DEBUG("Collection is pseudojets.");
67  const PseudoJetVector* pobjs = nullptr;
68  StatusCode sc = evtStore()->retrieve(pobjs, m_cname);
69  if ( !sc.isFailure() && pobjs != nullptr ) return dump_collection(pobjs, "Pseudojet");
70  } else if ( evtStore()->contains<xAOD::CaloClusterContainer>(m_cname) ) {
71  ATH_MSG_DEBUG("Collection is xAOD clusters.");
72  const xAOD::CaloClusterContainer* pclus = nullptr;
73  pclus = evtStore()->retrieve<const xAOD::CaloClusterContainer>(m_cname);
74  //StatusCode sc = evtStore()->retrieve(pclus, m_cname);
75  if ( pclus != nullptr ) return dump_collection(pclus, "Cluster");
76  } else if ( evtStore()->contains<xAOD::JetContainer>(m_cname) ) {
77  ATH_MSG_DEBUG("Collection is xAOD jets.");
78  const xAOD::JetContainer* pobjs = nullptr;
79  pobjs = evtStore()->retrieve<const xAOD::JetContainer>(m_cname);
80  if ( pobjs != nullptr ) {
81  return dump_collection(pobjs, "Jet");
82  ATH_MSG_DEBUG("Retrieved xAOD jets.");
83  } else {
84  ATH_MSG_ERROR("xAOD jet retrieval failed.");
85  }
86  } else if ( evtStore()->contains<xAOD::MuonSegmentContainer>(m_cname) ) {
87  ATH_MSG_DEBUG("Collection is xAOD muon segments.");
88  const xAOD::MuonSegmentContainer* psegs = nullptr;
89  psegs = evtStore()->retrieve<const xAOD::MuonSegmentContainer>(m_cname);
90  if ( psegs != nullptr ) return dump_collection(psegs, "Muon segment");
91  }
92  ATH_MSG_ERROR("Unable to retrieve input collection: " << m_cname);
93  return 2;
94 }

◆ extra_info() [1/3]

void JetDumper::extra_info ( const fastjet::PseudoJet *  ppsj,
std::ostream &  out,
int  linedetail 
) const
private

Definition at line 275 of file JetDumper.cxx.

275  {
276  if ( ppsj == nullptr ) {
277  out << ", Null pseudojet";
278  return;
279  }
280  const fastjet::PseudoJet& psj = *ppsj;
281  if ( psj.has_user_info() ) {
282  const jet::IConstituentUserInfo& cui = psj.user_info<jet::IConstituentUserInfo>();
283  if ( linedetail > 1 ) {
284  out << ", ilab=" << cui.index();
285  if ( linedetail > 2 ) {
286  const xAOD::IParticle* pip = cui.particle();
287  if ( pip == nullptr ) {
288  out << ", Associated particle is null";
289  } else {
290  out << " [" << pip->container() << "/" << pip->index() << "]";
291  if ( linedetail > 3 ) out << ", IParticle @ " << pip;
292  }
293  }
294  if ( cui.isGhost() ) out << ", ghost";
295  }
296  } else {
297  out << ", No user info";
298  }
299 }

◆ extra_info() [2/3]

template<typename T >
void JetDumper::extra_info ( const T *  ,
std::ostream &  out,
int   
) const
private

Definition at line 476 of file JetDumper.h.

476  {
477  out << ", Unknown type: " << typeid(T).name();
478 }

◆ extra_info() [3/3]

void JetDumper::extra_info ( const xAOD::Jet pjet,
std::ostream &  out,
int  iopt 
) const
private

Definition at line 252 of file JetDumper.cxx.

252  {
253  if ( iopt == 2 ) {
254  int ncon = pjet->numConstituents();
255  out << ", ncon = " << ncon;
256  }
257  if ( iopt > 2 ) {
258  int ncon = pjet->numConstituents();
259  int scon = pjet->getConstituents().size();
260  string lab = ", size/ncon=";
261  out << lab << scon << "/" << ncon;
262  }
263  if ( iopt > 3 ) {
264  const fastjet::PseudoJet* ppj = pjet->getPseudoJet();
265  if ( ppj == nullptr ) {
266  out << ", No pseudojet";
267  } else {
268  out << ", npjcon=" << ppj->constituents().size();
269  }
270  }
271 }

◆ 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

◆ get_moment() [1/10]

void JetDumper::get_moment ( const xAOD::Jet pobj,
const std::string &  name,
FourVector val 
) const
private

Definition at line 164 of file JetDumper.cxx.

164  {
165  if ( name.empty() || name == "jetP4()" ) val = pjet->jetP4();
166  else val = pjet->getAttribute<FourVector>(name);
167 }

◆ get_moment() [2/10]

void JetDumper::get_moment ( const xAOD::Jet pobj,
const std::string &  name,
std::string &  val 
) const
private

Definition at line 187 of file JetDumper.cxx.

187  {
188  val = pjet->getAttribute<std::string>(name);
189 }

◆ get_moment() [3/10]

void JetDumper::get_moment ( const xAOD::Jet pobj,
const std::string &  name,
std::vector< float > &  vals 
) const
private

Definition at line 179 of file JetDumper.cxx.

180  {
181  typedef std::vector<float> T;
182  vals = pjet->getAttribute<T>(name);
183 }

◆ get_moment() [4/10]

void JetDumper::get_moment ( const xAOD::Jet pobj,
const std::string &  name,
std::vector< int > &  vals 
) const
private

Definition at line 171 of file JetDumper.cxx.

172  {
173  typedef std::vector<int> T;
174  vals = pjet->getAttribute<T>(name);
175 }

◆ get_moment() [5/10]

template<typename TMom >
void JetDumper::get_moment ( const xAOD::Jet pobj,
std::string  name,
TMom &  val 
) const
private

Definition at line 444 of file JetDumper.h.

444  {
445  val = pjet->getAttribute<TMom>(name);
446 }

◆ get_moment() [6/10]

template<typename TObj >
void JetDumper::get_moment ( TObj *  pobj,
std::string  name,
FourVector val 
) const
private

Definition at line 422 of file JetDumper.h.

422  {
423  val = FourVector();
424 }

◆ get_moment() [7/10]

template<typename TObj >
void JetDumper::get_moment ( TObj *  pobj,
std::string  name,
std::string &  val 
) const
private

Definition at line 427 of file JetDumper.h.

427  {
428  val = "";
429 }

◆ get_moment() [8/10]

template<typename TObj >
void JetDumper::get_moment ( TObj *  pobj,
std::string  name,
std::vector< float > &  val 
) const
private

Definition at line 438 of file JetDumper.h.

438  {
439  static const std::vector<float> empty;
440  val = empty;
441 }

◆ get_moment() [9/10]

template<typename TObj >
void JetDumper::get_moment ( TObj *  pobj,
std::string  name,
std::vector< int > &  val 
) const
private

Definition at line 432 of file JetDumper.h.

432  {
433  static const std::vector<int> empty;
434  val = empty;
435 }

◆ get_moment() [10/10]

template<typename TObj , typename TMom >
void JetDumper::get_moment ( TObj *  pobj,
std::string  name,
TMom &  val 
) const
private

Definition at line 417 of file JetDumper.h.

417  {
418  val = 0;
419 }

◆ get_moment_as_string() [1/2]

template<typename TObj >
std::string JetDumper::get_moment_as_string ( const TObj &  obj,
std::string  name 
) const
private

Definition at line 462 of file JetDumper.h.

462  {
463  return " Not a jet.";
464 }

◆ get_moment_as_string() [2/2]

std::string JetDumper::get_moment_as_string ( const xAOD::Jet pobj,
const std::string &  name 
) const
private

Definition at line 222 of file JetDumper.cxx.

222  {
223  std::ostringstream sout;
224  // May want to try other types here.
225  // Or find some way to access the base information of the element link.
226  try {
228  if ( pjet->getAttribute(name, eljet) ) {
229  sout << "Jet " << eljet.dataID() << "[" << eljet.index() << "]";
230  return sout.str();
231  }
232  } catch (...) { }
233  try {
235  if ( pjet->getAttribute(name, elvtx) ) {
236  sout << "Vertex " << elvtx.dataID() << "[" << elvtx.index() << "]";
237  return sout.str();
238  }
239  } catch (...) { }
240  try {
242  if ( pjet->getAttribute(name, elobj) ) {
243  sout << "IParticle " << elobj.dataID() << "[" << elobj.index() << "]";
244  return sout.str();
245  }
246  } catch (...) { }
247  return "Not a known element link.";
248 }

◆ getAssociatedLinks() [1/4]

void JetDumper::getAssociatedLinks ( const xAOD::Jet pobj,
const std::string &  name,
APELVector val 
) const
private

Definition at line 200 of file JetDumper.cxx.

201  {
202  pobj->getAttribute(name, val);
203 }

◆ getAssociatedLinks() [2/4]

void JetDumper::getAssociatedLinks ( const xAOD::Jet pobj,
const std::string &  name,
MSELVector val 
) const
private

Definition at line 214 of file JetDumper.cxx.

215  {
216  pobj->getAttribute(name, val);
217 }

◆ getAssociatedLinks() [3/4]

template<typename TObj >
void JetDumper::getAssociatedLinks ( TObj *  pobj,
std::string  name,
APELVector val 
) const
private

Definition at line 452 of file JetDumper.h.

452 { }

◆ getAssociatedLinks() [4/4]

template<typename TObj >
void JetDumper::getAssociatedLinks ( TObj *  pobj,
std::string  name,
MSELVector val 
) const
private

Definition at line 458 of file JetDumper.h.

458 { }

◆ getAssociatedParticles() [1/4]

void JetDumper::getAssociatedParticles ( const xAOD::Jet pobj,
const std::string &  name,
APVector val 
) const
private

Definition at line 193 of file JetDumper.cxx.

194  {
195  pobj->getAssociatedObjects(name, val);
196 }

◆ getAssociatedParticles() [2/4]

void JetDumper::getAssociatedParticles ( const xAOD::Jet pobj,
const std::string &  name,
MSVector val 
) const
private

◆ getAssociatedParticles() [3/4]

template<typename TObj >
void JetDumper::getAssociatedParticles ( TObj *  pobj,
std::string  name,
APVector val 
) const
private

Definition at line 449 of file JetDumper.h.

449 { }

◆ getAssociatedParticles() [4/4]

template<typename TObj >
void JetDumper::getAssociatedParticles ( TObj *  pobj,
std::string  name,
MSVector val 
) const
private

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

◆ getProperty()

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

Get one of the tool's properties.

◆ initialize()

virtual StatusCode asg::AsgTool::initialize ( )
inlinevirtualinherited

Dummy implementation of the initialisation function.

It's here to allow the dual-use tools to skip defining an initialisation function. Since many are doing so...

Reimplemented in SimpleMuonTriggerScaleFactors, Trig::TrigMuonMatching, CP::MuonTriggerScaleFactors, Trig::TrigTauMatchingTool, IHIEventShapeMapTool, ST::SUSYObjDef_xAOD, InDetSecVtxTruthMatchTool, JetGrooming::RecSoftDrop, met::METMaker, AsgForwardElectronIsEMSelector, JetGrooming::JetTrimming, ORUtils::BaseOverlapTool, PMGTools::PMGSherpa22VJetsWeightTool, AsgElectronEfficiencyCorrectionTool, CP::ElectronChargeEfficiencyCorrectionTool, AsgForwardElectronLikelihoodTool, CorrectPFOTool, CP::IsolationCorrectionTool, TauAnalysisTools::TauTruthMatchingTool, EGammaAmbiguityTool, InDetVertexTruthMatchTool, AthOnnx::OnnxRuntimeSessionToolCPU, AthOnnx::OnnxRuntimeSessionToolCUDA, PuppiWeightTool, JetIsolationTool, JetBalancePFlowJvtTool, CP::FFJetSmearingTool, JetForwardPFlowJvtTool, MCTruthClassifier, InDet::InDetHardScatterSelectionTool, dRMatchingTool, xAOD::BPhysBlindingTool, CP::EgammaCalibrationAndSmearingTool, JetVertexTaggerTool, tauRecTools::TrackRNN, LVL1::L1CaloOfflineTriggerTowerTools, TauAnalysisTools::TauSelectionTool, JetRecTool, met::METAssociationTool, CP::TrackVertexAssociationTool, met::METRebuilder, met::METAssociator, xAOD::TrackIsolationTool, InDet::InDetTrackSelectionTool, egammaMVACalibTool, TrigConf::xAODConfigTool, JetCleaningTool, met::METCaloRegionsTool, ZDC::ZdcLEDAnalysisTool, CP::MuonCalibTool, LVL1::L1CaloCells2TriggerTowers, JetVertexFractionTool, LVL1BS::PpmByteStreamReadV1V2Tool, JetClusterer, JetForwardJvtToolBDT, CP::AsgFlagSelectionTool, TauTrackFinder, TauAnalysisTools::DiTauSelectionTool, JetClustererByVertex, JetBadChanCorrTool, xAOD::BPhysTrackVertexMapTool, JetModifiedMassDrop, xAOD::CaloIsolationTool, EnhancedBiasWeighter, BookkeeperTool, ZDC::RpdSubtractCentroidTool, InDet::InDetUsedInFitTrackDecoratorTool, CP::AsgPtEtaSelectionTool, TauAnalysisTools::BuildTruthTaus, top::EventSaverFlatNtuple, tauRecTools::TauTrackRNNClassifier, InDet::InDetSecVtxTrackSelectionTool, JetForwardJvtTool, JetPileupTag::JetVertexNNTagger, CP::EgammaIsGoodOQSelectionTool, CP::IsolationCloseByCorrectionTool, CP::MuonCalibIntScaleSmearTool, DiTauRecTools::DiTauIDVarCalculator, JetFinder, AsgElectronIsEMSelector, CP::MuonCalibIntHighpTSmearTool, CP::MuonCalibIntSagittaTool, DiTauRecTools::DiTauDiscriminantTool, met::METBuilderTool, CP::AsgMaskSelectionTool, ElectronPhotonVariableCorrectionBase, ECUtils::EventCleaningTool, TauAnalysisTools::TauTruthTrackMatchingTool, met::METSoftTermsTool, LVL1::L1CaloLArTowerEnergy, HiggsTruthCategoryTool, IDTPM::TrackRoiSelectionTool, TauAnalysisTools::CommonDiTauEfficiencyTool, HIJetConstituentSubtractionTool, JetTrackSumMomentsTool, JetGrooming::SoftDrop, HFORSelectionTool, JetQGTaggerVariableTool, JetTrackMomentsTool, met::METTruthTool, CP::BaseLinearFakeBkgTool, PMGTools::PMGSherpaVjetsSysTool, ClusterMatching::CaloClusterMatchingTool, AsgPhotonEfficiencyCorrectionTool, InDet::JetTrackFilterTool, asg::DataHandleTestTool, xAODMaker::FileMetaDataTool, CP::BaseFakeBkgTool, InDet::InclusiveTrackFilterTool, InDet::InDetTrackTruthFilterTool, HIJetClusterSubtractorTool, CP::MVATrackVertexAssociationTool, IDTPM::RoiSelectionTool, ElectronPhotonVariableCorrectionTool, JetCalibrationTool, JetCaloQualityTool, JetOriginCorrectionTool, InDet::InDetTrackBiasingTool, HIJetClusterIndexAssociationTool, TauWPDecorator, TrigGlobalEfficiencyCorrectionTool, ZdcRecChannelToolV2, IDTPM::TrackObjectSelectionTool, CP::LhoodMM_tools, FlavorTagDiscriminants::GNNTool, FlavorTagDiscriminants::MultifoldGNNTool, CP::MuonSelectionTool, TauAnalysisTools::CommonDiTauSmearingTool, JSSTaggerBase, ZDC::ZdcAnalysisTool, IDTPM::TrackQualitySelectionTool, AsgElectronLikelihoodTool, CP::JetQGTagger, CP::JetJvtEfficiency, LVL1::L1CaloFcal23Cells2RxMappingTool, ORUtils::OverlapRemovalTool, Analysis::JetQuarkLabel, Ringer::AsgRingerSelectorTool, InDet::InDetTrackSmearingTool, JetCopier, JetGrooming::JetGroomer, met::METPhotonAssociator, JetECPSFractionTool, JetPtAssociationTool, met::METElectronAssociator, met::METTauAssociator, PMGTools::PMGDecayProductsSelectionTool, WeightToolBase, HIJetDRAssociationTool, JetClusterMomentsTool, met::METJetAssocTool, TauVertexFinder, IDTPM::JsonPlotsDefReadTool, TauAnalysisTools::DiTauSmearingTool, JetDRTrackAssocTool, JetReclusterer, TauDecayModeNNClassifier, BDTVertexWeightCalculator, asg::UnitTestTool1, IDTPM::DeltaRMatchingToolBase< T, R >, AsgElectronSelectorTool, JetReclusteringTool, met::METMuonAssociator, TauPi0CreateROI, TauShotFinder, IDTPM::DeltaRMatchingToolBase< xAOD::TrackParticle, xAOD::TruthParticle >, IDTPM::DeltaRMatchingToolBase< xAOD::TruthParticle, xAOD::TrackParticle >, IDTPM::DeltaRMatchingToolBase< xAOD::TrackParticle >, ZdcRecChannelToolLucrod, PMGTools::PMGTruthWeightTool, JetVoronoiMomentsTool, Trig::MatchFromCompositeTool, asg::UnitTestTool3, IDTPM::TruthTrackMatchingTool, CP::ApplyFakeFactor, AsgElectronChargeIDSelectorTool, HIJetMaxOverMeanTool, PanTau::Tool_FeatureExtractor, TauElectronVetoVariables, CP::IsolationSelectionTool, WeightsAgregator, EL::UnitTestTool, FlavorTagDiscriminants::TrackClassifier, JetLArHVTool, ZDC::ZdcTrigValidTool, IDTPM::TrackTruthMatchingTool, HI::HIPileupTool, InDet::InDetTrackTruthOriginTool, JetHelper::VarTool, FlavorTagDiscriminants::DL2Tool, BTaggingSelectionTool, EnergyCorrelatorGeneralizedRatiosTool, EnergyCorrelatorGeneralizedTool, EnergyCorrelatorRatiosTool, EnergyCorrelatorTool, TauEleOverlapChecker, TauJetRNNEvaluator, asg::UnitTestTool2, JetTruthLabelingTool, ZDC::ZdcRecTool, HIJetConstituentModifierTool, TauCalibrateLC, TauGNNEvaluator, TauPi0ScoreCalculator, TauRecToolBase, Trig::TrigEgammaEmulationPrecisionElectronHypoTool, asg::UnitTestTool1A, PDFWeight, HIEventShapeJetIteration, HIJetSignificanceTool, CP::JetQGTaggerBDT, JetWidthTool, TauVertexVariables, Trig::TrigEgammaEmulationPrecisionPhotonHypoTool, Trig::TrigEgammaMatchingTool, Trig::R3IParticleRetrievalTool, IDTPM::TruthTrackQualitySelectionTool, JetPileupLabelingTool, JetFromPseudojet, JetTruthParticleSelectorTool, Trig::TrigEgammaEmulationBaseHypoTool, CP::ApplyE2YFakeRate, ParticleScaleFactorTool, InDet::InDetTrackSystematicsTool, JetCaloQualityToolFE, Trig::MatchingTool, Trig::R3MatchingTool, IDTPM::OfflineTrackQualitySelectionTool, JetParticleAssociation, Trig::TrigEgammaEmulationChain, Trig::TrigEgammaEmulationFastCaloHypoTool, AthOnnx::OnnxRuntimeInferenceTool, xAODtoHepMCTool, HIEventShapeMapTool, HI::HIVertexSelectionTool, JetHelper::HistoInput2D, TauVertexedClusterDecorator, Trig::IParticleRetrievalTool, CP::AsymptMatrixTool, HI::HIEventSelectionTool, FlavorTagDiscriminants::HbbTagTool, JetConstituentFrac, JetGroomMRatio, JetHelper::HistoInput1D, JetHelper::TextInputMCJES, ExtendTrackToLayerTool, Trig::TypedScoringTool, TrackTruthSelectionTool, HIUEModulatorTool, JSSWTopTaggerANN, CP::JvtEfficiencyToolBase, JetEMScaleMomTool, MvaTESVariableDecorator, TauAODLeptonRemovalTool, TauCombinedTES, ParticleJetDeltaRLabelTool, HIEventShapeSummaryTool, FlavorTagDiscriminants::BTagAugmenterTool, FlavorTagDiscriminants::VRJetOverlapDecoratorTool, JetCaloEnergies, ParticleJetGhostLabelTool, FlavorTagDiscriminants::BTagMuonAugmenterTool, MBTSTimeFilterTool, JSSWTopTaggerDNN, SmoothedTopTagger, MvaTESEvaluator, CP::IsolationLowPtPLVTool, Trig::DRScoringTool, Trig::EgammaDRScoringTool, SmoothedWZTagger, CP::FJvtEfficiencyTool, CP::JvtSelectionToolBase, CP::NNJvtSelectionTool, AthAsgExUnittestTool, CP::JvtSelectionTool, BTaggingSelectionJsonTool, CP::FJvtSelectionTool, CP::JvtEfficiencyTool, CP::NNJvtEfficiencyTool, BookkeeperDumperTool, TrigFastCalibWithRings, top::ScaleFactorRetriever, BTaggingEfficiencyTool, BTaggingTruthTaggingTool, MissingCellListTool, JetVoronoiDiagramHelpers::Diagram, FastJetInterfaceTool, met::METSystematicsTool, Trig::TrigEgammaEmulationToolMT, JetAttributeRatioSelector, top::GhostTrackSystematicsMaker, top::TopObjectSelection, BTaggingEigenVectorRecompositionTool, LVL1::TrigT1CaloLWHistogramToolV1, LVL1::TrigT1CaloLWHistogramTool, Trig::TrigDecisionTool, CP::PhotonPointingTool, met::METRecoTool, CP::PhotonVertexSelectionTool, top::KLFitterTool, ZdcByteStreamReadV1V2Tool, CP::PileupReweightingTool, top::JetObjectCollectionMaker, LVL1::L1CaloxAODOfflineTriggerTowerTools, RCJet, LVL1::TrigT1CaloMonErrorToolV1, met::METTrackFilterTool, LVL1::TrigT1CaloMonErrorTool, SoftKillerWeightTool, EventDensityTool, met::METSignificance, ParticleLevelRCJetObjectLoader, JetUncertaintiesTool, top::TopToolStore, CP::JetTileCorrectionTool, xAODMaker::TriggerMenuMetaDataTool, D3PD::D3PDMCTruthClassifier, top::ElectronInJetSubtractionCollectionMaker, top::MuonObjectCollectionMaker, JetConstituentModSequence, top::EgammaObjectCollectionMaker, HistoGroupBase, AsgPhotonIsEMSelector, JetAttributeSelector, top::ObjectCollectionMaker, TrackVertexAssociationTool, met::METRefinerTool, TauAnalysisTools::CommonSmearingTool, top::GlobalLeptonTriggerCalculator, top::ScaleFactorCalculator, top::TrackSystematicsMaker, top::ElectronScaleFactorCalculator, top::JetScaleFactorCalculator, top::MuonScaleFactorCalculator, PanTau::Tool_DetailsArranger, LVL1::L1CaloMonitoringCaloTool, top::EventSaverxAOD, LVL1::L1CaloTTIdTools, top::SoftMuonObjectCollectionMaker, top::TauObjectCollectionMaker, JetInputElRemovalTool, TauAnalysisTools::CommonEfficiencyTool, top::BTagScaleFactorCalculator, top::MissingETObjectCollectionMaker, PanTau::PanTauProcessor, xAODMaker::TruthMetaDataTool, top::PDFScaleFactorCalculator, top::PhotonScaleFactorCalculator, top::PseudoTopReco, EventShapeCopier, met::METJetTool, GoodRunsListSelectionTool, top::EventSaverxAODNext, top::FwdElectronScaleFactorCalculator, FSR::FsrPhotonTool, Trig::StaticBunchCrossingTool, ZMassConstraint::ConstraintFit, TauAnalysisTools::TauEfficiencyCorrectionsTool, PanTau::Tool_DecayModeDeterminator, PanTau::Tool_ModeDiscriminator, CP::ElectronLRTOverlapRemovalTool, HIClusterSubtraction, JetAttributeHisto, JetPseudojetCopier, met::METEgammaAssociator, Trig::xAODBunchCrossingTool, TauAnalysisTools::DiTauEfficiencyCorrectionsTool, TauAnalysisTools::DiTauTruthMatchingTool, TauAnalysisTools::TauSmearingTool, top::JetMETCPTools, met::METTruthAssociator, PanTau::Tool_InformationStore, HistoDefinitionTool, PanTau::Tool_InputConverter, JetBottomUpSoftDrop, JetRecursiveSoftDrop, PMGTools::PMGCrossSectionTool, JetSoftDrop, TrigEgammaMatchingToolMT, DiTauMassTools::MissingMassToolV2, top::TauScaleFactorCalculator, top::TriggerCPTools, JetConstituentsRetriever, VoronoiWeightTool, top::GhostTrackCPTools, JetCaloCellQualityTool, JetContainerHistoFiller, ChargedHadronSubtractionTool, JetTrackSelectionTool, met::METRegionsTool, met::METSoftAssociator, PanTau::Tool_TauConstituentGetter, top::EventCleaningSelection, ConstituentSubtractorTool, top::EgammaCPTools, top::OtherCPTools, top::TopEventMaker, JetHistoBase, JetSelectorAttributeRunII, JetSplitter, CaloClusterConstituentsOrigin, JetTrackSelectionTool2, SimpleJetTrackSelectionTool, CP::MuonLRTOverlapRemovalTool, top::FlavorTaggingCPTools, top::TauCPTools, HistosForJetSelection, JetPruner, JetToolRunner, JetUsedInFitTrackDecoratorTool, top::TrackCPTools, JetTrimmer, NSubjettinessRatiosTool, CP::MuonEfficiencyScaleFactors, top::PileupScaleFactorCalculator, top::MuonCPTools, JetConstitFourMomTool, NSubjettinessTool, ZdcDataAccessV2, JetPseudojetRetriever, LVL1BS::TrigT1CaloDataAccessV2, PanTau::Tool_TauConstituentSelector, CopyTruthParticles, top::IsolationCPTools, top::OverlapRemovalCPTools, ClusterAtEMScaleTool, CP::IsolationHelper, top::BoostedTaggingCPTools, AsgDeadHVCellRemovalTool, ConstitTimeCutTool, Analysis::JetConeLabeling, JetSelectorAttribute, HIJetUEMonitoring, HIEfficiencyResponseHistos, JetSubStructureMomentToolsBase, AsgHelloTool, CopyTruthJetParticles, LeadingJetsRelations, EfficiencyResponseHistos, and JetEventSelector.

Definition at line 133 of file AsgTool.h.

133 { return StatusCode::SUCCESS; }

◆ inputContainerNames()

int IJetExecuteTool::inputContainerNames ( std::vector< std::string > &  connames)
virtualinherited

Method to return the list of input containers.

The names of required input containers are appended to connames. Returns nonzero for error. Default returns 0 and adds no names.

Reimplemented in JetRecTool.

Definition at line 11 of file IJetExecuteTool.cxx.

11  {
12  return 0;
13 }

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

◆ object_label() [1/2]

string JetDumper::object_label ( const fastjet::PseudoJet &  jet,
const std::string &  label 
) const
private

Definition at line 109 of file JetDumper.cxx.

109  {
110  string sout;
111  if ( jet.has_user_info<IConstituentUserInfo>() ) {
112  const IConstituentUserInfo& cui = jet.user_info<IConstituentUserInfo>();
113  return cui.label() + " pseudojet";
114  } else {
115  return "No-CUI pseudojet";
116  }
117  return label;
118 }

◆ object_label() [2/2]

template<typename T >
std::string JetDumper::object_label ( const T *  pjet,
const std::string &  label 
) const
private

Definition at line 356 of file JetDumper.h.

356  {
357  return label;
358 }

◆ outputContainerNames()

int IJetExecuteTool::outputContainerNames ( std::vector< std::string > &  connames)
virtualinherited

Method to return the list of output containers.

The names of produced output containers are appended to connames. Returns nonzero for error. Default returns 0 and adds no names.

Reimplemented in JetRecTool.

Definition at line 17 of file IJetExecuteTool.cxx.

17  {
18  return 0;
19 }

◆ 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 JetDumper::print ( ) const
virtual

Print the state of the tool.

Reimplemented from asg::AsgTool.

Definition at line 98 of file JetDumper.cxx.

98  {
99  std::string myname = "JetDumper::print: ";
100  ATH_MSG_INFO("Properties for JetDumper " << name());
101  ATH_MSG_INFO(" Container: " << m_cname);
102  ATH_MSG_INFO(" Detail: " << m_detail);
103  ATH_MSG_INFO(" LineDetail: " << m_linedetail);
104  ATH_MSG_INFO(" Max # objects: " << m_maxobj);
105 }

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

NameList JetDumper::m_apmoms
private

Vector<float> moments.

Definition at line 163 of file JetDumper.h.

◆ m_bmoms

NameList JetDumper::m_bmoms
private

Int moments.

Definition at line 156 of file JetDumper.h.

◆ m_cbmoms

NameList JetDumper::m_cbmoms
private

Bool moments.

Definition at line 157 of file JetDumper.h.

◆ m_cname

std::string JetDumper::m_cname
private

Definition at line 148 of file JetDumper.h.

◆ m_detail

int JetDumper::m_detail
private

Definition at line 149 of file JetDumper.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_elmoms

NameList JetDumper::m_elmoms
private

Four-vector moments.

Definition at line 160 of file JetDumper.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_floatmax

float JetDumper::m_floatmax
private

Definition at line 153 of file JetDumper.h.

◆ m_fmoms

NameList JetDumper::m_fmoms
private

Definition at line 154 of file JetDumper.h.

◆ m_fvmoms

NameList JetDumper::m_fvmoms
private

String moments.

Definition at line 159 of file JetDumper.h.

◆ m_imoms

NameList JetDumper::m_imoms
private

Float moments.

Definition at line 155 of file JetDumper.h.

◆ m_linedetail

int JetDumper::m_linedetail
private

Definition at line 150 of file JetDumper.h.

◆ m_maxobj

int JetDumper::m_maxobj
private

Definition at line 152 of file JetDumper.h.

◆ m_prefix

int JetDumper::m_prefix
private

Definition at line 151 of file JetDumper.h.

◆ m_smoms

NameList JetDumper::m_smoms
private

Bool stored as char moments.

Definition at line 158 of file JetDumper.h.

◆ m_varHandleArraysDeclared

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

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vfmoms

NameList JetDumper::m_vfmoms
private

Vector<int> moments.

Definition at line 162 of file JetDumper.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.

◆ m_vimoms

NameList JetDumper::m_vimoms
private

Element link moments.

Definition at line 161 of file JetDumper.h.


The documentation for this class was generated from the following files:
beamspotman.r
def r
Definition: beamspotman.py:676
xAOD::Jet_v1::getPseudoJet
const fastjet::PseudoJet * getPseudoJet() const
Definition: Jet_v1.cxx:236
JetDumper::m_floatmax
float m_floatmax
Definition: JetDumper.h:153
checkFileSG.line
line
Definition: checkFileSG.py:75
xAOD::MuonSegment_v1::x
float x() const
test_pyathena.px
px
Definition: test_pyathena.py:18
StateLessPT_NewConfig.proxy
proxy
Definition: StateLessPT_NewConfig.py:392
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
JetDumper::m_apmoms
NameList m_apmoms
Vector<float> moments.
Definition: JetDumper.h:163
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:64
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
JetDumper::m_maxobj
int m_maxobj
Definition: JetDumper.h:152
JetDumper::MSEL
ElementLink< xAOD::MuonSegmentContainer > MSEL
Definition: JetDumper.h:67
JetDumper::getAssociatedLinks
void getAssociatedLinks(TObj *pobj, std::string name, APELVector &val) const
Definition: JetDumper.h:452
AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
PlotCalibFromCool.label
label
Definition: PlotCalibFromCool.py:78
JetDumper::MSELVector
std::vector< MSEL > MSELVector
Definition: JetDumper.h:68
test_pyathena.pt
pt
Definition: test_pyathena.py:11
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
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::MuonSegment_v1
Class describing a MuonSegment.
Definition: MuonSegment_v1.h:33
JetDumper::object_label
std::string object_label(const T *pjet, const std::string &label) const
Definition: JetDumper.h:356
xAOD::JetConstituentVector::size
size_t size() const
number of constituents
Definition: JetConstituentVector.cxx:102
JetDumper::m_vfmoms
NameList m_vfmoms
Vector<int> moments.
Definition: JetDumper.h:162
JetDumper::m_cname
std::string m_cname
Definition: JetDumper.h:148
jet::IConstituentUserInfo::particle
virtual const xAOD::IParticle * particle() const =0
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
JetDumper::m_detail
int m_detail
Definition: JetDumper.h:149
xAOD::Jet_v1::getConstituents
JetConstituentVector getConstituents() const
Return a vector of consituents. The object behaves like vector<const IParticle*>. See JetConstituentV...
Definition: Jet_v1.cxx:147
xAOD::IParticle
Class providing the definition of the 4-vector interface.
Definition: Event/xAOD/xAODBase/xAODBase/IParticle.h:40
x
#define x
empty
bool empty(TH1 *h)
Definition: computils.cxx:294
xAOD::Jet_v1::getAttribute
bool getAttribute(AttributeID type, T &value) const
Retrieve attribute moment by enum.
JetDumper::m_prefix
int m_prefix
Definition: JetDumper.h:151
JetDumper::m_cbmoms
NameList m_cbmoms
Bool moments.
Definition: JetDumper.h:157
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
python.iconfTool.models.loaders.level
level
Definition: loaders.py:20
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
JetDumper::get_moment
void get_moment(TObj *pobj, std::string name, TMom &val) const
Definition: JetDumper.h:417
JetDumper::m_vimoms
NameList m_vimoms
Element link moments.
Definition: JetDumper.h:161
xAOD::Jet_v1::getAssociatedObjects
std::vector< const T * > getAssociatedObjects(const std::string &name) const
get associated objects as a vector<object> this compact form throws an exception if the object is not...
AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Definition: AthCommonDataStore.h:85
JetDumper::m_bmoms
NameList m_bmoms
Int moments.
Definition: JetDumper.h:156
JetDumper::get_moment_as_string
std::string get_moment_as_string(const TObj &obj, std::string name) const
Definition: JetDumper.h:462
WriteCellNoiseToCool.ival
ival
Definition: WriteCellNoiseToCool.py:337
asg::AsgTool::AsgTool
AsgTool(const std::string &name)
Constructor specifying the tool instance's name.
Definition: AsgTool.cxx:58
jet
Definition: JetCalibTools_PlotJESFactors.cxx:23
AthCommonDataStore
Definition: AthCommonDataStore.h:52
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
z
#define z
jet::IConstituentUserInfo::isGhost
virtual bool isGhost() const
Returns true if this constituent is a ghost.
Definition: IConstituentUserInfo.cxx:26
JetDumper::m_smoms
NameList m_smoms
Bool stored as char moments.
Definition: JetDumper.h:158
JetDumper::extra_info
void extra_info(const T *, std::ostream &out, int) const
Definition: JetDumper.h:476
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
sel
sel
Definition: SUSYToolsTester.cxx:92
jet::IConstituentUserInfo::index
virtual Index index() const
Definition: IConstituentUserInfo.cxx:14
plotIsoValidation.el
el
Definition: plotIsoValidation.py:197
jet::IConstituentUserInfo::label
virtual Label label() const =0
python.xAODType.dummy
dummy
Definition: xAODType.py:4
MSG::name
const std::string & name(Level lvl)
Convenience function for translating message levels to strings.
Definition: MsgLevel.cxx:19
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
JetDumper::m_elmoms
NameList m_elmoms
Four-vector moments.
Definition: JetDumper.h:160
JetDumper::m_linedetail
int m_linedetail
Definition: JetDumper.h:150
SG::AuxElement::index
size_t index() const
Return the index of this element within its container.
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
JetDumper::MSVector
std::vector< const xAOD::MuonSegment * > MSVector
Definition: JetDumper.h:66
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
Amg::py
@ py
Definition: GeoPrimitives.h:39
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
JetDumper::APEL
ElementLink< xAOD::IParticleContainer > APEL
Definition: JetDumper.h:64
JetDumper::APVector
std::vector< const xAOD::IParticle * > APVector
Definition: JetDumper.h:63
JetDumper::dump_collection
int dump_collection(const TList *pjets, const std::string &objtypename="Unknown") const
Definition: JetDumper.h:369
JetDumper::m_fmoms
NameList m_fmoms
Definition: JetDumper.h:154
xAOD::MuonSegment_v1::z
float z() const
Returns the y position.
JetDumper::FourVector
xAOD::JetFourMom_t FourVector
Definition: JetDumper.h:62
PseudoJetVector
std::vector< fastjet::PseudoJet > PseudoJetVector
Definition: JetConstituentFiller.cxx:17
Name
JetDumper::Name Name
Definition: JetDumper.cxx:19
a
TList * a
Definition: liststreamerinfos.cxx:10
y
#define y
h
xAOD::MuonSegment_v1::y
float y() const
Returns the x position.
NameList
IJetConstituentsRetriever::NameList NameList
Definition: JetConstituentsRetriever.cxx:22
jet::IConstituentUserInfo
Definition: IConstituentUserInfo.h:26
Pythia8_RapidityOrderMPI.val
val
Definition: Pythia8_RapidityOrderMPI.py:14
AthCommonMsg< AlgTool >::msg
MsgStream & msg() const
Definition: AthCommonMsg.h:24
JetDumper::getAssociatedParticles
void getAssociatedParticles(TObj *pobj, std::string name, APVector &val) const
Definition: JetDumper.h:449
dq_make_web_display.reference
reference
Definition: dq_make_web_display.py:44
JetDumper::APELVector
std::vector< APEL > APELVector
Definition: JetDumper.h:65
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:616
JetDumper::m_imoms
NameList m_imoms
Float moments.
Definition: JetDumper.h:155
JetDumper::dump_object_after_prefix
int dump_object_after_prefix(const T *pjet, const std::string &objtypename) const
Definition: JetDumper.h:183
declareProperty
#define declareProperty(n, p, h)
Definition: BaseFakeBkgTool.cxx:15
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:790
SG::AuxElement::container
const SG::AuxVectorData * container() const
Return the container holding this element.
xAOD::Jet_v1::numConstituents
size_t numConstituents() const
Number of constituents in this jets (this is valid even when reading a file where the constituents ha...
Definition: Jet_v1.cxx:153
SG::DataProxy
Definition: DataProxy.h:44
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
TSU::T
unsigned long long T
Definition: L1TopoDataTypes.h:35
fitman.k
k
Definition: fitman.py:528
PlotCalibFromCool.vals
vals
Definition: PlotCalibFromCool.py:474
JetDumper::m_fvmoms
NameList m_fvmoms
String moments.
Definition: JetDumper.h:159