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_MID_SIMULATION_STEPPER_H
13#define O2_MID_SIMULATION_STEPPER_H
14
15#include "MIDSimulation/Hit.h"
16#include "TVirtualMC.h"
17#include <vector>
18
19namespace o2
20{
21namespace mid
22{
23
25{
26 public:
27 Stepper();
28 ~Stepper();
29 bool process(const TVirtualMC& vmc);
30
31 std::vector<o2::mid::Hit>* getHits() { return mHits; }
32 void setHits(std::vector<o2::mid::Hit>* ptr) { mHits = ptr; }
33
34 void resetHits();
35
36 void registerHits(const char* branchName);
37
38 private:
39 void resetStep();
40
41 private:
42 float mTrackEloss{0.0};
43 float mTrackLength{0.0};
44 std::vector<o2::mid::Hit>* mHits{nullptr};
45 o2::math_utils::Point3D<float> mEntrancePoint;
46};
47
48} // namespace mid
49} // namespace o2
50
51#endif
Hit for MID.
TBranch * ptr
std::vector< o2::mid::Hit > * getHits()
Definition Stepper.h:31
void setHits(std::vector< o2::mid::Hit > *ptr)
Definition Stepper.h:32
void registerHits(const char *branchName)
Definition Stepper.cxx:77
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...