CMS 3D CMS Logo

Multiplicities.h
Go to the documentation of this file.
1 #ifndef DPGAnalysis_SiStripTools_Multiplicities_H
2 #define DPGAnalysis_SiStripTools_Multiplicities_H
3 
5  class Multiplicity {
6  public:
7  explicit Multiplicity(int iMult) : m_mult{iMult} {}
8  int mult() const { return m_mult; }
9 
10  private:
11  int m_mult;
12  };
13 
14  template <class T1, class T2>
16  public:
17  MultiplicityPair(T1 const& i1, T2 const& i2) : m_multiplicity1(i1), m_multiplicity2(i2) {}
18 
19  int mult1() const;
20  int mult2() const;
21 
22  private:
25  };
26 
27  template <class T1, class T2>
29  return m_multiplicity1.mult();
30  }
31 
32  template <class T1, class T2>
34  return m_multiplicity2.mult();
35  }
36 } // namespace sistriptools::values
37 #endif // DPGAnalysis_SiStripTools_Multiplicities_H
MultiplicityPair(T1 const &i1, T2 const &i2)