EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FairFileInfo.cxx
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file FairFileInfo.cxx
1 // FairFileInfo.cxx
2 // Created by Mohammad Al-Turany on 6/21/11.
3 //
4 
5 #include "FairFileInfo.h"
6 #include "TSystem.h"
7 
8 //__________________________________________________________________________
10  :TNamed(),
11  fPath(""),
12  fSize(0),
13  fIdentifier(0),
14  fInChainId(0)
15 {
16 }
17 //__________________________________________________________________________
18 FairFileInfo::FairFileInfo(TFile* file, UInt_t id, UInt_t ChId)
19  :TNamed(file->GetName(), "Inputfile"),
20  fPath(""),
21  fSize(file->GetSize()),
22  fIdentifier(id),
23  fInChainId(ChId)
24 {
25  fPath+=gSystem->WorkingDirectory();
26  fPath+=fName;
27 
28 }
29 //__________________________________________________________________________
31 {
32 
33 }
34 //__________________________________________________________________________
35 void FairFileInfo::Print(Option_t* option) const
36 {
37  printf("Printing FairFileInfo for : %s \n", fName.Data());
38  printf("File full path : %s \n", fPath.Data());
39  printf("File Size in Byte : %i \n", fSize);
40  printf("File Identifier : %i \n", fIdentifier);
41  printf("File order in input chain : %i \n", fInChainId);
42 
43 }
44 //__________________________________________________________________________
46 
47 
48