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 75 of file PndEventBuilderAnaTask.h.

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 83 of file PndEventBuilderAnaTask.h.

84  {
85  os << "Found Points: " << std::endl;
86  for (auto value : data.fNumberOfFoundMCPoints) {
87  std::map<int, double> percentageMap = data.fPercentageMCPoints;
88  std::map<int, int> totalNumbersMap = data.fTotalNumberOfPoints;
89 
90  os << value.first << " : " << value.second << "/" << totalNumbersMap[value.first] << " = " << percentageMap[value.first] * 100 << " %" << std::endl;
91  }
92  os << "Found Primary Points: " << std::endl;
93  for (auto value : data.fNumberOfFoundPrimaryMCPoints) {
94  std::map<int, double> percentageMap = data.fPercentagePrimaryMCPoints;
95  std::map<int, int> totalNumbersMap = data.fTotalNumberOfPrimaryPoints;
96 
97  os << value.first << " : " << value.second << "/" << totalNumbersMap[value.first] << " = " << percentageMap[value.first] * 100 << " %" << std::endl;
98  }
99  os << "Additional hits: " << data.fNumberOfPointsOutsideMC << std::endl;
100  return os;
101  }
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 77 of file PndEventBuilderAnaTask.h.

◆ fNumberOfFoundPrimaryMCPoints

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

number of found MCPoint per MCEvent

Definition at line 80 of file PndEventBuilderAnaTask.h.

◆ fNumberOfPointsOutsideMC

int BranchInfo::fNumberOfPointsOutsideMC

Definition at line 82 of file PndEventBuilderAnaTask.h.

◆ fPercentageMCPoints

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

percentage of found MCPoints per MCEvent

Definition at line 76 of file PndEventBuilderAnaTask.h.

◆ fPercentagePrimaryMCPoints

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

percentage of found MCPoints per MCEvent

Definition at line 79 of file PndEventBuilderAnaTask.h.

◆ fTotalNumberOfPoints

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

number of MCPoints per MCEvent

Definition at line 78 of file PndEventBuilderAnaTask.h.

◆ fTotalNumberOfPrimaryPoints

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

number of MCPoints per MCEvent

Definition at line 81 of file PndEventBuilderAnaTask.h.


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