R3BROOT
R3B analysis software
Loading...
Searching...
No Matches
R3BNeulandMCMon.cxx File Reference
#include "R3BNeulandMCMon.h"
#include "FairLogger.h"
#include "FairRootManager.h"
#include "FairRun.h"
#include "Math/Vector4D.h"
#include "TDirectory.h"
#include "TFile.h"
#include "TH1D.h"
#include "TH2D.h"
#include "TH3D.h"
#include <algorithm>
#include <iostream>
#include <numeric>
#include <string>
Include dependency graph for R3BNeulandMCMon.cxx:

Go to the source code of this file.

Functions

Bool_t IsPrimaryNeutron (const R3BMCTrack *mcTrack)
 
Bool_t IsMotherPrimaryNeutron (const R3BMCTrack *mcTrack, const std::vector< R3BMCTrack * > &tracks)
 
Double_t GetKineticEnergy (const R3BMCTrack *mcTrack)
 
Double_t GetTheta (const R3BMCTrack *mcTrack)
 
std::string lookup (int pid)
 
template<typename T>
void writeout (std::map< T, TH1D * > &map, const std::string &what, const int nEvents=0)
 

Variables

static std::map< int, std::string > lookup_table
 

Function Documentation

◆ GetKineticEnergy()

Double_t GetKineticEnergy ( const R3BMCTrack * mcTrack)
inline

Definition at line 43 of file R3BNeulandMCMon.cxx.

◆ GetTheta()

Double_t GetTheta ( const R3BMCTrack * mcTrack)
inline

Definition at line 48 of file R3BNeulandMCMon.cxx.

◆ IsMotherPrimaryNeutron()

Bool_t IsMotherPrimaryNeutron ( const R3BMCTrack * mcTrack,
const std::vector< R3BMCTrack * > & tracks )
inline

Definition at line 34 of file R3BNeulandMCMon.cxx.

◆ IsPrimaryNeutron()

Bool_t IsPrimaryNeutron ( const R3BMCTrack * mcTrack)
inline

Definition at line 29 of file R3BNeulandMCMon.cxx.

◆ lookup()

std::string lookup ( int pid)

Definition at line 55 of file R3BNeulandMCMon.cxx.

◆ writeout()

template<typename T>
void writeout ( std::map< T, TH1D * > & map,
const std::string & what,
const int nEvents = 0 )

Definition at line 69 of file R3BNeulandMCMon.cxx.

Variable Documentation

◆ lookup_table

std::map<int, std::string> lookup_table
static
Initial value:
= {
{ -211, "pion" }, { 22, "gamma" }, { 111, "pion" }, { 211, "pion" }, { 2112, "n" },
{ 2212, "p" }, { 1000010020, "d, t" }, { 1000010030, "d, t" }, { 1000020030, "alpha" }, { 1000020040, "alpha" },
}

Definition at line 50 of file R3BNeulandMCMon.cxx.