ATLAS Offline Software
Loading...
Searching...
No Matches
LumiBlockRangeContainerConverter.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
5
6/**********************************************************************************
7 * Class : LumiBlockRangeContainerConverter
8 * *
9 * Authors (alphabetical): *
10 * Max Baak <mbaak@cern.ch> - CERN, Switzerland *
11 * Marjorie Shapiro <mdshapiro@lbl.gov>
12 **********************************************************************************/
13
14#ifndef LUMICALC_LUMIBLOCKRANGECONTAINERCONVERTER_H
15#define LUMICALC_LUMIBLOCKRANGECONTAINERCONVERTER_H
16
17#include <map>
18#include <vector>
19#include "TString.h"
20
21namespace Root {
22 class TGoodRunsList;
23 class TGRLCollection;
26}
27
31
32typedef std::map<TString,TString> grlmetadatamap;
33
35
36 public:
37
40
43
44 xAOD::LumiBlockRangeContainer* GetLumiBlockRangeContainer(const Root::TGoodRunsList& grl, std::map<TString,TString>& metadata, TString& version) ;
48
49 void CreateXMLFile(const Root::TGoodRunsList& grl, const TString& xmlfilename="", const TString& prefix="" );
50 void CreateXMLFile(const Root::TGRLCollection& grlcollection, const char* xmlfilename);
51 void CreateXMLFile(const xAOD::LumiBlockRangeContainer& lbc, const grlmetadatamap& metadata = grlmetadatamap(), const char* version="",
52 const TString& xmlfilename="", const TString& prefix="" );
53 void CreateXMLFiles(const Root::TGRLCollection& grlcollection, const char* prefix);
54
55 const TString GetXMLString(const Root::TGoodRunsList& grl);
56 const TString GetXMLString(const Root::TGRLCollection& grlcollection);
57 const TString GetXMLString(const xAOD::LumiBlockRangeContainer& lbc, const grlmetadatamap& metadata = grlmetadatamap(), const char* version="" );
58 const std::vector<TString> GetXMLStrings(const Root::TGRLCollection& grlcollection);
59
60 Root::TGoodRunsList* GetGRLObject( const xAOD::LumiBlockRangeContainer& lbc, const grlmetadatamap& metadata = grlmetadatamap(), const char* version="" ) const;
62 Root::TGoodRunsList* GetGRLObjectFromString( const TString& xmlstring );
63
65 Root::TGRLCollection* GetGRLCollectionFromString( const TString& xmlstring );
66
67 const TString GetSuggestedName( const xAOD::LumiBlockRangeContainer& lbc ) const ;
68
69 private:
70
73
74};
75
76#endif
77
std::map< TString, TString > grlmetadatamap
std::map< TString, TString > grlmetadatamap
Define macros for attributes used to control the static checker.
#define ATLAS_NOT_THREAD_SAFE
getNoisyStrip() Find noisy strips from hitmaps and write out into xml/db formats
void CreateXMLFiles(const Root::TGRLCollection &grlcollection, const char *prefix)
const TString GetSuggestedName(const xAOD::LumiBlockRangeContainer &lbc) const
Root::TGoodRunsList * GetGRLObject(const xAOD::LumiBlockRangeContainer &lbc, const grlmetadatamap &metadata=grlmetadatamap(), const char *version="") const
Root::TGoodRunsList * GetGRLObjectFromString(const TString &xmlstring)
xAOD::LumiBlockRangeContainer * GetLumiBlockRangeContainerFromString(const TString &xmlstring)
Root::TGRLCollection * GetGRLCollection(const char *xmlfile)
const std::vector< TString > GetXMLStrings(const Root::TGRLCollection &grlcollection)
const TString GetXMLString(const Root::TGoodRunsList &grl)
xAOD::LumiBlockRangeContainer * GetLumiBlockRangeContainer(const Root::TGoodRunsList &grl, std::map< TString, TString > &metadata, TString &version)
LumiBlockRangeContainerConverter(const LumiBlockRangeContainerConverter &)=delete
void CreateXMLFile(const Root::TGoodRunsList &grl, const TString &xmlfilename="", const TString &prefix="")
Root::TGRLCollection * GetGRLCollectionFromString(const TString &xmlstring)
static std::vector< std::string > xmlfile
Definition iLumiCalc.h:29
LumiBlockRangeContainer_v1 LumiBlockRangeContainer
Declare the latest version of the container.