PandaRoot
MCEvent Struct Reference

#include <PndEventBuilderAnaTask.h>

Public Attributes

std::vector< FairLink > fMCTracks
 
std::map< int, std::vector< MCPoint > > fMCPoints
 MCPoints for BranchID. More...
 

Friends

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

Detailed Description

Definition at line 41 of file PndEventBuilderAnaTask.h.

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 55 of file PndEventBuilderAnaTask.h.

56  {
57  os << "MCTracks: ";
58  for (auto track : data.fMCTracks) {
59  os << track << " ";
60  }
61  os << std::endl;
62  for (auto branch : data.fMCPoints) {
63  os << FairRootManager::Instance()->GetBranchName(branch.first) << std::endl;
64  for (auto link : branch.second) {
65  os << link << " ";
66  }
67  os << std::endl;
68  // int branchId = branch.first;
69  // std::map<int, std::vector<bool> > foundMap = data.fPointFound;
70  // std::vector<bool> foundArray = foundMap[branchId];
71  // if (foundArray.size() == branch.second.size()){
72  // for (auto found : foundArray){
73  // std::cout << found << " ";
74  // }
75  // os << std::endl;
76  // }
77  }
78  // std::cout << "PointsFoundMap: " << std::endl;
79  // for (auto pointFound : data.fPointFound){
80  // os << pointFound.first << "/" << pointFound.second.size() << std::endl;
81  // }
82  // os << std::endl;
83  return os;
84  }
std::map< int, std::vector< MCPoint > > fMCPoints
MCPoints for BranchID.
std::vector< FairLink > fMCTracks

Member Data Documentation

◆ fMCPoints

std::map<int, std::vector<MCPoint> > MCEvent::fMCPoints

MCPoints for BranchID.

Definition at line 43 of file PndEventBuilderAnaTask.h.

◆ fMCTracks

std::vector<FairLink> MCEvent::fMCTracks

Definition at line 42 of file PndEventBuilderAnaTask.h.


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