21 auto gss =
n->GetVolume()->GetShape();
24 b1s->RefMainTrans().SetFrom(trans.
Array());
37 for (
int i = 0; i <
pn->GetNdaughters(); ++i)
49 t(1,1) = rm[0]; t(1,2) = rm[1]; t(1,3) = rm[2];
50 t(2,1) = rm[3]; t(2,2) = rm[4]; t(2,3) = rm[5];
51 t(3,1) = rm[6]; t(3,2) = rm[7]; t(3,3) = rm[8];
52 t(1,4) =
tv[0]; t(2,4) =
tv[1]; t(3,4) =
tv[2];
68 istringstream
f(path);
79 auto eveMng = REX::REveManager::Create();
92 std::string material =
"TOB_Silicon";
103 std::string material =
"M_B_Air";
107 auto bv =
n->GetVolume();
108 for (
int i = 1; i < 5; ++i ) {
109 auto n =
bv->FindNode(
Form(
"MBXC_%d",i));
110 auto gss =
n->GetVolume()->GetShape();
112 b1s->InitMainTrans();
113 const double*
move =
n->GetMatrix()->GetTranslation();
114 b1s->RefMainTrans().SetFrom( *(
n->GetMatrix()));
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
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.
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.
A node represent a volume positioned inside another.They store links to both volumes and to the TGeoM...
TGeoVolume * GetVolume() const
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)