EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FairLink.cxx
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file FairLink.cxx
1 /*
2  * FairLink.cpp
3  *
4  * Created on: Dec 23, 2009
5  * Author: stockman
6  */
7 
8 #include "FairLink.h"
9 #include "FairRootManager.h"
10 
12 
14  :TObject(),
15  fFile(-1),
16  fEntry(-1),
17  fType(-1),
18  fIndex(-1),
19  fWeight(1.0)
20 {
21 }
22 
23 FairLink::FairLink(Int_t type, Int_t index, Float_t weight)
24  :TObject(),
25  fFile(-1),
26  fEntry(-1),
27  fType(type),
28  fIndex(index),
29  fWeight(weight)
30 {
31 }
32 
33 
34 FairLink::FairLink(TString branchName, Int_t index, Float_t weight)
35  :TObject(),
36  fFile(-1),
37  fEntry(-1),
38  fType(FairRootManager::Instance()->GetBranchId(branchName)),
39  fIndex(index),
40  fWeight(weight)
41 {
42 }
43 
44 
45 FairLink::FairLink(Int_t file, Int_t entry, Int_t type, Int_t index, Float_t weight)
46  :TObject(),
47  fFile(file),
48  fEntry(entry),
49  fType(type),
50  fIndex(index),
51  fWeight(weight)
52 {
53 }
54 
55 FairLink::FairLink(Int_t file, Int_t entry, TString branchName, Int_t index, Float_t weight)
56  :TObject(),
57  fFile(file),
58  fEntry(entry),
59  fType(FairRootManager::Instance()->GetBranchId(branchName)),
60  fIndex(index),
61  fWeight(weight)
62 {
63 }
64 
65 void FairLink::Print(std::ostream& out) const
66 {
67  out << "(" << GetFile() << "/" << GetEntry() << "/";
68  out << GetType() << "/" << GetIndex() << "/" << GetWeight() << ")";
69 }
70 
72 {
73  // TODO Auto-generated destructor stub
74 }