FairRoot
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
FairFileInfo.cxx
Go to the documentation of this file.
1
/********************************************************************************
2
* Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3
* *
4
* This software is distributed under the terms of the *
5
* GNU Lesser General Public Licence (LGPL) version 3, *
6
* copied verbatim in the file "LICENSE" *
7
********************************************************************************/
8
// FairFileInfo.cxx
9
// Created by Mohammad Al-Turany on 6/21/11.
10
//
11
#include "
FairFileInfo.h
"
12
13
#include <TFile.h>
// for TFile
14
#include <TSystem.h>
// for TSystem, gSystem
15
#include <stdio.h>
// for printf
16
17
//__________________________________________________________________________
18
FairFileInfo::FairFileInfo
()
19
: TNamed()
20
, fPath(
""
)
21
, fSize(0)
22
, fIdentifier(0)
23
, fInChainId(0)
24
{}
25
//__________________________________________________________________________
26
FairFileInfo::FairFileInfo
(TFile* file, UInt_t
id
, UInt_t ChId)
27
: TNamed(file->GetName(),
"Inputfile"
)
28
, fPath(
""
)
29
, fSize(file->GetSize())
30
, fIdentifier(id)
31
, fInChainId(ChId)
32
{
33
fPath
+= gSystem->WorkingDirectory();
34
fPath
+= fName;
35
}
36
//__________________________________________________________________________
37
FairFileInfo::~FairFileInfo
() {}
38
//__________________________________________________________________________
39
void
FairFileInfo::Print
(Option_t*)
const
40
{
41
printf(
"Printing FairFileInfo for : %s \n"
, fName.Data());
42
printf(
"File full path : %s \n"
,
fPath
.Data());
43
printf(
"File Size in Byte : %i \n"
,
fSize
);
44
printf(
"File Identifier : %i \n"
,
fIdentifier
);
45
printf(
"File order in input chain : %i \n"
,
fInChainId
);
46
}
47
//__________________________________________________________________________
48
ClassImp
(
FairFileInfo
);
FairFileInfo::fInChainId
UInt_t fInChainId
Definition:
FairFileInfo.h:47
FairFileInfo.h
ClassImp
ClassImp(FairEventBuilder)
FairFileInfo::~FairFileInfo
virtual ~FairFileInfo()
Definition:
FairFileInfo.cxx:37
FairFileInfo::fPath
TString fPath
Definition:
FairFileInfo.h:41
FairFileInfo
Definition:
FairFileInfo.h:20
FairFileInfo::fSize
UInt_t fSize
Definition:
FairFileInfo.h:43
FairFileInfo::fIdentifier
UInt_t fIdentifier
Definition:
FairFileInfo.h:45
FairFileInfo::FairFileInfo
FairFileInfo()
Definition:
FairFileInfo.cxx:18
FairFileInfo::Print
void Print(Option_t *option="") const
Definition:
FairFileInfo.cxx:39
FairRoot
base
event
FairFileInfo.cxx
Generated on Mon Mar 8 2021 12:14:05 for FairRoot by
1.8.5