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
21
namespace
o2
22
{
23
namespace
mch
24
{
25
26
class
Stepper
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
Hit.h
ptr
TBranch * ptr
Definition
TTreePlugin.cxx:832
TVirtualMC
o2::mch::Stepper
Definition
Stepper.h:27
o2::mch::Stepper::~Stepper
~Stepper()
Definition
Stepper.cxx:32
o2::mch::Stepper::registerHits
void registerHits(const char *branchName)
Definition
Stepper.cxx:81
o2::mch::Stepper::getHits
std::vector< o2::mch::Hit > * getHits()
Definition
Stepper.h:33
o2::mch::Stepper::Stepper
Stepper()
Definition
Stepper.cxx:31
o2::mch::Stepper::resetHits
void resetHits()
Definition
Stepper.cxx:94
o2::mch::Stepper::setHits
void setHits(std::vector< o2::mch::Hit > *ptr)
Definition
Stepper.h:34
o2
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Definition
BitstreamReader.h:24
process
Definition
process_iterator.h:53
Detectors
MUON
MCH
Simulation
src
Stepper.h
Generated on Tue Feb 25 2025 23:16:23 for Project by
1.9.8