1 #ifndef CROSSING_FRAME_H 2 #define CROSSING_FRAME_H 94 typename std::vector<const T*>::const_iterator&
last)
const {
99 typename std::vector<const T*>::const_iterator&
last)
const;
117 throw cms::Exception(
"BadIndex") <<
"CrossingFrame::getObject called with an invalid index- index was " << ip
163 std::vector<std::shared_ptr<edm::Wrapper<std::vector<T> >
const> >
shPtrPileups_;
191 template <
typename T>
213 template <
typename T>
222 typename std::vector<const T*>::const_iterator&
last)
const {
257 template <
typename T>
266 std::ostream& operator<<(std::ostream& o, const CrossingFrame<T>& cf) {
267 std::pair<int, int> range = cf.getBunchRange();
268 o <<
"\nCrossingFrame for subdet " << cf.getEventID() <<
", bunchrange = " << range.first <<
"," << range.second
269 <<
", bunchSpace " << cf.getBunchSpace();
289 for (
auto const& item : product) {
299 for (
unsigned int i = 0;
i < vec->size(); ++
i) {
void addSignals(const std::vector< T > *vec, edm::EventID id)
void addPileups(std::vector< T > const &vec)
const std::vector< std::vector< unsigned int > > & getPileupOffsetsSource() const
void setEventID(edm::EventID evId)
void print(int level=0) const
const std::vector< unsigned int > & getPileupOffsetsBcr() const
unsigned int getMaxNbSources() const
void setPileups(const std::vector< const T * > &p)
unsigned int getNrPileups(int bcr) const
void setPileupPtr(std::shared_ptr< edm::Wrapper< std::vector< T > > const > shPtr)
int getSourceType(unsigned int ip) const
void setMaxNbSources(unsigned int mNbS)
void setPileupFileNr(unsigned int pFileNr)
void setIdFirstPileup(edm::EventID idFP)
void setPileupPtr(std::shared_ptr< edm::Wrapper< T > const > shPtr)
void setSubDet(std::string det)
unsigned int maxNbSources_
std::vector< std::shared_ptr< edm::Wrapper< T > const > > shPtrPileups2_
std::string getSubDet() const
edm::EventID getEventID() const
const T & getObject(unsigned int ip) const
edm::EventID idFirstPileup_
void setBunchRange(std::pair< int, int > bunchRange)
std::vector< unsigned int > pileupOffsetsBcr_
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
void setPileupOffsetsBcr(const std::vector< unsigned int > &pOffsetsBcr)
std::shared_ptr< edm::Wrapper< PCrossingFrame< T > > const > shPtrPileupsPCF_
void setBunchSpace(int bSpace)
int getBunchCrossing(unsigned int ip) const
void setPileupOffsetsSource(const std::vector< std::vector< unsigned int > > &pOffsetsS)
unsigned int getPileupFileNr() const
std::vector< std::vector< unsigned int > > pileupOffsetsSource_
void swap(CrossingFrame &other)
const std::vector< const T * > & getSignal() const
const std::vector< const T * > & getPileups() const
unsigned int getNrSignals() const
unsigned int pileupFileNr_
std::vector< const T * > pileups_
edm::EventID getIdFirstPileup() const
void setSourceOffset(const unsigned int s)
void getSignal(typename std::vector< const T * >::const_iterator &first, typename std::vector< const T * >::const_iterator &last) const
std::vector< const T * > signals_
CrossingFrame & operator=(CrossingFrame const &rhs)
std::vector< std::shared_ptr< edm::Wrapper< std::vector< T > > const > > shPtrPileups_
std::pair< int, int > getBunchRange() const
int getBunchSpace() const
unsigned int getNrPileups() const