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
TrackProjectorPlaneECAL.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file TrackProjectorPlaneECAL.h
1
#ifndef __TRACKPROJECTORPlaneECAL_H_
2
#define __TRACKPROJECTORPlaneECAL_H_
3
4
/* STL includes */
5
6
#include <
trackbase_historic/SvtxTrack.h
>
7
#include <
trackbase_historic/SvtxTrackMap.h
>
8
#include <
trackbase_historic/SvtxTrack_FastSim.h
>
9
10
#include <string>
11
#include <memory>
12
13
/* Forward declarations */
14
class
PHCompositeNode
;
15
class
PHFieldUtility
;
16
class
SvtxTrack
;
17
class
SvtxTrackState
;
18
class
RawCluster
;
19
class
SvtxTrackMap
;
20
21
namespace
PHGenFit{
22
class
Fitter
;
23
}
24
25
namespace
genfit{
26
class
MeasuredStateOnPlane
;
27
}
28
29
class
TrackProjectorPlaneECAL
{
30
31
public
:
32
33
enum
PROJECTION_SURFACE
{
SPHERE
,
CYLINDER
,
PLANEXY
,
PLANE_CYLINDER
};
34
enum
PROJECTION_DETECTOR
{
EEMC
,
CEMC
,
FEMC
};
35
36
TrackProjectorPlaneECAL
(
PHCompositeNode
* topNode );
37
38
bool
get_projected_position
(
SvtxTrack_FastSim
* track,
RawCluster
* cluster,
double
arr_pos[3],
const
PROJECTION_SURFACE
surf
,
const
float
surface_par );
// Get mean track position
39
40
bool
get_projected_momentum
(
SvtxTrack_FastSim
* track,
RawCluster
* cluster,
double
arr_mom[3],
const
PROJECTION_SURFACE
surf
,
const
float
surface_par );
// Get momentum of track
41
42
SvtxTrack_FastSim
*
get_best_track
(
SvtxTrackMap
* trackmap,
RawCluster
* cluster);
// Get track closest to cluster (within deltaR)
43
44
SvtxTrackState
*
get_best_state
(
SvtxTrack_FastSim
* track,
RawCluster
* cluster);
45
46
char
get_detector
();
// Return capitalized letter of detector
47
48
SvtxTrackState
*
project_track
(
SvtxTrack_FastSim
* track,
RawCluster
* cluster,
const
PROJECTION_SURFACE
surf
,
const
float
surface_par );
49
50
void
set_detector
(
char
c
);
//Sets the detector name
51
52
char
get_detector_from_cluster
(
RawCluster
* cluster);
53
private
:
54
55
PHGenFit::Fitter
*
_fitter
;
56
enum
PROJECTION_DETECTOR
detector
;
57
58
};
59
60
#endif
analysis
blob
master
EICAnalysis
TrackProjectorPlaneECAL.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:49
using
1.8.2 with
sPHENIX GitHub integration