7 void doTheOffset(
int bunchSpace,
int bcr, std::vector<SimTrack>& simtracks,
unsigned int evtNr,
int vertexOffset) {
10 for (
auto& item : simtracks) {
12 if (!item.noVertex()) {
13 item.setVertexIndex(item.vertIndex() + vertexOffset);
18 void doTheOffset(
int bunchSpace,
int bcr, std::vector<SimVertex>& simvertices,
unsigned int evtNr,
int vertexOffset) {
20 int timeOffset = bcr * bunchSpace;
22 for (
auto& item : simvertices) {
24 item.setTof(item.position().t() + timeOffset);
28 void doTheOffset(
int bunchSpace,
int bcr, std::vector<PSimHit>& simhits,
unsigned int evtNr,
int vertexOffset) {
30 int timeOffset = bcr * bunchSpace;
32 for (
auto& item : simhits) {
34 item.setTof(item.timeOfFlight() + timeOffset);
38 void doTheOffset(
int bunchSpace,
int bcr, std::vector<PCaloHit>& calohits,
unsigned int evtNr,
int vertexOffset) {
40 int timeOffset = bcr * bunchSpace;
42 for (
auto& item : calohits) {
44 item.setTime(item.time() + timeOffset);
51 for (
auto it = trackingrechits.
begin();it!=trackingrechits.
end();++it) {
virtual void setEventId(int32_t eventId)
void doTheOffset(int bunchSpace, int bcr, std::vector< SimTrack > &simtracks, unsigned int evtNr, int vertexOffset)
bool isFast(TrackingRecHit const &hit)