CORSIKA8  0.0.0
The framework to simulate particle cascades for astroparticle physics
ContinuousProcessIndex.hpp
1 /*
2  * (c) Copyright 2021 CORSIKA Project, corsika-project@lists.kit.edu
3  *
4  * This software is distributed under the terms of the GNU General Public
5  * Licence version 3 (GPL Version 3). See file LICENSE for a full version of
6  * the license.
7  */
8 
9 #pragma once
10 
11 namespace corsika {
12 
20  public:
22  : id_(-1) {} // default
23  ContinuousProcessIndex(int const id)
24  : id_(id) {}
25  void setIndex(int const id) { id_ = id; }
26  int getIndex() const { return id_; }
27  bool operator==(ContinuousProcessIndex const v) const { return id_ == v.id_; }
28  bool operator!=(ContinuousProcessIndex const v) const { return id_ != v.id_; }
29 
30  private:
31  int id_;
32  };
33 
34 } // namespace corsika
To index individual processes (continuous processes) inside a ProcessSequence.
The cascade namespace assembles all objects needed to simulate full particles cascades.