8 int bunchSpace,
int bcr, std::vector<SimTrack>& simtracks,
unsigned int evtNr,
int vertexOffset,
bool wrap) {
10 for (
auto&
item : simtracks) {
12 if (!
item.noVertex()) {
13 item.setVertexIndex(
item.vertIndex() + vertexOffset);
19 int bunchSpace,
int bcr, std::vector<SimVertex>& simvertices,
unsigned int evtNr,
int vertexOffset,
bool wrap) {
20 int timeOffset = bcr * bunchSpace;
22 for (
auto&
item : simvertices) {
24 item.setTof(
item.position().t() + timeOffset);
29 int bunchSpace,
int bcr, std::vector<PSimHit>& simhits,
unsigned int evtNr,
int vertexOffset,
bool wrap) {
30 int timeOffset = bcr * bunchSpace;
33 for (
auto&
item : simhits) {
36 float Tfloor = floor(
item.timeOfFlight());
37 float digits =
item.timeOfFlight() - Tfloor;
38 int remainder = int(Tfloor) % bunchSpace;
39 item.setTof(
float(remainder) + digits + timeOffset);
42 for (
auto&
item : simhits) {
44 item.setTof(
item.timeOfFlight() + timeOffset);
50 int bunchSpace,
int bcr, std::vector<PCaloHit>& calohits,
unsigned int evtNr,
int vertexOffset,
bool wrap) {
51 int timeOffset = bcr * bunchSpace;
53 for (
auto&
item : calohits) {
55 item.setTime(
item.time() + timeOffset);
66 for (
auto it = trackingrechits.
begin(); it != trackingrechits.
end(); ++it) {
uint16_t *__restrict__ id
virtual void setEventId(int32_t eventId)
void doTheOffset(int bunchSpace, int bcr, std::vector< SimTrack > &simtracks, unsigned int evtNr, int vertexOffset, bool wrap)
bool isFast(TrackingRecHit const &hit)
auto wrap(F iFunc) -> decltype(iFunc())