Class for neutrino interaction categories.
More...
#include <JNeutrinoInteractionCategory.hh>
Class for neutrino interaction categories.
Definition at line 134 of file JNeutrinoInteractionCategory.hh.
◆ JRange_t
◆ clone_type
template<class JClonable_t , class JDerived_t >
◆ JNeutrinoInteractionCategory() [1/6]
JAANET::JNeutrinoInteractionCategory::JNeutrinoInteractionCategory |
( |
| ) |
|
|
inline |
Default constructor.
Definition at line 143 of file JNeutrinoInteractionCategory.hh.
static const JRange< double > DEFAULT_NEUTRINO_ENERGY_RANGE
Default neutrino energy range [GeV].
static const JRange< double > DEFAULT_NEUTRINO_COSINE_ZENITH_ANGLE_RANGE
Default neutrino cosine zenith angle range [-].
JParameter< int > interactionType
interaction type
JRange_t coszRange
cosine zenith range
JParameter< int > targetZ
target atomic number
JRange_t Erange
neutrino energy range
JParameter< int > targetA
target mass number
JParameter< int > scatteringType
scattering type
◆ JNeutrinoInteractionCategory() [2/6]
JAANET::JNeutrinoInteractionCategory::JNeutrinoInteractionCategory |
( |
const int |
neutrinoType | ) |
|
|
inline |
◆ JNeutrinoInteractionCategory() [3/6]
JAANET::JNeutrinoInteractionCategory::JNeutrinoInteractionCategory |
( |
const int |
neutrinoType, |
|
|
const JRange_t & |
Erange, |
|
|
const JRange_t & |
coszRange |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
neutrinoType | neutrino PDG type |
Erange | neutrino energy range |
coszRange | zenith-angle range |
Definition at line 179 of file JNeutrinoInteractionCategory.hh.
189 this->primaryType = neutrinoType;
◆ JNeutrinoInteractionCategory() [4/6]
Constructor.
- Parameters
-
neutrinoType | neutrino PDG type |
interactionType | interaction type |
scatteringType | scattering type |
targetZ | target atomic number |
targetA | target mass number |
Erange | neutrino energy range |
coszRange | zenith-angle range |
Definition at line 206 of file JNeutrinoInteractionCategory.hh.
220 this->primaryType = neutrinoType;
◆ JNeutrinoInteractionCategory() [5/6]
JAANET::JNeutrinoInteractionCategory::JNeutrinoInteractionCategory |
( |
const JHead & |
header, |
|
|
const int |
primaryType |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
header | MC header |
primaryType | primary PDG type |
Definition at line 232 of file JNeutrinoInteractionCategory.hh.
245 this->primaryType = primaryType;
247 THROW(
JValueOutOfRange,
"JNeutrinoInteractionCategory::JNeutrinoInteractionCategory(): Given header does not match with given primary type " << primaryType <<
".");
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
std::vector< JAANET::flux > flux
Exception for accessing a value in a collection that is outside of its range.
std::pair< JParameter< int >, JParameter< int > > getTargetInfo(const JHead &header)
Auxiliary function to retrieve the target atomic number and mass number.
JInteractionTypeGENIE_t getInteractionType(const int intType)
Auxiliary function to convert interaction types.
JInteractionTypeGENIE_t
Enumeration of GENIE interaction types.
@ UNDEFINED
Unknown interaction type.
bool is_gseagen(const JHead &header)
Check for generator.
JPredicate< JResult_t T::*, JComparison::eq > make_predicate(JResult_t T::*member, const JResult_t value)
Helper method to create predicate for data member.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
JNeutrinoInteractionCategory()
Default constructor.
General purpose class of phase space generation.
JRange_t cosT
Cosine zenith angle range
JRange_t E
Energy range [GeV].
◆ JNeutrinoInteractionCategory() [6/6]
JAANET::JNeutrinoInteractionCategory::JNeutrinoInteractionCategory |
( |
const JHead & |
header | ) |
|
|
inline |
Constructor.
N.B.: In this method, the neutrino PDG type is taken from JAANET::JHead::primary::type
.
- Parameters
-
Definition at line 284 of file JNeutrinoInteractionCategory.hh.
◆ is_valid()
bool JAANET::JNeutrinoInteractionCategory::is_valid |
( |
| ) |
const |
|
inlinefinaloverride |
Check if neutrino interaction categories is valid.
- Returns
- true if neutrino interaction category is valid; else false
Definition at line 294 of file JNeutrinoInteractionCategory.hh.
const value_type getValue() const
Get value of parameter.
const bool isDefined() const
Get status of parameter.
@ DARK_MATTER_SCATTERING_TYPES_END
End of dark matter scattering types.
@ NEUTRINO_SCATTERING_TYPES_END
End of standard scattering types.
@ DARK_MATTER_SCATTERING_TYPES_START
Start of dark matter scattering types.
@ NEUTRINO_SCATTERING_TYPES_START
Start of standard scattering types.
@ INTERACTION_TYPES_END
End of interaction types.
@ INTERACTION_TYPES_START
Start of interaction types.
bool is_neutrino_primary(const int type)
Auxiliary function to check if given PDG code corresponds to a neutrino.
◆ match() [1/2]
bool JAANET::JNeutrinoInteractionCategory::match |
( |
const JHead & |
header | ) |
const |
|
inlinefinaloverride |
Check whether this event category matches with the given MC header.
- Parameters
-
- Returns
- true if matching; else false
Definition at line 333 of file JNeutrinoInteractionCategory.hh.
339 return (this->primaryType == cat.primaryType &&
340 this->interactionType == cat.interactionType &&
341 this->scatteringType == cat.scatteringType &&
342 this->targetZ == cat.targetZ &&
343 this->targetA == cat.targetA &&
344 this->Erange .overlap(cat.Erange) &&
345 this->coszRange .overlap(cat.coszRange));
Class for neutrino interaction categories.
◆ match() [2/2]
bool JAANET::JNeutrinoInteractionCategory::match |
( |
const Evt & |
event | ) |
const |
|
inlinefinaloverride |
Check whether given event matches with this event category.
- Parameters
-
- Returns
- true if matching; else false
Definition at line 360 of file JNeutrinoInteractionCategory.hh.
const Trk & get_primary(const Evt &evt)
Get primary.
bool is_neutrino(const Trk &track)
Test whether given track is a neutrino.
std::vector< double > w2list
MC: factors that make up w[1]=w2 (see e.g. Tag list or km3net-dataformat/definitions)
The Trk class represents a Monte Carlo (MC) particle as well as a reconstructed track/shower.
static const int W2LIST_GSEAGEN_CC
Charged current interaction flag.
static const int W2LIST_GSEAGEN_TARGETZ
number of protons in the target
static const int W2LIST_GSEAGEN_TARGETA
number of nuclons in the target
static const int W2LIST_GSEAGEN_ICHAN
Interaction channel.
◆ less()
bool JAANET::JNeutrinoInteractionCategory::less |
( |
const JEvtCategory & |
category | ) |
const |
|
inlinefinaloverride |
Less-than method.
Note: The energy and cosine zenith-angle ranges are compared based on the lower limit first.
If the lower limits are equal, the upper limits are compared.
- Parameters
-
- Returns
- true if first this event category less than given event category; else false
Definition at line 406 of file JNeutrinoInteractionCategory.hh.
408 #define RETURN_IF_DIFFERENT(A, B) \
409 if (A != B) { return A < B; }
415 if (p == NULL) {
return false; }
422 if (p->
Erange != this->Erange) {
431 #undef RETURN_IF_DIFFERENT
#define RETURN_IF_DIFFERENT(A, B)
int getPrimaryType() const
Get primary PDG type of this event category.
◆ getProperties() [1/2]
Get properties of this class.
- Parameters
-
eqpars | equation parameters |
Definition at line 440 of file JNeutrinoInteractionCategory.hh.
442 return JNeutrinoInteractionCategoryHelper(*
this, eqpars);
◆ getProperties() [2/2]
Get properties of this class.
- Parameters
-
eqpars | equation parameters |
Definition at line 451 of file JNeutrinoInteractionCategory.hh.
453 return JNeutrinoInteractionCategoryHelper(*
this, eqpars);
◆ clone()
template<class JClonable_t , class JDerived_t >
|
inlineoverridevirtualinherited |
Get clone of this object.
- Returns
- pointer to newly created object
Reimplemented in JTOOLS::JMultiMapTransformer< N, JArgument_t >::JMultiMapDefaultTransformer, JPHYSICS::JPDFTransformer< 5, JArgument_t >, JPHYSICS::JPDFTransformer< 4, JArgument_t >, JPHYSICS::JPDFTransformer< 3, JArgument_t >, JPHYSICS::JPDFTransformer< 2, JArgument_t >, JPHYSICS::JPDGTransformer_t< JArgument_t >, JPHYSICS::JPD0Transformer_t< JArgument_t >, and JPHYSICS::JPDFTransformer_t< JArgument_t >.
Definition at line 69 of file JClonable.hh.
71 return new JDerived_t(
static_cast<const JDerived_t&
>(*
this));
◆ interactionType
JParameter<int> JAANET::JNeutrinoInteractionCategory::interactionType |
|
private |
◆ scatteringType
JParameter<int> JAANET::JNeutrinoInteractionCategory::scatteringType |
|
private |
◆ targetZ
JParameter<int> JAANET::JNeutrinoInteractionCategory::targetZ |
|
private |
◆ targetA
JParameter<int> JAANET::JNeutrinoInteractionCategory::targetA |
|
private |
◆ Erange
JRange_t JAANET::JNeutrinoInteractionCategory::Erange |
|
private |
◆ coszRange
JRange_t JAANET::JNeutrinoInteractionCategory::coszRange |
|
private |
The documentation for this struct was generated from the following file: