FEDRA emulsion software from the OPERA Collaboration
EdbRun.cxx File Reference
#include "TBranchClones.h"
#include "TError.h"
#include "TSystem.h"
#include "TObjString.h"
#include "EdbRun.h"
#include "EdbAffine.h"
#include "EdbLog.h"
Include dependency graph for EdbRun.cxx:

Functions

 ClassImp (EdbRun) EdbRun
 

Function Documentation

◆ ClassImp()

ClassImp ( EdbRun  )

//////////////////////////////////////////////////////////////////////// // EdbRun // // Class for handling data of one session of emulsion scanning. // Session means that all scanned data are in the same reference system // EdbRun is always associated with the correspondent root file

EdbRun could be used in 2 ways: a) to put raw scanning data b) to put the processed data

in case a) normally new run should be creted via EdbOnline class

in case b) the following example could be used to create and fill analysis run:

EdbRun *runIN = new EdbRun("/row_data/run0093.root"); EdbRun *runOUT = new EdbRun( *runIN,"/analysed_data/run0093_seg.root"); EdbView *view = 0;

int N = runIN->GetEntries();

for( int i=0; i<N; i++ ){

view = runIN->GetEntry(i);

... process view as you want ...

runOUT->AddView(view); }

runOUT->Close();

////////////////////////////////////////////////////////////////////////

51{
52 Init();
53}