ATLAS Offline Software
Public Member Functions | Protected Attributes | List of all members
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
 
TH1Fm_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.

57 : AccessorAndHisto<std::vector<T>, TH1F>(attname, h, gev1) {}

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:
vec
std::vector< size_t > vec
Definition: CombinationsGeneratorTest.cxx:12
dqt_zlumi_pandas.weight
int weight
Definition: dqt_zlumi_pandas.py:200
jet::AccessorAndHisto< std::vector< T >, TH1F >::m_h
TH1F * m_h
Definition: JetAttributeHisto.cxx:27
extractSporadic.h
list h
Definition: extractSporadic.py:97
jet::AccessorAndHisto
Definition: JetAttributeHisto.cxx:22
python.PyAthena.v
v
Definition: PyAthena.py:157
jet::AccessorAndHisto< std::vector< T >, TH1F >::m_accessor
Accessor< std::vector< 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.
python.TrigEgammaMonitorHelper.TH1F
def TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
Definition: TrigEgammaMonitorHelper.py:24
scale1
#define scale1
Definition: JetAttributeHisto.cxx:41