#include <PndHypMSAnaTask.h>
Definition at line 32 of file PndHypMSAnaTask.h.
 
      
        
          | PndHypMSAnaTask::PndHypMSAnaTask | ( |  | ) |  | 
      
 
 
      
        
          | PndHypMSAnaTask::~PndHypMSAnaTask | ( |  | ) |  | 
      
 
 
  
  | 
        
          | std::map< int, std::vector< int > > PndHypMSAnaTask::AssignHitsToTracks | ( |  | ) |  |  | private | 
 
 
  
  | 
        
          | void PndHypMSAnaTask::Exec | ( | Option_t * | opt | ) |  |  | virtual | 
 
Virtual method Exec 
Definition at line 93 of file PndHypMSAnaTask.cxx.
References AssignHitsToTracks(), fEventNr, Finish(), fMCHits, fMCTracks, PndMCTrack::GetMotherID(), PndMCTrack::GetPdgCode(), histo, map, mcHitMap, MotherId, and Motherpdg.
  104         std::cout << 
"------------Event " << 
fEventNr << 
"-------------" << std::endl;
 
  106         std::cout<<
" size map "<<
mcHitMap.size()<<std::endl;
 
  108         for (
std::map<
int, std::vector<int> >::const_iterator it = 
mcHitMap.begin(); 
 
  113             std::vector<int> MChits = it->second;
 
  126             if (MChits.size() >=3){
 
  129               std::cout<<
" hits "<<MChits.size()<<(it->first)<<std::endl;
 
  134               std::cout<<
" pid "<<startPoint->GetTrackID()<<
" "<<it->first<<std::endl;
 
  138               if  (MotherId==-1)Motherpdg = myTrack->
GetPdgCode();
 
  143               if((myTrack->
GetPdgCode()==-211)&&( Motherpdg>1010000000&& 
 
  144                                                   Motherpdg<1020050130) )
 
  146                   std::cout<<
" hits "<<MChits.size()<<
" "<<Motherpdg<<std::endl;
 
  148                   histo->Fill(MChits.size());
 
std::map< int, std::vector< int > > AssignHitsToTracks()
std::map< int, std::vector< int > > mcHitMap
Int_t GetMotherID() const 
 
 
 
  
  | 
        
          | void PndHypMSAnaTask::Finish | ( |  | ) |  |  | virtual | 
 
 
  
  | 
        
          | InitStatus PndHypMSAnaTask::Init | ( |  | ) |  |  | virtual | 
 
Definition at line 46 of file PndHypMSAnaTask.cxx.
References fGeoH, fMCHits, fMCTracks, and gGeoManager.
   49   FairRootManager* ioman = FairRootManager::Instance();
 
   51                 std::cout << 
"-E- PndHypMSAnaTask::Init: "<< 
"RootManager not instantiated!" << std::endl;
 
   56         fMCTracks = (TClonesArray*) ioman->GetObject(
"MCTrack");
 
   58                 std::cout << 
"-W- PndHypMSAnaTask::Init: "<< 
"No MCTrack" << 
" array!" << std::endl;
 
   62         fMCHits = (TClonesArray*) ioman->GetObject(
"HypPoint");
 
   64                 std::cout << 
"-W- PndHypMSAnaTask::Init: "<< 
"No MVDPoint"<<
" array!" << std::endl;
 
Class to access the naming information of the MVD. 
TGeoManager * gGeoManager
PndHypGeoHandling * fGeoH
 
 
 
  
  | 
        
          | void PndHypMSAnaTask::ProduceHits | ( |  | ) |  |  | private | 
 
 
  
  | 
        
          | void PndHypMSAnaTask::Register | ( |  | ) |  |  | private | 
 
 
  
  | 
        
          | void PndHypMSAnaTask::Reset | ( |  | ) |  |  | private | 
 
 
  
  | 
        
          | void PndHypMSAnaTask::SetParContainers | ( |  | ) |  |  | virtual | 
 
 
      
        
          | void PndHypMSAnaTask::WriteHistograms | ( |  | ) |  | 
      
 
Definition at line 254 of file PndHypMSAnaTask.cxx.
References file, and histo.
  255           TFile* 
file = FairRootManager::Instance()->GetOutFile();
 
  257           file->mkdir(
"Dedx_detid");
 
  258           file->cd(
"Dedx_detid");
 
 
 
 
  
  | 
        
          | int PndHypMSAnaTask::fEventNr |  | private | 
 
 
  
  | 
        
          | TClonesArray* PndHypMSAnaTask::fMCHits |  | private | 
 
 
  
  | 
        
          | TClonesArray* PndHypMSAnaTask::fMCTracks |  | private | 
 
 
  
  | 
        
          | FairGeanePro* PndHypMSAnaTask::fPro |  | private | 
 
 
  
  | 
        
          | TClonesArray* PndHypMSAnaTask::fTrackParFinal |  | private | 
 
 
  
  | 
        
          | TClonesArray* PndHypMSAnaTask::fTrackParGeane |  | private | 
 
 
  
  | 
        
          | TClonesArray* PndHypMSAnaTask::fTrackParIni |  | private | 
 
 
  
  | 
        
          | std::map<int, std::vector<int> > PndHypMSAnaTask::fTrackPixHitIdMap |  | private | 
 
 
  
  | 
        
          | std::map<int, std::vector<int> > PndHypMSAnaTask::fTrackStripHitIdMap |  | private | 
 
 
  
  | 
        
          | TH1F* PndHypMSAnaTask::histo |  | private | 
 
 
  
  | 
        
          | std::map<int, std::vector<int> > PndHypMSAnaTask::mcHitMap |  | private | 
 
 
The documentation for this class was generated from the following files: