CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
MultiplicityPair< T1, T2 > Class Template Reference

#include <Multiplicities.h>

Public Member Functions

void getEvent (const edm::Event &iEvent, const edm::EventSetup &iSetup)
 
int mult1 () const
 
int mult2 () const
 
 MultiplicityPair ()
 
 MultiplicityPair (const edm::ParameterSet &iConfig, edm::ConsumesCollector &&iC)
 
 MultiplicityPair (const edm::ParameterSet &iConfig, edm::ConsumesCollector &iC)
 

Private Attributes

T1 m_multiplicity1
 
T2 m_multiplicity2
 

Detailed Description

template<class T1, class T2>
class MultiplicityPair< T1, T2 >

Definition at line 117 of file Multiplicities.h.

Constructor & Destructor Documentation

◆ MultiplicityPair() [1/3]

template<class T1 , class T2 >
MultiplicityPair< T1, T2 >::MultiplicityPair ( )

Definition at line 133 of file Multiplicities.h.

◆ MultiplicityPair() [2/3]

template<class T1 , class T2 >
MultiplicityPair< T1, T2 >::MultiplicityPair ( const edm::ParameterSet iConfig,
edm::ConsumesCollector &&  iC 
)

Definition at line 136 of file Multiplicities.h.

137  : m_multiplicity1(iConfig.getParameter<edm::ParameterSet>("firstMultiplicityConfig"), iC),
138  m_multiplicity2(iConfig.getParameter<edm::ParameterSet>("secondMultiplicityConfig"), iC) {}
T getParameter(std::string const &) const
Definition: ParameterSet.h:307

◆ MultiplicityPair() [3/3]

template<class T1 , class T2 >
MultiplicityPair< T1, T2 >::MultiplicityPair ( const edm::ParameterSet iConfig,
edm::ConsumesCollector iC 
)

Definition at line 140 of file Multiplicities.h.

141  : m_multiplicity1(iConfig.getParameter<edm::ParameterSet>("firstMultiplicityConfig"), iC),
142  m_multiplicity2(iConfig.getParameter<edm::ParameterSet>("secondMultiplicityConfig"), iC) {}
T getParameter(std::string const &) const
Definition: ParameterSet.h:307

Member Function Documentation

◆ getEvent()

template<class T1 , class T2 >
void MultiplicityPair< T1, T2 >::getEvent ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)

Definition at line 145 of file Multiplicities.h.

145  {
146  m_multiplicity1.getEvent(iEvent, iSetup);
147  m_multiplicity2.getEvent(iEvent, iSetup);
148 }
int iEvent
Definition: GenABIO.cc:224

◆ mult1()

template<class T1 , class T2 >
int MultiplicityPair< T1, T2 >::mult1 ( ) const

Definition at line 151 of file Multiplicities.h.

151  {
152  return m_multiplicity1.mult();
153 }

◆ mult2()

template<class T1 , class T2 >
int MultiplicityPair< T1, T2 >::mult2 ( ) const

Definition at line 156 of file Multiplicities.h.

156  {
157  return m_multiplicity2.mult();
158 }

Member Data Documentation

◆ m_multiplicity1

template<class T1, class T2>
T1 MultiplicityPair< T1, T2 >::m_multiplicity1
private

Definition at line 128 of file Multiplicities.h.

◆ m_multiplicity2

template<class T1, class T2>
T2 MultiplicityPair< T1, T2 >::m_multiplicity2
private

Definition at line 129 of file Multiplicities.h.