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  std::pair<double, double> getPhiRange(const std::vector<double>& phis, double phi);
19  TEveGeoShape* getShape(const char* name, TGeoBBox* shape, Color_t color);
20 
22  FWProxyBuilderBase*, TEveElement*, double r_ecal, double z_ecal, double theta_min, double theta_max, double phi);
23 
26 
27  void invertBox(std::vector<float>& corners);
28  void addBox(const std::vector<float>& corners, TEveElement*, FWProxyBuilderBase*);
29  void addCircle(double eta,
30  double phi,
31  double radius,
32  const unsigned int nLineSegments,
33  TEveElement* comp,
34  FWProxyBuilderBase* pb);
35  void addDashedArrow(double phi, double size, TEveElement* comp, FWProxyBuilderBase* pb);
36  void addDashedLine(double phi, double theta, double size, TEveElement* comp, FWProxyBuilderBase* pb);
37  void addDoubleLines(double phi, TEveElement* comp, FWProxyBuilderBase* pb);
38 
39  //
40  // box-utilts
41  //
42  void energyScaledBox3DCorners(const float* corners, float scale, std::vector<float>&, bool invert = false);
43  void drawEnergyScaledBox3D(const float* corners, float scale, TEveElement*, FWProxyBuilderBase*, bool invert = false);
44 
45  void energyTower3DCorners(const float* corners, float scale, std::vector<float>&, bool reflect = false);
46  void drawEnergyTower3D(const float* corners, float scale, TEveElement*, FWProxyBuilderBase*, bool reflect = false);
47 
48  // AMT: is this needed ?
50  const float* corners, float energy, float maxEnergy, std::vector<float>& scaledCorners, bool reflect = false);
51  void drawEtScaledBox3D(
52  const float* corners, float energy, float maxEnergy, TEveElement*, FWProxyBuilderBase*, bool reflect = false);
53 
54  void etTower3DCorners(const float* corners, float scale, std::vector<float>&, bool reflect = false);
55  void drawEtTower3D(const float* corners, float scale, TEveElement*, FWProxyBuilderBase*, bool reflect = false);
56 } // namespace fireworks
57 
58 #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)
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:58
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:44
Geom::Theta< T > theta() const
Definition: event.py:1
void drawEtScaledBox3D(const float *corners, float energy, float maxEnergy, TEveElement *, FWProxyBuilderBase *, bool reflect=false)