Pandora
Pandora source code navigator
Loading...
Searching...
No Matches
lar_content::InteractionDescriptor Class Reference

#include "LArInteractionTypeHelper.h"

Public Member Functions

 InteractionDescriptor (const bool isCC, const bool isQE, const bool isRes, const bool isDIS, const bool isCoherent, const bool isNumu, const bool isNue, const unsigned int nPiPlus, const unsigned int nPiMinus, const unsigned int nPhotons, const unsigned int nProtons)
 Constructor.
 
bool IsCC () const
 Whether or not the interaction is CC.
 
bool IsQE () const
 Whether or not the interaction is QE.
 
bool IsResonant () const
 Whether or not the interaction is resonant.
 
bool IsDIS () const
 Whether or not the interaction is DIS.
 
bool IsCoherent () const
 Whether or not the interaction is coherent.
 
bool IsMuonNeutrino () const
 Whether or not the interaction is muon neutrino.
 
bool IsElectronNeutrino () const
 Whether or not the interaction is electron neutrino.
 
unsigned int GetNumPiZero () const
 Retrieve the number of pi zeros.
 
unsigned int GetNumPiPlus () const
 Retrieve the number of pi plus.
 
unsigned int GetNumPiMinus () const
 Retrieve the number of pi minus.
 
unsigned int GetNumPhotons () const
 Retrieve the number of photons.
 
unsigned int GetNumProtons () const
 Retrieve the number of protons.
 
int GetUniqueId () const
 Retrieve a unique ID describing the event (that is, a given type of interaction with specific final state particles has a particular ID)
 
const std::string & ToString () const
 Retrieve the string descriptor for the event.
 

Static Public Attributes

static const int CC = 8192
 
static const int NC = 4096
 
static const int QE = 2560
 
static const int RES = 2048
 
static const int DIS = 1536
 
static const int COH = 1024
 
static const int OTH = 512
 
static const int MU = 256
 
static const int E = 128
 
static const int PIZERO = 64
 
static const int PIPLUS = 32
 
static const int PIMINUS = 16
 
static const int PHOTON = 8
 
static const int NP = 6
 

Private Attributes

const bool m_isCC
 
const bool m_isQE
 
const bool m_isResonant
 
const bool m_isDIS
 
const bool m_isCoherent
 
const bool m_isNumu
 
const bool m_isNue
 
const unsigned int m_nPiZero
 
const unsigned int m_nPiPlus
 
const unsigned int m_nPiMinus
 
const unsigned int m_nPhotons
 
const unsigned int m_nProtons
 
int m_id
 
std::string m_descriptor
 

Detailed Description

Definition at line 331 of file LArInteractionTypeHelper.h.

Constructor & Destructor Documentation

◆ InteractionDescriptor()

lar_content::InteractionDescriptor::InteractionDescriptor ( const bool  isCC,
const bool  isQE,
const bool  isRes,
const bool  isDIS,
const bool  isCoherent,
const bool  isNumu,
const bool  isNue,
const unsigned int  nPiPlus,
const unsigned int  nPiMinus,
const unsigned int  nPhotons,
const unsigned int  nProtons 
)

Constructor.

Parameters
isCCWhether or not the interaction is a CC interaction
isQEWhether or not the interaction is a QE interaction
isResWhether or not the interaction is a resonant interaction
isDISWhether or not the interaction is a DIS interaction
isCoherentWhether or not the interaction is a coherent interaction
isNumuWhether or not the interaction is a numu interaction
isNueWhether or not the interaction is a nue interaction
nPiPlusNumber of pi plus in the final state
nPiMinusNumber of pi minus in the final state
nPhotonsNumber of photons in the final state
nProtonsNumber of protons in the final state

Definition at line 747 of file LArInteractionTypeHelper.cc.

Member Function Documentation

◆ GetNumPhotons()

unsigned int lar_content::InteractionDescriptor::GetNumPhotons ( ) const
inline

Retrieve the number of photons.

Returns
Retrieve the number of photons

