ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
ECCE @ EIC Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
blob
master
CI
Core
include
Acts
EventData
detail
ChargePolicy.hpp
Measurement.hpp
MeasurementHelpers.hpp
MultiTrajectory.hpp
MultiTrajectory.ipp
NeutralParameters.hpp
ParameterConcept.hpp
ParameterSet.hpp
SingleBoundTrackParameters.hpp
SingleCurvilinearTrackParameters.hpp
SingleFreeParameters.hpp
SingleTrackParameters.hpp
SourceLinkConcept.hpp
TrackParameters.hpp
TrackState.hpp
TrackStateSorters.hpp
Fitter
Geometry
MagneticField
Material
Propagator
Seeding
Surfaces
TrackFinder
Utilities
Vertexing
Visualization
src
doc
Examples
Fatras
Plugins
Tests
thirdparty
analysis
coresoftware
Doxygen_Assist
ecce-detectors
fun4all_eicdetectors
geant4
macros
online_distribution
tutorials
doxygen_mainpage.h
File Members
External Links
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
ChargePolicy.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file ChargePolicy.hpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 2016-2018 CERN for the benefit of the Acts project
4
//
5
// This Source Code Form is subject to the terms of the Mozilla Public
6
// License, v. 2.0. If a copy of the MPL was not distributed with this
7
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
8
9
#pragma once
10
namespace
Acts {
11
24
class
ChargedPolicy
{
25
public
:
29
ChargedPolicy
(
double
charge
) :
m_dCharge
(charge) {}
30
34
bool
operator==
(
const
ChargedPolicy
& rhs)
const
{
35
return
m_dCharge
== rhs.
m_dCharge
;
36
}
37
41
bool
operator!=
(
const
ChargedPolicy
& rhs)
const
{
return
!(*
this
== rhs); }
42
46
double
getCharge
()
const
{
return
m_dCharge
; }
47
51
void
setCharge
(
double
charge
) {
m_dCharge
=
charge
; }
52
54
void
flipSign
() {
m_dCharge
*= -1.; }
55
56
private
:
57
double
m_dCharge
;
58
};
59
72
class
NeutralPolicy
{
73
public
:
77
bool
operator==
(
const
NeutralPolicy
&
/*other*/
)
const
{
return
true
; }
78
82
bool
operator!=
(
const
NeutralPolicy
& rhs)
const
{
return
!(*
this
== rhs); }
83
87
double
getCharge
()
const
{
return
0.; }
88
};
89
}
// namespace Acts
acts
blob
master
Core
include
Acts
EventData
ChargePolicy.hpp
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:20
using
1.8.2 with
ECCE GitHub integration