ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
FileMetaData Class Reference

#include <FileMetaData.h>

Collaboration diagram for FileMetaData:

Public Member Functions

void dump (std::ostream &out=std::cout) const
 
void keyValueDump (std::ostream &out=std::cout) const
 

Public Attributes

std::string m_fileName
 
std::set< unsigned > m_runNumbers
 
std::set< unsigned > m_lbNumbers
 
std::string m_project
 
std::string m_stream
 
std::string m_condTag
 
std::string m_geoTag
 
std::string m_guid
 
unsigned m_nEvents {0}
 
unsigned m_beamEnergy {0}
 
std::string m_beamType
 
double m_trtRangeCut {-1.0}
 
bool m_isMC {true}
 
bool m_valid {false}
 
std::vector< std::string > m_sgKeys
 

Detailed Description

Definition at line 14 of file Tools/FilePeeker/src/FileMetaData.h.

Member Function Documentation

◆ dump()

void FileMetaData::dump ( std::ostream &  out = std::cout) const

Definition at line 9 of file FileMetaData.cxx.

9  {
10 
11 
12  out << "File Name: " << m_fileName << std::endl;
13  if (!m_valid) {
14  out << "File Meta Data is invalid" << std::endl;
15  return;
16  }
17 
18 
19  out << "SG Keys: ";
20  for (const std::string& k : m_sgKeys) {out << k << " ";}
21  out << std::endl;
22 
23  out << "Run Number(s): ";
24  for (const auto rn : m_runNumbers) {out << rn << " ";}
25  out << std::endl;
26 
27  out << "Lumiblock number(s): ";
28  for (const auto lb : m_lbNumbers) {out << lb << " ";}
29  out << std::endl;
30 
31  out << "Project: " << m_project << std::endl;
32  out << "Stream:" << m_stream << std::endl;
33 
34  out << "GUID: " << m_guid << std::endl;
35 
36  out << "Conditions Tag: " << m_condTag << std::endl;
37  out << "Geometry Tag: " << m_geoTag << std::endl;
38 
39  out << "Beam Energy: " << m_beamEnergy << std::endl;
40  out << "Beam Type: " << m_beamType << std::endl;
41 
42  out << "Number of events: " << m_nEvents << std::endl;
43 
44  out << "is MC:" << (m_isMC ? "True" : "False") << std::endl;
45 
46  if (m_trtRangeCut>0.0) {
47  out << "TRT Range Cut: " << m_trtRangeCut << std::endl;
48  }
49  return;
50 }

◆ keyValueDump()

void FileMetaData::keyValueDump ( std::ostream &  out = std::cout) const

Definition at line 53 of file FileMetaData.cxx.

53  {
54 
55  if (!m_valid) return;
56 
57  out << "File:" << m_fileName << std::endl;
58  out << "RunNumber:";
59  for (const auto rn : m_runNumbers) {out << " " << rn;}
60  out << std::endl;
61 
62  out << "LBNumber: ";
63  for (const auto lb : m_lbNumbers) {out << " " << lb;}
64  out << std::endl;
65 
66  out << "Project: " << m_project << std::endl;
67  out << "Stream:" << m_stream << std::endl;
68 
69  out << "GUID: " << m_guid << std::endl;
70 
71  out << "ConditionsTag: " << m_condTag << std::endl;
72  out << "GeometryTag: " << m_geoTag << std::endl;
73 
74  out << "BeamEnergy: " << m_beamEnergy << std::endl;
75  out << "BeamType: " << m_beamType << std::endl;
76 
77  out << "NEvents: " << m_nEvents << std::endl;
78 
79  out << "isMC:" << (m_isMC ? "1" : "0") << std::endl;
80 
81  out << "SGKeys: ";
82  for (const std::string& k : m_sgKeys) {out << k << " ";}
83  out << std::endl;
84 
85  if (m_trtRangeCut>0.0) {
86  out << "TRTRangeCut: " << m_trtRangeCut << std::endl;
87  }
88  return;
89 }

Member Data Documentation

◆ m_beamEnergy

unsigned FileMetaData::m_beamEnergy {0}

Definition at line 32 of file Tools/FilePeeker/src/FileMetaData.h.

◆ m_beamType

std::string FileMetaData::m_beamType

Definition at line 33 of file Tools/FilePeeker/src/FileMetaData.h.

