21 auto gss =
n->GetVolume()->GetShape();
24 b1s->RefMainTrans().SetFrom(trans.
Array());
26 b1s->SetMainColor(
kCyan);
63 std::string mn = material->
GetName();
75 istringstream
f(path);
77 while (getline(
f, s,
'/'))
86 auto eveMng = REX::REveManager::Create();
99 std::string material =
"TOB_Silicon";
110 std::string material =
"M_B_Air";
114 auto bv =
n->GetVolume();
115 for (
int i = 1; i < 5; ++i) {
116 auto n = bv->FindNode(
Form(
"MBXC_%d", i));
117 auto gss =
n->GetVolume()->GetShape();
119 b1s->InitMainTrans();
120 const double *move =
n->GetMatrix()->GetTranslation();
121 b1s->RefMainTrans().SetFrom(*(
n->GetMatrix()));
123 b1s->SetMainColor(
kBlue);
124 holder->AddElement(b1s);
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
virtual void AddElement(REveElement *el)
Add el to the list of children.
TGeoManager * GetGeometry(const TString &filename)
Get geometry with given filename.
REveScene * GetGlobalScene() const
void Show(const RWebDisplayArgs &args="")
Show eve manager in specified browser.
void SetFrom(Double_t *carr)
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.
Base class describing materials.
Geometrical transformation package.
virtual const Double_t * GetTranslation() const =0
virtual const Double_t * GetRotationMatrix() const =0
A node represent a volume positioned inside another.They store links to both volumes and to the TGeoM...
TGeoVolume * GetVolume() const
Int_t GetNdaughters() const
TGeoNode * GetDaughter(Int_t ind) 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
const char * GetName() const override
Returns name of object.
ROOT::Experimental::REveManager * eveMng
TGeoNode * getNodeFromPath(TGeoNode *top, std::string path)
void makeEveGeoShape(TGeoNode *n, REX::REveTrans &trans, REX::REveElement *holder)
void filterChildNodes(TGeoNode *pn, REX::REveTrans &trans, REX::REveElement *holder, std::string mat, int maxlevel, int level)