JSFMergeEvent
class description - source file - inheritance tree
public:
JSFMergeEvent(const Char_t* name = "JSFMergeEvent", const Char_t* title = "Read/Write Background data", const Char_t* opt)
JSFMergeEvent(const JSFMergeEvent&)
virtual ~JSFMergeEvent()
virtual Bool_t BeginRun(Int_t nrun = 0)
static TClass* Class()
virtual Bool_t EndRun()
Char_t* GetDataFileName()
virtual Bool_t Initialize()
virtual TClass* IsA() const
void PrintRandomSeed()
virtual Bool_t Process(Int_t ev = 1)
void ReadRandomSeed(const Char_t* filename)
void SetDataFileName(Char_t* name)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
void WriteRandomSeed(const Char_t* filename)
protected:
PythiaGenerator* fPythiaGenerator ! Pointer to input data
JSFQuickSim* fJSFQuickSim ! Pointer to input data.
Char_t fDataFileName[256] ! File name of inpufile;
Float_t fLumPerTrain Luminosity per train ( 1/nb )
Float_t fNumAverage Averaged number of background event.
Int_t fNumEvent Total number of event in the file.
Int_t fRandomSeed Seed of random number.
JSFMergeEvent
Merge background event data to signal event.
Purpose of this class is to merge events which are prepared in a root file
by another run. This can be used, for eacmple, to overly two-photon
background events on another signal events. Current version is designed so as
to merge background events generated by PythiaGenerator class and JSFQuickSim class.
When this object is included, event data of PythiaGenerator and JSFQuickSim
from a background data file are merged.
(Parameters)
Environment parameters and its default values are as follows.
# A name of Background data file.
JSFMergeEvent.DataFile simdst.dat
#
# Luminosity per bunch train in unit of 1/nb (nano barn invers).
# Default value of 0.06 corresponds to collider luminosity
# of 9x10^{33} / cm^2 sec operated at RF pulse frequency of 150 Hz.
JSFMergeEvent.LumPerTrain 0.06
#
# Seed of random number. Since This class uses gRandom variable, it random
# seed will be mixed up, if gRandom is used another place.
JSFMergeEvent.RandomSeed 1990729
#
In JSFMergeEvent::Process(), the number background events are generated
according to the poisson distribution. That number of events are picked up
from the DataFile and their event data are appended into current event record.
$Id: JSFMergeEvent.cxx,v 1.4 2001/11/06 07:36:08 miyamoto Exp $
JSFMergeEvent(const Char_t *name, const Char_t *title,
const Char_t *opt) : JSFModule(name,title, opt)
JSFMergeEvent constructor.
~JSFMergeEvent()
Bool_t Initialize()
Here we open a file and set branch from where merged event is read in.
Bool_t BeginRun(Int_t nrun)
Bool_t EndRun()
Bool_t Process(Int_t nev)
void WriteRandomSeed(const Char_t *fw)
void ReadRandomSeed(const Char_t *fr)
void PrintRandomSeed()
Inline Functions
Char_t* GetDataFileName()
void SetDataFileName(Char_t* name)
TClass* Class()
TClass* IsA() const
void ShowMembers(TMemberInspector& insp, char* parent)
void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
JSFMergeEvent JSFMergeEvent(const JSFMergeEvent&)
Last update: Tue Jan 20 15:54:32 2004
ROOT page - Home page - Class index - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.