◆ m_condTag

std::string FileMetaData::m_condTag

Definition at line 24 of file Tools/FilePeeker/src/FileMetaData.h.

◆ m_fileName

std::string FileMetaData::m_fileName

Definition at line 17 of file Tools/FilePeeker/src/FileMetaData.h.

◆ m_geoTag

std::string FileMetaData::m_geoTag

Definition at line 25 of file Tools/FilePeeker/src/FileMetaData.h.

◆ m_guid

std::string FileMetaData::m_guid

Definition at line 28 of file Tools/FilePeeker/src/FileMetaData.h.

◆ m_isMC

bool FileMetaData::m_isMC {true}

Definition at line 37 of file Tools/FilePeeker/src/FileMetaData.h.

◆ m_lbNumbers

std::set<unsigned> FileMetaData::m_lbNumbers

Definition at line 19 of file Tools/FilePeeker/src/FileMetaData.h.

◆ m_nEvents

unsigned FileMetaData::m_nEvents {0}

Definition at line 30 of file Tools/FilePeeker/src/FileMetaData.h.

◆ m_project

std::string FileMetaData::m_project

Definition at line 21 of file Tools/FilePeeker/src/FileMetaData.h.

◆ m_runNumbers

std::set<unsigned> FileMetaData::m_runNumbers

Definition at line 18 of file Tools/FilePeeker/src/FileMetaData.h.

◆ m_sgKeys

std::vector<std::string> FileMetaData::m_sgKeys

Definition at line 41 of file Tools/FilePeeker/src/FileMetaData.h.

◆ m_stream

std::string FileMetaData::m_stream

Definition at line 22 of file Tools/FilePeeker/src/FileMetaData.h.

◆ m_trtRangeCut

double FileMetaData::m_trtRangeCut {-1.0}

Definition at line 35 of file Tools/FilePeeker/src/FileMetaData.h.

◆ m_valid

bool FileMetaData::m_valid {false}

Definition at line 39 of file Tools/FilePeeker/src/FileMetaData.h.


The documentation for this class was generated from the following files:
FileMetaData::m_lbNumbers
std::set< unsigned > m_lbNumbers
Definition: Tools/FilePeeker/src/FileMetaData.h:19
FileMetaData::m_isMC
bool m_isMC
Definition: Tools/FilePeeker/src/FileMetaData.h:37
FileMetaData::m_guid
std::string m_guid
Definition: Tools/FilePeeker/src/FileMetaData.h:28
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
FileMetaData::m_beamType
std::string m_beamType
Definition: Tools/FilePeeker/src/FileMetaData.h:33
python.BunchSpacingUtils.lb
lb
Definition: BunchSpacingUtils.py:88
FileMetaData::m_beamEnergy
unsigned m_beamEnergy
Definition: Tools/FilePeeker/src/FileMetaData.h:32
FileMetaData::m_trtRangeCut
double m_trtRangeCut
Definition: Tools/FilePeeker/src/FileMetaData.h:35
python.BunchSpacingUtils.rn
rn
Definition: BunchSpacingUtils.py:87
FileMetaData::m_geoTag
std::string m_geoTag
Definition: Tools/FilePeeker/src/FileMetaData.h:25
FileMetaData::m_stream
std::string m_stream
Definition: Tools/FilePeeker/src/FileMetaData.h:22
FileMetaData::m_sgKeys
std::vector< std::string > m_sgKeys
Definition: Tools/FilePeeker/src/FileMetaData.h:41
FileMetaData::m_project
std::string m_project
Definition: Tools/FilePeeker/src/FileMetaData.h:21
FileMetaData::m_valid
bool m_valid
Definition: Tools/FilePeeker/src/FileMetaData.h:39
FileMetaData::m_condTag
std::string m_condTag
Definition: Tools/FilePeeker/src/FileMetaData.h:24
FileMetaData::m_fileName
std::string m_fileName
Definition: Tools/FilePeeker/src/FileMetaData.h:17
FileMetaData::m_runNumbers
std::set< unsigned > m_runNumbers
Definition: Tools/FilePeeker/src/FileMetaData.h:18
FileMetaData::m_nEvents
unsigned m_nEvents
Definition: Tools/FilePeeker/src/FileMetaData.h:30
fitman.k
k
Definition: fitman.py:528