On Thu, 2 May 2002, Stephen J. Sanders wrote:
> OK, I find the core problem is not getting the proper detector
parameters
> form the db. By added a Print("db") statement I find:
> BrDetectorVolume: TPM1 - TPM1
> Detector Volume TPM1, Type :
> Size: 0.00 0.00 0.00
> Position 0.00 0.00 0.00
> (0.000000,0.000000,0.000000)
> ( 0.000000, 0.000000, 0.000000)
> ( 0.000000, 0.000000, 0.000000)
> ( 0.000000, 0.000000, 0.000000)
> (0.000000,0.000000,0.000000)
> ( 0.000000, 0.000000, 0.000000)
> ( 0.000000, 0.000000, 0.000000)
> ( 0.000000, 0.000000, 0.000000)
>
> Now if I can only figure out what the correct name is...
> ...steve
Hi Steve. I just tried to add BrTPMTrackVertexModule to one of my scripts
using the geom.db, and I have no problems getting vertices. What I added
was
//__________________________________________________________________
// Module: BrTPMTrackVertexModule
BrTPMTrackVertexModule* tPMTrackVertexModule =
new BrTPMTrackVertexModule("TPM1", "TPM1");
mainModule->AddModule(tPMTrackVertexModule);
and my db part looks like this:
if (runOption->GetValue() && geometryOption->GetValue()[0] == '\0')
if (!mainDb->ConnectToGeom())
return;
BrGeometryDbManager *geometryManager =
BrGeometryDbManager::Instance();
if (runOption->GetValue() && geometryOption->GetValue()[0] == '\0')
geometryManager->SetDbModeMySQL();
else {
geometryManager->SetDbFileName(geometryOption->GetValue());
geometryManager->SetDbFileName(magnetOption->GetValue());
geometryManager->SetDebugLevel(debugOption->GetValue());
}
You can read the full script here:
/direct/brahms+u/bjornhs/work/reco/global/GlobalBrahmsReco_trackVtx.C
Also, I have
rcas0018(67) ~/work/reco/global>brat-config --version
2.3.10
(compiled in my home dir.)
rcas0018(68) ~/work/reco/global>root-config --version
3.03/04
(afs version)
So - your problems are either related to your script/program, or to
something architecture/version-dependent. I suspect the latter since I
have never seen this error, and in that case I'm afraid I can't be of much
more help...
Good hunting.
--
Bjorn H. Samset Phone: 22856465/92051998
PhD student, heavy ion physics Adr: Schouterrassen 6
Inst. of Physics, University of Oslo 0573 Oslo
\|/
----------------------------> -*- <-----------------------------
/|\
This archive was generated by hypermail 2b30 : Fri May 03 2002 - 05:20:15 EDT