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
19
namespace
o2
20
{
21
namespace
mid
22
{
23
24
class
Stepper
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.h
Hit for MID.
ptr
TBranch * ptr
Definition
TTreePlugin.cxx:832
ROOT::Math::PositionVector3D
Definition
GPUROOTCartesianFwd.h:36
TVirtualMC
o2::mid::Stepper
Definition
Stepper.h:25
o2::mid::Stepper::getHits
std::vector< o2::mid::Hit > * getHits()
Definition
Stepper.h:31
o2::mid::Stepper::Stepper
Stepper()
Definition
Stepper.cxx:26
o2::mid::Stepper::setHits
void setHits(std::vector< o2::mid::Hit > *ptr)
Definition
Stepper.h:32
o2::mid::Stepper::resetHits
void resetHits()
Definition
Stepper.cxx:90
o2::mid::Stepper::~Stepper
~Stepper()
Definition
Stepper.cxx:27
o2::mid::Stepper::registerHits
void registerHits(const char *branchName)
Definition
Stepper.cxx:77
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
MID
Simulation
include
MIDSimulation
Stepper.h
Generated on Tue Feb 25 2025 23:16:23 for Project by
1.9.8