Re: Problem storing the geometry to a root file [message #4745 is a reply to message #4744] |
Thu, 26 July 2007 09:46 |
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
|
|
|