On Wed, 15 Nov 2000, Djamel Ouerdane wrote:
> I suggest you describe a little bit more your need since I might have
> misunderstood completely :)
I see I was a bit too brief. BrValueObject is intended as a very general
little tool for use in analysis-programs - let me illustrate by an
expample.
I make a BRAT-application that does tracking in a TPC, and stores the
track_node in an output-file. To reduce the file-size, I remove almost
everythig else from the raw event, since what I need are the tracks. BUT -
I would also like to know e.g. the number of clusters found in the TPC in
each event. This info is not easily transfered to my track-node, so I
create a BrValueObject:
BrValueObject *fNumCl = new BrValueObject("NumClusters T1","Number of
clusters T1");
and do something like
fNumCl->SetInt(my_clusterfinder->GetDetectorHits()->GetEntries());
my_track_node->AddObject(fNumCl);
Now I can get at the number of clusters from my output-file.
My current beta version of this class contains Set/GetFloat(), Int(),
Bool() and Double() to allow for different values.
To reiterate - I made this class because of a specific need (actually to
reduce file-size) in one of my BRAT-applications. I hadn't planned to
commit it to CVS, but since it is there and working I thought I'd ask :-)
Hope that was clearer :-)
Ping again.
------------------------------------------------
Bjorn H. Samset
Master-student in Heavy Ion physics
Mob: +47 92 05 19 98 Office: +47 22 85 77 62
Adr: Kri 2A709 Sognsveien 218 0864 Oslo
This archive was generated by hypermail 2b29 : Wed Nov 15 2000 - 07:17:08 EST