Page History
...
Then, in data processing stage, for example for each event, we may accumulate data in created histogram and ntuple objects,
Code Block |
---|
pBeamEnergy ->fill(E); pBeamCurrent->fill(I); nt ->addColumn(); pHis1 ->fill(x,[weight]); pHis2 ->fill(x,y,[weight]); |
...
Package PSTuple contains the base abstract class and methods, which have to be implemented in derived classes for HBOOK, ROOT, HippoTuple, etc., i.e. in packages HBookTuple, RootTuple, HippoTuple, etc.
Example from BABAR
Code Block |
---|
#include "HepTuple/Histogram.h"
#include "HepTuple/TupleManager.h"
HepTupleManager* manager = gblEnv->getGen()->ntupleManager();
HepTuple *_ntuple = manager->ntuple("file-name.root");
_ntuple->column("run", eventID->run(), -99, "Event" );
_ntuple->column("event", eventCounter, -99, "Event" );
_ntuple->dumpData();
|
Overview
Content Tools