7 void doTheOffset(
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);
18 void doTheOffset(
int bunchSpace,
int bcr, std::vector<SimVertex>& simvertices,
unsigned int evtNr,
int vertexOffset,
bool wrap) {
22 for (
auto& item : simvertices) {
28 void doTheOffset(
int bunchSpace,
int bcr, std::vector<PSimHit>& simhits,
unsigned int evtNr,
int vertexOffset,
bool wrap) {
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);
43 for (
auto& item : simhits) {
50 void doTheOffset(
int bunchSpace,
int bcr, std::vector<PCaloHit>& calohits,
unsigned int evtNr,
int vertexOffset,
bool wrap) {
54 for (
auto& item : calohits) {
63 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 wrap)
bool isFast(TrackingRecHit const &hit)
auto wrap(F iFunc) -> decltype(iFunc())