Project
Loading...
Searching...
No Matches
O2MCApplicationEvalMat.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/*
13 * O2MCApplicationEvalMat.h
14 *
15 * Created on: March 17, 2022
16 * Author: amorsch
17 */
18
19#ifndef STEER_INCLUDE_STEER_O2MCAPPLICATIONEVALMAT_H_
20#define STEER_INCLUDE_STEER_O2MCAPPLICATIONEVALMAT_H_
21
24#include "Rtypes.h" // for Int_t, Bool_t, Double_t, etc
25#include <TVirtualMC.h>
26#include "SimConfig/SimParams.h"
27
28namespace o2
29{
30namespace steer
31{
32
33// O2 specific changes/overrides to FairMCApplication
34// Here in particular for custom adjustments to stepping logic
35// and tracking limits
37{
38 public:
40 O2MCApplicationEvalMat(const char* name, const char* title, TObjArray* ModList, const char* MatName) : O2MCApplicationBase(name, title, ModList, MatName), mMaterialBudgetMap(nullptr), mPhi(0), mMode(-1) {}
41
42 ~O2MCApplicationEvalMat() override = default;
43 void FinishPrimary() override;
44 void Stepping() override;
45 void BeginEvent() override;
46 void FinishEvent() override;
47
48 protected:
50 Int_t mMode; // 0: theta-phi, 1: eta-phi, 2: z-phi
51 Float_t mC1[3]; // current coordinate 1
52 Float_t mPhi; // current phi
53
55};
56
57} // end namespace steer
58} // end namespace o2
59
60#endif /* STEER_INCLUDE_STEER_O2MCAPPLICATIONEVALMAT_H_ */
ClassDefOverride(O2MCApplicationEvalMat, 1)
~O2MCApplicationEvalMat() override=default
O2MCApplicationEvalMat(const char *name, const char *title, TObjArray *ModList, const char *MatName)
GLuint const GLchar * name
Definition glcorearb.h:781
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...