Main Page
Namespaces
Classes
Package Documentation
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
7
namespace
egHLT
{
8
template
<
class
T>
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
};
18
}
19
#endif
egHLT::ParticlePair
Definition:
EgHLTParticlePair.h:8
egHLT::ParticlePair::mass
float mass() const
Definition:
EgHLTParticlePair.h:15
mag
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
Definition:
Basic3DVectorLD.h:156
egHLT::ParticlePair::~ParticlePair
~ParticlePair()=default
egHLT::ParticlePair::part2
const T & part2
Definition:
EgHLTParticlePair.h:10
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:66
egHLT::ParticlePair::part1
const T & part1
Definition:
EgHLTParticlePair.h:9
Generated for CMSSW Reference Manual by
1.8.11