#include <PndHypPidIdealTask.h>
Definition at line 36 of file PndHypPidIdealTask.h.
 
      
        
          | PndHypPidIdealTask::PndHypPidIdealTask | ( | const TString | algoName = "ideal" | ) |  | 
      
 
 
  
  | 
        
          | void PndHypPidIdealTask::Exec | ( | Option_t * | opt | ) |  |  | virtual | 
 
Virtual method Exec 
Definition at line 86 of file PndHypPidIdealTask.cxx.
References PndHypAdvancedPidAlgo::CalcLikelihood(), dE, dx, fAlgoName, fPointArray, fTrackOutputArray, i, PndHypPoint::PositionIn(), PndHypPoint::PositionOut(), and track.
   92   std::map<int, PndHypPidCand*> pidcand;
 
  100     int track = mvdpoint->GetTrackID();
 
  103     double dx = ( Out - In ).Mag();
 
  104     double dE = mvdpoint->GetEnergyLoss();
 
  106     mvdpoint->Momentum(momentum);
 
  108     std::cout<<dE<<
" "<<dx<<
" "<<momentum.Mag()<<std::endl;
 
  110     if(dx>0)pidcand[
track]->AddHypHit(dE, dx, momentum.Mag());
 
  114   for(std::map<int, PndHypPidCand*>::iterator it=pidcand.begin();it!=pidcand.end();it++) {
 
  115     int track = it->first;
 
  118      std::cout<<
" track to be piditized "<<std::endl;
 
  121     new ((*fTrackOutputArray)[size]) 
PndHypPidCand(*(pidcand[track]));
 
void PositionIn(TVector3 &pos)
static void CalcLikelihood(PndHypPidCand *cand)
TClonesArray * fPointArray
void PositionOut(TVector3 &pos)
TClonesArray * fTrackOutputArray
 
 
 
  
  | 
        
          | InitStatus PndHypPidIdealTask::Init | ( |  | ) |  |  | virtual | 
 
Definition at line 44 of file PndHypPidIdealTask.cxx.
References fAlgoName, fBranchName, fMcArray, fPointArray, and fTrackOutputArray.
   47   FairRootManager* ioman = FairRootManager::Instance();
 
   49     std::cout << 
"-E- PndHypPidIdealTask::Init: "<< 
"RootManager not instantiated!" << std::endl;
 
   55     std::cout << 
"-W- PndHypPidIdealTask::Init: "<< 
"No "<<
fBranchName<<
" array!" << std::endl;
 
   59   fMcArray=(TClonesArray*) ioman->GetObject(
"MCTrack");
 
   61     std::cout << 
"-W- PndHypPidIdealTask::Init: "<< 
"No McTruth array!" << std::endl;
 
   66   ioman->Register(
"PndHypPidCand", 
"PndHyp ideal tracklets", 
fTrackOutputArray, kTRUE);
 
   69     std::cout << 
"-W- PndHypPidIdealTask::Init: "<< 
"No pid algorithm named '"<< 
fAlgoName <<
"'! Names are 'ideal', 'simple', 'advanced'" << std::endl;
 
TClonesArray * fPointArray
TClonesArray * fTrackOutputArray
 
 
 
  
  | 
        
          | void PndHypPidIdealTask::ProduceHits | ( |  | ) |  |  | private | 
 
 
  
  | 
        
          | void PndHypPidIdealTask::Register | ( |  | ) |  |  | private | 
 
 
  
  | 
        
          | void PndHypPidIdealTask::Reset | ( |  | ) |  |  | private | 
 
 
  
  | 
        
          | void PndHypPidIdealTask::SetParContainers | ( |  | ) |  |  | virtual | 
 
 
  
  | 
        
          | TString PndHypPidIdealTask::fAlgoName |  | private | 
 
 
  
  | 
        
          | TString PndHypPidIdealTask::fBranchName |  | private | 
 
 
  
  | 
        
          | TClonesArray* PndHypPidIdealTask::fMcArray |  | private | 
 
 
  
  | 
        
          | TClonesArray* PndHypPidIdealTask::fPointArray |  | private | 
 
 
  
  | 
        
          | TClonesArray* PndHypPidIdealTask::fTrackOutputArray |  | private | 
 
 
The documentation for this class was generated from the following files: