|
ATLAS Offline Software
|
Go to the documentation of this file.
20 : m_reader(
new Root::TGoodRunsListReader())
21 , m_writer(
new Root::TGoodRunsListWriter())
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();
110 TString xmlfile = ( xmlfilename.IsNull() ?
prefix +
grl.GetSuggestedName() +
".xml" : xmlfilename );
118 const TString& xmlfilename,
const TString&
prefix )
154 const std::vector<TString>
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;
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);
void setStopLumiBlockNumber(uint32_t value)
Set the luminosity block of the stop time of the range.
const std::vector< TString > GetXMLStrings(const Root::TGRLCollection &grlcollection)
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
const TString GetSuggestedName(const xAOD::LumiBlockRangeContainer &lbc) const
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()
xAOD::LumiBlockRangeContainer * GetLumiBlockRangeContainerFromString(const TString &xmlstring)
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)
virtual ~LumiBlockRangeContainerConverter()
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.
const TString GetXMLString(const Root::TGoodRunsList &grl)
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.
Root::TGRLCollection * GetGRLCollectionFromString(const TString &xmlstring)
void sort()
Sort the container.
LumiBlockRangeContainerConverter()
void SetGoodRunsList(const TGoodRunsList &goodrunslist)
void CreateXMLFiles(const Root::TGRLCollection &grlcollection, const char *prefix)
Class describing a luminosity block range.
void CreateXMLFile(const Root::TGoodRunsList &grl, const TString &xmlfilename="", const TString &prefix="")
const std::vector< TString > & GetXMLStrings()
const TGRLCollection GetMergedGRLCollection(const Root::BoolOperation &operation=OR) const
std::map< TString, TString > grlmetadatamap
Root::TGoodRunsList * GetGRLObjectFromString(const TString &xmlstring)
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.
Root::TGRLCollection * GetGRLCollection(const char *xmlfile)
TString GetSuggestedName() const
void SetXMLFile(const TString &xmlfile)