CMS 3D CMS Logo

BuilderUtils.h
Go to the documentation of this file.
1 #ifndef Fireworks_Core_BuilderUtils_h
2 #define Fireworks_Core_BuilderUtils_h
3 
4 #include <vector>
5 #include <string>
6 #include "Rtypes.h"
7 
8 class TEveGeoShape;
9 class TEveElement;
10 class TGeoBBox;
11 class FWProxyBuilderBase;
12 
13 namespace edm {
14  class EventBase;
15 }
16 
17 namespace fireworks
18 {
19  std::pair<double,double> getPhiRange( const std::vector<double>& phis,
20  double phi );
21  TEveGeoShape* getShape( const char* name,
22  TGeoBBox* shape,
23  Color_t color );
24 
25  void addRhoZEnergyProjection( FWProxyBuilderBase*, TEveElement*,
26  double r_ecal, double z_ecal,
27  double theta_min, double theta_max,
28  double phi );
29 
32 
33  void invertBox( std::vector<float> &corners );
34  void addBox( const std::vector<float> &corners, TEveElement*, FWProxyBuilderBase*);
35  void addCircle( double eta, double phi, double radius, const unsigned int nLineSegments, TEveElement* comp, FWProxyBuilderBase* pb );
36  void addDashedArrow( double phi, double size, TEveElement* comp, FWProxyBuilderBase* pb );
37  void addDashedLine( double phi, double theta, double size, TEveElement* comp, FWProxyBuilderBase* pb );
38  void addDoubleLines( double phi, TEveElement* comp, FWProxyBuilderBase* pb );
39 
40  //
41  // box-utilts
42  //
43  void energyScaledBox3DCorners( const float* corners, float scale, std::vector<float>&, bool invert = false);
44  void drawEnergyScaledBox3D ( const float* corners, float scale, TEveElement*, FWProxyBuilderBase*, bool invert = false );
45 
46  void energyTower3DCorners( const float* corners, float scale, std::vector<float>&, bool reflect = false);
47  void drawEnergyTower3D ( const float* corners, float scale, TEveElement*, FWProxyBuilderBase*, bool reflect = false );
48 
49  // AMT: is this needed ?
50  void etScaledBox3DCorners( const float* corners, float energy, float maxEnergy, std::vector<float>& scaledCorners, bool reflect = false );
51  void drawEtScaledBox3D( const float* corners, float energy, float maxEnergy, TEveElement*, FWProxyBuilderBase*, bool reflect = false );
52 
53  void etTower3DCorners( const float* corners, float scale, std::vector<float>&, bool reflect = false);
54  void drawEtTower3D( const float* corners, float scale, TEveElement*, FWProxyBuilderBase*, bool reflect = false );
55 }
56 
57 #endif // Fireworks_Core_BuilderUtils_h
size
Write out results.
std::pair< double, double > getPhiRange(const std::vector< double > &phis, double phi)
Definition: BuilderUtils.cc:21
void addDoubleLines(double phi, TEveElement *comp, FWProxyBuilderBase *pb)
void etTower3DCorners(const float *corners, float scale, std::vector< float > &, bool reflect=false)
void drawEnergyScaledBox3D(const float *corners, float scale, TEveElement *, FWProxyBuilderBase *, bool invert=false)
Geom::Theta< T > theta() const
void addDashedLine(double phi, double theta, double size, TEveElement *comp, FWProxyBuilderBase *pb)
void drawEtTower3D(const float *corners, float scale, TEveElement *, FWProxyBuilderBase *, bool reflect=false)
void invertBox(std::vector< float > &corners)
void addDashedArrow(double phi, double size, TEveElement *comp, FWProxyBuilderBase *pb)
void addCircle(double eta, double phi, double radius, const unsigned int nLineSegments, TEveElement *comp, FWProxyBuilderBase *pb)
std::string getTimeGMT(const edm::EventBase &event)
void energyTower3DCorners(const float *corners, float scale, std::vector< float > &, bool reflect=false)
void addRhoZEnergyProjection(FWProxyBuilderBase *, TEveElement *, double r_ecal, double z_ecal, double theta_min, double theta_max, double phi)
Definition: BuilderUtils.cc:60
void energyScaledBox3DCorners(const float *corners, float scale, std::vector< float > &, bool invert=false)
void addBox(const std::vector< float > &corners, TEveElement *, FWProxyBuilderBase *)
std::string getLocalTime(const edm::EventBase &event)
HLT enums.
void etScaledBox3DCorners(const float *corners, float energy, float maxEnergy, std::vector< float > &scaledCorners, bool reflect=false)
void drawEnergyTower3D(const float *corners, float scale, TEveElement *, FWProxyBuilderBase *, bool reflect=false)
TEveGeoShape * getShape(const char *name, TGeoBBox *shape, Color_t color)
Definition: BuilderUtils.cc:42
Definition: event.py:1
void drawEtScaledBox3D(const float *corners, float energy, float maxEnergy, TEveElement *, FWProxyBuilderBase *, bool reflect=false)