test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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  virtual ~FWPFCandidateDetailView();
29 
30 
31 protected:
32 
33 private:
34  FWPFCandidateDetailView(const FWPFCandidateDetailView&); // stop default
35  const FWPFCandidateDetailView& operator=(const FWPFCandidateDetailView&); // stop default
36 
38  void build (const FWModelId &id, const reco::PFCandidate*);
39  void setTextInfo (const FWModelId &id, const reco::PFCandidate*);
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 };
bool isPntInRng(float x, float y)
FWIntValueListener * m_sliderListener
void build(const FWModelId &id, const reco::PFCandidate *)
void voteMaxEtEVal(const std::vector< reco::PFRecHit > *hits)
const reco::PFCandidate * m_candidate
void addHits(const std::vector< reco::PFRecHit > *)
const FWPFCandidateDetailView & operator=(const FWPFCandidateDetailView &)
Particle reconstructed by the particle flow algorithm.
Definition: PFCandidate.h:39
void addClusters(const std::vector< reco::PFCluster > *)
void setTextInfo(const FWModelId &id, const reco::PFCandidate *)
void addTracks(const std::vector< reco::PFRecTrack > *)