6 void doTheOffset(
int bunchSpace,
int bcr, std::vector<SimTrack>& simtracks,
unsigned int evtNr,
int vertexOffset) {
9 for (
auto& item : simtracks) {
11 if (!item.noVertex()) {
12 item.setVertexIndex(item.vertIndex() + vertexOffset);
17 void doTheOffset(
int bunchSpace,
int bcr, std::vector<SimVertex>& simvertices,
unsigned int evtNr,
int vertexOffset) {
19 int timeOffset = bcr * bunchSpace;
21 for (
auto& item : simvertices) {
23 item.setTof(item.position().t() + timeOffset);
27 void doTheOffset(
int bunchSpace,
int bcr, std::vector<PSimHit>& simhits,
unsigned int evtNr,
int vertexOffset) {
29 int timeOffset = bcr * bunchSpace;
31 for (
auto& item : simhits) {
33 item.setTof(item.timeOfFlight() + timeOffset);
37 void doTheOffset(
int bunchSpace,
int bcr, std::vector<PCaloHit>& calohits,
unsigned int evtNr,
int vertexOffset) {
39 int timeOffset = bcr * bunchSpace;
41 for (
auto& item : calohits) {
43 item.setTime(item.time() + timeOffset);
void doTheOffset(int bunchSpace, int bcr, std::vector< SimTrack > &simtracks, unsigned int evtNr, int vertexOffset)