MCDumperUtils.h
Go to the documentation of this file.
1 /**
2  * @file garsoft/Utilities/MCDumperUtils.h
3  * @brief Utility functions to print MC truth information.
4  * @author Gianluca Petrillo (petrillo@fnal.gov)
5  * @date November 2, 2017
6  *
7  * Utilities for dumping on screen of Monte Carlo data.
8  *
9  */
10 
11 #ifndef GARSOFT_UTILITIES_MCDUMPERUTILS_H
12 #define GARSOFT_UTILITIES_MCDUMPERUTILS_H
13 
14 // nutools libraries
15 #include "nusimdata/SimulationBase/MCTruth.h" // simb::Origin_t
16 
17 // C/C++ standard libraries
18 #include <string>
19 
20 
21 namespace sim {
22 
23  /// @{
24  /// @name Function to name `simb::MCParticle` enumerators and codes.
25 
26  /// Returns a string with the name of particle the specified with PDG ID.
27  std::string ParticleName(int pigid);
28 
29  /// Describes the status of a particle (`simb::MCParticle::StatusCode()`).
31 
32  /// @}
33 
34 
35  /// @{
36  /// @name Functions to name `simb::MCTruth` enumerators and codes.
37 
38  /// Returns a string representing the specified process origin.
40 
41  /// Returns a string representing the specified process from `simb::MCTruth`
42  /// (CC or NC, nothing fancy).
43  std::string TruthCCNCname(int ccnc);
44 
45  /// Returns the "mode" of the reaction (a lesser version of interaction type).
47 
48  /// Returns a string representing the specified interaction type as in
49  /// `simb::MCTruth` convention.
51 
52  /// @}
53 
54 
55 } // namespace sim
56 
57 
58 #endif // GARSOFT_UTILITIES_MCDUMPERUTILS_H
std::string TruthInteractionTypeName(int type)
std::string string
Definition: nybbler.cc:12
enum simb::_ev_origin Origin_t
event origin types
std::string TruthCCNCname(int ccnc)
std::string TruthReactionMode(int mode)
Returns the "mode" of the reaction (a lesser version of interaction type).
std::string ParticleName(int pigid)
Returns a string with the name of particle the specified with PDG ID.
CodeOutputInterface * code
Code to link reconstructed objects back to the MC truth information.
std::string TruthOriginName(simb::Origin_t origin)
Returns a string representing the specified process origin.
std::string ParticleStatusName(int code)
Describes the status of a particle (simb::MCParticle::StatusCode()).
constexpr Point origin()
Returns a origin position with a point of the specified type.
Definition: geo_vectors.h:227