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

Public Member Functions

 AttFiller (const std::string &attname, TH1F *h, bool gev1)
 
virtual void fill (const xAOD::Jet &j, float weight)
 
virtual bool isValid (const xAOD::Jet &j)
 

Protected Attributes

Accessor< T > m_accessor
 
TH1Fm_h
 
const float m_toGeV1
 

Detailed Description

template<typename T>
struct jet::AttFiller< T >

Definition at line 47 of file JetAttributeHisto.cxx.

Constructor & Destructor Documentation

◆ AttFiller()

template<typename T >
jet::AttFiller< T >::AttFiller ( const std::string &  attname,
TH1F h,
bool  gev1 
)
inline

Definition at line 48 of file JetAttributeHisto.cxx.

48 : AccessorAndHisto<T, TH1F>(attname, h, gev1) {}

Member Function Documentation

◆ fill()

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

Reimplemented from jet::HistoFiller.

Definition at line 50 of file JetAttributeHisto.cxx.

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

◆ isValid()

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

Reimplemented from jet::HistoFiller.

Definition at line 51 of file JetAttributeHisto.cxx.

51 {return this->m_accessor.isAvailable(j);}

Member Data Documentation

◆ m_accessor

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

Definition at line 26 of file JetAttributeHisto.cxx.

◆ m_h

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

Definition at line 27 of file JetAttributeHisto.cxx.

◆ m_toGeV1

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

Definition at line 28 of file JetAttributeHisto.cxx.


The documentation for this struct was generated from the following file:
dqt_zlumi_pandas.weight
int weight
Definition: dqt_zlumi_pandas.py:200
jet::AccessorAndHisto< T, TH1F >::m_h
TH1F * m_h
Definition: JetAttributeHisto.cxx:27
h
jet::AccessorAndHisto< T, TH1F >
jet::AccessorAndHisto< T, TH1F >::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