Auxiliary class for parsing a vector of neutrino PDG identifiers.
More...
#include <JEvtWeightToolkit.hh>
Auxiliary class for parsing a vector of neutrino PDG identifiers.
Definition at line 93 of file JEvtWeightToolkit.hh.
JAANET::JNeutrinoTypeCollection::JNeutrinoTypeCollection |
( |
| ) |
|
|
inline |
Default constructor.
Definition at line 98 of file JEvtWeightToolkit.hh.
std::vector< int > identifiers
Container for identifiers.
void JAANET::JNeutrinoTypeCollection::put |
( |
const int |
identifier | ) |
|
|
inline |
Add identifier.
- Parameters
-
Definition at line 108 of file JEvtWeightToolkit.hh.
118 THROW(JValueOutOfRange,
"JNeutrinoTypeCollection::put(): Invalid PDG identifier: " << identifier);
std::vector< int > identifiers
Container for identifiers.
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
size_t JAANET::JNeutrinoTypeCollection::size |
( |
| ) |
const |
|
inline |
Get size of this collection.
- Returns
- size of neutrino type collection.
Definition at line 128 of file JEvtWeightToolkit.hh.
std::vector< int > identifiers
Container for identifiers.
std::vector<int>::const_iterator JAANET::JNeutrinoTypeCollection::cbegin |
( |
| ) |
const |
|
inlinenoexcept |
Get constant iterator to the first element of the collection.
- Returns
- constant iterator to the first element of the collection
Definition at line 139 of file JEvtWeightToolkit.hh.
std::vector< int > identifiers
Container for identifiers.
std::vector<int>::const_iterator JAANET::JNeutrinoTypeCollection::cend |
( |
| ) |
const |
|
inlinenoexcept |
Get constant iterator to the last element of the collection.
- Returns
- constant iterator to the last element of the collection
Definition at line 150 of file JEvtWeightToolkit.hh.
std::vector< int > identifiers
Container for identifiers.
Stream input.
- Parameters
-
in | input stream |
collection | collection of neutrino PDG types |
- Returns
- input stream
Definition at line 163 of file JEvtWeightToolkit.hh.
165 for (
int identifier;
in >> identifier; ) {
166 collection.
put(identifier);
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
void put(const int identifier)
Add identifier.
Stream output.
- Parameters
-
out | output stream |
collection | collection of neutrino PDG types |
- Returns
- output stream
Definition at line 180 of file JEvtWeightToolkit.hh.
std::vector< int > identifiers
Container for identifiers.
std::vector<int> JAANET::JNeutrinoTypeCollection::identifiers |
|
private |
The documentation for this struct was generated from the following file: