19#include <TLorentzVector.h>
36 map<int,double> tgtmap;
37 tgtmap.insert( map<int, double>::value_type(
pdg, 1.) );
43 unsigned int n,
const int tgtpdgc[],
const double weight[]) :
46 map<int,double> tgtmap;
47 for(
unsigned int i=0; i<n; i++)
48 tgtmap.insert( map<int, double>::value_type(tgtpdgc[i], weight[i]) );
81 const TLorentzVector & ,
const TLorentzVector & )
90 const TLorentzVector & ,
const TLorentzVector & ,
int )
104 map<int,double>::const_iterator iter;
105 for(iter = tgtmap.begin(); iter != tgtmap.end(); ++iter) {
106 int tgtpdgc = iter->first;
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE,...
Object to be filled with the neutrino path-length, for all detector geometry materials,...
void Initialize(const map< int, double > &tgtmap)
const PathLengthList & ComputePathLengths(const TLorentzVector &x, const TLorentzVector &p)
PointGeomAnalyzer(int tgtpdgc)
const PathLengthList & ComputeMaxPathLengths(void)
PDGCodeList * fCurrPDGCodeList
current list of target nuclei
TVector3 * fCurrVertex
current generated vertex
const TVector3 & GenerateVertex(const TLorentzVector &x, const TLorentzVector &p, int tgtpdg)
const PDGCodeList & ListOfTargetNuclei(void)
PathLengthList * fCurrPathLengthList
current list of path-lengths
Utilities for improving the code readability when using PDG codes.
THE MAIN GENIE PROJECT NAMESPACE