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
fireworks::drawEnergyScaledBox3D
void drawEnergyScaledBox3D(const float *corners, float scale, TEveElement *, FWProxyBuilderBase *, bool invert=false)
Definition: BuilderUtils.cc:245
L1EGammaCrystalsEmulatorProducer_cfi.scale
scale
Definition: L1EGammaCrystalsEmulatorProducer_cfi.py:10
fireworks::drawEnergyTower3D
void drawEnergyTower3D(const float *corners, float scale, TEveElement *, FWProxyBuilderBase *, bool reflect=false)
Definition: BuilderUtils.cc:322
edm
HLT enums.
Definition: AlignableModifier.h:19
fireworks::etScaledBox3DCorners
void etScaledBox3DCorners(const float *corners, float energy, float maxEnergy, std::vector< float > &scaledCorners, bool reflect=false)
Definition: BuilderUtils.cc:252
fireworks::addDoubleLines
void addDoubleLines(double phi, TEveElement *comp, FWProxyBuilderBase *pb)
Definition: BuilderUtils.cc:209
AlCaHLTBitMon_QueryRunRegistry.comp
comp
Definition: AlCaHLTBitMon_QueryRunRegistry.py:249
fireworks::getShape
TEveGeoShape * getShape(const char *name, TGeoBBox *shape, Color_t color)
Definition: BuilderUtils.cc:44
fireworks::addDashedLine
void addDashedLine(double phi, double theta, double size, TEveElement *comp, FWProxyBuilderBase *pb)
Definition: BuilderUtils.cc:190
fireworks::getTimeGMT
std::string getTimeGMT(const edm::EventBase &event)
Definition: BuilderUtils.cc:109
PVValHelper::eta
Definition: PVValidationHelpers.h:69
fireworks::energyTower3DCorners
void energyTower3DCorners(const float *corners, float scale, std::vector< float > &, bool reflect=false)
Definition: BuilderUtils.cc:287
fireworks::etTower3DCorners
void etTower3DCorners(const float *corners, float scale, std::vector< float > &, bool reflect=false)
Definition: BuilderUtils.cc:330
theta
Geom::Theta< T > theta() const
Definition: Basic3DVectorLD.h:150
HCALHighEnergyHPDFilter_cfi.energy
energy
Definition: HCALHighEnergyHPDFilter_cfi.py:5
fireworks::addRhoZEnergyProjection
void addRhoZEnergyProjection(FWProxyBuilderBase *, TEveElement *, double r_ecal, double z_ecal, double theta_min, double theta_max, double phi)
Definition: BuilderUtils.cc:58
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
fireworks::getLocalTime
std::string getLocalTime(const edm::EventBase &event)
Definition: BuilderUtils.cc:119
fireworks::addCircle
void addCircle(double eta, double phi, double radius, const unsigned int nLineSegments, TEveElement *comp, FWProxyBuilderBase *pb)
Definition: BuilderUtils.cc:161
fireworks::drawEtTower3D
void drawEtTower3D(const float *corners, float scale, TEveElement *, FWProxyBuilderBase *, bool reflect=false)
Definition: BuilderUtils.cc:365
fireworks::energyScaledBox3DCorners
void energyScaledBox3DCorners(const float *corners, float scale, std::vector< float > &, bool invert=false)
Definition: BuilderUtils.cc:222
particleFlowClusterECALTimeSelected_cfi.maxEnergy
maxEnergy
Definition: particleFlowClusterECALTimeSelected_cfi.py:10
fireworks::drawEtScaledBox3D
void drawEtScaledBox3D(const float *corners, float energy, float maxEnergy, TEveElement *, FWProxyBuilderBase *, bool reflect=false)
Definition: BuilderUtils.cc:279
fireworks::addBox
void addBox(const std::vector< float > &corners, TEveElement *, FWProxyBuilderBase *)
Definition: BuilderUtils.cc:152
l1tstage2_dqm_sourceclient-live_cfg.invert
invert
Definition: l1tstage2_dqm_sourceclient-live_cfg.py:85
FWProxyBuilderBase
Definition: FWProxyBuilderBase.h:46
edm::EventBase
Definition: EventBase.h:46
fireworks::invertBox
void invertBox(std::vector< float > &corners)
Definition: BuilderUtils.cc:134
CosmicsPD_Skims.radius
radius
Definition: CosmicsPD_Skims.py:135
EventBase
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
fireworks
Definition: FWTauProxyBuilderBase.h:35
event
Definition: event.py:1
fireworks::addDashedArrow
void addDashedArrow(double phi, double size, TEveElement *comp, FWProxyBuilderBase *pb)
Definition: BuilderUtils.cc:180
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443
fireworks::getPhiRange
std::pair< double, double > getPhiRange(const std::vector< double > &phis, double phi)
Definition: BuilderUtils.cc:21