ATLAS Offline Software
Loading...
Searching...
No Matches
LumiBlockCollectionConverter.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 : LumiBlockCollectionConverter *
8 * *
9 * Authors (alphabetical): *
10 * Max Baak <mbaak@cern.ch> - CERN, Switzerland *
11 **********************************************************************************/
12
13#ifndef LUMICALC_LUMIBLOCKCOLLECTIONCONVERTER_H
14#define LUMICALC_LUMIBLOCKCOLLECTIONCONVERTER_H
15
16#include <map>
17#include <vector>
18#include "TString.h"
19
21
22namespace Root {
23 class TGoodRunsList;
24 class TGRLCollection;
27}
28
30
31typedef std::map<TString,TString> grlmetadatamap;
32
34
35 public:
36
39
42
43 LumiBlockCollection* GetLumiBlockCollection(const Root::TGoodRunsList& grl, std::map<TString,TString>& metadata, TString& version) ;
46 LumiBlockCollection* GetLumiBlockCollectionFromString( const TString& xmlstring );
47
48 void CreateXMLFile(const Root::TGoodRunsList& grl, const TString& xmlfilename="", const TString& prefix="" );
49 void CreateXMLFile(const Root::TGRLCollection& grlcollection, const char* xmlfilename);
50 void CreateXMLFile(const LumiBlockCollection& lbc, const grlmetadatamap& metadata = grlmetadatamap(), const char* version="",
51 const TString& xmlfilename="", const TString& prefix="" );
52 void CreateXMLFiles(const Root::TGRLCollection& grlcollection, const char* prefix);
53
54 const TString GetXMLString(const Root::TGoodRunsList& grl);
55 const TString GetXMLString(const Root::TGRLCollection& grlcollection);
56 const TString GetXMLString(const LumiBlockCollection& lbc, const grlmetadatamap& metadata = grlmetadatamap(), const char* version="" );
57 const std::vector<TString> GetXMLStrings(const Root::TGRLCollection& grlcollection);
58
59 Root::TGoodRunsList* GetGRLObject( const LumiBlockCollection& lbc, const grlmetadatamap& metadata = grlmetadatamap(), const char* version="" ) const;
61 Root::TGoodRunsList* GetGRLObjectFromString( const TString& xmlstring );
62
64 Root::TGRLCollection* GetGRLCollectionFromString( const TString& xmlstring );
65
66 const TString GetSuggestedName( const LumiBlockCollection& lbc ) const ;
67
68 private:
69
72
73};
74
75#endif
76
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
Root::TGoodRunsList * GetGRLObject(const LumiBlockCollection &lbc, const grlmetadatamap &metadata=grlmetadatamap(), const char *version="") const
LumiBlockCollection * GetLumiBlockCollectionFromString(const TString &xmlstring)
LumiBlockCollection * GetLumiBlockCollection(const Root::TGoodRunsList &grl, std::map< TString, TString > &metadata, TString &version)
Root::TGoodRunsList * GetGRLObjectFromString(const TString &xmlstring)
Root::TGRLCollection * GetGRLCollection(const char *xmlfile)
const std::vector< TString > GetXMLStrings(const Root::TGRLCollection &grlcollection)
void CreateXMLFile(const Root::TGoodRunsList &grl, const TString &xmlfilename="", const TString &prefix="")
LumiBlockCollectionConverter(const LumiBlockCollectionConverter &)=delete
const TString GetXMLString(const Root::TGoodRunsList &grl)
const TString GetSuggestedName(const LumiBlockCollection &lbc) const
Root::TGRLCollection * GetGRLCollectionFromString(const TString &xmlstring)
void CreateXMLFiles(const Root::TGRLCollection &grlcollection, const char *prefix)
static std::vector< std::string > xmlfile
Definition iLumiCalc.h:29