#include <TGRLCollection.h>
Definition at line 29 of file TGRLCollection.h.
◆ TGRLCollection() [1/2]
Root::TGRLCollection::TGRLCollection |
( |
Bool_t |
checkGRLInfo = kFALSE | ) |
|
◆ ~TGRLCollection()
Root::TGRLCollection::~TGRLCollection |
( |
| ) |
|
|
virtual |
◆ TGRLCollection() [2/2]
◆ find() [1/2]
◆ find() [2/2]
Definition at line 243 of file TGRLCollection.cxx.
247 std::vector<TGoodRunsList>::const_iterator itr = this->
begin();
248 std::vector<TGoodRunsList>::const_iterator
end = this->
end();
250 for (; itr!=
end; ++itr) {
251 found = (
name==TString(itr->GetName()) ) ;
◆ GetGoodRunsList()
◆ GetMergedGoodRunsList()
Definition at line 128 of file TGRLCollection.cxx.
134 std::vector<Root::TGoodRunsList>::const_iterator itr = this->
begin();
136 if (this->
size()==1) {
141 TMsgLogger mylogger(
"TGRLCollection" );
142 mylogger <<
kINFO <<
"Now merging GRLs." <<
GEndl;
148 mylogger <<
kINFO <<
"Metadata and other info not required to be identical between GRLs." <<
GEndl;
151 for (++itr; itr!=this->
end(); ++itr) {
154 if (
grl.HasOverlapWith(*itr,
false) ) {
161 grl =
grl.GetOverlapWith(*itr);
◆ GetMergedGRLCollection()
Definition at line 182 of file TGRLCollection.cxx.
184 if (this->
empty() )
return *
this;
186 TMsgLogger mylogger(
"TGRLCollection" );
187 mylogger <<
kINFO <<
"Now merging GRLs where possible. Metadata required to be identical." <<
GEndl;
191 std::vector<TGoodRunsList>::const_iterator itr = this->
begin();
192 std::vector<TGoodRunsList>::const_iterator
end = this->
end();
195 for (; itr!=
end; ++itr) {
196 bool matchFound(
false);
197 for (mitr=mergevec.begin(); mitr!=mergevec.end() && !matchFound ; ++mitr) {
198 if (mitr->HasSameGRLInfo(*itr)) {
202 if ( mitr->HasOverlapWith(*itr,
false) ) {
206 mitr->AddGRL( *itr );
209 *mitr = mitr->GetOverlapWith( *itr );
216 mergevec.push_back(*itr);
217 mergevec.rbegin()->Compress();
◆ GetOverlapWith()
Definition at line 267 of file TGRLCollection.cxx.
271 std::vector<TGoodRunsList>::const_iterator itr = this->
begin();
272 for (; itr!=this->
end(); ++itr) {
274 overlapgrl.SetName(itr->GetName());
278 overlapvec.push_back(overlapgrl);
◆ HasGoodRunsList()
Bool_t Root::TGRLCollection::HasGoodRunsList |
( |
const TString & |
name | ) |
const |
◆ HasRun()
Bool_t Root::TGRLCollection::HasRun |
( |
const Int_t & |
runnr | ) |
const |
Definition at line 86 of file TGRLCollection.cxx.
88 std::vector<TGoodRunsList>::const_iterator itr = this->
begin();
89 std::vector<TGoodRunsList>::const_iterator
end = this->
end();
92 for (; itr!=
end && !pass; ++itr)
93 pass = itr->HasRun(
runnr);
◆ HasRunLumiBlock()
Bool_t Root::TGRLCollection::HasRunLumiBlock |
( |
const Int_t & |
runnr, |
|
|
const Int_t & |
lumiblocknr |
|
) |
| const |
Definition at line 100 of file TGRLCollection.cxx.
102 std::vector<TGoodRunsList>::const_iterator itr = this->
begin();
103 std::vector<TGoodRunsList>::const_iterator
end = this->
end();
106 for (; itr!=
end && !pass; ++itr)
107 pass = itr->HasRunLumiBlock(
runnr,lumiblocknr);
◆ IsEmpty()
Bool_t Root::TGRLCollection::IsEmpty |
( |
| ) |
const |
Definition at line 114 of file TGRLCollection.cxx.
116 if (this->
empty())
return kTRUE;
118 Bool_t isEmpty(kTRUE);
119 std::vector< TGoodRunsList >::const_iterator litr = this->
begin();
120 for (; litr!=this->
end() && isEmpty; ++litr)
121 isEmpty = isEmpty && litr->IsEmpty();
◆ operator=()
◆ Reset()
void Root::TGRLCollection::Reset |
( |
| ) |
|
◆ SetCheckGRLInfo()
void Root::TGRLCollection::SetCheckGRLInfo |
( |
Bool_t |
check = kTRUE | ) |
|
|
inline |
◆ SetMetaData()
void Root::TGRLCollection::SetMetaData |
( |
const std::map< TString, TString > & |
metadata | ) |
|
◆ SetVersion()
void Root::TGRLCollection::SetVersion |
( |
const TString & |
version | ) |
|
◆ Summary()
void Root::TGRLCollection::Summary |
( |
Bool_t |
verbose = kFALSE | ) |
const |
Definition at line 75 of file TGRLCollection.cxx.
77 std::vector<TGoodRunsList>::const_iterator itr = this->
begin();
78 std::vector<TGoodRunsList>::const_iterator
end = this->
end();
80 for (; itr!=
end; ++itr)
◆ elements
T std::vector< T >::elements |
|
inherited |
◆ m_checkGRLInfo
Bool_t Root::TGRLCollection::m_checkGRLInfo |
|
private |
The documentation for this class was generated from the following files: