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

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 43 of file PndEventBuilderAnaTask.h.

44  {
45  os << "MCTracks: ";
46  for (auto track : data.fMCTracks) {
47  os << track << " ";
48  }
49  os << std::endl;
50  for (auto branch : data.fMCPoints) {
51  os << FairRootManager::Instance()->GetBranchName(branch.first) << std::endl;
52  for (auto link : branch.second) {
53  os << link << " ";
54  }
55  os << std::endl;
56  // int branchId = branch.first;
57  // std::map<int, std::vector<bool> > foundMap = data.fPointFound;
58  // std::vector<bool> foundArray = foundMap[branchId];
59  // if (foundArray.size() == branch.second.size()){
60  // for (auto found : foundArray){
61  // std::cout << found << " ";
62  // }
63  // os << std::endl;
64  // }
65  }
66  // std::cout << "PointsFoundMap: " << std::endl;
67  // for (auto pointFound : data.fPointFound){
68  // os << pointFound.first << "/" << pointFound.second.size() << std::endl;
69  // }
70  // os << std::endl;
71  return os;
72  }
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 31 of file PndEventBuilderAnaTask.h.

◆ fMCTracks

std::vector<FairLink> MCEvent::fMCTracks

Definition at line 30 of file PndEventBuilderAnaTask.h.


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