CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
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)
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
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)
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
tuple size
Write out results.
void drawEtScaledBox3D(const float *corners, float energy, float maxEnergy, TEveElement *, FWProxyBuilderBase *, bool reflect=false)