CMS 3D CMS Logo

FWPFCandidateDetailView.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: Tracks
4 // Class : FWPFDetailView
5 
6 #include "Rtypes.h"
7 
10 
12 class TGLEmbeddedViewer;
13 class FWIntValueListener;
14 class TEveCaloLego;
15 class TGSlider;
16 
17 namespace reco {
18  // class PFCandidate;
19  class PFRecHit;
20  class PFCluster;
21  class PFRecTrack;
22 } // namespace reco
23 
24 class FWPFCandidateDetailView : public FWDetailViewGL<reco::PFCandidate>, public CSGActionSupervisor {
25 public:
27  ~FWPFCandidateDetailView() override;
28 
29 protected:
30 private:
31  FWPFCandidateDetailView(const FWPFCandidateDetailView &) = delete; // stop default
32  const FWPFCandidateDetailView &operator=(const FWPFCandidateDetailView &) = delete; // stop default
33 
35  void build(const FWModelId &id, const reco::PFCandidate *) override;
36  void setTextInfo(const FWModelId &id, const reco::PFCandidate *) override;
37  void makeLegend(void);
38 
39  bool isPntInRng(float x, float y);
40 
41  void rangeChanged(int x);
42  void plotEtChanged();
43  void rnrHcalChanged();
44 
45  void buildGLEventScene();
46 
47  void voteMaxEtEVal(const std::vector<reco::PFRecHit> *hits);
48 
49  void addHits(const std::vector<reco::PFRecHit> *);
50  void addClusters(const std::vector<reco::PFCluster> *);
51  void addTracks(const std::vector<reco::PFRecTrack> *);
52 
53  float eta();
54  float phi();
55 
56  float etaMin() { return eta() - m_range; }
57  float etaMax() { return eta() + m_range; }
58  float phiMin() { return phi() - m_range; }
59  float phiMax() { return phi() + m_range; }
60 
61  float m_range;
63 
64  TLegend *m_legend;
65 
66  TGSlider *m_slider;
68 
69  TEveElementList *m_eventList;
70 
71  bool m_plotEt;
72 
73  bool m_rnrHcal;
74 };
DDAxes::y
FWPFCandidateDetailView::build
void build(const FWModelId &id, const reco::PFCandidate *) override
Definition: FWPFCandidateDetailView.cc:143
FWPFCandidateDetailView::FWPFCandidateDetailView
FWPFCandidateDetailView()
Definition: FWPFCandidateDetailView.cc:48
hfClusterShapes_cfi.hits
hits
Definition: hfClusterShapes_cfi.py:5
CSGActionSupervisor
Definition: CSGActionSupervisor.h:27
FWPFCandidateDetailView::m_eventList
TEveElementList * m_eventList
Definition: FWPFCandidateDetailView.h:69
PFCandidate.h
FWPFCandidateDetailView::rnrHcalChanged
void rnrHcalChanged()
Definition: FWPFCandidateDetailView.cc:135
FWPFCandidateDetailView::m_sliderListener
FWIntValueListener * m_sliderListener
Definition: FWPFCandidateDetailView.h:67
FWModelId
Definition: FWModelId.h:28
FWPFCandidateDetailView::isPntInRng
bool isPntInRng(float x, float y)
Definition: FWPFCandidateDetailView.cc:64
FWPFCandidateDetailView::m_slider
TGSlider * m_slider
Definition: FWPFCandidateDetailView.h:66
DDAxes::x
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
FWPFCandidateDetailView::plotEtChanged
void plotEtChanged()
Definition: FWPFCandidateDetailView.cc:129
FWDetailView
Definition: FWDetailView.h:13
FWPFCandidateDetailView::buildGLEventScene
void buildGLEventScene()
Definition: FWPFCandidateDetailView.cc:400
FWPFCandidateDetailView::setTextInfo
void setTextInfo(const FWModelId &id, const reco::PFCandidate *) override
Definition: FWPFCandidateDetailView.cc:97
FWPFCandidateDetailView::phiMax
float phiMax()
Definition: FWPFCandidateDetailView.h:59
FWPFCandidateDetailView::m_range
float m_range
Definition: FWPFCandidateDetailView.h:61
CSGActionSupervisor.h
FWPFCandidateDetailView::phiMin
float phiMin()
Definition: FWPFCandidateDetailView.h:58
FWPFCandidateDetailView::voteMaxEtEVal
void voteMaxEtEVal(const std::vector< reco::PFRecHit > *hits)
Definition: FWPFCandidateDetailView.cc:233
FWPFCandidateDetailView::operator=
const FWPFCandidateDetailView & operator=(const FWPFCandidateDetailView &)=delete
FWPFCandidateDetailView::etaMax
float etaMax()
Definition: FWPFCandidateDetailView.h:57
FWPFCandidateDetailView::m_candidate
const reco::PFCandidate * m_candidate
Definition: FWPFCandidateDetailView.h:62
FWPFCandidateDetailView::addClusters
void addClusters(const std::vector< reco::PFCluster > *)
Definition: FWPFCandidateDetailView.cc:273
FWPFCandidateDetailView::rangeChanged
void rangeChanged(int x)
Definition: FWPFCandidateDetailView.cc:84
FWPFCandidateDetailView::~FWPFCandidateDetailView
~FWPFCandidateDetailView() override
Definition: FWPFCandidateDetailView.cc:58
FWPFCandidateDetailView::m_legend
TLegend * m_legend
Definition: FWPFCandidateDetailView.h:64
FWPFCandidateDetailView::etaMin
float etaMin()
Definition: FWPFCandidateDetailView.h:56
FWPFCandidateDetailView::eta
float eta()
Definition: FWPFCandidateDetailView.cc:60
FWPFCandidateDetailView::m_rnrHcal
bool m_rnrHcal
Definition: FWPFCandidateDetailView.h:73
reco::PFCandidate
Particle reconstructed by the particle flow algorithm.
Definition: PFCandidate.h:41
FWDetailViewGL.h
FWPFCandidateDetailView::makeLegend
void makeLegend(void)
Definition: FWPFCandidateDetailView.cc:73
FWPFCandidateDetailView::addHits
void addHits(const std::vector< reco::PFRecHit > *)
Definition: FWPFCandidateDetailView.cc:338
FWPFCandidateDetailView::addTracks
void addTracks(const std::vector< reco::PFRecTrack > *)
Definition: FWPFCandidateDetailView.cc:249
FWPFCandidateDetailView::m_plotEt
bool m_plotEt
Definition: FWPFCandidateDetailView.h:71
FWPFCandidateDetailView
Definition: FWPFCandidateDetailView.h:24
FWPFCandidateDetailView::phi
float phi()
Definition: FWPFCandidateDetailView.cc:62
FWDetailViewGL
Definition: FWDetailViewGL.h:14
FWIntValueListener
Definition: FWIntValueListener.h:7