#include <TGoodRunsList.h>
Definition at line 31 of file TGoodRunsList.h.
◆ TGoodRunsList() [1/2]
Root::TGoodRunsList::TGoodRunsList |
( |
| ) |
|
◆ TGoodRunsList() [2/2]
Root::TGoodRunsList::TGoodRunsList |
( |
const char * |
name | ) |
|
◆ ~TGoodRunsList()
Root::TGoodRunsList::~TGoodRunsList |
( |
| ) |
|
|
virtual |
◆ AddGRL()
Definition at line 32 of file TGoodRunsList.cxx.
38 TMsgLogger m_logger(
"TGoodRunsList");
39 m_logger <<
kWARNING <<
"Incompatible NamedLumiRanges: " <<
GEndl;
41 other.Summary(kFALSE);
48 for (
const auto& othermditem :
other.GetMetaData()) {
49 auto thismditem =
m_metadata.find(othermditem.first);
53 auto& nameStr = othermditem.first;
54 auto& thisvaluestr = thismditem->second;
55 if (thisvaluestr != othermditem.second) {
56 if (nameStr ==
"RunList") {
59 thisvaluestr +=
" | ";
61 thisvaluestr += othermditem.second;
68 std::map<Int_t,Root::TGoodRun>::const_iterator itr;
70 for (itr = diffgrl.begin(); itr!=diffgrl.end(); ++itr) {
71 if (this->
find(itr->first)!=this->end()) {
73 if (!grun.
IsEmpty()) (*this)[itr->first] = grun;
74 }
else if (!itr->second.IsEmpty()) {
75 (*this)[itr->first] = itr->second;
◆ AddMetaData()
void Root::TGoodRunsList::AddMetaData |
( |
const TString & |
key, |
|
|
const TString & |
value |
|
) |
| |
|
inline |
◆ AddRunLumiBlock()
void Root::TGoodRunsList::AddRunLumiBlock |
( |
Int_t |
runnr, |
|
|
Int_t |
lumiblocknr |
|
) |
| |
Definition at line 413 of file TGoodRunsList.cxx.
415 if (
runnr<0 || lumiblocknr<0)
return;
419 if (itr==this->
end()) {
424 itr->second.AddLB(lumiblocknr);
◆ Compress()
void Root::TGoodRunsList::Compress |
( |
| ) |
|
◆ GetCheckGRLInfo()
const Bool_t& Root::TGoodRunsList::GetCheckGRLInfo |
( |
| ) |
const |
|
inline |
◆ GetGoodRuns()
std::vector< Root::TGoodRun > Root::TGoodRunsList::GetGoodRuns |
( |
| ) |
const |
◆ GetMetaData()
const std::map<TString,TString>& Root::TGoodRunsList::GetMetaData |
( |
| ) |
const |
|
inline |
◆ GetMetaDataSize()
unsigned int Root::TGoodRunsList::GetMetaDataSize |
( |
| ) |
const |
|
inline |
◆ GetOverlapWith()
Definition at line 83 of file TGoodRunsList.cxx.
86 overlapgrl.SetName(
"Overlap of GRLs");
92 TMsgLogger m_logger(
"TGoodRunsList");
93 m_logger <<
kWARNING <<
"Incompatible NamedLumiRanges: " <<
GEndl;
95 other.Summary(kFALSE);
96 m_logger <<
kWARNING <<
"Returning empty GoodRunsList." <<
GEndl;
101 overlapgrl.SetName(this->GetName());
107 std::map<Int_t,Root::TGoodRun>::const_iterator itr = this->
begin();
108 for (; itr!=this->
end(); ++itr) {
113 overlapgrl[itr->first] = grun;
◆ GetPartNotIn()
Definition at line 175 of file TGoodRunsList.cxx.
178 notinother.SetName(
"Difference of GRLs");
184 TMsgLogger m_logger(
"TGoodRunsList");
185 m_logger <<
kWARNING <<
"Incompatible NamedLumiRanges: " <<
GEndl;
187 other.Summary(kFALSE);
188 m_logger <<
kWARNING <<
"Returning empty GoodRunsList." <<
GEndl;
193 notinother.SetName(this->GetName());
198 std::map<Int_t,Root::TGoodRun>::const_iterator itr;
200 for (itr = this->
begin(); itr!=this->
end(); ++itr) {
203 if (!notinrun.
IsEmpty()) notinother[itr->first] = notinrun;
204 }
else if (!itr->second.IsEmpty()) {
205 notinother[itr->first] = itr->second;
◆ GetPartOnlyIn()
◆ GetRunlist()
std::vector< int > Root::TGoodRunsList::GetRunlist |
( |
| ) |
const |
◆ GetStreamList()
std::vector< std::string > Root::TGoodRunsList::GetStreamList |
( |
| ) |
const |
Definition at line 311 of file TGoodRunsList.cxx.
313 std::vector<std::string> streamlist;
316 TString streamname =
key;
317 streamname.ToLower();
318 if (streamname.BeginsWith(
"stream") &&
value.Length()>0) streamlist.push_back(
value.Data());
◆ GetSuggestedName()
TString Root::TGoodRunsList::GetSuggestedName |
( |
| ) |
const |
Definition at line 390 of file TGoodRunsList.cxx.
392 if (this->
IsEmpty())
return "grl_empty";
394 Int_t beginrun(-1),
endrun(-1), beginlb(-1), endlb(-1);
401 beginlb = begingr.begin()->Begin();
405 endlb = endgr.rbegin()->End();
408 return Form(
"grl_%d.%d-%d.%d",beginrun,beginlb,
endrun,endlb);
◆ GetSumWith()
Definition at line 123 of file TGoodRunsList.cxx.
126 sumgrl.SetName(
"Sum of GRLs");
132 TMsgLogger m_logger(
"TGoodRunsList");
133 m_logger <<
kWARNING <<
"Incompatible NamedLumiRanges: " <<
GEndl;
135 other.Summary(kFALSE);
136 m_logger <<
kWARNING <<
"Returning empty GoodRunsList." <<
GEndl;
141 sumgrl.SetName(this->GetName());
146 std::map<Int_t,Root::TGoodRun>::const_iterator itr;
148 for (itr = this->
begin(); itr!=this->
end(); ++itr) {
151 if (!grun.
IsEmpty()) sumgrl[itr->first] = grun;
152 }
else if (!itr->second.IsEmpty()) {
153 sumgrl[itr->first] = itr->second;
157 for (itr =
other.begin(); itr!=
other.end(); ++itr) {
158 if (sumgrl.find(itr->first)==sumgrl.end() && !itr->second.IsEmpty()) {
159 sumgrl[itr->first] = itr->second;
◆ GetTriggerList()
std::vector< std::string > Root::TGoodRunsList::GetTriggerList |
( |
| ) |
const |
Definition at line 297 of file TGoodRunsList.cxx.
299 std::vector<std::string> triggerchains;
302 TString triggername =
key;
303 triggername.ToLower();
304 if (triggername.BeginsWith(
"trigger") &&
value.Length()>0) triggerchains.push_back(
value.Data());
306 return triggerchains;
◆ GetVersion()
const TString& Root::TGoodRunsList::GetVersion |
( |
| ) |
const |
|
inline |
◆ HasOverlapWith()
Bool_t Root::TGoodRunsList::HasOverlapWith |
( |
const TGoodRunsList & |
other, |
|
|
bool |
verb = false |
|
) |
| const |
◆ HasRun()
Bool_t Root::TGoodRunsList::HasRun |
( |
Int_t |
runnr | ) |
const |
◆ HasRunLumiBlock()
Bool_t Root::TGoodRunsList::HasRunLumiBlock |
( |
Int_t |
runnr, |
|
|
Int_t |
lumiblocknr |
|
) |
| const |
◆ HasSameGRLInfo()
check names
check versions
check RQ version <Metadata Name="RQTSVNVersion">CoolRunQuery-unknown</Metadata>
Definition at line 325 of file TGoodRunsList.cxx.
327 TMsgLogger m_logger(
"TGoodRunsList");
331 same =
same && (TString(this->GetName())==TString(
other.GetName())) ;
333 m_logger <<
kDEBUG <<
"Incompatible names: <" << this->GetName() <<
"> <" <<
other.GetName() <<
">" <<
GEndl;
344 std::map<TString,TString>::const_iterator mitr = this->
GetMetaData().find(
"RQTSVNVersion");
345 std::map<TString,TString>::const_iterator oitr =
other.GetMetaData().find(
"RQTSVNVersion");
349 same =
same && ( mitr->second==oitr->second );
350 if (!
same) { m_logger <<
kDEBUG <<
"Incompatible run query versions: " << mitr->first
351 <<
" : <" << mitr->second <<
"> <" << oitr->second <<
">" <<
GEndl; }
352 }
else {
same=kFALSE; }
◆ HasTriggerInfo()
Bool_t Root::TGoodRunsList::HasTriggerInfo |
( |
| ) |
const |
Definition at line 229 of file TGoodRunsList.cxx.
231 std::map<TString,TString>::const_iterator itr =
m_metadata.begin();
233 TString triggername = itr->first;
234 triggername.ToLower();
235 if (triggername.BeginsWith(
"trigger") && itr->second.Length()>0)
return kTRUE;
◆ IsEmpty()
Bool_t Root::TGoodRunsList::IsEmpty |
( |
| ) |
const |
Definition at line 376 of file TGoodRunsList.cxx.
378 if (this->
empty())
return kTRUE;
380 Bool_t isEmpty(kTRUE);
381 std::map< Int_t, TGoodRun >::const_iterator litr = this->
begin();
382 for (; litr!=this->
end() && isEmpty; ++litr)
383 isEmpty = isEmpty && litr->second.IsEmpty();
◆ SetCheckGRLInfo()
void Root::TGoodRunsList::SetCheckGRLInfo |
( |
Bool_t |
check = kTRUE | ) |
|
|
inline |
◆ SetMetaData()
void Root::TGoodRunsList::SetMetaData |
( |
const std::map< TString, TString > & |
metadata | ) |
|
|
inline |
◆ SetVersion()
void Root::TGoodRunsList::SetVersion |
( |
const TString & |
version | ) |
|
|
inline |
◆ Summary()
void Root::TGoodRunsList::Summary |
( |
Bool_t |
verbose = kFALSE | ) |
const |
Definition at line 253 of file TGoodRunsList.cxx.
258 TMsgLogger m_logger(
"TGoodRunsList");
261 std::map<TString,TString>::const_iterator titr =
m_metadata.begin();
263 m_logger <<
kINFO <<
"Metadata: " << (titr->first) <<
" : " << (titr->second) <<
GEndl;
269 std::map<Int_t,Root::TGoodRun>::const_iterator itr = this->
begin();
270 std::map<Int_t,Root::TGoodRun>::const_iterator
end = this->
end();
271 for (; itr!=
end; ++itr) itr->second.Summary();
◆ elements
T std::map< K, T >::elements |
|
inherited |
◆ keys
◆ m_checkGRLInfo
bool Root::TGoodRunsList::m_checkGRLInfo {false} |
|
private |
◆ m_metadata
std::map<TString,TString> Root::TGoodRunsList::m_metadata |
|
private |
◆ m_version
TString Root::TGoodRunsList::m_version |
|
private |
The documentation for this class was generated from the following files: