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  FWPFCandidateDetailView(const FWPFCandidateDetailView &) = delete; // stop default
30  const FWPFCandidateDetailView &operator=(const FWPFCandidateDetailView &) = delete; // stop default
31 
32 private:
34  void build(const FWModelId &id, const reco::PFCandidate *) override;
35  void setTextInfo(const FWModelId &id, const reco::PFCandidate *) override;
36  void makeLegend(void);
37 
38  bool isPntInRng(float x, float y);
39 
40  void rangeChanged(int x);
41  void plotEtChanged();
42  void rnrHcalChanged();
43 
44  void buildGLEventScene();
45 
46  void voteMaxEtEVal(const std::vector<reco::PFRecHit> *hits);
47 
48  void addHits(const std::vector<reco::PFRecHit> *);
49  void addClusters(const std::vector<reco::PFCluster> *);
50  void addTracks(const std::vector<reco::PFRecTrack> *);
51 
52  float eta();
53  float phi();
54 
55  float etaMin() { return eta() - m_range; }
56  float etaMax() { return eta() + m_range; }
57  float phiMin() { return phi() - m_range; }
58  float phiMax() { return phi() + m_range; }
59 
60  float m_range;
62 
63  TLegend *m_legend;
64 
65  TGSlider *m_slider;
67 
68  TEveElementList *m_eventList;
69 
70  bool m_plotEt;
71 
72  bool m_rnrHcal;
73 };
bool isPntInRng(float x, float y)
FWIntValueListener * m_sliderListener
void setTextInfo(const FWModelId &id, const reco::PFCandidate *) override
const FWPFCandidateDetailView & operator=(const FWPFCandidateDetailView &)=delete
void voteMaxEtEVal(const std::vector< reco::PFRecHit > *hits)
const reco::PFCandidate * m_candidate
void addHits(const std::vector< reco::PFRecHit > *)
Particle reconstructed by the particle flow algorithm.
Definition: PFCandidate.h:41
fixed size matrix
void addClusters(const std::vector< reco::PFCluster > *)
void build(const FWModelId &id, const reco::PFCandidate *) override
void addTracks(const std::vector< reco::PFRecTrack > *)