Hi Bjorn,
Thanks for the code example. Looking it over carefully I found the problem
with my script (I was lacking a necessary initialization call).
At some point I hope the collaboration will be able to come up with a
tested FullReco script that people can use as a template to see
how various modules fit together--and that someone
can use without making any changes to test that their current
configurations
are up to date and working. A hyped up test script of sorts.
I've just spent most of the last day searching through directories on
rcas and
in brahms_app trying to find such a beast. Unfortunately, all of the
scripts
that I found had too specific a focus for my use, had embedded the use
of private libraries,
did not access the mysql db, or were otherwise dependent on non-standard
(non-brat)
elements.
In any case, thanks for helping me get past my current problem.
...steve
Bjorn H Samset wrote:
>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 - 10:49:42 EDT