CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 <math.h>
17 #include "TEveScalableStraightLineSet.h"
18 #include "TEveCompound.h"
19 
20 // User include files
24 
25 //-----------------------------------------------------------------------------
26 // FWPFRhoPhiRecHit
27 //-----------------------------------------------------------------------------
29 {
30  public:
31  // ---------------- Constructor(s)/Destructor ----------------------
32  FWPFRhoPhiRecHit( FWProxyBuilderBase *pb, TEveElement *iH, const FWViewContext *vc,
33  float E, float et, double lPhi, double rPhi, std::vector<TEveVector> &bCorners );
34  virtual ~FWPFRhoPhiRecHit();
35 
36  // --------------------- Member Functions --------------------------
37  void updateScale( TEveScalableStraightLineSet *ls, Double_t scale, unsigned int i );
38  void updateScale( const FWViewContext *vc );
39  void addChild( FWProxyBuilderBase *pb, TEveElement *itemHolder, const FWViewContext *vc, float E, float et );
40  void buildRecHit( FWProxyBuilderBase *pb, TEveElement *itemHolder, const FWViewContext *vc, std::vector<TEveVector> &bCorners );
41  void clean();
42 
43  // ----------------------Accessor Methods --------------------------
44  Double_t getlPhi() { return m_lPhi; }
45  TEveScalableStraightLineSet *getLineSet() { return m_ls; }
46  void setHasChild( bool b ) { m_hasChild = b; }
47  void setCorners( int i, TEveVector vec ) { m_corners[i] = vec; }
48 
49  private:
50  FWPFRhoPhiRecHit( const FWPFRhoPhiRecHit& ); // Stop default copy constructor
51  FWPFRhoPhiRecHit& operator=( const FWPFRhoPhiRecHit& ); // Stop default assignment operator
52 
53  // ----------------------- Data Members ----------------------------
54  bool m_hasChild;
55  float m_energy;
56  float m_et;
57  Double_t m_lPhi;
58  Double_t m_rPhi;
59  TEveScalableStraightLineSet *m_ls;
61  std::vector<TEveVector> m_corners;
62 };
63 #endif
64 //=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_
int i
Definition: DBlmapReader.cc:9
std::vector< TEveVector > m_corners
void setHasChild(bool b)
FWPFRhoPhiRecHit & operator=(const FWPFRhoPhiRecHit &)
def ls
Definition: eostools.py:348
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)
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