27 auto gss =
n->GetVolume()->GetShape();
30 b1s->RefMainTrans().SetFrom(trans.
Array());
32 b1s->SetMainColor(
kCyan);
69 std::string mn = material->
GetName();
81 istringstream
f(path);
83 while (getline(
f, s,
'/'))
96 auto geoManager =
eveMng->GetGeometry(
"http://root.cern/files/cms.root");
102 eveMng->GetGlobalScene()->AddElement(holder);
105 std::string material =
"TOB_Silicon";
112 eveMng->GetGlobalScene()->AddElement(holder);
116 std::string material =
"M_B_Air";
120 auto bv =
n->GetVolume();
121 for (
int i = 1; i < 5; ++i) {
122 auto n = bv->FindNode(
Form(
"MBXC_%d", i));
123 auto gss =
n->GetVolume()->GetShape();
125 b1s->InitMainTrans();
126 const double *move =
n->GetMatrix()->GetTranslation();
127 b1s->RefMainTrans().SetFrom(*(
n->GetMatrix()));
129 b1s->SetMainColor(
kBlue);
130 holder->AddElement(b1s);
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.
static REveManager * Create()
If global REveManager* REX::gEve is not set initialize it.
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)
Namespace for ROOT features in testing.