|
ATLAS Offline Software
|
#include <LumiBlockCollectionConverter.h>
|
| LumiBlockCollectionConverter () |
|
virtual | ~LumiBlockCollectionConverter () |
|
| LumiBlockCollectionConverter (const LumiBlockCollectionConverter &)=delete |
|
LumiBlockCollectionConverter & | operator= (const LumiBlockCollectionConverter &)=delete |
|
LumiBlockCollection * | GetLumiBlockCollection (const Root::TGoodRunsList &grl, std::map< TString, TString > &metadata, TString &version) |
|
LumiBlockCollection * | GetLumiBlockCollection (const Root::TGoodRunsList &grl) const |
|
LumiBlockCollection * | GetLumiBlockCollection (const char *xmlfile) |
|
LumiBlockCollection * | GetLumiBlockCollectionFromString (const TString &xmlstring) |
|
void | CreateXMLFile (const Root::TGoodRunsList &grl, const TString &xmlfilename="", const TString &prefix="") |
|
void | CreateXMLFile (const Root::TGRLCollection &grlcollection, const char *xmlfilename) |
|
void | CreateXMLFile (const LumiBlockCollection &lbc, const grlmetadatamap &metadata=grlmetadatamap(), const char *version="", const TString &xmlfilename="", const TString &prefix="") |
|
void | CreateXMLFiles (const Root::TGRLCollection &grlcollection, const char *prefix) |
|
const TString | GetXMLString (const Root::TGoodRunsList &grl) |
|
const TString | GetXMLString (const Root::TGRLCollection &grlcollection) |
|
const TString | GetXMLString (const LumiBlockCollection &lbc, const grlmetadatamap &metadata=grlmetadatamap(), const char *version="") |
|
const std::vector< TString > | GetXMLStrings (const Root::TGRLCollection &grlcollection) |
|
Root::TGoodRunsList * | GetGRLObject (const LumiBlockCollection &lbc, const grlmetadatamap &metadata=grlmetadatamap(), const char *version="") const |
|
Root::TGoodRunsList * | GetGRLObject (const char *xmlfile) |
|
Root::TGoodRunsList * | GetGRLObjectFromString (const TString &xmlstring) |
|
Root::TGRLCollection * | GetGRLCollection (const char *xmlfile) |
|
Root::TGRLCollection * | GetGRLCollectionFromString (const TString &xmlstring) |
|
const TString | GetSuggestedName (const LumiBlockCollection &lbc) const |
|
◆ LumiBlockCollectionConverter() [1/2]
LumiBlockCollectionConverter::LumiBlockCollectionConverter |
( |
| ) |
|
◆ ~LumiBlockCollectionConverter()
LumiBlockCollectionConverter::~LumiBlockCollectionConverter |
( |
| ) |
|
|
virtual |
◆ LumiBlockCollectionConverter() [2/2]
◆ CreateXMLFile() [1/3]
◆ CreateXMLFile() [2/3]
◆ CreateXMLFile() [3/3]
◆ CreateXMLFiles()
◆ GetGRLCollection()
◆ GetGRLCollectionFromString()
◆ GetGRLObject() [1/2]
◆ GetGRLObject() [2/2]
Definition at line 164 of file LumiBlockCollectionConverter.cxx.
172 int prev_runnbr(-1), cur_runnbr(-1), cur_lbstart(-1), cur_lbstop(-1);
180 if (prev_runnbr!=cur_runnbr) {
181 if (prev_runnbr>=0) { (*grl)[prev_runnbr]=goodrun; }
187 prev_runnbr = cur_runnbr;
189 (*grl)[prev_runnbr]=goodrun;
◆ GetGRLObjectFromString()
◆ GetLumiBlockCollection() [1/3]
◆ GetLumiBlockCollection() [2/3]
Definition at line 44 of file LumiBlockCollectionConverter.cxx.
49 std::map<Int_t, Root::TGoodRun>::const_iterator
it;
50 std::vector< Root::TLumiBlockRange >::const_iterator itlbr;
51 int RunNumber(-1), LumiBlockStart(-1), LumiBlockEnd(-1);
56 for(itlbr = goodrun.begin(); itlbr != goodrun.end(); ++itlbr) {
57 LumiBlockStart = itlbr->Begin();
58 LumiBlockEnd = itlbr->End();
◆ GetLumiBlockCollection() [3/3]
◆ GetLumiBlockCollectionFromString()
◆ GetSuggestedName()
Definition at line 235 of file LumiBlockCollectionConverter.cxx.
237 if (lbc.
empty())
return "grl_empty";
239 Int_t beginrun(-1),
endrun(-1), beginlb(-1), endlb(-1);
244 beginrun = (*itb)->start().run();
245 beginlb = (*itb)->start().event();
246 endrun = (*ite)->stop().run();
247 endlb = (*ite)->stop().event();
249 return Form(
"grl_%d.%d-%d.%d",beginrun,beginlb,
endrun,endlb);
◆ GetXMLString() [1/3]
◆ GetXMLString() [2/3]
◆ GetXMLString() [3/3]
◆ GetXMLStrings()
◆ operator=()
◆ m_reader
◆ m_writer
The documentation for this class was generated from the following files:
Const iterator class for DataVector/DataList.
uint32_t event() const noexcept
void SetRunNumber(const Int_t &runnr)
LumiBlockCollection * GetLumiBlockCollection(const Root::TGoodRunsList &grl, std::map< TString, TString > &metadata, TString &version)
const IOVTime & start() const
void SetXMLString(const TString &xmlstring)
const IOVTime & stop() const
Basic time unit for IOVSvc. Hold time as a combination of run and event numbers.
const TString & GetXMLString()
Root::TGoodRunsListReader * m_reader
Root::TGoodRunsList * GetGRLObject(const LumiBlockCollection &lbc, const grlmetadatamap &metadata=grlmetadatamap(), const char *version="") const
void SetFilename(const TString &dataCardName)
void SetGRLCollection(const TGRLCollection &grlvec)
const_reverse_iterator rbegin() const noexcept
Return a const_reverse_iterator pointing past the end of the collection.
std::reverse_iterator< const_iterator > const_reverse_iterator
Standard const_reverse_iterator.
Root::TGoodRunsListWriter * m_writer
void SetPrefix(const TString &prefix)
uint32_t run() const noexcept
value_type push_back(value_type pElem)
Add an element to the end of the collection.
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
void sort()
Sort the container.
void SetGoodRunsList(const TGoodRunsList &goodrunslist)
const std::vector< TString > & GetXMLStrings()
const TGRLCollection GetMergedGRLCollection(const Root::BoolOperation &operation=OR) const
bool empty() const noexcept
Returns true if the collection is empty.
const TGoodRunsList GetMergedGoodRunsList(const Root::BoolOperation &operation=OR) const
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
TString GetSuggestedName() const
void SetXMLFile(const TString &xmlfile)