CMS 3D CMS Logo

FWTrackResidualDetailView.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: TRacks
4 // Class : FWTrackDetailView
5 //
6 // Original Author: Chad Jarvis
7 // Created: Wed Mar 7 09:13:47 EST 2008
8 //
9 // Implementation:
10 // use following table pasted from HitPattern.h
11 //
12 // +-----+-----+-----+-----+-----+-----+-----+-----+----------------+-----+-----+
13 // |tk/mu| sub-structure | sub-sub-structure | stereo | hit type |
14 // +-----+-----+-----+-----+-----+-----+-----+-----+----------------+-----+-----+
15 // | 10 | 9 8 7 | 6 5 4 3 | 2 | 1 0 | bit
16 //
17 // |tk = 1 PXB = 1 layer = 1-3 hit type = 0-3
18 // |tk = 1 PXF = 2 disk = 1-2 hit type = 0-3
19 // |tk = 1 TIB = 3 layer = 1-4 0=rphi,1=stereo hit type = 0-3
20 // |tk = 1 TID = 4 wheel = 1-3 0=rphi,1=stereo hit type = 0-3
21 // |tk = 1 TOB = 5 layer = 1-6 0=rphi,1=stereo hit type = 0-3
22 // |tk = 1 TEC = 6 wheel = 1-9 0=rphi,1=stereo hit type = 0-3
23 // |mu = 0 DT = 1 layer hit type = 0-3
24 // |mu = 0 CSC = 2 layer hit type = 0-3
25 // |mu = 0 RPC = 3 layer hit type = 0-3
26 // |mu = 0 GEM = 3 layer hit type = 0-3
27 //
28 // hit type, see DataFormats/TrackingRecHit/interface/TrackingRecHit.h
29 // valid = valid hit = 0
30 // missing = detector is good, but no rec hit found = 1
31 // inactive = detector is off, so there was no hope = 2
32 // bad = there were many bad strips within the ellipse = 3
33 //
34 
35 #include "Rtypes.h"
37 
38 class FWGeometry;
39 class FWModelId;
40 class TEveWindowSlot;
41 class TEveWindow;
42 
43 namespace reco {
44  class Track;
45 }
46 
47 class FWTrackResidualDetailView : public FWDetailViewCanvas<reco::Track> {
48 public:
50  ~FWTrackResidualDetailView() override;
51 
52 private:
53  FWTrackResidualDetailView(const FWTrackResidualDetailView &) = delete; // stop default
54  const FWTrackResidualDetailView &operator=(const FWTrackResidualDetailView &) = delete; // stop default
55 
57  void build(const FWModelId &id, const reco::Track *) override;
59  void setTextInfo(const FWModelId &id, const reco::Track *) override;
60 
61  double getSignedResidual(const FWGeometry *geom, unsigned int id, double resX);
62  void prepareData(const FWModelId &id, const reco::Track *);
63  void printDebug();
64 
65  int m_ndet;
66  int m_nhits;
67  int m_det[64];
68  float res[2][64];
69  int hittype[64];
70  int stereo[64];
71  int substruct[64];
72  int subsubstruct[64];
73  int m_detector[64];
74 
75  Int_t m_resXFill;
76  Color_t m_resXCol;
77  Int_t m_resYFill;
78  Color_t m_resYCol;
79  Int_t m_stereoFill;
80  Color_t m_stereoCol;
82  Color_t m_invalidCol;
83 
84  const static char *m_det_tracker_str[];
85 };
FWTrackResidualDetailView::subsubstruct
int subsubstruct[64]
Definition: FWTrackResidualDetailView.h:72
FWTrackResidualDetailView::m_det
int m_det[64]
Definition: FWTrackResidualDetailView.h:67
FWTrackResidualDetailView::m_nhits
int m_nhits
Definition: FWTrackResidualDetailView.h:66
FWTrackResidualDetailView::m_detector
int m_detector[64]
Definition: FWTrackResidualDetailView.h:73
FWGeometry
Definition: FWGeometry.h:27
FWTrackResidualDetailView::m_resYFill
Int_t m_resYFill
Definition: FWTrackResidualDetailView.h:77
FWTrackResidualDetailView::hittype
int hittype[64]
Definition: FWTrackResidualDetailView.h:69
FWModelId
Definition: FWModelId.h:28
FWTrackResidualDetailView::m_resYCol
Color_t m_resYCol
Definition: FWTrackResidualDetailView.h:78
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
FWTrackResidualDetailView::prepareData
void prepareData(const FWModelId &id, const reco::Track *)
Definition: FWTrackResidualDetailView.cc:50
FWTrackResidualDetailView::m_invalidFill
Int_t m_invalidFill
Definition: FWTrackResidualDetailView.h:81
FWTrackResidualDetailView::m_resXFill
Int_t m_resXFill
Definition: FWTrackResidualDetailView.h:75
FWTrackResidualDetailView::m_resXCol
Color_t m_resXCol
Definition: FWTrackResidualDetailView.h:76
FWTrackResidualDetailView::m_ndet
int m_ndet
Definition: FWTrackResidualDetailView.h:65
FWDetailViewCanvas.h
FWTrackResidualDetailView::substruct
int substruct[64]
Definition: FWTrackResidualDetailView.h:71
FWTrackResidualDetailView::m_det_tracker_str
const static char * m_det_tracker_str[]
Definition: FWTrackResidualDetailView.h:84
reco::Track
Definition: Track.h:27
relativeConstraints.geom
geom
Definition: relativeConstraints.py:72
FWTrackResidualDetailView::FWTrackResidualDetailView
FWTrackResidualDetailView()
Definition: FWTrackResidualDetailView.cc:28
FWDetailViewCanvas
Definition: FWDetailViewCanvas.h:11
FWTrackResidualDetailView::operator=
const FWTrackResidualDetailView & operator=(const FWTrackResidualDetailView &)=delete
FWTrackResidualDetailView::getSignedResidual
double getSignedResidual(const FWGeometry *geom, unsigned int id, double resX)
Definition: FWTrackResidualDetailView.cc:221
FWTrackResidualDetailView::m_stereoCol
Color_t m_stereoCol
Definition: FWTrackResidualDetailView.h:80
FWTrackResidualDetailView::stereo
int stereo[64]
Definition: FWTrackResidualDetailView.h:70
res
Definition: Electron.h:6
FWTrackResidualDetailView
Definition: FWTrackResidualDetailView.h:47
FWTrackResidualDetailView::setTextInfo
void setTextInfo(const FWModelId &id, const reco::Track *) override
Definition: FWTrackResidualDetailView.cc:250
FWTrackResidualDetailView::~FWTrackResidualDetailView
~FWTrackResidualDetailView() override
Definition: FWTrackResidualDetailView.cc:48
FWTrackResidualDetailView::m_stereoFill
Int_t m_stereoFill
Definition: FWTrackResidualDetailView.h:79
FWTrackResidualDetailView::m_invalidCol
Color_t m_invalidCol
Definition: FWTrackResidualDetailView.h:82
FWTrackResidualDetailView::printDebug
void printDebug()
Definition: FWTrackResidualDetailView.cc:237
FWTrackResidualDetailView::build
void build(const FWModelId &id, const reco::Track *) override
Definition: FWTrackResidualDetailView.cc:96