FairRoot/PandaRoot
Classes | Typedefs | Functions
PndFtsHoughSpace.h File Reference
#include "PndFtsHoughTrackerTask.h"
#include "PndFtsHoughSpacePeak.h"
#include "PndFtsHoughSpaceBinning.h"
#include "TH2.h"
#include <cmath>
#include <vector>
#include "Rtypes.h"
#include "FairLogger.h"
#include "PndTrackCandHit.h"
#include "TClonesArray.h"
#include "FairField.h"
#include "TVector3.h"
#include "PndFtsHoughTracklet.h"
#include "PndFtsHoughTrackCand.h"
#include "TString.h"
#include <stdexcept>

Go to the source code of this file.

Classes

class  PndFtsHoughSpace
 Class for Hough space based on TH2S (for the moment). Saves the hits which enter this Hough space and finds peaks. More...
 

Typedefs

typedef std::vector< Int_t > IdxPath
 
typedef std::map< Int_t, IdxPathHitIdxPathMap
 
typedef std::pair< Int_t, IdxPathHitIdxPathPair
 

Functions

std::ostreamoperator<< (std::ostream &os, const IdxPath &outVector)
 
std::ostreamoperator<< (std::ostream &os, const HitIdxPathMap &outMap)
 

Typedef Documentation

typedef std::map<Int_t, IdxPath > HitIdxPathMap

Definition at line 57 of file PndFtsHoughSpace.h.

typedef std::pair<Int_t, IdxPath > HitIdxPathPair

Definition at line 58 of file PndFtsHoughSpace.h.

typedef std::vector< Int_t > IdxPath

Definition at line 56 of file PndFtsHoughSpace.h.

Function Documentation

std::ostream& operator<< ( std::ostream os,
const IdxPath outVector 
)

Definition at line 57 of file PndFtsHoughSpace.cxx.

57  {
58  os << "[";
59  Int_t lastIdx = outVector.size()-1;
60  if(lastIdx < 0){
61  os << "]" ;
62  return os;
63  }
64 
65  for (Int_t iVec = 0; iVec < lastIdx; ++iVec){
66  os << outVector[iVec] << ", ";
67  }
68  os << outVector[lastIdx] << "]";
69  return os;
70 }
std::ostream& operator<< ( std::ostream os,
const HitIdxPathMap outMap 
)

Definition at line 72 of file PndFtsHoughSpace.cxx.

73 {
74  os << '\n';
75  if(outMap.begin() == outMap.end()){
76  os << "{ , [] }";
77  return os;
78  }
79  for (HitIdxPathMap::const_iterator itMap = outMap.begin(); itMap != outMap.end(); ++itMap){
80  os << "{ "<< itMap->first << ", ";
81  os << itMap->second;
82  os << " }\n\n";
83  }
84  return os;
85 }