-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLepton.h
More file actions
53 lines (43 loc) · 1.05 KB
/
Lepton.h
File metadata and controls
53 lines (43 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#pragma once
#include "CandidateWithID.h"
namespace pec
{
/**
* \class Lepton
* \brief Base class for charged leptons
*/
class Lepton: public CandidateWithID
{
public:
/// Constructor with no parameters
Lepton() noexcept;
public:
/// Resets the object to a state right after the default initialisation
virtual void Reset() override;
/**
* \brief Sets lepton charge
*
* Checks only the sign of the argument. If it is zero, throws an exception.
*/
void SetCharge(int charge);
/// Sets relative isolation
void SetRelIso(float relIso);
/**
* \brief Returns electric charge of the lepton
*
* The returned value is +1 or -1.
*/
int Charge() const;
/// Returns relative isolation
float RelIso() const;
private:
/**
* \brief Electric charge
*
* True for negative charge (particle), false for positive charge (antiparticle).
*/
Bool_t charge;
/// Relative isolation
Float_t relIso;
};
} // end of namespace pec