#include <MixCollection.h>
Public Member Functions | |
int | bunch () const |
int | getPileupEventNr () const |
int | getSourceType () const |
bool | getTrigger () const |
MixItr (typename std::vector< const T * >::const_iterator it) | |
MixItr () | |
MixItr (MixCollection *shc, int nrDets) | |
bool | operator!= (const MixItr &itr) |
const T & | operator* () const |
MixItr | operator++ () |
MixItr | operator++ (int) |
const T * | operator-> () const |
virtual | ~MixItr () |
Private Member Functions | |
bool | getNewPileups (typename std::vector< const T * >::const_iterator &first, typename std::vector< const T * >::const_iterator &last) |
bool | getNewSignal (typename std::vector< const T * >::const_iterator &first, typename std::vector< const T * >::const_iterator &last) |
MixItr | next () |
void | reset () |
Private Attributes | |
bool | first_ |
unsigned int | internalCtr_ |
int | iPileup_ |
int | iSignal_ |
MixCollection * | mixCol_ |
const CrossingFrame< T > * | myCF_ |
int | nrDets_ |
std::vector< const T * > ::const_iterator | pMixItr_ |
std::vector< const T * > ::const_iterator | pMixItrEnd_ |
bool | trigger_ |
Definition at line 61 of file MixCollection.h.
MixCollection< T >::MixItr::MixItr | ( | ) | [inline] |
MixCollection< T >::MixItr::MixItr | ( | typename std::vector< const T * >::const_iterator | it | ) | [inline] |
Definition at line 66 of file MixCollection.h.
: pMixItr_(it),nrDets_(0),first_(true),internalCtr_(0) {;}
MixCollection< T >::MixItr::MixItr | ( | MixCollection * | shc, |
int | nrDets | ||
) | [inline] |
Definition at line 67 of file MixCollection.h.
virtual MixCollection< T >::MixItr::~MixItr | ( | ) | [inline, virtual] |
int MixCollection< T >::MixItr::bunch | ( | ) | const [inline] |
getters
Definition at line 83 of file MixCollection.h.
References MixCollection< T >::MixItr::internalCtr_, MixCollection< T >::MixItr::myCF_, and MixCollection< T >::MixItr::trigger_.
Referenced by edm::TestMix::analyze(), and edm::TestMixedSource::analyze().
{ if (trigger_) return 0; int bcr= myCF_->getBunchCrossing(internalCtr_); return bcr; }
bool MixCollection< T >::MixItr::getNewPileups | ( | typename std::vector< const T * >::const_iterator & | first, |
typename std::vector< const T * >::const_iterator & | last | ||
) | [private] |
Definition at line 220 of file MixCollection.h.
References MixCollection< T >::crossingFrames_, prof2calltree::last, MixCollection< T >::nrDets_, and asciidump::s.
{ // gets the next pileup collection , changing subdet if necessary while (iPileup_<nrDets_) { mixCol_-> crossingFrames_[iPileup_]->getPileups(first,last); int s=0; for (typename std::vector<const T*>::const_iterator it=first;it!= last ;it++) { s++; } myCF_=mixCol_->crossingFrames_[iPileup_]; iPileup_++; if (first!=last) return true; } return false; }
bool MixCollection< T >::MixItr::getNewSignal | ( | typename std::vector< const T * >::const_iterator & | first, |
typename std::vector< const T * >::const_iterator & | last | ||
) | [private] |
Definition at line 207 of file MixCollection.h.
References MixCollection< T >::crossingFrames_, MixCollection< T >::MixItr::iSignal_, MixCollection< T >::MixItr::mixCol_, MixCollection< T >::MixItr::myCF_, and MixCollection< T >::MixItr::nrDets_.
int MixCollection< T >::MixItr::getPileupEventNr | ( | ) | const [inline] |
Definition at line 92 of file MixCollection.h.
References MixCollection< T >::MixItr::getTrigger(), MixCollection< T >::MixItr::internalCtr_, and MixCollection< T >::MixItr::myCF_.
{return (getTrigger() ? 0 : myCF_->getPileupEventNr(internalCtr_));}
int MixCollection< T >::MixItr::getSourceType | ( | ) | const [inline] |
Definition at line 91 of file MixCollection.h.
References MixCollection< T >::MixItr::getTrigger(), MixCollection< T >::MixItr::internalCtr_, and MixCollection< T >::MixItr::myCF_.
Referenced by edm::TestMix::analyze().
{return (getTrigger() ? -1 : myCF_->getSourceType(internalCtr_));}
bool MixCollection< T >::MixItr::getTrigger | ( | ) | const [inline] |
Definition at line 89 of file MixCollection.h.
References MixCollection< T >::MixItr::trigger_.
Referenced by edm::TestMix::analyze(), edm::TestMixedSource::analyze(), MixCollection< T >::MixItr::getPileupEventNr(), and MixCollection< T >::MixItr::getSourceType().
{return trigger_;}
MixCollection< T >::MixItr MixCollection< T >::MixItr::next | ( | void | ) | [private] |
Definition at line 237 of file MixCollection.h.
References convertSQLiteXML::ok.
Referenced by MixCollection< T >::MixItr::operator++().
{ // initialisation if (first_) { first_=false; trigger_=true; } else { if (!trigger_) internalCtr_++; if (++pMixItr_!=pMixItrEnd_) return *this; } // we have an end condition, look whether there are more collections bool ok; if (trigger_) { ok=this->getNewSignal(pMixItr_,pMixItrEnd_); if (ok) return *this; trigger_=false; } ok=this->getNewPileups(pMixItr_,pMixItrEnd_); if (ok) { // debug print start typename std::vector<const T *>::const_iterator dbIt; // for (dbIt=pMixItr_;dbIt!=pMixItrEnd_;++dbIt) printf("Found pointer %p\n",(*dbIt));fflush(stdout); // debug print end internalCtr_=0; return *this; } else { return mixCol_->end(); } }
bool MixCollection< T >::MixItr::operator!= | ( | const MixItr & | itr | ) | [inline] |
Definition at line 80 of file MixCollection.h.
References MixCollection< T >::MixItr::pMixItr_.
{return pMixItr_!=itr.pMixItr_;}
const T& MixCollection< T >::MixItr::operator* | ( | void | ) | const [inline] |
Definition at line 77 of file MixCollection.h.
References MixCollection< T >::MixItr::pMixItr_.
{return *(pMixItr_.operator*()); }
MixItr MixCollection< T >::MixItr::operator++ | ( | int | ) | [inline] |
Definition at line 79 of file MixCollection.h.
References MixCollection< T >::MixItr::next().
{return next();}
MixItr MixCollection< T >::MixItr::operator++ | ( | void | ) | [inline] |
Definition at line 78 of file MixCollection.h.
References MixCollection< T >::MixItr::next().
{return next();}
const T* MixCollection< T >::MixItr::operator-> | ( | ) | const [inline] |
operators
Definition at line 76 of file MixCollection.h.
References MixCollection< T >::MixItr::pMixItr_.
{ return *(pMixItr_.operator->()); }
void MixCollection< T >::MixItr::reset | ( | void | ) | [inline, private] |
Definition at line 108 of file MixCollection.h.
{;}
bool MixCollection< T >::MixItr::first_ [private] |
Definition at line 102 of file MixCollection.h.
unsigned int MixCollection< T >::MixItr::internalCtr_ [private] |
Definition at line 105 of file MixCollection.h.
Referenced by MixCollection< T >::MixItr::bunch(), MixCollection< T >::MixItr::getPileupEventNr(), and MixCollection< T >::MixItr::getSourceType().
int MixCollection< T >::MixItr::iPileup_ [private] |
Definition at line 103 of file MixCollection.h.
int MixCollection< T >::MixItr::iSignal_ [private] |
Definition at line 103 of file MixCollection.h.
Referenced by MixCollection< T >::MixItr::getNewSignal().
MixCollection* MixCollection< T >::MixItr::mixCol_ [private] |
Definition at line 100 of file MixCollection.h.
Referenced by MixCollection< T >::MixItr::getNewSignal().
const CrossingFrame<T>* MixCollection< T >::MixItr::myCF_ [private] |
Definition at line 99 of file MixCollection.h.
Referenced by MixCollection< T >::MixItr::bunch(), MixCollection< T >::MixItr::getNewSignal(), MixCollection< T >::MixItr::getPileupEventNr(), and MixCollection< T >::MixItr::getSourceType().
int MixCollection< T >::MixItr::nrDets_ [private] |
Definition at line 101 of file MixCollection.h.
Referenced by MixCollection< T >::MixItr::getNewSignal().
std::vector<const T *>::const_iterator MixCollection< T >::MixItr::pMixItr_ [private] |
Definition at line 96 of file MixCollection.h.
Referenced by MixCollection< T >::MixItr::operator!=(), MixCollection< T >::MixItr::operator*(), and MixCollection< T >::MixItr::operator->().
std::vector<const T *>::const_iterator MixCollection< T >::MixItr::pMixItrEnd_ [private] |
Definition at line 97 of file MixCollection.h.
bool MixCollection< T >::MixItr::trigger_ [private] |
Definition at line 104 of file MixCollection.h.
Referenced by MixCollection< T >::MixItr::bunch(), and MixCollection< T >::MixItr::getTrigger().