FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairMultiLinkedData_Interface Class Reference

#include <FairMultiLinkedData_Interface.h>

Inheritance diagram for FairMultiLinkedData_Interface:
FairMCPoint FairTimeStamp FairRadLenPoint FairRadMapPoint FairRutherfordPoint FairTestDetectorPoint FairTutorialDet1Point FairTutorialDet2Point FairTutorialDet4Point FairTutPropPoint NewDetectorPoint NewDetectorPoint PixelPoint FairHit FairTestDetectorDigi MyDigi PixelDigi PixelTrack

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_Interfaceoperator= (const FairMultiLinkedData_Interface &rhs)
 
std::set< FairLinkGetLinks () 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
 
FairMultiLinkedDataGetPointerToLinks () const
 returns non-owning pointer More...
 
std::vector< FairLinkGetSortedMCTracks ()
 
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

FairMultiLinkedDataCreateFairMultiLinkedData ()
 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...
 

Detailed Description

Constructor & Destructor Documentation

FairMultiLinkedData_Interface::FairMultiLinkedData_Interface ( )
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.

FairMultiLinkedData_Interface::~FairMultiLinkedData_Interface ( )
default

Member Function Documentation

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.

FairMultiLinkedData_Interface::ClassDef ( FairMultiLinkedData_Interface  ,
 
)
protected
FairMultiLinkedData * FairMultiLinkedData_Interface::CreateFairMultiLinkedData ( )
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.

FairMultiLinkedData* FairMultiLinkedData_Interface::GetPointerToLinks ( ) const
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.

std::ostream& FairMultiLinkedData_Interface::PrintLinkInfo ( std::ostream &  out = std::cout) const
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)
Parameters
[in]linkstransfers 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.

Parameters
typeas Int_t gives one type of source data for all indices
linksas vector<Int_t> gives the vector of indices at which position in the TClonesArray the source data is stored
typeas vector<Int_t> gives the type of source data (TClonesArray)
linksas 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.

void FairMultiLinkedData_Interface::SetPointerToLinks ( FairMultiLinkedData links)
inline

Definition at line 61 of file FairMultiLinkedData_Interface.h.

void FairMultiLinkedData_Interface::SetPointerToLinks ( std::unique_ptr< FairMultiLinkedData links)
inline

Definition at line 62 of file FairMultiLinkedData_Interface.h.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const FairMultiLinkedData_Interface data 
)
friend

Output.

Definition at line 79 of file FairMultiLinkedData_Interface.h.

Member Data Documentation

std::unique_ptr<FairMultiLinkedData> FairMultiLinkedData_Interface::fLink
protected

Definition at line 86 of file FairMultiLinkedData_Interface.h.


The documentation for this class was generated from the following files: