1 #ifndef CROSSING_FRAME_H 2 #define CROSSING_FRAME_H 100 void getSignal(
typename std::vector<const T *>::const_iterator &
first,
typename std::vector<const T*>::const_iterator &
last)
const {
104 void getPileups(
typename std::vector<const T*>::const_iterator &
first,
typename std::vector<const T*>::const_iterator &
last)
const;
162 std::vector< std::shared_ptr<edm::Wrapper<std::vector<T> >
const> >
shPtrPileups_;
192 template <
typename T>
216 template <
typename T>
259 template <
typename T>
270 std::ostream &operator<<(std::ostream& o, const CrossingFrame<T>& cf)
272 std::pair<int,int> range=cf.getBunchRange();
273 o <<
"\nCrossingFrame for subdet "<<cf.getEventID()<<
", bunchrange = "<<range.first<<
","<<range.second
274 <<
", bunchSpace "<<cf.getBunchSpace();
293 for (
auto const& item : product) {
303 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)
void setEventID(edm::EventID evId)
std::pair< int, int > getBunchRange() const
std::vector< std::shared_ptr< edm::Wrapper< T > const > > shPtrPileups2_
void print(int level=0) 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)
std::vector< std::vector< unsigned int > > getPileupOffsetsSource() const
std::vector< const T * > signals_
void setPileupPtr(std::shared_ptr< edm::Wrapper< T > const > shPtr)
void setSubDet(std::string det)
unsigned int maxNbSources_
std::string getSubDet() const
edm::EventID getEventID() const
const T & getObject(unsigned int ip) const
std::vector< const T * > getSignal() const
edm::EventID idFirstPileup_
void setBunchRange(std::pair< int, int > bunchRange)
std::vector< unsigned int > pileupOffsetsBcr_
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
std::vector< const T * > getPileups() const
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::shared_ptr< edm::Wrapper< std::vector< T > > const > > shPtrPileups_
std::vector< std::vector< unsigned int > > pileupOffsetsSource_
std::vector< const T * > pileups_
void swap(CrossingFrame &other)
std::vector< unsigned int > getPileupOffsetsBcr() const
unsigned int getNrSignals() const
unsigned int pileupFileNr_
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
CrossingFrame & operator=(CrossingFrame const &rhs)
int getBunchSpace() const
unsigned int getNrPileups() const