|
ATLAS Offline Software
|
#include <LumiBlockRangeContainerConverter.h>
|
| LumiBlockRangeContainerConverter () |
|
virtual | ~LumiBlockRangeContainerConverter () |
|
| LumiBlockRangeContainerConverter (const LumiBlockRangeContainerConverter &)=delete |
|
LumiBlockRangeContainerConverter & | operator= (const LumiBlockRangeContainerConverter &)=delete |
|
xAOD::LumiBlockRangeContainer * | GetLumiBlockRangeContainer (const Root::TGoodRunsList &grl, std::map< TString, TString > &metadata, TString &version) |
|
xAOD::LumiBlockRangeContainer * | GetLumiBlockRangeContainer (const Root::TGoodRunsList &grl) const |
|
xAOD::LumiBlockRangeContainer * | GetLumiBlockRangeContainer (const char *xmlfile) |
|
xAOD::LumiBlockRangeContainer * | GetLumiBlockRangeContainerFromString (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 xAOD::LumiBlockRangeContainer &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 xAOD::LumiBlockRangeContainer &lbc, const grlmetadatamap &metadata=grlmetadatamap(), const char *version="") |
|
const std::vector< TString > | GetXMLStrings (const Root::TGRLCollection &grlcollection) |
|
Root::TGoodRunsList * | GetGRLObject (const xAOD::LumiBlockRangeContainer &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 xAOD::LumiBlockRangeContainer &lbc) const |
|
◆ LumiBlockRangeContainerConverter() [1/2]
LumiBlockRangeContainerConverter::LumiBlockRangeContainerConverter |
( |
| ) |
|
◆ ~LumiBlockRangeContainerConverter()
LumiBlockRangeContainerConverter::~LumiBlockRangeContainerConverter |
( |
| ) |
|
|
virtual |
◆ LumiBlockRangeContainerConverter() [2/2]
◆ CreateXMLFile() [1/3]
◆ CreateXMLFile() [2/3]
◆ CreateXMLFile() [3/3]
◆ CreateXMLFiles()
◆ GetGRLCollection()
◆ GetGRLCollectionFromString()
◆ GetGRLObject() [1/2]
◆ GetGRLObject() [2/2]
Definition at line 174 of file LumiBlockRangeContainerConverter.cxx.
182 int prev_runnbr(-1), cur_runnbr(-1), cur_lbstart(-1), cur_lbstop(-1);
187 cur_runnbr = lbr->startRunNumber();
188 cur_lbstart = lbr->startLumiBlockNumber();
189 cur_lbstop = lbr->stopLumiBlockNumber();
191 if (prev_runnbr!=cur_runnbr) {
192 if (prev_runnbr>=0) { (*grl)[prev_runnbr]=goodrun; }
198 prev_runnbr = cur_runnbr;
200 (*grl)[prev_runnbr]=goodrun;
◆ GetGRLObjectFromString()
◆ GetLumiBlockRangeContainer() [1/3]
◆ GetLumiBlockRangeContainer() [2/3]
Definition at line 43 of file LumiBlockRangeContainerConverter.cxx.
48 piovComplete->setStore( piovCompleteAux );
51 std::map<Int_t, Root::TGoodRun>::const_iterator
it;
52 std::vector< Root::TLumiBlockRange >::const_iterator itlbr;
53 int RunNumber(-1), LumiBlockStart(-1), LumiBlockEnd(-1);
58 for(itlbr = goodrun.begin(); itlbr != goodrun.end(); ++itlbr) {
59 LumiBlockStart = itlbr->Begin();
60 LumiBlockEnd = itlbr->End();
◆ GetLumiBlockRangeContainer() [3/3]
◆ GetLumiBlockRangeContainerFromString()
◆ GetSuggestedName()
Definition at line 246 of file LumiBlockRangeContainerConverter.cxx.
248 if (lbc.
empty())
return "grl_empty";
250 Int_t beginrun(-1),
endrun(-1), beginlb(-1), endlb(-1);
259 beginrun = (*itb)->startRunNumber();
260 beginlb = (*itb)->startLumiBlockNumber();
261 endrun = (*ite)->stopRunNumber();
262 endlb = (*ite)->stopLumiBlockNumber();
264 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:
void setStopLumiBlockNumber(uint32_t value)
Set the luminosity block of the stop time of the range.
Const iterator class for DataVector/DataList.
xAOD::LumiBlockRangeContainer * GetLumiBlockRangeContainer(const Root::TGoodRunsList &grl, std::map< TString, TString > &metadata, TString &version)
Helper functor used to sort xAOD::LumiBlockRangeContainer-s.
void SetRunNumber(const Int_t &runnr)
void setStopRunNumber(uint32_t value)
Set the run number of the stop time of the range.
Auxiliary container for xAOD::LumiBlockRangeContainer_v1.
void setStartRunNumber(uint32_t value)
Set the run number of the start time of the range.
void SetXMLString(const TString &xmlstring)
Root::TGoodRunsListReader * m_reader
Root::TGoodRunsListWriter * m_writer
LumiBlockRangeContainer_v1 LumiBlockRangeContainer
Declare the latest version of the container.
LumiBlockRange_v1 LumiBlockRange
Declare the latest version of the class.
void setEventsExpected(uint32_t value)
Set the number of expected events in this luminosity block range.
const TString & GetXMLString()
LumiBlockRangeAuxContainer_v1 LumiBlockRangeAuxContainer
Declare the latest version of the auxiliary container.
Root::TGoodRunsList * GetGRLObject(const xAOD::LumiBlockRangeContainer &lbc, const grlmetadatamap &metadata=grlmetadatamap(), const char *version="") const
void SetFilename(const TString &dataCardName)
void SetGRLCollection(const TGRLCollection &grlvec)
void setEventsSeen(uint32_t value)
Set the number of seen/processed events in this luminosity block range.
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.
void SetPrefix(const TString &prefix)
value_type push_back(value_type pElem)
Add an element to the end of the collection.
void sort()
Sort the container.
void SetGoodRunsList(const TGoodRunsList &goodrunslist)
Class describing a luminosity block range.
const std::vector< TString > & GetXMLStrings()
const TGRLCollection GetMergedGRLCollection(const Root::BoolOperation &operation=OR) const
void setStartLumiBlockNumber(uint32_t value)
Set the luminosity block of the start time of the range.
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)