Definition at line 555 of file LArInteractionTypeHelper.h.

◆ GetNumPiMinus()

unsigned int lar_content::InteractionDescriptor::GetNumPiMinus ( ) const
inline

Retrieve the number of pi minus.

Returns
Retrieve the number of pi minus

Definition at line 548 of file LArInteractionTypeHelper.h.

◆ GetNumPiPlus()

unsigned int lar_content::InteractionDescriptor::GetNumPiPlus ( ) const
inline

Retrieve the number of pi plus.

Returns
Retrieve the number of pi plus

Definition at line 541 of file LArInteractionTypeHelper.h.

◆ GetNumPiZero()

unsigned int lar_content::InteractionDescriptor::GetNumPiZero ( ) const
inline

Retrieve the number of pi zeros.

Returns
Retrieve the number of pi zeros

Definition at line 534 of file LArInteractionTypeHelper.h.

◆ GetNumProtons()

unsigned int lar_content::InteractionDescriptor::GetNumProtons ( ) const
inline

Retrieve the number of protons.

Returns
Retrieve the number of protons

Definition at line 562 of file LArInteractionTypeHelper.h.

◆ GetUniqueId()

int lar_content::InteractionDescriptor::GetUniqueId ( ) const
inline

Retrieve a unique ID describing the event (that is, a given type of interaction with specific final state particles has a particular ID)

Returns
The unique identifier for the event

Definition at line 569 of file LArInteractionTypeHelper.h.

◆ IsCC()

bool lar_content::InteractionDescriptor::IsCC ( ) const
inline

Whether or not the interaction is CC.

Returns
Whether or not the interaction is CC

Definition at line 485 of file LArInteractionTypeHelper.h.

◆ IsCoherent()

bool lar_content::InteractionDescriptor::IsCoherent ( ) const
inline

Whether or not the interaction is coherent.

Returns
Whether or not the interaction is coherent

Definition at line 513 of file LArInteractionTypeHelper.h.

◆ IsDIS()

bool lar_content::InteractionDescriptor::IsDIS ( ) const
inline

Whether or not the interaction is DIS.

Returns
Whether or not the interaction is DIS

Definition at line 506 of file LArInteractionTypeHelper.h.

◆ IsElectronNeutrino()

bool lar_content::InteractionDescriptor::IsElectronNeutrino ( ) const
inline

Whether or not the interaction is electron neutrino.

Returns
Whether or not the interaction is electron neutrino

Definition at line 527 of file LArInteractionTypeHelper.h.

◆ IsMuonNeutrino()

bool lar_content::InteractionDescriptor::IsMuonNeutrino ( ) const
inline

Whether or not the interaction is muon neutrino.

Returns
Whether or not the interaction is muon neutrino

Definition at line 520 of file LArInteractionTypeHelper.h.

◆ IsQE()

bool lar_content::InteractionDescriptor::IsQE ( ) const
inline

Whether or not the interaction is QE.

Returns
Whether or not the interaction is QE

Definition at line 492 of file LArInteractionTypeHelper.h.

◆ IsResonant()

bool lar_content::InteractionDescriptor::IsResonant ( ) const
inline

Whether or not the interaction is resonant.

Returns
Whether or not the interaction is resonant

Definition at line 499 of file LArInteractionTypeHelper.h.

◆ ToString()

const std::string & lar_content::InteractionDescriptor::ToString ( ) const
inline

Retrieve the string descriptor for the event.

Returns
The string descriptor for the event

Definition at line 576 of file LArInteractionTypeHelper.h.

Member Data Documentation

◆ CC

const int lar_content::InteractionDescriptor::CC = 8192
static

Definition at line 451 of file LArInteractionTypeHelper.h.

◆ COH

const int lar_content::InteractionDescriptor::COH = 1024
static

Definition at line 456 of file LArInteractionTypeHelper.h.

◆ DIS

const int lar_content::InteractionDescriptor::DIS = 1536
static

Definition at line 455 of file LArInteractionTypeHelper.h.

