ATLAS Offline Software
Public Member Functions | Protected Attributes | List of all members
jet::AttvsAttFiller< T, HTYPE > Struct Template Reference
Inheritance diagram for jet::AttvsAttFiller< T, HTYPE >:
Collaboration diagram for jet::AttvsAttFiller< T, HTYPE >:

Public Member Functions

 AttvsAttFiller (const std::string &att1, const std::string &att2, HTYPE *h, bool gev1, bool gev2)
 
virtual void fill (const xAOD::Jet &j, float weight)
 
virtual bool isValid (const xAOD::Jet &j)
 

Protected Attributes

Accessor< T > m_accessor2
 
const float m_toGeV2
 
Accessor< T > m_accessor
 
HTYPE * m_h
 
const float m_toGeV1
 

Detailed Description

template<typename T, typename HTYPE>
struct jet::AttvsAttFiller< T, HTYPE >

Definition at line 85 of file JetAttributeHisto.cxx.

Constructor & Destructor Documentation

◆ AttvsAttFiller()

template<typename T , typename HTYPE >
jet::AttvsAttFiller< T, HTYPE >::AttvsAttFiller ( const std::string &  att1,
const std::string &  att2,
HTYPE *  h,
bool  gev1,
bool  gev2 
)
inline

Definition at line 86 of file JetAttributeHisto.cxx.

86 : AccessorAndHisto2<T,T, HTYPE>(att1,att2,h, gev1, gev2) {}

Member Function Documentation

◆ fill()

template<typename T , typename HTYPE >
virtual void jet::AttvsAttFiller< T, HTYPE >::fill ( const xAOD::Jet j,
float  weight 
)
inlinevirtual

Reimplemented from jet::HistoFiller.

Definition at line 88 of file JetAttributeHisto.cxx.

88 {this->m_h->Fill( this->m_accessor(j)*scale1, this->m_accessor2(j)*scale2, weight ); };

◆ isValid()

template<typename T , typename HTYPE >
virtual bool jet::AttvsAttFiller< T, HTYPE >::isValid ( const xAOD::Jet j)
inlinevirtual

Reimplemented from jet::HistoFiller.

Definition at line 89 of file JetAttributeHisto.cxx.

89 {return (this->m_accessor.isAvailable(j))&&(this->m_accessor2.isAvailable(j));}

Member Data Documentation

◆ m_accessor

Accessor< T > jet::AccessorAndHisto< T , HTYPE >::m_accessor
protectedinherited

Definition at line 26 of file JetAttributeHisto.cxx.

◆ m_accessor2

Accessor< T > jet::AccessorAndHisto2< T , T , HTYPE >::m_accessor2
protectedinherited

Definition at line 35 of file JetAttributeHisto.cxx.

◆ m_h

HTYPE* jet::AccessorAndHisto< T , HTYPE >::m_h
protectedinherited

Definition at line 27 of file JetAttributeHisto.cxx.

◆ m_toGeV1

const float jet::AccessorAndHisto< T , HTYPE >::m_toGeV1
protectedinherited

Definition at line 28 of file JetAttributeHisto.cxx.

◆ m_toGeV2

const float jet::AccessorAndHisto2< T , T , HTYPE >::m_toGeV2
protectedinherited

Definition at line 36 of file JetAttributeHisto.cxx.


The documentation for this struct was generated from the following file:
scale2
#define scale2
Definition: JetAttributeHisto.cxx:42
dqt_zlumi_pandas.weight
int weight
Definition: dqt_zlumi_pandas.py:189
jet::AccessorAndHisto2< T, T, HTYPE >::m_accessor2
Accessor< T > m_accessor2
Definition: JetAttributeHisto.cxx:35
jet::AccessorAndHisto< T, HTYPE >::m_h
HTYPE * m_h
Definition: JetAttributeHisto.cxx:27
h
jet::AccessorAndHisto2< T, T, HTYPE >
jet::AccessorAndHisto< T, HTYPE >::m_accessor
Accessor< T > m_accessor
Definition: JetAttributeHisto.cxx:26
SG::ConstAccessor::isAvailable
bool isAvailable(const ELT &e) const
Test to see if this variable exists in the store.
scale1
#define scale1
Definition: JetAttributeHisto.cxx:41