1 #ifndef SimGeneral_MixingModule_Adjuster_h 2 #define SimGeneral_MixingModule_Adjuster_h 24 class ModuleCallingContext;
34 int vertexOffset) = 0;
50 int vertexOffset)
override;
55 got =
event.getByToken(token_, result_t);
72 std::vector<SimTrack>& product,
78 std::vector<SimVertex>& product,
84 std::vector<PCaloHit>& product,
89 int bunchspace,
int bcr, std::vector<PSimHit>& product,
unsigned int eventNr,
int vertexOffset,
bool wraptimes);
103 unsigned int eventNr,
105 std::shared_ptr<Wrapper<T>
const> shPtr = getProductByTag<T>(
ep, tag_, mcc);
107 T& product =
const_cast<T&
>(*shPtr->product());
112 template <
typename T>
114 : tag_(tag), token_(iC.consumes<
T>(tag)) {
117 if (Musearch.find(
"Muon") == 0)
void doOffset(int bunchspace, int bcr, const edm::EventPrincipal &, ModuleCallingContext const *, unsigned int EventNr, int vertexOffset) override
virtual void doOffset(int bunchspace, int bcr, const edm::EventPrincipal &, ModuleCallingContext const *, unsigned int EventNr, int vertexOffset)=0
void doTheOffset(int bunchSpace, int bcr, std::vector< SimTrack > &simtracks, unsigned int evtNr, int vertexOffset, bool wrap)
Adjuster(InputTag const &tag, edm::ConsumesCollector &&iC, bool wrap)
bool checkSignal(edm::Event const &event) override
virtual bool checkSignal(edm::Event const &event)=0
auto wrap(F iFunc) -> decltype(iFunc())