WarpX
ColliderRelevant.H
Go to the documentation of this file.
1 /* Copyright 2023 The WarpX Community
2  *
3  * This file is part of WarpX.
4  *
5  * Authors: Arianna Formenti
6  * License: BSD-3-Clause-LBNL
7  */
8 
9 #ifndef WARPX_DIAGNOSTICS_REDUCEDDIAGS_COLLIDERRELEVANT_H_
10 #define WARPX_DIAGNOSTICS_REDUCEDDIAGS_COLLIDERRELEVANT_H_
11 
12 #include "ReducedDiags.H"
13 
14 #include <map>
15 #include <string>
16 #include <vector>
17 
22 {
23 public:
24 
29  ColliderRelevant(const std::string& rd_name);
30 
32  std::vector<std::string> m_beam_name;
33 
47  void ComputeDiags(int step) final;
48 
49 private:
52  {
53  std::string header;
54  int idx;
55  };
56 
58  std::map<std::string, aux_header_index> m_headers_indices;
59 };
60 
61 #endif // WARPX_DIAGNOSTICS_REDUCEDDIAGS_COLLIDERRELEVANT_H_
Definition: ColliderRelevant.H:22
std::map< std::string, aux_header_index > m_headers_indices
map to store header texts and indices of the reduced diagnostics
Definition: ColliderRelevant.H:58
std::vector< std::string > m_beam_name
name of the two colliding species
Definition: ColliderRelevant.H:32
ColliderRelevant(const std::string &rd_name)
Definition: ColliderRelevant.cpp:64
void ComputeDiags(int step) final
This function computes collider-relevant diagnostics.
Definition: ColliderRelevant.cpp:191
Definition: ReducedDiags.H:24
auxiliary structure to store headers and indices of the reduced diagnostics
Definition: ColliderRelevant.H:52
int idx
Definition: ColliderRelevant.H:54
std::string header
Definition: ColliderRelevant.H:53