FairRoot
|
#include <FairMixedSource.h>
Public Member Functions | |
FairMixedSource (TFile *f, const char *Title="InputRootFile", UInt_t identifier=0) | |
FairMixedSource (const TString *RootFileName, const char *Title="InputRootFile", UInt_t identifier=0) | |
FairMixedSource (const TString RootFileName, const Int_t signalId, const char *Title="InputRootFile", UInt_t identifier=0) | |
virtual | ~FairMixedSource () |
Bool_t | Init () |
Int_t | ReadEvent (UInt_t i=0) |
void | Close () |
void | Reset () |
virtual Source_Type | GetSourceType () |
virtual void | SetParUnpackers () |
virtual Bool_t | InitUnpackers () |
virtual Bool_t | ReInitUnpackers () |
virtual Int_t | CheckMaxEventNo (Int_t EvtEnd=0) |
void | ReadBranchEvent (const char *BrName) |
void | ReadBranchEvent (const char *BrName, Int_t Entry) |
void | FillEventHeader (FairEventHeader *feh) |
const TFile * | GetRootFile () |
virtual Bool_t | ActivateObject (TObject **obj, const char *BrName) |
virtual Bool_t | ActivateObjectAny (void **, const std::type_info &, const char *) |
void | ReadBKEvent (UInt_t i=0) |
void | SetSignalFile (TString name, UInt_t identifier) |
void | SetBackgroundFile (TString name) |
void | AddSignalFile (TString name, UInt_t identifier) |
void | AddBackgroundFile (TString name) |
TChain * | GetBGChain () |
TChain * | GetSignalChainNo (UInt_t i) |
Bool_t | OpenBackgroundChain () |
Bool_t | OpenSignalChain () |
void | BGWindowWidthNo (UInt_t background, UInt_t Signalid) |
void | BGWindowWidthTime (Double_t background, UInt_t Signalid) |
void | SetEventTimeInterval (Double_t min, Double_t max) |
void | SetEventMeanTime (Double_t mean) |
void | SetBeamTime (Double_t beamTime, Double_t gapTime) |
void | SetEventTime () |
Double_t | GetDeltaEventTime () |
void | SetFileHeader (FairFileHeader *f) |
Double_t | GetEventTime () |
Bool_t | CompareBranchList (TFile *fileHandle, TString inputLevel) |
TObjArray * | GetListOfFolders () |
TFolder * | GetBranchDescriptionFolder () |
UInt_t | GetEntries () |
void | SetEvtHeaderNew (Bool_t Status) |
Bool_t | IsEvtHeaderNew () |
void | UseRunIdFromBG () |
void | UseRunIdfromSG (UInt_t identifier=1) |
ClassDef (FairMixedSource, 0) | |
Public Member Functions inherited from FairSource | |
FairSource () | |
FairSource (const FairSource &source) | |
virtual | ~FairSource () |
void | SetRunId (Int_t runId) |
Int_t | GetRunId () const |
ClassDef (FairSource, 2) | |
Additional Inherited Members | |
Protected Attributes inherited from FairSource | |
Int_t | fRunId |
Definition at line 38 of file FairMixedSource.h.
FairMixedSource::FairMixedSource | ( | TFile * | f, |
const char * | Title = "InputRootFile" , |
||
UInt_t | identifier = 0 |
||
) |
Definition at line 39 of file FairMixedSource.cxx.
FairMixedSource::FairMixedSource | ( | const TString * | RootFileName, |
const char * | Title = "InputRootFile" , |
||
UInt_t | identifier = 0 |
||
) |
Definition at line 94 of file FairMixedSource.cxx.
FairMixedSource::FairMixedSource | ( | const TString | RootFileName, |
const Int_t | signalId, | ||
const char * | Title = "InputRootFile" , |
||
UInt_t | identifier = 0 |
||
) |
Definition at line 149 of file FairMixedSource.cxx.
|
virtual |
Definition at line 212 of file FairMixedSource.cxx.
|
virtual |
Add a friend file (input) by name)
Reimplemented from FairSource.
Definition at line 612 of file FairMixedSource.cxx.
|
virtual |
Reimplemented from FairSource.
Definition at line 628 of file FairMixedSource.cxx.
void FairMixedSource::AddBackgroundFile | ( | TString | name | ) |
Definition at line 529 of file FairMixedSource.cxx.
void FairMixedSource::AddSignalFile | ( | TString | name, |
UInt_t | identifier | ||
) |
Add signal file to input
name | : signal file name |
identifier | : Unsigned integer which identify the signal file to which this signal should be added |
Definition at line 505 of file FairMixedSource.cxx.
void FairMixedSource::BGWindowWidthNo | ( | UInt_t | background, |
UInt_t | Signalid | ||
) |
Set the signal to background ratio in event units
background | : Number of background Events for one signal |
Signalid | : Signal file Id, used when adding (setting) the signal file |
Definition at line 650 of file FairMixedSource.cxx.
void FairMixedSource::BGWindowWidthTime | ( | Double_t | background, |
UInt_t | Signalid | ||
) |
Set the signal to background rate in time units
background | : Time of background Events before one signal |
Signalid | : Signal file Id, used when adding (setting) the signal file |
convert to number of event by dividing by the mean time
Definition at line 665 of file FairMixedSource.cxx.
|
virtual |
Check the maximum event number we can run to
Reimplemented from FairSource.
Definition at line 686 of file FairMixedSource.cxx.
FairMixedSource::ClassDef | ( | FairMixedSource | , |
0 | |||
) |
|
virtual |
Implements FairSource.
Definition at line 420 of file FairMixedSource.cxx.
Bool_t FairMixedSource::CompareBranchList | ( | TFile * | fileHandle, |
TString | inputLevel | ||
) |
Add ROOT file to input, the file will be chained to already added files
Definition at line 436 of file FairMixedSource.cxx.
|
virtual |
Reimplemented from FairSource.
Definition at line 424 of file FairMixedSource.cxx.
|
inline |
Definition at line 95 of file FairMixedSource.h.
|
inline |
Definition at line 128 of file FairMixedSource.h.
Double_t FairMixedSource::GetDeltaEventTime | ( | ) |
Definition at line 763 of file FairMixedSource.cxx.
|
inline |
Definition at line 129 of file FairMixedSource.h.
Double_t FairMixedSource::GetEventTime | ( | ) |
Definition at line 776 of file FairMixedSource.cxx.
|
inline |
Set the input tree when running on PROOF worker
Definition at line 127 of file FairMixedSource.h.
|
inline |
Definition at line 72 of file FairMixedSource.h.
TChain * FairMixedSource::GetSignalChainNo | ( | UInt_t | i | ) |
Definition at line 507 of file FairMixedSource.cxx.
|
inlinevirtual |
Implements FairSource.
Definition at line 55 of file FairMixedSource.h.
|
virtual |
Implements FairSource.
Definition at line 213 of file FairMixedSource.cxx.
|
inlinevirtual |
Implements FairSource.
Definition at line 59 of file FairMixedSource.h.
|
inline |
Definition at line 136 of file FairMixedSource.h.
Bool_t FairMixedSource::OpenBackgroundChain | ( | ) |
Definition at line 547 of file FairMixedSource.cxx.
Bool_t FairMixedSource::OpenSignalChain | ( | ) |
Definition at line 595 of file FairMixedSource.cxx.
void FairMixedSource::ReadBKEvent | ( | UInt_t | i = 0 | ) |
Definition at line 641 of file FairMixedSource.cxx.
|
virtual |
Read the tree entry on one branch
fill the object with content if the other branches in this tree entry were already read
Reimplemented from FairSource.
Definition at line 803 of file FairMixedSource.cxx.
|
virtual |
Read specific tree entry on one branch
fill the object with content if the other branches in this tree entry were already read
Reimplemented from FairSource.
Definition at line 817 of file FairMixedSource.cxx.
|
virtual |
Implements FairSource.
Definition at line 377 of file FairMixedSource.cxx.
|
inlinevirtual |
Implements FairSource.
Definition at line 61 of file FairMixedSource.h.
|
virtual |
Implements FairSource.
Definition at line 422 of file FairMixedSource.cxx.
void FairMixedSource::SetBackgroundFile | ( | TString | name | ) |
Set the input background file by name
Definition at line 517 of file FairMixedSource.cxx.
void FairMixedSource::SetBeamTime | ( | Double_t | beamTime, |
Double_t | gapTime | ||
) |
Set the repetition time of the beam when it can interact (beamTime) and when no interaction happen (gapTime). The total repetition time is beamTime + gapTime
Definition at line 742 of file FairMixedSource.cxx.
void FairMixedSource::SetEventMeanTime | ( | Double_t | mean | ) |
Set the mean time for the event in ns
Definition at line 717 of file FairMixedSource.cxx.
void FairMixedSource::SetEventTime | ( | ) |
Definition at line 748 of file FairMixedSource.cxx.
void FairMixedSource::SetEventTimeInterval | ( | Double_t | min, |
Double_t | max | ||
) |
Set the min and max limit for event time in ns
Definition at line 734 of file FairMixedSource.cxx.
|
inline |
Set the status of the EvtHeader
Status,: | True: The header was creatged in this session and has to be filled FALSE: We use an existing header from previous data level |
Definition at line 135 of file FairMixedSource.h.
|
inline |
Definition at line 121 of file FairMixedSource.h.
|
inlinevirtual |
Implements FairSource.
Definition at line 57 of file FairMixedSource.h.
void FairMixedSource::SetSignalFile | ( | TString | name, |
UInt_t | identifier | ||
) |
Set the input signal file
name | : signal file name |
identifier | : Unsigned integer which identify the signal file |
Set a signal file of certain type (identifier) if already exist add the file to the chain
Definition at line 482 of file FairMixedSource.cxx.
void FairMixedSource::UseRunIdFromBG | ( | ) |
Use the Backgraund RunID to initialize the parameter for the run
Use the Backgraund rRunID to initialize the parameter for the run
Definition at line 831 of file FairMixedSource.cxx.
void FairMixedSource::UseRunIdfromSG | ( | UInt_t | identifier = 1 | ) |
Use the Backgraund RunID to initialize the parameter for the run
identifier,: | Signal file identifier to be used by default we take the first Signal |
Use the Backgraund rRunID to initialize the parameter for the run
identifier,: | Signal file identifier to be used by default we take the first Signal |
Definition at line 837 of file FairMixedSource.cxx.