42 ps->SetNextPoint(
r.Uniform(-s,s),
r.Uniform(-s,s),
r.Uniform(-s,s));
44 ps->SetMarkerColor(color);
45 ps->SetMarkerSize(3+
r.Uniform(1, 2));
68 for (
auto &ie :
eveMng->GetGlobalScene()->RefChildren())
71 for (
auto &ie :
eveMng->GetEventScene()->RefChildren())
78 istringstream
f(path);
80 while (getline(
f, s,
'/'))
93 auto geoManager =
eveMng->GetGeometry(
"http://root.cern/files/cms.root");
96 eveMng->GetGlobalScene()->AddElement(holder);
99 m->SetShape(
n->GetVolume()->GetShape());
101 holder->AddElement(
m);
103 auto bv =
n->GetVolume();
104 for (
int i = 1;
i < 5; ++
i ) {
106 auto n = bv->FindNode(
Form(
"MBXC_%d",
i));
107 auto gss =
n->GetVolume()->GetShape();
109 b1s->InitMainTrans();
110 const double* move =
n->GetMatrix()->GetTranslation();
111 b1s->RefMainTrans().SetFrom( *(
n->GetMatrix()));
113 b1s->SetMainColor(
kBlue);
114 holder->AddElement(b1s);
119 line->SetNextPoint(0, 0, 0);
125 line2->SetNextPoint(0, 0, 0);
127 line2->SetNextPoint(
b,
b+5,
b);
128 line2->SetMainColor(
kRed);
129 eveMng->GetEventScene()->AddElement(line2);
135 if (
type ==
"RPhi") {
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t points
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
R__EXTERN TRandom * gRandom
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
REveLine An arbitrary polyline with fixed line and marker attributes.
static REveManager * Create()
If global REveManager* REX::gEve is not set initialize it.
REveProjectionManager Manager class for steering of projections and managing projected objects.
REveProjection Base for specific classes that implement non-linear projections.
void SetUsePreScale(Bool_t x)
void AddPreScaleEntry(Int_t coord, Float_t max_val, Float_t scale)
Add new scaling range for given coordinate.
static Bool_t SetCacheFileDir(std::string_view cacheDir, Bool_t operateDisconnected=kTRUE, Bool_t forceCacheread=kFALSE)
Sets the directory where to locally stage/cache remote files.
A node represent a volume positioned inside another.They store links to both volumes and to the TGeoM...
TGeoVolume * GetVolume() const
Int_t FindNode(const TGeoNode *node, Int_t level)
Search for a node within the branch of this one.
TGeoNode * FindNode(const char *name) const
search a daughter inside the list of nodes
This is the base class for the ROOT Random number generators.
ROOT::Experimental::REveManager * eveMng
TGeoNode * getNodeFromPath(TGeoNode *top, std::string path)
void makeProjectedViewsAndScene(REX::REveProjection::EPType_e type, bool scale)
REX::REvePointSet * getPointSet(int npoints=2, float s=2, int color=28)
void projection_prescale(std::string type="RPhi")
REX::REveScene * rPhiGeomScene
REX::REveScene * rPhiEventScene
REX::REveViewer * rphiView
REX::REveProjectionManager * mngRhoPhi