CMS 3D CMS Logo

FWPFRhoPhiRecHit.h
Go to the documentation of this file.
1 #ifndef _FWPFRHOPHIRECHIT_H_
2 #define _FWPFRHOPHIRECHIT_H_
3 
4 // -*- C++ -*-
5 //
6 // Package: ParticleFlow
7 // Class : FWPFRhoPhiRecHit
8 //
9 // Implementation:
10 // <Notes on implementation>
11 //
12 // Original Author: Simon Harris
13 //
14 
15 // System include files
16 #include <cmath>
17 #include "TEveScalableStraightLineSet.h"
18 #include "TEveCompound.h"
19 
20 // User include files
24 
25 //-----------------------------------------------------------------------------
26 // FWPFRhoPhiRecHit
27 //-----------------------------------------------------------------------------
29 public:
30  // ---------------- Constructor(s)/Destructor ----------------------
32  TEveElement *iH,
33  const FWViewContext *vc,
34  float E,
35  float et,
36  double lPhi,
37  double rPhi,
38  std::vector<TEveVector> &bCorners);
39  virtual ~FWPFRhoPhiRecHit();
40 
41  // --------------------- Member Functions --------------------------
42  void updateScale(TEveScalableStraightLineSet *ls, Double_t scale, unsigned int i);
43  void updateScale(const FWViewContext *vc);
44  void addChild(FWProxyBuilderBase *pb, TEveElement *itemHolder, const FWViewContext *vc, float E, float et);
46  TEveElement *itemHolder,
47  const FWViewContext *vc,
48  std::vector<TEveVector> &bCorners);
49  void clean();
50 
51  // ----------------------Accessor Methods --------------------------
52  Double_t getlPhi() { return m_lPhi; }
53  TEveScalableStraightLineSet *getLineSet() { return m_ls; }
54  void setHasChild(bool b) { m_hasChild = b; }
55  void setCorners(int i, TEveVector vec) { m_corners[i] = vec; }
56 
57 private:
58  FWPFRhoPhiRecHit(const FWPFRhoPhiRecHit &); // Stop default copy constructor
59  FWPFRhoPhiRecHit &operator=(const FWPFRhoPhiRecHit &); // Stop default assignment operator
60 
61  // ----------------------- Data Members ----------------------------
62  bool m_hasChild;
63  float m_energy;
64  float m_et;
65  Double_t m_lPhi;
66  Double_t m_rPhi;
67  TEveScalableStraightLineSet *m_ls;
69  std::vector<TEveVector> m_corners;
70 };
71 #endif
72 //=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_
std::vector< TEveVector > m_corners
void setHasChild(bool b)
FWPFRhoPhiRecHit & operator=(const FWPFRhoPhiRecHit &)
TEveScalableStraightLineSet * getLineSet()
FWPFRhoPhiRecHit(FWProxyBuilderBase *pb, TEveElement *iH, const FWViewContext *vc, float E, float et, double lPhi, double rPhi, std::vector< TEveVector > &bCorners)
void addChild(FWProxyBuilderBase *pb, TEveElement *itemHolder, const FWViewContext *vc, float E, float et)
void updateScale(TEveScalableStraightLineSet *ls, Double_t scale, unsigned int i)
def ls(path, rec=False)
Definition: eostools.py:349
void buildRecHit(FWProxyBuilderBase *pb, TEveElement *itemHolder, const FWViewContext *vc, std::vector< TEveVector > &bCorners)
double b
Definition: hdecay.h:120
virtual ~FWPFRhoPhiRecHit()
void setCorners(int i, TEveVector vec)
TEveScalableStraightLineSet * m_ls
FWPFRhoPhiRecHit * m_child