PandaRoot
BranchInfo Struct Reference

#include <PndEventBuilderAnaTask.h>

Public Attributes

std::map< int, double > fPercentageMCPoints
 percentage of found MCPoints per MCEvent More...
 
std::map< int, int > fNumberOfFoundMCPoints
 number of found MCPoint per MCEvent More...
 
std::map< int, int > fTotalNumberOfPoints
 number of MCPoints per MCEvent More...
 
std::map< int, double > fPercentagePrimaryMCPoints
 percentage of found MCPoints per MCEvent More...
 
std::map< int, int > fNumberOfFoundPrimaryMCPoints
 number of found MCPoint per MCEvent More...
 
std::map< int, int > fTotalNumberOfPrimaryPoints
 number of MCPoints per MCEvent More...
 
int fNumberOfPointsOutsideMC
 

Friends

std::ostream & operator<< (std::ostream &os, const BranchInfo data)
 

Detailed Description

Definition at line 87 of file PndEventBuilderAnaTask.h.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const BranchInfo  data 
)
friend

Definition at line 95 of file PndEventBuilderAnaTask.h.

96  {
97  os << "Found Points: " << std::endl;
98  for (auto value : data.fNumberOfFoundMCPoints) {
99  std::map<int, double> percentageMap = data.fPercentageMCPoints;
100  std::map<int, int> totalNumbersMap = data.fTotalNumberOfPoints;
101 
102  os << value.first << " : " << value.second << "/" << totalNumbersMap[value.first] << " = " << percentageMap[value.first] * 100 << " %" << std::endl;
103  }
104  os << "Found Primary Points: " << std::endl;
105  for (auto value : data.fNumberOfFoundPrimaryMCPoints) {
106  std::map<int, double> percentageMap = data.fPercentagePrimaryMCPoints;
107  std::map<int, int> totalNumbersMap = data.fTotalNumberOfPrimaryPoints;
108 
109  os << value.first << " : " << value.second << "/" << totalNumbersMap[value.first] << " = " << percentageMap[value.first] * 100 << " %" << std::endl;
110  }
111  os << "Additional hits: " << data.fNumberOfPointsOutsideMC << std::endl;
112  return os;
113  }
std::map< int, int > fTotalNumberOfPrimaryPoints
number of MCPoints per MCEvent
std::map< int, double > fPercentagePrimaryMCPoints
percentage of found MCPoints per MCEvent
std::map< int, int > fNumberOfFoundPrimaryMCPoints
number of found MCPoint per MCEvent
std::map< int, int > fTotalNumberOfPoints
number of MCPoints per MCEvent
std::map< int, double > fPercentageMCPoints
percentage of found MCPoints per MCEvent
std::map< int, int > fNumberOfFoundMCPoints
number of found MCPoint per MCEvent

Member Data Documentation

◆ fNumberOfFoundMCPoints

std::map<int, int> BranchInfo::fNumberOfFoundMCPoints

number of found MCPoint per MCEvent

Definition at line 89 of file PndEventBuilderAnaTask.h.

◆ fNumberOfFoundPrimaryMCPoints

std::map<int, int> BranchInfo::fNumberOfFoundPrimaryMCPoints

number of found MCPoint per MCEvent

Definition at line 92 of file PndEventBuilderAnaTask.h.

◆ fNumberOfPointsOutsideMC

int BranchInfo::fNumberOfPointsOutsideMC

Definition at line 94 of file PndEventBuilderAnaTask.h.

◆ fPercentageMCPoints

std::map<int, double> BranchInfo::fPercentageMCPoints

percentage of found MCPoints per MCEvent

Definition at line 88 of file PndEventBuilderAnaTask.h.

◆ fPercentagePrimaryMCPoints

std::map<int, double> BranchInfo::fPercentagePrimaryMCPoints

percentage of found MCPoints per MCEvent

Definition at line 91 of file PndEventBuilderAnaTask.h.

◆ fTotalNumberOfPoints

std::map<int, int> BranchInfo::fTotalNumberOfPoints

number of MCPoints per MCEvent

Definition at line 90 of file PndEventBuilderAnaTask.h.

◆ fTotalNumberOfPrimaryPoints

std::map<int, int> BranchInfo::fTotalNumberOfPrimaryPoints

number of MCPoints per MCEvent

Definition at line 93 of file PndEventBuilderAnaTask.h.


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