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

#include <FairMCEntry.h>

Inheritance diagram for FairMCEntry:
FairMultiLinkedData

Public Member Functions

 FairMCEntry ()
 
 FairMCEntry (std::set< FairLink > links, Int_t source=-1, Int_t pos=-1)
 
 FairMCEntry (FairMultiLinkedData links, Int_t source=-1, Int_t pos=-1)
 
void SetSource (Int_t source)
 
void SetPos (Int_t pos)
 
Int_t GetSource () const
 
Int_t GetPos () const
 
void RemoveType (Int_t type)
 
virtual ~FairMCEntry ()
 
virtual void PrintInfo (std::ostream &out)
 
- Public Member Functions inherited from FairMultiLinkedData
 FairMultiLinkedData ()
 Default constructor. More...
 
 FairMultiLinkedData (const std::set< FairLink > &links, Bool_t persistanceCheck=kTRUE)
 Constructor. More...
 
 FairMultiLinkedData (TString dataType, const 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 (Int_t dataType, const 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...
 
virtual ~FairMultiLinkedData ()
 
virtual std::set< FairLinkGetLinks () const
 returns stored links as FairLinks More...
 
virtual FairLink GetEntryNr () const
 gives back the entryNr More...
 
virtual Int_t GetNLinks () const
 returns the number of stored links More...
 
virtual FairLink GetLink (Int_t pos) const
 returns the FairLink at the given position More...
 
virtual FairMultiLinkedData GetLinksWithType (Int_t type) const
 Gives you a list of links which contain the given type. More...
 
virtual std::vector< FairLinkGetSortedMCTracks ()
 Gives you a list of all FairLinks pointing to a "MCTrack" sorted by their weight. More...
 
TObject * GetData (FairLink &myLink)
 Get the TObject the Link is pointing to. More...
 
virtual Int_t GetDefaultType ()
 
Bool_t GetPersistanceCheck ()
 Returns the value of PersistanceCheck. More...
 
Int_t GetVerbose ()
 Returns the verbosity level. More...
 
virtual void SetDefaultType (Int_t type)
 
virtual void SetPersistanceCheck (Bool_t check)
 Controls if a persistance check of a link is done or not. More...
 
virtual void SetVerbose (Int_t level)
 Sets the verbosity level. More...
 
virtual void SetInsertHistory (Bool_t val)
 Toggles if history of a link is inserted or not. More...
 
Bool_t GetInsertHistory () const
 
virtual void SetEntryNr (FairLink entry)
 
virtual void SetLinks (FairMultiLinkedData links, Float_t mult=1.0)
 Sets the links as vector of FairLink. More...
 
virtual void SetLink (FairLink link, Bool_t bypass=kFALSE, Float_t mult=1.0)
 Sets the Links with a single FairLink. More...
 
virtual void AddLinks (FairMultiLinkedData links, Float_t mult=1.0)
 Adds a List of FairLinks (FairMultiLinkedData) to fLinks. More...
 
virtual void AddLink (FairLink link, Bool_t bypass=kFALSE, Float_t mult=1.0)
 
virtual void InsertLink (FairLink link)
 Inserts a link into the list of links without persistance checking. More...
 
virtual void InsertHistory (FairLink link)
 Adds the FairLinks of the inserted link to the set of links of this object. More...
 
virtual void AddAllWeights (Double_t weight)
 Adds weight to all Links. More...
 
virtual void SetAllWeights (Double_t weight)
 Sets a common weight for Links. More...
 
virtual void MultiplyAllWeights (Double_t weight)
 Multiplies all Links with weight. More...
 
virtual Bool_t IsLinkInList (FairLink link)
 Test if a given link is in fLinks. More...
 
virtual Bool_t IsLinkInList (Int_t type, Int_t index)
 Same as IsLinkInList(FairLink) just with type and index given separately. More...
 
virtual Int_t LinkPosInList (FairLink link)
 returns position of link in fLinks. If it is not in the list -1 is returned More...
 
virtual Int_t LinkPosInList (Int_t type, Int_t index)
 Same as LinkPosInList(FairLink) More...
 
virtual void DeleteLink (FairLink link)
 Deletes a link ouf of fLinks. More...
 
virtual void DeleteLink (Int_t type, Int_t index)
 Deletes a link ouf of fLinks. More...
 
virtual void Reset ()
 
virtual void ResetLinks ()
 Clears fLinks. More...
 
std::ostream & PrintLinkInfo (std::ostream &out=std::cout) const
 Output. More...
 

Friends

std::ostream & operator<< (std::ostream &out, const FairMCEntry &link)
 

Additional Inherited Members

- Protected Member Functions inherited from FairMultiLinkedData
virtual void SimpleAddLinks (Int_t fileId, Int_t evtId, Int_t dataType, const std::vector< Int_t > &links, Bool_t, Float_t)
 
 ClassDef (FairMultiLinkedData, 4)
 
- Protected Attributes inherited from FairMultiLinkedData
std::set< FairLinkfLinks
 
FairLink fEntryNr
 
Bool_t fPersistanceCheck
 
Bool_t fInsertHistory
 
Int_t fVerbose
 
Int_t fDefaultType
 

Detailed Description

Definition at line 25 of file FairMCEntry.h.

Constructor & Destructor Documentation

FairMCEntry::FairMCEntry ( )

Definition at line 19 of file FairMCEntry.cxx.

FairMCEntry::FairMCEntry ( std::set< FairLink links,
Int_t  source = -1,
Int_t  pos = -1 
)
inline

Definition at line 29 of file FairMCEntry.h.

FairMCEntry::FairMCEntry ( FairMultiLinkedData  links,
Int_t  source = -1,
Int_t  pos = -1 
)
inline

Definition at line 37 of file FairMCEntry.h.

FairMCEntry::~FairMCEntry ( )
virtual

Definition at line 27 of file FairMCEntry.cxx.

Member Function Documentation

Int_t FairMCEntry::GetPos ( ) const
inline

Definition at line 49 of file FairMCEntry.h.

Int_t FairMCEntry::GetSource ( ) const
inline

Definition at line 48 of file FairMCEntry.h.

virtual void FairMCEntry::PrintInfo ( std::ostream &  out)
inlinevirtual

Definition at line 55 of file FairMCEntry.h.

void FairMCEntry::RemoveType ( Int_t  type)

Definition at line 29 of file FairMCEntry.cxx.

void FairMCEntry::SetPos ( Int_t  pos)
inline

Definition at line 46 of file FairMCEntry.h.

void FairMCEntry::SetSource ( Int_t  source)
inline

Definition at line 45 of file FairMCEntry.h.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const FairMCEntry link 
)
friend

Definition at line 57 of file FairMCEntry.h.


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