ATLAS Offline Software
FileMetaData.cxx
Go to the documentation of this file.
1 //Dear emacs, this is -*-c++-*-
2 /*
3  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
4 */
5 
6 #include "FileMetaData.h"
7 #include <iostream>
8 
9 void FileMetaData::dump(std::ostream& out) const {
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 }
51 
52 
53 void FileMetaData::keyValueDump(std::ostream& out) const {
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 }
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::keyValueDump
void keyValueDump(std::ostream &out=std::cout) const
Definition: FileMetaData.cxx:53
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.h
FileMetaData::m_project
std::string m_project
Definition: Tools/FilePeeker/src/FileMetaData.h:21
FileMetaData::dump
void dump(std::ostream &out=std::cout) const
Definition: FileMetaData.cxx:9
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