CMS 3D CMS Logo

FWBoxRecHit.h
Go to the documentation of this file.
1 #ifndef _FWBOXRECHIT_H_
2 #define _FWBOXRECHIT_H_
3 
4 // -*- C++ -*-
5 //
6 // Package: ParticleFlow
7 // Class : FWBoxRecHit
8 //
9 // Implementation:
10 // <Notes on implementation>
11 //
12 // Original Author: Simon Harris
13 //
14 
15 // System include files
16 #include "TEveBox.h"
17 #include "TEveCompound.h"
18 #include "TEveStraightLineSet.h"
19 
20 #include "TEveCaloData.h"
21 #include "TEveChunkManager.h"
22 
23 // User include files
27 
28 // Forward declarations
29 class FWProxyBuilderBase;
30 
31 //-----------------------------------------------------------------------------
32 // FWBoxRechHit
33 //-----------------------------------------------------------------------------
35 {
36  public:
37  // ---------------- Constructor(s)/Destructor ----------------------
38  FWBoxRecHit( const std::vector<TEveVector> &corners, TEveElement *comp,float e , float et);
39  virtual ~FWBoxRecHit(){}
40 
41  // --------------------- Member Functions --------------------------
42  void updateScale( float scale, float maxLogVal, bool plotEt);
43  void setSquareColor( Color_t c ) { m_ls->SetMarkerColor(c); m_ls->SetLineColor(kBlack); }
44 
45  TEveBox *getTower() { return m_tower; }
46  void setLine(int idx, float x1, float y1, float z1, float x2, float y2, float z2);
47  void addLine( float x1, float y1, float z1, float x2, float y2, float z2 );
48  void addLine( const TEveVector &v1, const TEveVector &v2 );
49  float getEnergy( bool b ) const { return b ? m_et : m_energy; }
50  bool isTallest() const { return m_isTallest; }
51  void setIsTallest( );
52 
53  private:
54  FWBoxRecHit( const FWBoxRecHit& ) = delete; // Disable default
55  const FWBoxRecHit& operator=( const FWBoxRecHit& ) = delete; // Disable default
56 
57  // --------------------- Member Functions --------------------------
58  void setupEveBox( std::vector<TEveVector> &corners, float scale );
59  void buildTower( const std::vector<TEveVector> &corners);
60  void buildLineSet( const std::vector<TEveVector> &corners);
61 
62  // ----------------------- Data Members ----------------------------
63  TEveBox *m_tower;
64  TEveStraightLineSet *m_ls;
65  float m_energy;
66  float m_et;
68 };
69 #endif
70 //=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_
void setupEveBox(std::vector< TEveVector > &corners, float scale)
Definition: FWBoxRecHit.cc:34
float m_energy
Definition: FWBoxRecHit.h:65
const FWBoxRecHit & operator=(const FWBoxRecHit &)=delete
void buildTower(const std::vector< TEveVector > &corners)
Definition: FWBoxRecHit.cc:53
TEveBox * getTower()
Definition: FWBoxRecHit.h:45
TEveStraightLineSet * m_ls
Definition: FWBoxRecHit.h:64
void updateScale(float scale, float maxLogVal, bool plotEt)
Definition: FWBoxRecHit.cc:100
void addLine(float x1, float y1, float z1, float x2, float y2, float z2)
Definition: FWBoxRecHit.cc:179
float getEnergy(bool b) const
Definition: FWBoxRecHit.h:49
void buildLineSet(const std::vector< TEveVector > &corners)
Definition: FWBoxRecHit.cc:70
void setIsTallest()
Definition: FWBoxRecHit.cc:170
TEveBox * m_tower
Definition: FWBoxRecHit.h:63
bool m_isTallest
Definition: FWBoxRecHit.h:67
float m_et
Definition: FWBoxRecHit.h:66
FWBoxRecHit(const std::vector< TEveVector > &corners, TEveElement *comp, float e, float et)
Definition: FWBoxRecHit.cc:10
double b
Definition: hdecay.h:120
virtual ~FWBoxRecHit()
Definition: FWBoxRecHit.h:39
et
define resolution functions of each parameter
void setSquareColor(Color_t c)
Definition: FWBoxRecHit.h:43
void setLine(int idx, float x1, float y1, float z1, float x2, float y2, float z2)
Definition: FWBoxRecHit.cc:153
bool isTallest() const
Definition: FWBoxRecHit.h:50