ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonReconstruction
MuonRecUtils
MuonLinearSegmentMakerUtilities
MuonLinearSegmentMakerUtilities
ClusterNtuple.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
9
#ifndef CLUSTERNTUPLE_H
10
#define CLUSTERNTUPLE_H
11
12
#include "
MuonLinearSegmentMakerUtilities/Cluster.h
"
13
#include <vector>
14
#include <algorithm>
15
16
class
TTree;
17
18
namespace
ClusterSeg
{
19
20
enum
FillType
{
chi2
,
chi2T
,
residual
,
residualT
};
21
22
struct
ClusterNtuple
{
23
24
void
initForWrite
(TTree&
tree
);
25
void
initForRead
(TTree&
tree
);
26
27
void
fill
(
const
double
& fillVal,
FillType
theFillType );
28
void
fill
(
const
Cluster
& cluster );
29
void
fill
(
const
std::vector<Cluster*>& clusters );
30
31
bool
read
( std::vector<Cluster*>& clusters);
32
static
void
clean
( std::vector<Cluster*>& clusters);
33
34
void
reset
();
35
void
init
();
36
37
static
const
int
CLUSTERSIZE
= 50000;
38
39
double
residualT
[
CLUSTERSIZE
] = {};
40
double
residual
[
CLUSTERSIZE
] = {};
41
int
nMDT
= 0;
42
int
nMDTT
= 0;
43
double
chi2T
[
CLUSTERSIZE
] = {};
44
double
chi2
[
CLUSTERSIZE
] = {};
45
int
ntracksT
= 0;
46
int
ntracks
= 0;
47
int
nclusters
= 0;
48
double
x
[
CLUSTERSIZE
] = {};
49
double
y
[
CLUSTERSIZE
] = {};
50
double
z
[
CLUSTERSIZE
] = {};
51
int
tIndex
[
CLUSTERSIZE
] = {};
52
int
pIndex
[
CLUSTERSIZE
] = {};
53
bool
isPhi
[
CLUSTERSIZE
] = {};
54
bool
isMatch
[
CLUSTERSIZE
] = {};
55
int
barcode
[
CLUSTERSIZE
] = {};
56
};
57
58
}
59
60
61
#endif
Cluster.h
ClusterSeg
Definition
MuonSpectrometer/MuonReconstruction/MuonRecUtils/MuonLinearSegmentMakerUtilities/MuonLinearSegmentMakerUtilities/Cluster.h:12
ClusterSeg::FillType
FillType
Definition
ClusterNtuple.h:20
ClusterSeg::residual
@ residual
Definition
ClusterNtuple.h:20
ClusterSeg::chi2T
@ chi2T
Definition
ClusterNtuple.h:20
ClusterSeg::residualT
@ residualT
Definition
ClusterNtuple.h:20
ClusterSeg::chi2
@ chi2
Definition
ClusterNtuple.h:20
ClusterSeg::ClusterNtuple
Definition
ClusterNtuple.h:22
ClusterSeg::ClusterNtuple::nclusters
int nclusters
Definition
ClusterNtuple.h:47
ClusterSeg::ClusterNtuple::tIndex
int tIndex[CLUSTERSIZE]
Definition
ClusterNtuple.h:51
ClusterSeg::ClusterNtuple::pIndex
int pIndex[CLUSTERSIZE]
Definition
ClusterNtuple.h:52
ClusterSeg::ClusterNtuple::nMDT
int nMDT
Definition
ClusterNtuple.h:41
ClusterSeg::ClusterNtuple::clean
static void clean(std::vector< Cluster * > &clusters)
Definition
ClusterNtuple.cxx:117
ClusterSeg::ClusterNtuple::chi2
double chi2[CLUSTERSIZE]
Definition
ClusterNtuple.h:44
ClusterSeg::ClusterNtuple::init
void init()
Definition
ClusterNtuple.cxx:121
ClusterSeg::ClusterNtuple::ntracks
int ntracks
Definition
ClusterNtuple.h:46
ClusterSeg::ClusterNtuple::nMDTT
int nMDTT
Definition
ClusterNtuple.h:42
ClusterSeg::ClusterNtuple::x
double x[CLUSTERSIZE]
Definition
ClusterNtuple.h:48
ClusterSeg::ClusterNtuple::barcode
int barcode[CLUSTERSIZE]
Definition
ClusterNtuple.h:55
ClusterSeg::ClusterNtuple::chi2T
double chi2T[CLUSTERSIZE]
Definition
ClusterNtuple.h:43
ClusterSeg::ClusterNtuple::initForWrite
void initForWrite(TTree &tree)
Definition
ClusterNtuple.cxx:17
ClusterSeg::ClusterNtuple::isPhi
bool isPhi[CLUSTERSIZE]
Definition
ClusterNtuple.h:53
ClusterSeg::ClusterNtuple::residual
double residual[CLUSTERSIZE]
Definition
ClusterNtuple.h:40
ClusterSeg::ClusterNtuple::ntracksT
int ntracksT
Definition
ClusterNtuple.h:45
ClusterSeg::ClusterNtuple::fill
void fill(const double &fillVal, FillType theFillType)
Definition
ClusterNtuple.cxx:67
ClusterSeg::ClusterNtuple::initForRead
void initForRead(TTree &tree)
Definition
ClusterNtuple.cxx:38
ClusterSeg::ClusterNtuple::z
double z[CLUSTERSIZE]
Definition
ClusterNtuple.h:50
ClusterSeg::ClusterNtuple::CLUSTERSIZE
static const int CLUSTERSIZE
Definition
ClusterNtuple.h:37
ClusterSeg::ClusterNtuple::read
bool read(std::vector< Cluster * > &clusters)
Definition
ClusterNtuple.cxx:102
ClusterSeg::ClusterNtuple::residualT
double residualT[CLUSTERSIZE]
Definition
ClusterNtuple.h:39
ClusterSeg::ClusterNtuple::y
double y[CLUSTERSIZE]
Definition
ClusterNtuple.h:49
ClusterSeg::ClusterNtuple::reset
void reset()
Definition
ClusterNtuple.cxx:94
ClusterSeg::ClusterNtuple::isMatch
bool isMatch[CLUSTERSIZE]
Definition
ClusterNtuple.h:54
ClusterSeg::Cluster
Definition
MuonSpectrometer/MuonReconstruction/MuonRecUtils/MuonLinearSegmentMakerUtilities/MuonLinearSegmentMakerUtilities/Cluster.h:14
tree
TChain * tree
Definition
tile_monitor.h:30
Generated on
for ATLAS Offline Software by
1.17.0