ATLAS Offline Software
ClusterNtuple.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
9 #ifndef CLUSTERNTUPLE_H
10 #define CLUSTERNTUPLE_H
11 
13 #include <vector>
14 #include <algorithm>
15 
16 class TTree;
17 
18 namespace ClusterSeg {
19 
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 
41  int nMDT;
42  int nMDTT;
43  double chi2T[CLUSTERSIZE];
44  double chi2[CLUSTERSIZE];
45  int ntracksT;
46  int ntracks;
47  int nclusters;
48  double x[CLUSTERSIZE];
49  double y[CLUSTERSIZE];
50  double z[CLUSTERSIZE];
56  };
57 
58 }
59 
60 
61 #endif
ClusterSeg::ClusterNtuple::chi2T
double chi2T[CLUSTERSIZE]
Definition: ClusterNtuple.h:43
ClusterSeg::ClusterNtuple::z
double z[CLUSTERSIZE]
Definition: ClusterNtuple.h:50
ClusterSeg::ClusterNtuple::clean
static void clean(std::vector< Cluster * > &clusters)
Definition: ClusterNtuple.cxx:117
ClusterSeg::residual
@ residual
Definition: ClusterNtuple.h:20
ClusterSeg::ClusterNtuple::initForWrite
void initForWrite(TTree &tree)
Definition: ClusterNtuple.cxx:17
ClusterSeg::chi2T
@ chi2T
Definition: ClusterNtuple.h:20
tree
TChain * tree
Definition: tile_monitor.h:30
ClusterSeg::ClusterNtuple::isPhi
bool isPhi[CLUSTERSIZE]
Definition: ClusterNtuple.h:53
ClusterSeg::ClusterNtuple::nMDTT
int nMDTT
Definition: ClusterNtuple.h:42
ClusterSeg::ClusterNtuple::y
double y[CLUSTERSIZE]
Definition: ClusterNtuple.h:49
ClusterSeg
Definition: MuonSpectrometer/MuonReconstruction/MuonRecUtils/MuonLinearSegmentMakerUtilities/MuonLinearSegmentMakerUtilities/Cluster.h:12
ClusterSeg::ClusterNtuple::x
double x[CLUSTERSIZE]
Definition: ClusterNtuple.h:48
ClusterSeg::ClusterNtuple
Definition: ClusterNtuple.h:22
ClusterSeg::ClusterNtuple::fill
void fill(const double &fillVal, FillType theFillType)
Definition: ClusterNtuple.cxx:67
ClusterSeg::ClusterNtuple::init
void init()
Definition: ClusterNtuple.cxx:121
ClusterSeg::ClusterNtuple::pIndex
int pIndex[CLUSTERSIZE]
Definition: ClusterNtuple.h:52
ClusterSeg::Cluster
Definition: MuonSpectrometer/MuonReconstruction/MuonRecUtils/MuonLinearSegmentMakerUtilities/MuonLinearSegmentMakerUtilities/Cluster.h:14
ClusterSeg::ClusterNtuple::reset
void reset()
Definition: ClusterNtuple.cxx:94
ClusterSeg::ClusterNtuple::nMDT
int nMDT
Definition: ClusterNtuple.h:41
ClusterSeg::ClusterNtuple::ntracksT
int ntracksT
Definition: ClusterNtuple.h:45
ClusterSeg::ClusterNtuple::read
bool read(std::vector< Cluster * > &clusters)
Definition: ClusterNtuple.cxx:102
ClusterSeg::ClusterNtuple::barcode
int barcode[CLUSTERSIZE]
Definition: ClusterNtuple.h:55
ClusterSeg::residualT
@ residualT
Definition: ClusterNtuple.h:20
RunTileMonitoring.clusters
clusters
Definition: RunTileMonitoring.py:133
ClusterSeg::chi2
@ chi2
Definition: ClusterNtuple.h:20
ClusterSeg::ClusterNtuple::ntracks
int ntracks
Definition: ClusterNtuple.h:46
ClusterSeg::ClusterNtuple::nclusters
int nclusters
Definition: ClusterNtuple.h:47
Cluster.h
ClusterSeg::ClusterNtuple::initForRead
void initForRead(TTree &tree)
Definition: ClusterNtuple.cxx:38
ClusterSeg::ClusterNtuple::residualT
double residualT[CLUSTERSIZE]
Definition: ClusterNtuple.h:39
ClusterSeg::ClusterNtuple::chi2
double chi2[CLUSTERSIZE]
Definition: ClusterNtuple.h:44
ClusterSeg::ClusterNtuple::CLUSTERSIZE
static const int CLUSTERSIZE
Definition: ClusterNtuple.h:37
ClusterSeg::ClusterNtuple::isMatch
bool isMatch[CLUSTERSIZE]
Definition: ClusterNtuple.h:54
ClusterSeg::FillType
FillType
Definition: ClusterNtuple.h:20
ClusterSeg::ClusterNtuple::tIndex
int tIndex[CLUSTERSIZE]
Definition: ClusterNtuple.h:51
ClusterSeg::ClusterNtuple::residual
double residual[CLUSTERSIZE]
Definition: ClusterNtuple.h:40