ant
A2 ant: class-based analysis framework
ant::mc::data::Query Struct Reference

#include <Query.h>

Public Types

enum  Selection { Selection::All, Selection::gpBeamTarget, Selection::gnBeamTarget }
 Small database for often used selections of channels. More...
 
using ChannelSelector_t = std::function< bool(const ParticleTypeTreeDatabase::Channel &)>
 

Static Public Member Functions

static ChannelSelector_t GetSelector (const Selection &selection)
 
static std::vector< ParticleTypeTreeDatabase::ChannelGetProductionChannels (const ChannelSelector_t &selector=GetSelector(Selection::All))
 GetProductionChannels returns a vector with all channels which have cross-section data. More...
 
static double TotalXsection (const double Egamma, const ChannelSelector_t &selector=GetSelector(Selection::All))
 TotalXsection calculates the total cross-section (summing over database) More...
 
static double Xsection (const ParticleTypeTreeDatabase::Channel &channel, const double Egamma)
 Xsection get cross section for channel. More...
 
static std::string GetPlutoProductString (const ParticleTypeTreeDatabase::Channel &channel)
 
static std::string GetPlutoBeamString (const ParticleTypeTreeDatabase::Channel &channel)
 GetPlutoBeamString xtracts the beam particle from given channel and checks if beam is known. More...
 
static std::string GetPlutoTargetString (const ParticleTypeTreeDatabase::Channel &channel)
 GetPlutoTargetString xtracts the target particle from given channel and checks if it's known. More...
 

Member Typedef Documentation

◆ ChannelSelector_t

Member Enumeration Documentation

◆ Selection

Small database for often used selections of channels.

Enumerator
All 
gpBeamTarget 
gnBeamTarget 

Member Function Documentation

◆ GetPlutoBeamString()

string Query::GetPlutoBeamString ( const ParticleTypeTreeDatabase::Channel channel)
static

GetPlutoBeamString xtracts the beam particle from given channel and checks if beam is known.

Parameters
channel
Returns
Pluto name for beam particle

◆ GetPlutoProductString()

string Query::GetPlutoProductString ( const ParticleTypeTreeDatabase::Channel channel)
static

◆ GetPlutoTargetString()

string Query::GetPlutoTargetString ( const ParticleTypeTreeDatabase::Channel channel)
static

GetPlutoTargetString xtracts the target particle from given channel and checks if it's known.

Parameters
channel
Returns
Pluto name for target particle

◆ GetProductionChannels()

vector< ParticleTypeTreeDatabase::Channel > Query::GetProductionChannels ( const ChannelSelector_t selector = GetSelector(Selection::All))
static

GetProductionChannels returns a vector with all channels which have cross-section data.

Parameters
selector: provide functions to contrain channels: channel -> bool
Returns
vector of TypeTree-channels

◆ GetSelector()

Query::ChannelSelector_t Query::GetSelector ( const Selection selection)
static

◆ TotalXsection()

double Query::TotalXsection ( const double  Egamma,
const ChannelSelector_t selector = GetSelector(Selection::All) 
)
static

TotalXsection calculates the total cross-section (summing over database)

Parameters
Egammaincident energy in MeV
selectorfunction: channel -> bool
Returns
total cross section in mub

◆ Xsection()

double Query::Xsection ( const ParticleTypeTreeDatabase::Channel channel,
const double  Egamma 
)
static

Xsection get cross section for channel.

Parameters
channelParticleTypeTree - channel
Egammaincident energy in MeV
Returns
xross section in mub

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