#include <TGoodRun.h>
Definition at line 27 of file TGoodRun.h.
◆ TGoodRun() [1/3]
Root::TGoodRun::TGoodRun |
( |
| ) |
|
◆ TGoodRun() [2/3]
Root::TGoodRun::TGoodRun |
( |
const Int_t & |
runnr | ) |
|
Definition at line 22 of file TGoodRun.cxx.
23 : std::vector<TLumiBlockRange>()
◆ ~TGoodRun()
Root::TGoodRun::~TGoodRun |
( |
| ) |
|
|
virtual |
◆ TGoodRun() [3/3]
◆ AddLB()
void Root::TGoodRun::AddLB |
( |
const Int_t & |
lumiblocknr | ) |
|
Definition at line 266 of file TGoodRun.cxx.
268 if ( lumiblocknr<0 )
return;
269 if ( this->
HasLB(lumiblocknr) )
return;
273 if (eitr!=this->
end()) {
274 eitr->SetEnd(lumiblocknr);
280 if (bitr!=this->
end()) {
281 bitr->SetBegin(lumiblocknr);
◆ Compress()
void Root::TGoodRun::Compress |
( |
| ) |
|
Definition at line 200 of file TGoodRun.cxx.
208 int fbegin(-1), tbegin(-1),
tend(-1), lbegin(-1), lend(-1);
210 for (itr=this->
begin(); itr!=this->
end();) {
215 fbegin = cbegin->Begin();
220 for (++itr; itr!=this->
end() && go_on; ++itr) {
221 tbegin = cend->Begin();
223 lbegin = itr->Begin();
225 if ( lbegin>=tbegin && lend>=
tend ) {
226 if (
tend+1<lbegin) { go_on=
false; }
236 fbegin = cbegin->Begin();
239 lbegin = cend->Begin();
242 itr = this->erase(cbegin,itr);
◆ Find() [1/2]
Definition at line 149 of file TGoodRun.cxx.
154 for (; itr!=this->
end(); ++itr) {
155 pass = itr->Contains(lumiblocknr) ;
◆ Find() [2/2]
Definition at line 164 of file TGoodRun.cxx.
166 std::vector<TLumiBlockRange>::const_iterator itr = this->
begin();
169 for (; itr!=this->
end(); ++itr) {
170 pass = itr->Contains(lumiblocknr) ;
◆ GetOverlapWith()
Definition at line 57 of file TGoodRun.cxx.
62 if (
runnr==-1)
return overlaprun;
64 std::vector<Root::TLumiBlockRange>::const_iterator itr1 = this->
begin();
65 std::vector<Root::TLumiBlockRange>::const_iterator itr2 =
other.begin();
67 for (; itr1!=this->
end(); ++itr1) {
68 for (itr2=
other.begin(); itr2!=
other.end(); ++itr2) {
70 if (!lbr.
IsEmpty()) overlaprun.push_back(lbr);
◆ GetPartNotIn()
Definition at line 108 of file TGoodRun.cxx.
115 std::vector<Root::TLumiBlockRange>::const_iterator itro,itrt,lbvecitr;
117 for (itro=
other.begin(); itro!=
other.end(); ++itro) {
119 for (itrt=notinother.begin(); itrt!=notinother.end(); ++itrt) {
120 std::vector<Root::TLumiBlockRange> lbvec = itrt->GetPartNotIn(*itro);
121 for (lbvecitr=lbvec.begin(); lbvecitr!=lbvec.end(); ++lbvecitr)
122 tmprun.push_back(*lbvecitr);
◆ GetPartOnlyIn()
◆ GetRunNumber()
Int_t Root::TGoodRun::GetRunNumber |
( |
| ) |
const |
|
inline |
◆ GetSumWith()
Definition at line 79 of file TGoodRun.cxx.
84 if (
runnr==-1)
return sumrun;
90 std::vector<Root::TLumiBlockRange>::const_iterator itr;
91 for (itr=overlap.begin(); itr!=overlap.end(); ++itr) sumrun.push_back(*itr);
92 for (itr=onlyinother.begin(); itr!=onlyinother.end(); ++itr) sumrun.push_back(*itr);
93 for (itr=notinother.begin(); itr!=notinother.end(); ++itr) sumrun.push_back(*itr);
◆ HasLB()
Bool_t Root::TGoodRun::HasLB |
( |
const Int_t & |
lumiblocknr | ) |
const |
Definition at line 133 of file TGoodRun.cxx.
135 std::vector<TLumiBlockRange>::const_iterator itr = this->
begin();
136 std::vector<TLumiBlockRange>::const_iterator
end = this->
end();
139 for (; itr!=
end; ++itr) {
140 pass = pass || itr->Contains(lumiblocknr) ;
◆ IsEmpty()
Bool_t Root::TGoodRun::IsEmpty |
( |
| ) |
const |
Definition at line 251 of file TGoodRun.cxx.
254 if (this->
empty())
return kTRUE;
256 Bool_t isEmpty(kTRUE);
257 std::vector< TLumiBlockRange >::const_iterator litr = this->
begin();
258 for (; litr!=this->
end() && isEmpty; ++litr)
259 isEmpty = isEmpty && litr->IsEmpty();
◆ operator=()
◆ SetRunNumber()
void Root::TGoodRun::SetRunNumber |
( |
const Int_t & |
runnr | ) |
|
|
inline |
◆ Sort()
void Root::TGoodRun::Sort |
( |
| ) |
|
◆ Summary()
void Root::TGoodRun::Summary |
( |
| ) |
const |
Definition at line 179 of file TGoodRun.cxx.
184 std::vector<TLumiBlockRange>::const_iterator itr = this->
begin();
185 std::vector<TLumiBlockRange>::const_iterator
end = this->
end();
187 for (; itr!=
end; ++itr)
◆ elements
T std::vector< T >::elements |
|
inherited |
◆ m_runnr
Int_t Root::TGoodRun::m_runnr |
|
private |
The documentation for this class was generated from the following files:
void sort(typename std::reverse_iterator< DataModel_detail::iterator< DVL > > beg, typename std::reverse_iterator< DataModel_detail::iterator< DVL > > end, const Compare &comp)
Specialization of sort for DataVector/List.