ATLAS Offline Software
Loading...
Searching...
No Matches
jet::VecAttFiller< T > Struct Template Reference
Inheritance diagram for jet::VecAttFiller< T >:
Collaboration diagram for jet::VecAttFiller< T >:

Public Member Functions

 VecAttFiller (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< std::vector< T > > m_accessor
TH1F * m_h
const float m_toGeV1

Detailed Description

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

Definition at line 56 of file JetAttributeHisto.cxx.

Constructor & Destructor Documentation

◆ VecAttFiller()

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

Definition at line 57 of file JetAttributeHisto.cxx.

Member Function Documentation

◆ fill()

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

Reimplemented from jet::HistoFiller.

Definition at line 59 of file JetAttributeHisto.cxx.

59 {
60 const std::vector<T> & vec = this->m_accessor( j);
61 for(const T& v : vec ) this->m_h->Fill( v *scale1, weight );
62 }

◆ isValid()

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

Reimplemented from jet::HistoFiller.

Definition at line 63 of file JetAttributeHisto.cxx.

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

Member Data Documentation

◆ m_accessor

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

Definition at line 26 of file JetAttributeHisto.cxx.

◆ m_h

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

Definition at line 27 of file JetAttributeHisto.cxx.

◆ m_toGeV1

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

Definition at line 28 of file JetAttributeHisto.cxx.


The documentation for this struct was generated from the following file: