Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
TpcSimpleClusterizer.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file TpcSimpleClusterizer.h
1
#ifndef TPC_TPCSIMPLECLUSTERIZER_H
2
#define TPC_TPCSIMPLECLUSTERIZER_H
3
4
#include <
fun4all/SubsysReco.h
>
5
#include <
trackbase/TrkrCluster.h
>
6
#include <
trackbase/ActsGeometry.h
>
7
8
#include <map>
9
#include <vector>
10
#include <string>
11
12
class
PHCompositeNode
;
13
class
TrkrHitSet
;
14
class
TrkrHitSetContainer
;
15
class
TrkrClusterContainer
;
16
class
TrkrClusterHitAssoc
;
17
class
PHG4TpcCylinderGeom
;
18
class
PHG4TpcCylinderGeomContainer
;
19
20
//typedef std::pair<int, int> iphiz;
21
//typedef std::pair<double, iphiz> ihit;
22
typedef
std::pair<unsigned short, unsigned short>
iphiz
;
23
typedef
std::pair<unsigned short, iphiz>
ihit
;
24
25
class
TpcSimpleClusterizer
:
public
SubsysReco
26
{
27
public
:
28
TpcSimpleClusterizer
(
const
std::string
&
name
=
"TpcSimpleClusterizer"
);
29
~TpcSimpleClusterizer
()
override
=
default
;
30
31
int
InitRun
(
PHCompositeNode
*topNode)
override
;
32
int
process_event
(
PHCompositeNode
*topNode)
override
;
33
int
End
(
PHCompositeNode
*topNode)
override
;
34
35
void
set_sector_fiducial_cut
(
const
double
cut){
SectorFiducialCut
= cut; }
36
void
set_do_hit_association
(
bool
do_assoc){
do_hit_assoc
= do_assoc;}
37
38
private
:
39
bool
is_in_sector_boundary
(
int
phibin,
int
sector,
PHG4TpcCylinderGeom
*layergeom)
const
;
40
41
TrkrHitSetContainer
*
m_hits
=
nullptr
;
42
TrkrClusterContainer
*
m_clusterlist
=
nullptr
;
43
TrkrClusterHitAssoc
*
m_clusterhitassoc
=
nullptr
;
44
ActsGeometry
*
m_tGeometry
=
nullptr
;
45
46
bool
do_hit_assoc
=
true
;
47
double
pedestal
= 74.4;
48
double
SectorFiducialCut
= 0.5;
49
50
// TPC shaping offset correction parameters
51
// From Tony Frawley May 13, 2021
52
double
par0_neg
= 0.0503;
53
double
par0_pos
= -0.0503;
54
55
};
56
57
#endif
coresoftware
blob
master
offline
packages
tpc
TpcSimpleClusterizer.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:08
using
1.8.2 with
sPHENIX GitHub integration