1 #ifndef SimGeneral_MixingModule_PileUpEventPrincipal_h
2 #define SimGeneral_MixingModule_PileUpEventPrincipal_h
52 typedef typename T::iterator iterator;
56 T& product =
const_cast<T&
>(*result.
product());
57 for(iterator
i = product.begin(), iEnd = product.end();
i != iEnd; ++
i) {
70 mutable std::set<std::pair<edm::TypeID, std::string> >
labels_;
74 void PileUpEventPrincipal::adjust<PCaloHit>(
PCaloHit& item)
const;
77 void PileUpEventPrincipal::adjust<PSimHit>(
PSimHit& item)
const;
80 void PileUpEventPrincipal::adjust<SimTrack>(
SimTrack& item)
const;
83 void PileUpEventPrincipal::adjust<SimVertex>(
SimVertex& item)
const;
int bunchCrossing() const
PileUpEventPrincipal(edm::EventPrincipal const &ep, int bcr, int bsp, int eventId, int vtxOffset)
bool addLabel(edm::TypeID const &type, std::string const &label) const
std::set< std::pair< edm::TypeID, std::string > > labels_
edm::EventPrincipal const & principal()
edm::EventPrincipal const & principal_
BasicHandle getByLabel(KindOfType kindOfType, TypeID const &typeID, InputTag const &inputTag) const
edm::EventPrincipal const & principal() const
Container::value_type value_type
void convert_handle(BasicHandle const &bh, Handle< T > &result)
int bunchCrossingXbunchSpace_
T const * product() const
bool getByLabel(edm::InputTag const &tag, edm::Handle< T > &result) const
void adjust(T &item) const