FairRoot
|
#include <FairMultiLinkedData_Interface.h>
Public Member Functions | |
FairMultiLinkedData_Interface ()=default | |
Default constructor. More... | |
FairMultiLinkedData_Interface (FairMultiLinkedData &links, Bool_t persistanceCheck=kTRUE) | |
Constructor. More... | |
FairMultiLinkedData_Interface (TString dataType, std::vector< Int_t > links, Int_t fileId=-1, Int_t evtId=-1, Bool_t persistanceCheck=kTRUE, Bool_t bypass=kFALSE, Float_t mult=1.0) | |
Constructor. More... | |
FairMultiLinkedData_Interface (Int_t dataType, std::vector< Int_t > links, Int_t fileId=-1, Int_t evtId=-1, Bool_t persistanceCheck=kTRUE, Bool_t bypass=kFALSE, Float_t mult=1.0) | |
Constructor. More... | |
FairMultiLinkedData_Interface (const FairMultiLinkedData_Interface &toCopy) | |
~FairMultiLinkedData_Interface ()=default | |
FairMultiLinkedData_Interface & | operator= (const FairMultiLinkedData_Interface &rhs) |
std::set< FairLink > | GetLinks () const |
returns stored links as FairLinks More... | |
Int_t | GetNLinks () const |
returns the number of stored links More... | |
FairLink | GetLink (Int_t pos) const |
returns the FairLink at the given position More... | |
FairMultiLinkedData | GetLinksWithType (Int_t type) const |
returns all FairLinks with the corresponding type More... | |
FairLink | GetEntryNr () const |
FairMultiLinkedData * | GetPointerToLinks () const |
returns non-owning pointer More... | |
std::vector< FairLink > | GetSortedMCTracks () |
void | SetLinks (FairMultiLinkedData links) |
Sets the links as vector of FairLink. More... | |
void | SetLink (FairLink link) |
Sets the Links with a single FairLink. More... | |
void | SetInsertHistory (Bool_t val) |
void | SetEntryNr (FairLink val) |
void | SetPointerToLinks (FairMultiLinkedData *links) |
void | SetPointerToLinks (std::unique_ptr< FairMultiLinkedData > links) |
void | AddLinks (FairMultiLinkedData links, Float_t mult=1.0) |
Adds a List of FairLinks (FairMultiLinkedData_Interface) to fLinks. More... | |
void | AddLink (FairLink link) |
void | AddInterfaceData (FairMultiLinkedData_Interface *data) |
void | ResetLinks () |
std::ostream & | PrintLinkInfo (std::ostream &out=std::cout) const |
Output. More... | |
Protected Member Functions | |
FairMultiLinkedData * | CreateFairMultiLinkedData () |
returns non-owning pointer More... | |
ClassDef (FairMultiLinkedData_Interface, 6) | |
Protected Attributes | |
std::unique_ptr < FairMultiLinkedData > | fLink |
Friends | |
std::ostream & | operator<< (std::ostream &out, const FairMultiLinkedData_Interface &data) |
Output. More... | |
FairMultiLinkedData_Interface.h
Definition at line 22 of file FairMultiLinkedData_Interface.h.
|
default |
Default constructor.
FairMultiLinkedData_Interface::FairMultiLinkedData_Interface | ( | FairMultiLinkedData & | links, |
Bool_t | persistanceCheck = kTRUE |
||
) |
Constructor.
Definition at line 14 of file FairMultiLinkedData_Interface.cxx.
FairMultiLinkedData_Interface::FairMultiLinkedData_Interface | ( | TString | dataType, |
std::vector< Int_t > | links, | ||
Int_t | fileId = -1 , |
||
Int_t | evtId = -1 , |
||
Bool_t | persistanceCheck = kTRUE , |
||
Bool_t | bypass = kFALSE , |
||
Float_t | mult = 1.0 |
||
) |
Constructor.
Definition at line 19 of file FairMultiLinkedData_Interface.cxx.
FairMultiLinkedData_Interface::FairMultiLinkedData_Interface | ( | Int_t | dataType, |
std::vector< Int_t > | links, | ||
Int_t | fileId = -1 , |
||
Int_t | evtId = -1 , |
||
Bool_t | persistanceCheck = kTRUE , |
||
Bool_t | bypass = kFALSE , |
||
Float_t | mult = 1.0 |
||
) |
Constructor.
Definition at line 31 of file FairMultiLinkedData_Interface.cxx.
FairMultiLinkedData_Interface::FairMultiLinkedData_Interface | ( | const FairMultiLinkedData_Interface & | toCopy | ) |
Definition at line 43 of file FairMultiLinkedData_Interface.cxx.
|
default |
void FairMultiLinkedData_Interface::AddInterfaceData | ( | FairMultiLinkedData_Interface * | data | ) |
Definition at line 178 of file FairMultiLinkedData_Interface.cxx.
void FairMultiLinkedData_Interface::AddLink | ( | FairLink | link | ) |
Adds a FairLink link at the end of fLinks. If multi is kTRUE a link is allowed more than once otherwise
Definition at line 170 of file FairMultiLinkedData_Interface.cxx.
void FairMultiLinkedData_Interface::AddLinks | ( | FairMultiLinkedData | links, |
Float_t | mult = 1.0 |
||
) |
Adds a List of FairLinks (FairMultiLinkedData_Interface) to fLinks.
Definition at line 162 of file FairMultiLinkedData_Interface.cxx.
|
protected |
|
protected |
returns non-owning pointer
Definition at line 66 of file FairMultiLinkedData_Interface.cxx.
FairLink FairMultiLinkedData_Interface::GetEntryNr | ( | ) | const |
Definition at line 108 of file FairMultiLinkedData_Interface.cxx.
FairLink FairMultiLinkedData_Interface::GetLink | ( | Int_t | pos | ) | const |
returns the FairLink at the given position
Definition at line 98 of file FairMultiLinkedData_Interface.cxx.
std::set< FairLink > FairMultiLinkedData_Interface::GetLinks | ( | ) | const |
returns stored links as FairLinks
Definition at line 79 of file FairMultiLinkedData_Interface.cxx.
FairMultiLinkedData FairMultiLinkedData_Interface::GetLinksWithType | ( | Int_t | type | ) | const |
returns all FairLinks with the corresponding type
Definition at line 118 of file FairMultiLinkedData_Interface.cxx.
Int_t FairMultiLinkedData_Interface::GetNLinks | ( | ) | const |
returns the number of stored links
Definition at line 89 of file FairMultiLinkedData_Interface.cxx.
|
inline |
returns non-owning pointer
Definition at line 52 of file FairMultiLinkedData_Interface.h.
std::vector< FairLink > FairMultiLinkedData_Interface::GetSortedMCTracks | ( | ) |
Definition at line 128 of file FairMultiLinkedData_Interface.cxx.
FairMultiLinkedData_Interface & FairMultiLinkedData_Interface::operator= | ( | const FairMultiLinkedData_Interface & | rhs | ) |
Definition at line 55 of file FairMultiLinkedData_Interface.cxx.
|
inline |
Output.
Definition at line 72 of file FairMultiLinkedData_Interface.h.
void FairMultiLinkedData_Interface::ResetLinks | ( | ) |
Definition at line 201 of file FairMultiLinkedData_Interface.cxx.
void FairMultiLinkedData_Interface::SetEntryNr | ( | FairLink | val | ) |
[in] | links | transfers ownership |
Definition at line 154 of file FairMultiLinkedData_Interface.cxx.
void FairMultiLinkedData_Interface::SetInsertHistory | ( | Bool_t | val | ) |
Definition at line 193 of file FairMultiLinkedData_Interface.cxx.
void FairMultiLinkedData_Interface::SetLink | ( | FairLink | link | ) |
Sets the Links with a single FairLink.
Definition at line 146 of file FairMultiLinkedData_Interface.cxx.
void FairMultiLinkedData_Interface::SetLinks | ( | FairMultiLinkedData | links | ) |
Sets the links as vector of FairLink.
type | as Int_t gives one type of source data for all indices |
links | as vector<Int_t> gives the vector of indices at which position in the TClonesArray the source data is stored |
type | as vector<Int_t> gives the type of source data (TClonesArray) |
links | as vector<Int_t> gives the vector of indices at which position in the TClonesArray the source data is stored |
Definition at line 138 of file FairMultiLinkedData_Interface.cxx.
|
inline |
Definition at line 61 of file FairMultiLinkedData_Interface.h.
|
inline |
Definition at line 62 of file FairMultiLinkedData_Interface.h.
|
friend |
Output.
Definition at line 79 of file FairMultiLinkedData_Interface.h.
|
protected |
Definition at line 86 of file FairMultiLinkedData_Interface.h.