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
analysis
coresoftware
blob
master
calibrations
generators
offline
database
framework
packages
CaloBase
CaloReco
centrality
ClusterIso
compressor
Half
HelixHough
intt
jetbackground
KFParticle_sPHENIX
micromegas
mvtx
NodeDump
particleflow
PHField
PHGenFitPkg
PHGeometry
PHTpcTracker
tpc
tpccalib
tpcdaq
trackbase
ActsSurfaceMaps.cc
ActsSurfaceMaps.h
ActsTrackingGeometry.h
CMFlashCluster.h
CMFlashClusterContainer.h
CMFlashClusterContainerLinkDef.h
CMFlashClusterContainerv1.cc
CMFlashClusterContainerv1.h
CMFlashClusterContainerv1LinkDef.h
CMFlashClusterLinkDef.h
CMFlashClusterv1.cc
CMFlashClusterv1.h
CMFlashClusterv1LinkDef.h
TpcSeedTrackMap.cc
TpcSeedTrackMap.h
TpcSeedTrackMapLinkDef.h
TpcSeedTrackMapv1.cc
TpcSeedTrackMapv1.h
TpcSeedTrackMapv1LinkDef.h
TrkrCluster.h
TrkrClusterContainer.cc
TrkrClusterContainer.h
TrkrClusterContainerLinkDef.h
TrkrClusterContainerv1.cc
TrkrClusterContainerv1.h
TrkrClusterContainerv1LinkDef.h
TrkrClusterContainerv2.cc
TrkrClusterContainerv2.h
TrkrClusterContainerv2LinkDef.h
TrkrClusterContainerv3.cc
TrkrClusterContainerv3.h
TrkrClusterContainerv3LinkDef.h
TrkrClusterHitAssoc.cc
TrkrClusterHitAssoc.h
TrkrClusterHitAssocLinkDef.h
TrkrClusterHitAssocv1.cc
TrkrClusterHitAssocv1.h
TrkrClusterHitAssocv1LinkDef.h
TrkrClusterHitAssocv2.cc
TrkrClusterHitAssocv2.h
TrkrClusterHitAssocv2LinkDef.h
TrkrClusterHitAssocv3.cc
TrkrClusterHitAssocv3.h
TrkrClusterHitAssocv3LinkDef.h
TrkrClusterIterationMap.cc
TrkrClusterIterationMap.h
TrkrClusterIterationMapLinkDef.h
TrkrClusterIterationMapv1.cc
TrkrClusterIterationMapv1.h
TrkrClusterIterationMapv1LinkDef.h
TrkrClusterLinkDef.h
TrkrClusterv1.cc
TrkrClusterv1.h
TrkrClusterv1LinkDef.h
TrkrClusterv2.cc
TrkrClusterv2.h
TrkrClusterv2LinkDef.h
TrkrClusterv3.cc
TrkrClusterv3.h
TrkrClusterv3LinkDef.h
TrkrDefs.cc
TrkrDefs.h
TrkrHit.h
TrkrHitLinkDef.h
TrkrHitSet.cc
TrkrHitSet.h
TrkrHitSetContainer.cc
TrkrHitSetContainer.h
TrkrHitSetContainerLinkDef.h
TrkrHitSetContainerv1.cc
TrkrHitSetContainerv1.h
TrkrHitSetContainerv1LinkDef.h
TrkrHitSetLinkDef.h
TrkrHitSetv1.cc
TrkrHitSetv1.h
TrkrHitSetv1LinkDef.h
TrkrHitTruthAssoc.h
TrkrHitTruthAssocLinkDef.h
TrkrHitTruthAssocv1.cc
TrkrHitTruthAssocv1.h
TrkrHitTruthAssocv1LinkDef.h
TrkrHitv1.cc
TrkrHitv1.h
TrkrHitv1LinkDef.h
TrkrHitv2.cc
TrkrHitv2.h
TrkrHitv2LinkDef.h
trackbase_historic
trackreco
trigger
vararray
QA
simulation
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
CMFlashClusterv1.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file CMFlashClusterv1.cc
1
7
#include "
CMFlashClusterv1.h
"
8
9
#include <cmath>
10
#include <utility>
// for swap
11
12
namespace
13
{
14
15
}
16
17
CMFlashClusterv1::CMFlashClusterv1
()
18
: m_cluskey(UINT_MAX)
19
, m_adc(0xFFFFFFFF)
20
{
21
22
for
(
int
i = 0; i < 3; ++i)
m_pos
[i] = NAN;
23
24
}
25
26
void
CMFlashClusterv1::identify
(std::ostream& os)
const
27
{
28
os <<
"---CMFlashClusterv1--------------------"
<< std::endl;
29
os <<
"clusid: "
<<
getClusKey
() << std::dec << std::endl;
30
31
os <<
" (x,y,z) = ("
<<
m_pos
[0];
32
os <<
", "
<< m_pos[1] <<
", "
;
33
os << m_pos[2] <<
") cm"
;
34
35
os <<
" adc = "
<<
getAdc
() << std::endl;
36
37
os << std::endl;
38
os <<
"-----------------------------------------------"
<< std::endl;
39
40
return
;
41
}
42
43
int
CMFlashClusterv1::isValid
()
const
44
{
45
if
(
m_cluskey
== UINT_MAX)
return
0;
46
47
if
(std::isnan(
getX
()))
return
0;
48
if
(std::isnan(
getY
()))
return
0;
49
if
(std::isnan(
getZ
()))
return
0;
50
51
if
(
m_adc
== 0xFFFFFFFF)
return
0;
52
53
return
1;
54
}
55
56
void
CMFlashClusterv1::CopyFrom
(
const
CMFlashCluster
& source )
57
{
58
// do nothing if copying onto oneself
59
if
(
this
== &source )
return
;
60
61
// parent class method
62
CMFlashCluster::CopyFrom
( source );
63
64
setClusKey
( source.
getClusKey
() );
65
setX
( source.
getX
() );
66
setY
( source.
getY
() );
67
setZ
( source.
getZ
() );
68
setAdc
( source.
getAdc
() );
69
70
}
71
coresoftware
blob
master
offline
packages
trackbase
CMFlashClusterv1.cc
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:37
using
1.8.2 with
ECCE GitHub integration