GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » General » Problem storing the geometry to a root file
Re: Problem storing the geometry to a root file [message #4745 is a reply to message #4744] Thu, 26 July 2007 09:46 Go to previous messageGo to previous message
Ralf Kliemt is currently offline  Ralf Kliemt
Messages: 507
Registered: May 2007
Location: GSI, Darmstadt
first-grade participant

From: 141.30.85*
Ralf Kliemt replied:
Quote:


Hi Ola,

I have tried to get your problem, but I won't get it.
The main thing is, I think, how the root file geometry is produced. In
the Mvd case Tobias Stockmanns did the work here. He built a converter
from the step file format to root objects. He pointed out to me that it
was somehow important to give a complete TGeoManager into the rootfile
itself.

pandaroot/mvd/MvdMC/MvdDetector.cxx is the you should look into, since
the volume handling is done there.

Concerning the sensitive volumes there is a list of name parts of your
sensitives. The detector names are used to identify them. When the name
contains one of the names in the sensitives list, it is added to the
sensitive volume list from geant.


like:
---
fListOfSensitives.push_back("StripSensor");
fListOfSensitives.push_back("SensorActiveArea");
---

---
bool MvdDetector::CheckIfSensitive(std::string name)
{
for (int i = 0; i < fListOfSensitives.size(); i++){
if (name.find(fListOfSensitives[i]) != std::string::npos)
return true;
}
return false;
}
---

---
if (CheckIfSensitive(v->GetName())){
AddSensitiveVolume(v);
}
---




I hope this helps.
Kind regards, Ralf.


PS:
Skype is no problem for me. In any other case I would not have given my
name to the list.
I'm a very friend of the pandaroot forum. Maybe I'll put these emails
into a thread there...

[Updated on: Thu, 26 July 2007 09:47]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Computing Wiki
Next Topic: Geometry update
Goto Forum:
  


Current Time: Sun Apr 28 23:56:37 CEST 2024

Total time taken to generate the page: 0.00965 seconds