28 auto gss =
n->GetVolume()->GetShape();
31 b1s->RefMainTrans().SetFrom(trans.
Array());
33 b1s->SetMainColor(
kCyan);
70 std::string mn = material->
GetName();
73 makeEveGeoShape(
n, ctrans, holder);
75 filterChildNodes(
n, ctrans, holder, mat, maxlevel, level);
82 istringstream
f(path);
84 while (getline(
f, s,
'/'))
93 auto eveMng = REX::REveManager::Create();
97 auto geoManager = eveMng->GetGeometry(
"http://root.cern/files/cms.root");
103 eveMng->GetGlobalScene()->AddElement(holder);
104 TGeoNode *
n = getNodeFromPath(top,
"TRAK_1/SVTX_1/TGBX_1/GAW1_1");
106 std::string material =
"TOB_Silicon";
107 filterChildNodes(
n, trans, holder, material, 6, 0);
113 eveMng->GetGlobalScene()->AddElement(holder);
115 auto n = getNodeFromPath(top,
"MUON_1/MB_1");
117 std::string material =
"M_B_Air";
119 filterChildNodes(
n, trans, holder, material, 1, 0);
121 auto bv =
n->GetVolume();
122 for (
int i = 1; i < 5; ++i) {
123 auto n = bv->FindNode(
Form(
"MBXC_%d", i));
124 auto gss =
n->GetVolume()->GetShape();
126 b1s->InitMainTrans();
127 const double *move =
n->GetMatrix()->GetTranslation();
128 b1s->RefMainTrans().SetFrom(*(
n->GetMatrix()));
130 b1s->SetMainColor(
kBlue);
double Double_t
Double 8 bytes.
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.
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.
Namespace for ROOT features in testing.