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 
16 namespace reco {
17 // class PFCandidate;
18 class PFRecHit;
19 class PFCluster;
20 class PFRecTrack;
21 }
22 
23 class FWPFCandidateDetailView: public FWDetailViewGL<reco::PFCandidate>,
24  public CSGActionSupervisor
25 {
26 public:
28  ~FWPFCandidateDetailView() override;
29 
30 
31 protected:
32 
33 private:
34  FWPFCandidateDetailView(const FWPFCandidateDetailView&) = delete; // stop default
35  const FWPFCandidateDetailView& operator=(const FWPFCandidateDetailView&) = delete; // stop default
36 
38  void build (const FWModelId &id, const reco::PFCandidate*) override;
39  void setTextInfo (const FWModelId &id, const reco::PFCandidate*) override;
40  void makeLegend( void );
41 
42  bool isPntInRng(float x, float y);
43 
44  void rangeChanged(int x);
45  void plotEtChanged();
46  void rnrHcalChanged();
47 
48  void buildGLEventScene();
49 
50  void voteMaxEtEVal( const std::vector<reco::PFRecHit> *hits);
51 
52  void addHits( const std::vector<reco::PFRecHit> *);
53  void addClusters( const std::vector<reco::PFCluster> *);
54  void addTracks( const std::vector<reco::PFRecTrack> *);
55 
56 
57  float eta();
58  float phi();
59 
60  float etaMin() { return eta() - m_range; }
61  float etaMax() { return eta() + m_range; }
62  float phiMin() { return phi() - m_range; }
63  float phiMax() { return phi() + m_range; }
64 
65 
66  float m_range;
68 
69  TLegend *m_legend;
70 
71  TGSlider* m_slider;
73 
74  TEveElementList* m_eventList;
75 
76 
77  bool m_plotEt;
78 
79 
80  bool m_rnrHcal;
81 };
FWIntValueListener * m_sliderListener
const reco::PFCandidate * m_candidate
Particle reconstructed by the particle flow algorithm.
Definition: PFCandidate.h:39
fixed size matrix