22 for (std::vector<edm::EventAuxiliary>::const_reverse_iterator eaux = veaux.rbegin(); eaux != veaux.rend(); eaux++) {
23 if (eaux != veaux.rbegin()) {
31 const long long orbitoffset,
34 std::map<int, TinyEvent> tmpmap;
36 for (L1AcceptBunchCrossingCollection::const_iterator l1abc = l1abcc.begin(); l1abc != l1abcc.end(); ++l1abc) {
39 if (orbitoffset < (
long long)l1abc->orbitNumber()) {
40 unsigned int neworbit = l1abc->orbitNumber() - orbitoffset;
41 int newbx = l1abc->bunchCrossing() - bxoffset;
47 while (newbx > 3563) {
56 if (l1abc->eventType() != 0) {
58 tmpmap[l1abc->l1AcceptOffset()] = tmpse;
60 edm::LogWarning(
"L1AcceptBunchCrossingNoType") <<
"L1AcceptBunchCrossing with no type found: ";
61 for (L1AcceptBunchCrossingCollection::const_iterator debu = l1abcc.begin(); debu != l1abcc.end(); ++debu) {
67 <<
" Too large orbit offset " << orbitoffset <<
" " << l1abc->orbitNumber();
70 edm::LogInfo(
"L1AcceptBunchCrossingNegativeEvent") <<
"L1AcceptBunchCrossing with negative event: ";
71 for (L1AcceptBunchCrossingCollection::const_iterator debu = l1abcc.begin(); debu != l1abcc.end(); ++debu) {
77 if (tmpmap.find(0) != tmpmap.end()) {
84 while (tmpmap.find(counter) != tmpmap.end()) {
85 if (tmpmap[counter + 1].
deltaBX(tmpmap[counter]) > 0) {
86 _prevse.push_back(tmpmap[counter]);
90 <<
"L1AcceptBunchCrossing not in order: orbit " <<
event.orbitNumber() <<
" BX " <<
event.bunchCrossing()
91 <<
" orbit offset " << orbitoffset <<
" bx offset " << bxoffset <<
" :";
92 for (L1AcceptBunchCrossingCollection::const_iterator debu = l1abcc.begin(); debu != l1abcc.end(); ++debu) {
100 edm::LogWarning(
"L1AcceptBunchCrossingNoCollection") <<
" L1AcceptBunchCrossing with offset=0 not found " 101 <<
" likely L1ABCCollection is empty ";
137 for (std::vector<TinyEvent>::const_iterator
ev = he._prevse.begin();
ev != he._prevse.end();
ev++) {
138 if (!
add(*
ev, idepth))
145 bool isfuture = (idepth < 0);
146 const unsigned int adepth =
abs(idepth);
197 if (ev2 < ev1 && ev1 <=
_prevse.size()) {
235 if (ev2 == ev1 && ev1 <=
_prevse.size()) {
241 if (ev2 < ev1 && ev1 <=
_prevse.size()) {
unsigned int depth() const
long long absoluteBXinCycle(const int bx0) const
EventNumber_t event() const
long long deltaBX() const
const unsigned int orbit() const
const TinyEvent * get(const unsigned int ev) const
unsigned long long EventNumber_t
long long absoluteBXinCycle(const unsigned int ev1, const int bx0) const
bool equal(const T &first, const T &second)
std::vector< TinyEvent > _prevse
Abs< T >::type abs(const T &t)
std::vector< L1AcceptBunchCrossing > L1AcceptBunchCrossingCollection
int add(const EventWithHistory &he, const int idepth)
TinyEvent & operator=(const TinyEvent &se)
long long absoluteBX() const
long long deltaBX(const TinyEvent &se) const
const edm::EventNumber_t event() const
int isNextOf(const TinyEvent &se) const
long long deltaBXinCycle(const unsigned int ev2, const unsigned int ev1, const int bx0) const
bool isFutureHistory() const
long long absoluteBX() const
static std::atomic< unsigned int > counter
edm::EventNumber_t _event
EventWithHistory & operator=(const EventWithHistory &he)
int operator==(const TinyEvent &other) const
int operator==(const EventWithHistory &other) const
long long deltaBXinCycle(const TinyEvent &se, const int bx0) const