◆ E

const int lar_content::InteractionDescriptor::E = 128
static

Definition at line 459 of file LArInteractionTypeHelper.h.

◆ m_descriptor

std::string lar_content::InteractionDescriptor::m_descriptor
private

Definition at line 480 of file LArInteractionTypeHelper.h.

◆ m_id

int lar_content::InteractionDescriptor::m_id
private

Definition at line 479 of file LArInteractionTypeHelper.h.

◆ m_isCC

const bool lar_content::InteractionDescriptor::m_isCC
private

Definition at line 467 of file LArInteractionTypeHelper.h.

◆ m_isCoherent

const bool lar_content::InteractionDescriptor::m_isCoherent
private

Definition at line 471 of file LArInteractionTypeHelper.h.

◆ m_isDIS

const bool lar_content::InteractionDescriptor::m_isDIS
private

Definition at line 470 of file LArInteractionTypeHelper.h.

◆ m_isNue

const bool lar_content::InteractionDescriptor::m_isNue
private

Definition at line 473 of file LArInteractionTypeHelper.h.

◆ m_isNumu

const bool lar_content::InteractionDescriptor::m_isNumu
private

Definition at line 472 of file LArInteractionTypeHelper.h.

◆ m_isQE

const bool lar_content::InteractionDescriptor::m_isQE
private

Definition at line 468 of file LArInteractionTypeHelper.h.

◆ m_isResonant

const bool lar_content::InteractionDescriptor::m_isResonant
private

Definition at line 469 of file LArInteractionTypeHelper.h.

◆ m_nPhotons

const unsigned int lar_content::InteractionDescriptor::m_nPhotons
private

Definition at line 477 of file LArInteractionTypeHelper.h.

◆ m_nPiMinus

const unsigned int lar_content::InteractionDescriptor::m_nPiMinus
private

Definition at line 476 of file LArInteractionTypeHelper.h.

◆ m_nPiPlus

const unsigned int lar_content::InteractionDescriptor::m_nPiPlus
private

Definition at line 475 of file LArInteractionTypeHelper.h.

◆ m_nPiZero

const unsigned int lar_content::InteractionDescriptor::m_nPiZero
private

Definition at line 474 of file LArInteractionTypeHelper.h.

◆ m_nProtons

const unsigned int lar_content::InteractionDescriptor::m_nProtons
private

Definition at line 478 of file LArInteractionTypeHelper.h.

◆ MU

const int lar_content::InteractionDescriptor::MU = 256
static

Definition at line 458 of file LArInteractionTypeHelper.h.

◆ NC

const int lar_content::InteractionDescriptor::NC = 4096
static

Definition at line 452 of file LArInteractionTypeHelper.h.

◆ NP

const int lar_content::InteractionDescriptor::NP = 6
static

Definition at line 464 of file LArInteractionTypeHelper.h.

◆ OTH

const int lar_content::InteractionDescriptor::OTH = 512
static

Definition at line 457 of file LArInteractionTypeHelper.h.

◆ PHOTON

const int lar_content::InteractionDescriptor::PHOTON = 8
static

Definition at line 463 of file LArInteractionTypeHelper.h.

◆ PIMINUS

const int lar_content::InteractionDescriptor::PIMINUS = 16
static

Definition at line 462 of file LArInteractionTypeHelper.h.

◆ PIPLUS

const int lar_content::InteractionDescriptor::PIPLUS = 32
static

Definition at line 461 of file LArInteractionTypeHelper.h.

◆ PIZERO

const int lar_content::InteractionDescriptor::PIZERO = 64
static

Definition at line 460 of file LArInteractionTypeHelper.h.

◆ QE

const int lar_content::InteractionDescriptor::QE = 2560
static

Definition at line 453 of file LArInteractionTypeHelper.h.

◆ RES

const int lar_content::InteractionDescriptor::RES = 2048
static

Definition at line 454 of file LArInteractionTypeHelper.h.


The documentation for this class was generated from the following files: