DQMOffline
Trigger
interface
EgHLTParticlePair.h
Go to the documentation of this file.
1
#ifndef DQMOFFLINE_TRIGGER_EGHLTPARTICLEPAIR
2
#define DQMOFFLINE_TRIGGER_EGHLTPARTICLEPAIR
3
4
//a useful struct for defining a pair of particles
5
6
namespace
egHLT
{
7
template
<
class
T>
8
struct
ParticlePair
{
9
const
T
&
part1
;
10
const
T
&
part2
;
11
12
ParticlePair
(
const
T
& particle1,
const
T
& particle2) :
part1
(particle1),
part2
(particle2) {}
13
~ParticlePair
() =
default
;
14
15
float
mass
()
const
{
return
(
part1
.p4() +
part2
.p4()).
mag
(); }
16
};
17
}
// namespace egHLT
18
#endif
egHLT::ParticlePair
Definition:
EgHLTParticlePair.h:8
egHLT::ParticlePair::~ParticlePair
~ParticlePair()=default
egHLT::ParticlePair::part2
const T & part2
Definition:
EgHLTParticlePair.h:10
mag
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
Definition:
Basic3DVectorLD.h:127
egHLT::ParticlePair::ParticlePair
ParticlePair(const T &particle1, const T &particle2)
Definition:
EgHLTParticlePair.h:12
egHLT
Definition:
EgHLTBinData.h:10
T
long double T
Definition:
Basic3DVectorLD.h:48
egHLT::ParticlePair::part1
const T & part1
Definition:
EgHLTParticlePair.h:9
egHLT::ParticlePair::mass
float mass() const
Definition:
EgHLTParticlePair.h:15
Generated for CMSSW Reference Manual by
1.8.14