diff --git a/HitTube_8h_source.html b/HitTube_8h_source.html index 0d8ec47..2f774f2 100644 --- a/HitTube_8h_source.html +++ b/HitTube_8h_source.html @@ -100,60 +100,66 @@
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +Public Member Functions | ||
- | TrueHit (float t, int id=999999999) | |
-float | GetTime () const | |
+ | TrueHit (double t, int id=999999999) | |
+double | GetTime () const | |
float | GetParentId () const | |
fRnd (defined in WCRootDataNuInt) | WCRootDataNuInt | protected |
fSpEvt (defined in WCRootData) | WCRootData | protected |
fWCGeom (defined in WCRootData) | WCRootData | protected |
fWCSimC (defined in WCRootData) | WCRootData | protected |
fWCSimT (defined in WCRootData) | WCRootData | protected |
GetCurrentInputFileName() const (defined in WCRootData) | WCRootData | inline |
GetEnergyDepositionInOD() const (defined in WCRootDataBeamBkg) | WCRootDataBeamBkg | inlinevirtual |
GetEntries() (defined in WCRootData) | WCRootData | |
GetEntry(int) (defined in WCRootData) | WCRootData | |
GetEventIdNumber() const (defined in WCRootDataNuInt) | WCRootDataNuInt | inline |
GetFileIdNumber() const (defined in WCRootDataNuInt) | WCRootDataNuInt | inline |
GetFileIdNumber(const char *, const char *prefix="wcsim.") (defined in WCRootDataNuInt) | WCRootDataNuInt | protected |
GetGeometryInfo(const char *) (defined in WCRootData) | WCRootData | |
GetInteractionType() const (defined in WCRootDataNuInt) | WCRootDataNuInt | inline |
GetTrigger(int i, int iPMT=0) const (defined in WCRootData) | WCRootData | inline |
isOD (defined in WCRootData) | WCRootData | protected |
LoadFiles(const char *) (defined in WCRootDataBeamBkg) | WCRootDataBeamBkg | |
Next() (defined in WCRootDataNuInt) | WCRootDataNuInt | virtual |
ReadFile(const char *, const vector< string > &v=vector< string >()) (defined in WCRootData) | WCRootData | |
fWCRootEvtList (defined in WCRootDataNuInt) | WCRootDataNuInt | protected |
fWCSimC (defined in WCRootData) | WCRootData | protected |
fWCSimT (defined in WCRootData) | WCRootData | protected |
GetCurrentInputFileName() const (defined in WCRootData) | WCRootData | inline |
GetEnergyDepositionInOD() const (defined in WCRootDataBeamBkg) | WCRootDataBeamBkg | inlinevirtual |
GetEntries() (defined in WCRootData) | WCRootData | |
GetEntry(int) (defined in WCRootData) | WCRootData | |
GetEventIdNumber() const (defined in WCRootDataNuInt) | WCRootDataNuInt | inline |
GetFileIdNumber() const (defined in WCRootDataNuInt) | WCRootDataNuInt | inline |
GetFileIdNumber(const char *, const char *prefix="wcsim.") (defined in WCRootDataNuInt) | WCRootDataNuInt | protected |
GetGeometryInfo(const char *) (defined in WCRootData) | WCRootData | |
GetInteractionType() const (defined in WCRootDataNuInt) | WCRootDataNuInt | inline |
GetTrigger(int i, int iPMT=0) const (defined in WCRootData) | WCRootData | inline |
isOD (defined in WCRootData) | WCRootData | protected |
LoadFiles(const char *, const std::vector< string > &v=vector< string >()) (defined in WCRootDataBeamBkg) | WCRootDataBeamBkg | |
Next() (defined in WCRootDataNuInt) | WCRootDataNuInt | virtual |
ReadFile(const char *, const vector< string > &v=vector< string >()) (defined in WCRootData) | WCRootData | |
SetHasFriend(bool val) (defined in WCRootDataNuInt) | WCRootDataNuInt | inline |
SetInteractionInformation(PileUpSpill_t *) const (defined in WCRootDataNuInt) | WCRootDataNuInt | inlinevirtual |
SetInteractionRate(const float f) (defined in WCRootDataNuInt) | WCRootDataNuInt | inline |
SetNDigitsFileIDNumber(int i) (defined in WCRootDataNuInt) | WCRootDataNuInt | inline |
Public Member Functions | ||
-void | LoadFiles (const char *) | |
+void | LoadFiles (const char *, const std::vector< string > &v=vector< string >()) | |
float | GetEnergyDepositionInOD () const | |
void | SetSeed (const int i) | |
-void | LoadFiles (const char *) | |
+void | LoadFiles (const char *, const std::vector< string > &v=vector< string >()) | |
virtual bool | Next () | |
virtual void | SetInteractionInformation (PileUpSpill_t *) const | |
+void | SetHasFriend (bool val) | |
Public Member Functions inherited from WCRootData | ||
void | ReadFile (const char *, const vector< string > &v=vector< string >()) | |
float | fIntRate | |
+std::vector< string > | fWCRootEvtList | |
Protected Attributes inherited from WCRootData | ||
TChain * | fWCSimC | |
fRnd (defined in WCRootDataNuInt) | WCRootDataNuInt | protected |
fSpEvt (defined in WCRootData) | WCRootData | protected |
fWCGeom (defined in WCRootData) | WCRootData | protected |
fWCSimC (defined in WCRootData) | WCRootData | protected |
fWCSimT (defined in WCRootData) | WCRootData | protected |
GetCurrentInputFileName() const (defined in WCRootData) | WCRootData | inline |
GetEnergyDepositionInOD() const (defined in WCRootDataNuInt) | WCRootDataNuInt | inlinevirtual |
GetEntries() (defined in WCRootData) | WCRootData | |
GetEntry(int) (defined in WCRootData) | WCRootData | |
GetEventIdNumber() const (defined in WCRootDataNuInt) | WCRootDataNuInt | inline |
GetFileIdNumber() const (defined in WCRootDataNuInt) | WCRootDataNuInt | inline |
GetFileIdNumber(const char *, const char *prefix="wcsim.") (defined in WCRootDataNuInt) | WCRootDataNuInt | protected |
GetGeometryInfo(const char *) (defined in WCRootData) | WCRootData | |
GetInteractionType() const (defined in WCRootDataNuInt) | WCRootDataNuInt | inline |
GetTrigger(int i, int iPMT=0) const (defined in WCRootData) | WCRootData | inline |
isOD (defined in WCRootData) | WCRootData | protected |
LoadFiles(const char *) (defined in WCRootDataIDNuInt) | WCRootDataIDNuInt | |
Next() (defined in WCRootDataNuInt) | WCRootDataNuInt | virtual |
ReadFile(const char *, const vector< string > &v=vector< string >()) (defined in WCRootData) | WCRootData | |
fWCRootEvtList (defined in WCRootDataNuInt) | WCRootDataNuInt | protected |
fWCSimC (defined in WCRootData) | WCRootData | protected |
fWCSimT (defined in WCRootData) | WCRootData | protected |
GetCurrentInputFileName() const (defined in WCRootData) | WCRootData | inline |
GetEnergyDepositionInOD() const (defined in WCRootDataNuInt) | WCRootDataNuInt | inlinevirtual |
GetEntries() (defined in WCRootData) | WCRootData | |
GetEntry(int) (defined in WCRootData) | WCRootData | |
GetEventIdNumber() const (defined in WCRootDataNuInt) | WCRootDataNuInt | inline |
GetFileIdNumber() const (defined in WCRootDataNuInt) | WCRootDataNuInt | inline |
GetFileIdNumber(const char *, const char *prefix="wcsim.") (defined in WCRootDataNuInt) | WCRootDataNuInt | protected |
GetGeometryInfo(const char *) (defined in WCRootData) | WCRootData | |
GetInteractionType() const (defined in WCRootDataNuInt) | WCRootDataNuInt | inline |
GetTrigger(int i, int iPMT=0) const (defined in WCRootData) | WCRootData | inline |
isOD (defined in WCRootData) | WCRootData | protected |
LoadFiles(const char *, const std::vector< string > &v=vector< string >()) (defined in WCRootDataIDNuInt) | WCRootDataIDNuInt | |
Next() (defined in WCRootDataNuInt) | WCRootDataNuInt | virtual |
ReadFile(const char *, const vector< string > &v=vector< string >()) (defined in WCRootData) | WCRootData | |
SetHasFriend(bool val) (defined in WCRootDataNuInt) | WCRootDataNuInt | inline |
SetInteractionInformation(PileUpSpill_t *) const (defined in WCRootDataIDNuInt) | WCRootDataIDNuInt | virtual |
SetInteractionRate(const float f) (defined in WCRootDataNuInt) | WCRootDataNuInt | inline |
SetNDigitsFileIDNumber(int i) (defined in WCRootDataNuInt) | WCRootDataNuInt | inline |
Public Member Functions | ||
-void | LoadFiles (const char *) | |
+void | LoadFiles (const char *, const std::vector< string > &v=vector< string >()) | |
void | SetInteractionInformation (PileUpSpill_t *) const | |
void | SetSeed (const int i) | |
-void | LoadFiles (const char *) | |
+void | LoadFiles (const char *, const std::vector< string > &v=vector< string >()) | |
virtual bool | Next () | |
virtual float | GetEnergyDepositionInOD () const | |
+void | SetHasFriend (bool val) | |
Public Member Functions inherited from WCRootData | ||
void | ReadFile (const char *, const vector< string > &v=vector< string >()) | |
float | fIntRate | |
+std::vector< string > | fWCRootEvtList | |
Protected Attributes inherited from WCRootData | ||
TChain * | fWCSimC | |
fRnd (defined in WCRootDataNuInt) | WCRootDataNuInt | protected |
fSpEvt (defined in WCRootData) | WCRootData | protected |
fWCGeom (defined in WCRootData) | WCRootData | protected |
fWCSimC (defined in WCRootData) | WCRootData | protected |
fWCSimT (defined in WCRootData) | WCRootData | protected |
GetCurrentInputFileName() const (defined in WCRootData) | WCRootData | inline |
GetEnergyDepositionInOD() const (defined in WCRootDataNuInt) | WCRootDataNuInt | inlinevirtual |
GetEntries() (defined in WCRootData) | WCRootData | |
GetEntry(int) (defined in WCRootData) | WCRootData | |
GetEventIdNumber() const (defined in WCRootDataNuInt) | WCRootDataNuInt | inline |
GetFileIdNumber() const (defined in WCRootDataNuInt) | WCRootDataNuInt | inline |
GetFileIdNumber(const char *, const char *prefix="wcsim.") (defined in WCRootDataNuInt) | WCRootDataNuInt | protected |
GetGeometryInfo(const char *) (defined in WCRootData) | WCRootData | |
GetInteractionType() const (defined in WCRootDataNuInt) | WCRootDataNuInt | inline |
GetTrigger(int i, int iPMT=0) const (defined in WCRootData) | WCRootData | inline |
isOD (defined in WCRootData) | WCRootData | protected |
LoadFiles(const char *) (defined in WCRootDataNuInt) | WCRootDataNuInt | |
Next() (defined in WCRootDataNuInt) | WCRootDataNuInt | virtual |
ReadFile(const char *, const vector< string > &v=vector< string >()) (defined in WCRootData) | WCRootData | |
ReadFriend(const char *f) (defined in WCRootDataNuInt) | WCRootDataNuInt | inlineprotectedvirtual |
fWCRootEvtList (defined in WCRootDataNuInt) | WCRootDataNuInt | protected |
fWCSimC (defined in WCRootData) | WCRootData | protected |
fWCSimT (defined in WCRootData) | WCRootData | protected |
GetCurrentInputFileName() const (defined in WCRootData) | WCRootData | inline |
GetEnergyDepositionInOD() const (defined in WCRootDataNuInt) | WCRootDataNuInt | inlinevirtual |
GetEntries() (defined in WCRootData) | WCRootData | |
GetEntry(int) (defined in WCRootData) | WCRootData | |
GetEventIdNumber() const (defined in WCRootDataNuInt) | WCRootDataNuInt | inline |
GetFileIdNumber() const (defined in WCRootDataNuInt) | WCRootDataNuInt | inline |
GetFileIdNumber(const char *, const char *prefix="wcsim.") (defined in WCRootDataNuInt) | WCRootDataNuInt | protected |
GetGeometryInfo(const char *) (defined in WCRootData) | WCRootData | |
GetInteractionType() const (defined in WCRootDataNuInt) | WCRootDataNuInt | inline |
GetTrigger(int i, int iPMT=0) const (defined in WCRootData) | WCRootData | inline |
isOD (defined in WCRootData) | WCRootData | protected |
LoadFiles(const char *, const std::vector< string > &v=vector< string >()) (defined in WCRootDataNuInt) | WCRootDataNuInt | |
Next() (defined in WCRootDataNuInt) | WCRootDataNuInt | virtual |
ReadFile(const char *, const vector< string > &v=vector< string >()) (defined in WCRootData) | WCRootData | |
ReadFriend(const char *f) (defined in WCRootDataNuInt) | WCRootDataNuInt | inlineprotectedvirtual |
SetHasFriend(bool val) (defined in WCRootDataNuInt) | WCRootDataNuInt | inline |
SetInteractionInformation(PileUpSpill_t *) const (defined in WCRootDataNuInt) | WCRootDataNuInt | inlinevirtual |
SetInteractionRate(const float f) (defined in WCRootDataNuInt) | WCRootDataNuInt | inline |
SetNDigitsFileIDNumber(int i) (defined in WCRootDataNuInt) | WCRootDataNuInt | inline |
void | SetSeed (const int i) | |
-void | LoadFiles (const char *) | |
+void | LoadFiles (const char *, const std::vector< string > &v=vector< string >()) | |
virtual bool | Next () | |
virtual void | SetInteractionInformation (PileUpSpill_t *) const | |
+void | SetHasFriend (bool val) | |
Public Member Functions inherited from WCRootData | ||
void | ReadFile (const char *, const vector< string > &v=vector< string >()) | |
float | fIntRate | |
+std::vector< string > | fWCRootEvtList | |
Protected Attributes inherited from WCRootData | ||
TChain * | fWCSimC | |
AddTrueHitsToMDT(HitTubeCollection *, PMTResponse *, float offset_time=0., int iPMT=0) (defined in WCRootData) | WCRootData | |
CloseFile() (defined in WCRootDataPileUpSpill) | WCRootDataPileUpSpill | |
CopyTree(const char *, const char *, const vector< bool > &v=vector< bool >()) (defined in WCRootData) | WCRootData | |
CreateTree(const char *f=0) (defined in WCRootDataPileUpSpill) | WCRootDataPileUpSpill | |
CreateTree(const char *, const vector< string > &v=vector< string >()) (defined in WCRootData) | WCRootData | |
fDetCentreY (defined in WCRootData) | WCRootData | protected |
fHitTimeOffset (defined in WCRootData) | WCRootData | protected |
FillTree() (defined in WCRootDataPileUpSpill) | WCRootDataPileUpSpill | virtual |
fMultDigiHits (defined in WCRootData) | WCRootData | protected |
fSpEvt (defined in WCRootData) | WCRootData | protected |
fWCGeom (defined in WCRootData) | WCRootData | protected |
fWCSimC (defined in WCRootData) | WCRootData | protected |
fWCSimT (defined in WCRootData) | WCRootData | protected |
GetCurrentInputFileName() const (defined in WCRootData) | WCRootData | inline |
GetEntries() (defined in WCRootDataPileUpSpill) | WCRootDataPileUpSpill | |
GetEntry(const int) (defined in WCRootDataPileUpSpill) | WCRootDataPileUpSpill | |
GetGeometryInfo(const char *) (defined in WCRootData) | WCRootData | |
GetPileUpSpill() const (defined in WCRootDataPileUpSpill) | WCRootDataPileUpSpill | inline |
GetTrigger(int i, int iPMT=0) const (defined in WCRootData) | WCRootData | inline |
isOD (defined in WCRootData) | WCRootData | protected |
ReadFile(const char *) (defined in WCRootDataPileUpSpill) | WCRootDataPileUpSpill | |
ReadFile(const char *, const vector< string > &v=vector< string >()) (defined in WCRootData) | WCRootData | |
SetFileNameForCopyTree(const char *f) (defined in WCRootDataPileUpSpill) | WCRootDataPileUpSpill | inline |
SetNumOfSpillesSavedPerFile(const int i) (defined in WCRootDataPileUpSpill) | WCRootDataPileUpSpill | inline |
SetOutFileName(const char *f) (defined in WCRootData) | WCRootData | inline |
WCRootData() (defined in WCRootData) | WCRootData | |
WCRootDataPileUpSpill() (defined in WCRootDataPileUpSpill) | WCRootDataPileUpSpill | |
WriteTree() (defined in WCRootDataPileUpSpill) | WCRootDataPileUpSpill | virtual |
~WCRootData() (defined in WCRootData) | WCRootData | virtual |
~WCRootDataPileUpSpill() (defined in WCRootDataPileUpSpill) | WCRootDataPileUpSpill | virtual |
CreateTree(const char *f=0, const vector< string > &v=vector< string >()) (defined in WCRootDataPileUpSpill) | WCRootDataPileUpSpill | |
fDetCentreY (defined in WCRootData) | WCRootData | protected |
fHitTimeOffset (defined in WCRootData) | WCRootData | protected |
FillTree() (defined in WCRootDataPileUpSpill) | WCRootDataPileUpSpill | virtual |
fMultDigiHits (defined in WCRootData) | WCRootData | protected |
fSpEvt (defined in WCRootData) | WCRootData | protected |
fWCGeom (defined in WCRootData) | WCRootData | protected |
fWCSimC (defined in WCRootData) | WCRootData | protected |
fWCSimT (defined in WCRootData) | WCRootData | protected |
GetCurrentInputFileName() const (defined in WCRootData) | WCRootData | inline |
GetEntries() (defined in WCRootDataPileUpSpill) | WCRootDataPileUpSpill | |
GetEntry(const int) (defined in WCRootDataPileUpSpill) | WCRootDataPileUpSpill | |
GetGeometryInfo(const char *) (defined in WCRootData) | WCRootData | |
GetPileUpSpill() const (defined in WCRootDataPileUpSpill) | WCRootDataPileUpSpill | inline |
GetTrigger(int i, int iPMT=0) const (defined in WCRootData) | WCRootData | inline |
isOD (defined in WCRootData) | WCRootData | protected |
ReadFile(const char *) (defined in WCRootDataPileUpSpill) | WCRootDataPileUpSpill | |
ReadFile(const char *, const vector< string > &v=vector< string >()) (defined in WCRootData) | WCRootData | |
SetFileNameForCopyTree(const char *f) (defined in WCRootDataPileUpSpill) | WCRootDataPileUpSpill | inline |
SetNumOfSpillesSavedPerFile(const int i) (defined in WCRootDataPileUpSpill) | WCRootDataPileUpSpill | inline |
SetOutFileName(const char *f) (defined in WCRootData) | WCRootData | inline |
WCRootData() (defined in WCRootData) | WCRootData | |
WCRootDataPileUpSpill() (defined in WCRootDataPileUpSpill) | WCRootDataPileUpSpill | |
WriteTree() (defined in WCRootDataPileUpSpill) | WCRootDataPileUpSpill | virtual |
~WCRootData() (defined in WCRootData) | WCRootData | virtual |
~WCRootDataPileUpSpill() (defined in WCRootDataPileUpSpill) | WCRootDataPileUpSpill | virtual |
Then set up the MDT environment.
Essentially the same usage but with OD support.
Example usage
The application generates pile-up events by combining ID neutrino interaction events and beam background events in a spill.
+Input variables are:
ListIDNuIntFiles
,ListBeamBkgFiles
: list of WCSim output files for the ID and background eventsOutFileNamePrefix
: output file name will be something like "OutFileNamePrefix".00000.rootMDTParFile
: MDT config fileInitialSeed
: Random seedIDNuIntRate
,BeamBkgRate
: Mean number of ID and background events per spill. In each spill, the actual number of interactions are drawn from a Poisson distribution, and interaction timing according to the bunch structure (see BeamTiming
class under app/utilities/WCRootData/
)UseOD
: Process OD hitsNumOfSpillsSavedPerFile
, TotalNumOfSpills
: output spill setup