#include <PndSolCorrTask.h>
Definition at line 19 of file PndSolCorrTask.h.
 
      
        
          | PndSolCorrTask::PndSolCorrTask | ( |  | ) |  | 
      
 
 
  
  | 
        
          | PndSolCorrTask::~PndSolCorrTask | ( |  | ) |  |  | virtual | 
 
 
  
  | 
        
          | void PndSolCorrTask::AddInputBranch | ( | TString | branchName | ) |  |  | inline | 
 
 
  
  | 
        
          | void PndSolCorrTask::Exec | ( | Option_t * | opt | ) |  |  | virtual | 
 
Virtual method Exec 
Definition at line 70 of file PndSolCorrTask.cxx.
References At, fDataCorr_map, fInArrays, fInBranches, fOutArray, fReadOutStop, fRunContinuous, fStopFunctor, GetEntriesFast(), i, and SolCorr().
   75   FairTimeStamp *outStamp;
 
   84       for (
int j = 0; j < 
fInArrays[
i]->GetEntriesFast(); j++){
 
   87         fDataCorr_map.insert(std::pair<double,FairTimeStamp*>(outStamp->GetTimeStamp(),outStamp)); 
 
   92     typedef std::multimap<double, FairTimeStamp*>::iterator DataIter;
 
   94       new ((*fOutArray)[
fOutArray->GetEntries()]) FairTimeStamp(*(it->second));
 
  105         time = inHit->GetTimeStamp();
 
  115       for (
int j = 0; j < tempArray->GetEntriesFast(); j++){
 
  116         inHit = (FairHit*) tempArray->At(j);
 
  118         fDataCorr_map.insert(std::pair<double,FairTimeStamp*>(outStamp->GetTimeStamp(),outStamp)); 
 
  125     typedef std::multimap<double, FairTimeStamp*>::iterator DataIter;
 
  127       new ((*fOutArray)[
fOutArray->GetEntries()]) FairTimeStamp(*(it->second));
 
BinaryFunctor * fStopFunctor
std::vector< TString > fInBranches
cout<< "POINTs for new FwEndCap == "<< tsim-> GetEntriesFast()
std::multimap< double, FairTimeStamp * > fDataCorr_map
std::vector< TClonesArray * > fInArrays
FairTimeStamp * SolCorr(FairHit *inHit)
cout<<"the Event No is "<< i<< endl;{{if(hit_array->GetEntriesFast()!=mc_array->GetEntriesFast()) continue;PndSdsHit *hit=(PndSdsHit *) hit_array-> At(j)
 
 
 
  
  | 
        
          | void PndSolCorrTask::FinishTask | ( |  | ) |  |  | virtual | 
 
Definition at line 136 of file PndSolCorrTask.cxx.
References fDataCorr_map, fOutArray, and fRunContinuous.
  140   if (IsActive()==kFALSE) 
return;
 
  144     typedef std::multimap<double, FairTimeStamp*>::iterator DataIter;
 
  146       new ((*fOutArray)[
fOutArray->GetEntries()]) FairTimeStamp(*(it->second));
 
  149     FairRootManager::Instance()->SetLastFill();
 
std::multimap< double, FairTimeStamp * > fDataCorr_map
 
 
 
  
  | 
        
          | InitStatus PndSolCorrTask::Init | ( |  | ) |  |  | virtual | 
 
Virtual method Init 
Definition at line 31 of file PndSolCorrTask.cxx.
References fInArrays, fInBranches, fOutArray, fOutBranchName, fPersistence, fReadOutStop, fStopFunctor, i, and TString.
   33   FairRootManager* ioman = FairRootManager::Instance();
 
   37       std::cout << 
"-E- PndSolCorrTask::Init: " 
   38      << 
"RootManager not instantiated!" << std::endl;
 
   43     std::cout << 
"kERROR ------  no inputBranch for PndSolCorrTask -------" << std::endl;
 
   53     fInArrays.push_back((TClonesArray*)ioman->GetObject(inputName.Data()));
 
   55       std::cout << 
" Input Array not found for PndSolCorrTask:  "<< inputName << std::endl;
 
BinaryFunctor * fStopFunctor
std::vector< TString > fInBranches
std::vector< TClonesArray * > fInArrays
 
 
 
  
  | 
        
          | void PndSolCorrTask::RunContinuous | ( | Bool_t | val = kTRUE | ) |  |  | inline | 
 
 
  
  | 
        
          | void PndSolCorrTask::SetOutBranchName | ( | TString | name | ) |  |  | inline | 
 
 
  
  | 
        
          | void PndSolCorrTask::SetPersistence | ( | Bool_t | val | ) |  |  | inline | 
 
 
      
        
          | FairTimeStamp * PndSolCorrTask::SolCorr | ( | FairHit * | inHit | ) |  | 
      
 
Definition at line 154 of file PndSolCorrTask.cxx.
References C().
Referenced by Exec().
  156   double time, time_corr, trackLength;
 
  158   FairMultiLinkedData* links = NULL;
 
  159   FairTimeStamp* outStamp;
 
  161   inHit->Position(hitPos);
 
  162   trackLength = hitPos.Mag();
 
  163   time = inHit->GetTimeStamp();
 
  164   time_corr = time - (trackLength/100/
TMath::C()*1000000000 ); 
 
  165   outStamp = 
new FairTimeStamp(time_corr); 
 
  166   outStamp->SetLink(inHit->GetEntryNr());
 
  167   links = inHit->GetPointerToLinks();
 
  168   if(links != NULL) outStamp->AddLinks(*links);
 
 
 
 
  
  | 
        
          | std::multimap<double, FairTimeStamp*> PndSolCorrTask::fDataCorr_map |  | private | 
 
 
  
  | 
        
          | std::vector<TClonesArray*> PndSolCorrTask::fInArrays |  | private | 
 
 
  
  | 
        
          | std::vector<TString> PndSolCorrTask::fInBranches |  | private | 
 
 
  
  | 
        
          | TClonesArray* PndSolCorrTask::fOutArray |  | private | 
 
 
  
  | 
        
          | TString PndSolCorrTask::fOutBranchName |  | private | 
 
 
  
  | 
        
          | Bool_t PndSolCorrTask::fPersistence |  | private | 
 
 
  
  | 
        
          | double PndSolCorrTask::fReadOutStop |  | private | 
 
 
  
  | 
        
          | Bool_t PndSolCorrTask::fRunContinuous |  | private | 
 
 
  
  | 
        
          | BinaryFunctor* PndSolCorrTask::fStopFunctor |  | private | 
 
 
The documentation for this class was generated from the following files: