Project
Loading...
Searching...
No Matches
Stepper.h
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
12#ifndef O2_MCH_SIMULATION_STEPPER_H
13#define O2_MCH_SIMULATION_STEPPER_H
14
15#include "MCHSimulation/Hit.h"
16#include "TVirtualMC.h"
17#include <iostream>
18#include <vector>
19#include <array>
20
21namespace o2
22{
23namespace mch
24{
25
27{
28 public:
29 Stepper();
30 ~Stepper();
31 void process(const TVirtualMC& vmc);
32
33 std::vector<o2::mch::Hit>* getHits() { return mHits; }
34 void setHits(std::vector<o2::mch::Hit>* ptr) { mHits = ptr; }
35
36 void resetHits();
37
38 void registerHits(const char* branchName);
39
40 private:
41 void resetStep();
42
43 private:
44 float mTrackEloss{0.0};
45 float mTrackLength{0.0};
46 float mTof{0.0};
47 std::vector<o2::mch::Hit>* mHits{nullptr};
48 math_utils::Point3D<float> mEntrancePoint;
49};
50
51} // namespace mch
52} // namespace o2
53
54#endif
Timeframe settings Average distance in cm of events merged into Randomize distance around average distance of merged events Simulate correct bunch interactions instead of placing only the average number of events A value[n] sets TFlen for[n] collisions in Number of bunches per trainsort Number of bunch trains Instantaneous interaction rate Do not simulate border Total number of collisions to be placed in the interior of all time Do not select random but walk over array of events in stride steps h Event generator settings h configStandalone Use CPU for GPU Force usage of the specified GPU device no CPU fallback Continue processing after an error First event to process
TBranch * ptr
void registerHits(const char *branchName)
Definition Stepper.cxx:81
std::vector< o2::mch::Hit > * getHits()
Definition Stepper.h:33
void setHits(std::vector< o2::mch::Hit > *ptr)
Definition Stepper.h:34
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...