FairRoot/PandaRoot
Functions
hit.C File Reference

Go to the source code of this file.

Functions

int hit (Int_t nEvents=0, TString inFile="sim.root", TString parFile="par.root", TString inDigi="digi.root", TString outFile="hit.root", Int_t timeBased=0)
 

Function Documentation

int hit ( Int_t  nEvents = 0,
TString  inFile = "sim.root",
TString  parFile = "par.root",
TString  inDigi = "digi.root",
TString  outFile = "hit.root",
Int_t  timeBased = 0 
)

Definition at line 1 of file hit.C.

References ctime, Double_t, fRun, hitfind, i, inFile, nEvents, outFile, parFile, parInput, rtdb, rtime, timer, and verbose.

Referenced by PndTrkCluster::AddCluster(), PndTrkCluster::AddClusterAndSortFrom(), PndMvdRiemannTrackFinderTaskEff::AddGhostTrack(), PndTrkHitList::AddHit(), PndEmcHitProducer::AddHit(), PndTrkLegendreSecTask2::AddHitToClusterByDistance(), PndTrkGemHitList::AddNonCombiHits(), PndTrkHitList::AddTCA(), ana_MCOpt(), ana_MCpid(), anaclust(), anaGemPointrate(), anaGemSmearing(), PndMvdDigiEventAna::AnaHitNr(), PndMvdMCEventAna::AnaHitNr(), PndTrkLegendreNew::AnalyticalFit(), PndTrkTrackFinder::AnalyticalFit(), PndTrkCombiLegendreTask::AnalyticalFit(), PndTrkLegendreNew::AnalyticalFit2(), PndTrkTrackFinder::AnalyticalFit2(), PndTrkCombiLegendreTask::AnalyticalFit2(), PndTrkTrackFinder::AnalyticalParabolaFit(), PndAnalysisForwardTask::anaSpecialCases(), PndTrkTrackFinder::Apollonius(), PndSttCellTrackletGenerator::AssignAmbiguousHits(), PndMvdRiemannTrackFinderTaskCutPar::CalcRiemannTracks(), PndRiemannTrack::calcSZChi2(), PndCAGBTracker::CATrackFinder(), check_trackcand(), PndTrkLegendreSecTask2::CheckAssignability(), PndTrkCluster::CheckClusterAgainsV(), PndTrkClean::CheckSectorDistribution(), PndRiemannTrackFinder::CheckZeroPassing(), PndRichReco::CherenkovPhotonListFlat(), PndTrkClean::CleanSectors(), PndTrkCombiLegendreTask::CleanTrack(), PndTrkLegendreSecTask::Cleanup(), PndTrkLegendreTask::Cleanup(), PndTrkLegendreSecTask2::Cleanup(), PndTrkClean::Cleanup2(), PndTrkLegendreSecTask::CleanupZPhiFit(), PndTrkLegendreTask::CleanupZPhiFit(), PndTrkLegendreSecTask2::CleanupZPhiFit(), PndTrkGemCombinatorial::CombinatorialSuppression(), PndTrkTrack::ComputeCharge(), PndTrkCombiLegendreTask::ComputePerpendicularChi2(), PndTrkLegendreSecTask::ComputeZRediduals(), PndTrkLegendreTask::ComputeZRediduals(), PndTrkLegendreSecTask2::ComputeZRediduals(), PndGemFindHits::ConfirmHits(), PndSttMvdGemTracking::ConsiderCombinatorialEffect(), PndTrkTrack::ConvertToPndTrackCand(), PndRiemannTrack::correctSttHits(), PndTrkLegendreSecTask::CorrectZ(), PndTrkLegendreTask::CorrectZ(), PndTrkLegendreSecTask2::CorrectZ(), PndTrkTrackFinder::CountPossibleTracks(), PndTrkLegendreNew::CountTracksInCluster(), PndTrkCombiLegendreTask::CountTracksInCluster(), PndTrkTrackFinder::CountTracksInCluster(), PndCAGBTracker::Create1Plets(), PndFTSCAGBTracker::Create1Plets(), PndTrkLegendreNew::CreateClusterAroundTrack(), PndTrkCombiLegendreTask::CreateClusterAroundTrack(), PndTrkTrackFinder::CreateClusterAroundTrack(), PndTrkCombiLegendreTask::CreateClusterAroundTrack2(), PndTrkCombiLegendreTask::CreateClusterAroundTrack3(), PndTrkLegendreSecTask::CreateClusterByConfDistance(), PndTrkLegendreTask::CreateClusterByConfDistance(), PndTrkLegendreSecTask2::CreateClusterByConfDistance(), PndTrkLegendreSecTask::CreateClusterByDistance(), PndTrkLegendreTask::CreateClusterByDistance(), PndTrkLegendreSecTask2::CreateClusterByDistance(), PndTrkLegendreSecTask::CreateClusterByMixedDistance(), PndTrkLegendreTask::CreateClusterByMixedDistance(), PndTrkLegendreSecTask2::CreateClusterByMixedDistance(), PndTrkLegendreSecTask::CreateClusterByRealDistance(), PndTrkLegendreTask::CreateClusterByRealDistance(), PndTrkLegendreSecTask2::CreateClusterByRealDistance(), PndFtsLineApproximator::createExpandedTrackCand(), genfit::MeasurementFactory< measurement_T >::createMany(), PndRiemannTrackFinder::CreateRiemannTrack(), PndSttCellTrackletGenerator::CreateRiemannTrack(), PndTrkLegendreSecTask::CreateSkewHitList(), PndTrkLegendreTask::CreateSkewHitList(), PndTrkLegendreSecTask2::CreateSkewHitList(), PndTrkTrackFinder::CreateSkewHitList(), PndTrkLegendreSecTask::CreateSttCluster(), PndTrkLegendreTask::CreateSttCluster(), PndTrkLegendreSecTask2::CreateSttCluster(), PndLmdDim::Decode_hit(), dedx_p_chain(), PndTrkCluster::Draw(), PndFTSCADisplay::DrawGBTracks(), PndTrkLegendreNew::DrawNeighborings(), PndTrkCombiLegendreTask::DrawNeighborings(), PndTrkTrackFinder::DrawNeighborings(), PndRichTSPDHit::equal(), PndSciTHit::equal(), PndRichDigi::equal(), PndSttFullTCAProducer::Exec(), PndRichHitProducer::Exec(), PndFtsDataAccessor::Exec(), PndSttCellTrackFinderAnalysisTask::Exec(), PndFtsCATracking::Exec(), PndSttTrackFitterQATask::Exec(), PndLmdTrackFinderTask::Exec(), PndStraightLineTrackFinderTask::Exec(), PndLmdTrackFinderCATask::Exec(), PndEmcHdrFiller::Exec(), PndFtsTrackerIdeal::Exec(), PndGemIdealPatternRecoTask::Exec(), PndMvdDigiAna::Exec(), PndEmcMakeCluster::Exec(), PndForwardTrackFinderTask::Exec(), PndHypIdealTrackingTask::Exec(), PndHypFullAna::Exec(), PndHypSimpleAna::Exec(), PndHypMicroWriter::Exec(), PndHypMicroIdealWriter::Exec(), PndMvdEventAnaTask::Exec(), PndCATracking::Exec(), PndTrkLegendreNew::Exec(), PndTrkLegendreSecTask::Exec(), PndTrkLegendreSecTask2::Exec(), PndTrkLegendreTask::Exec(), PndTrkCombiLegendreTask::Exec(), PndTrkTrackFinder::Exec(), PndSciTAnaIdeal::Exec(), PndHypDPatternRecoTask::Exec(), PndHypIdealPRTask::Exec(), PndMvdAllDataEventAna::FillClusterHistos(), PndTrkLegendreSecTask::FillConformalHitList(), PndTrkLegendreTask::FillConformalHitList(), PndTrkLegendreSecTask2::FillConformalHitList(), PndTrkLegendreNew::FillConformalHitList(), PndTrkCombiLegendreTask::FillConformalHitList(), PndTrkTrackFinder::FillConformalHitList(), PndMvdAllDataEventAna::FillDigiHistos(), PndTrkLegendreNew::FillHitMap(), PndTrkTrackFinder::FillHitMap(), PndTrkCombiLegendreTask::FillHitMap(), PndTrkLegendreTask::FillLegendreHisto(), PndTrkLegendreSecTask::FillLegendreHisto(), PndTrkLegendreSecTask2::FillLegendreHisto(), PndTrkLegendreNew::FillLegendreHisto(), PndTrkTrackFinder::FillLegendreHisto(), PndTrkCombiLegendreTask::FillPeakCouplesHisto(), PndTrkCombiLegendreTask::FillPeakNeighCouplesHisto(), PndUnassignedHitsTask::FillTrackCands(), PndTrkCluster::FindExtremitiesFrom(), PndLmdTrackFinderTask::FindHitsI(), PndStraightLineTrackFinderTask::FindHitsI(), PndLmdTrackFinderTask::FindHitsII(), PndStraightLineTrackFinderTask::FindHitsII(), PndLmdTrackFinderTask::FindHitsIII(), PndStraightLineTrackFinderTask::FindHitsIII(), PndTrkLegendreNew::FindMvdPixelReferenceHit(), PndTrkLegendreSecTask::FindMvdPixelReferenceHit(), PndTrkLegendreTask::FindMvdPixelReferenceHit(), PndTrkCombiLegendreTask::FindMvdPixelReferenceHit(), PndTrkTrackFinder::FindMvdPixelReferenceHit(), PndTrkLegendreSecTask2::FindMvdPixelReferenceHit(), PndTrkLegendreNew::FindMvdStripReferenceHit(), PndTrkLegendreSecTask::FindMvdStripReferenceHit(), PndTrkLegendreTask::FindMvdStripReferenceHit(), PndTrkCombiLegendreTask::FindMvdStripReferenceHit(), PndTrkTrackFinder::FindMvdStripReferenceHit(), PndTrkLegendreSecTask2::FindMvdStripReferenceHit(), PndDrcTimeDigiTask::FindPhiRot(), PndDrcHitProducerReal::FindPhiRot(), PndTrkLegendreNew::FindReferenceHit(), PndTrkCombiLegendreTask::FindReferenceHit(), PndTrkTrackFinder::FindReferenceHit(), PndTrkLegendreSecTask2::FindReferenceHit(), PndTrkLegendreNew::FindSttReferenceHit(), PndTrkLegendreSecTask::FindSttReferenceHit(), PndTrkLegendreTask::FindSttReferenceHit(), PndTrkCombiLegendreTask::FindSttReferenceHit(), PndTrkLegendreSecTask2::FindSttReferenceHit(), PndTrkTrackFinder::FindSttReferenceHit(), PndFtsCellTrackletGenerator::FindTracklets(), CAFunctionality::FitIteration(), PndCAFunctionality::FitIteration(), PndFTSCAGBTracker::FitTrackCA(), for(), PndDiscNoiseGeneration::GenerateNoise(), SensorGrid::SensorGridPhotodetector::GenerateNoise(), PndTrkNeighboringMap::GetCandseeds(), PndEmcHitCaloDraw::GetEnergy(), PndMvdTopixHitProducer::GetHit(), PndMQTopixHitProducer::GetHit(), PndTrkSttHitList::GetHitList(), PndTrkSttHitList::GetHitListFromLayer(), PndTrkSttHitList::GetHitListFromSector(), PndTrkSttHitList::GetHitListFromSectorAndLayer(), PndTrkNeighboringMap::GetHitWithNNeighborings(), PndForwardTrackFinderTask::getMcId(), PndAnalysisForwardTask::getMcTracks(), PndTrkCluster::GetMvdHitList(), PndTrkCluster::GetMvdPixelHitList(), PndTrkCluster::GetMvdStripHitList(), PndTrkCluster::GetPocaTo(), PndTrackingQA::GetRecoInfoFromRecoTrack(), PndTrackingQualityBarrelAnalysisNewLinks::GetRecoInfoFromRecoTrack(), PndAnalysisForwardTask::getReconstructedTracks(), GFTrack::getResiduals(), PndSciTAnaIdeal::GetRiemannTrack(), PndTrkNeighboringMap::GetSeeds(), PndTrkCluster::GetSttHitList(), PndTrkCluster::GetSttParallelHitList(), PndTrkCluster::GetSttSkewHitList(), PndEmcHitCaloDraw::GetVector(), hit_noise_studies(), PndLmdQATask::HitReco(), PndRichReco::HitSelection(), Hough(), if(), PndTrkTrackFinder::Initialize(), PndTrackingQualityBarrelAnalysisNewLinks::IsBarrelMVD(), GFTrack::mergeHits(), PndTrkCluster::MergeTo(), PndTrkTrackFinder::MinuitFit(), PndTrkTrackFinder::MinuitFit2(), PndTrkCluster::NofSharedHits(), PndTrkNeighboringMap::operator=(), PndSttMvdGemTracking::OrderGemHits(), PndFtsSignalOverlap::OverlapSimultaneousSignals(), PndSttSignalOverlap::OverlapSimultaneousSignals(), PndCAGBTracker::PickUpHits(), PndFTSCAGBTracker::PickUpHits(), plotTrackCands(), PndMdtRecoHit::PndMdtRecoHit(), PndMdtRecoHit2::PndMdtRecoHit2(), PndTrkSkewHit::PndTrkSkewHit(), PndTrkCluster::Print(), PndRiemannTrack::PrintHits(), PndTrkNeighboringMap::PrintIndivisibleMap(), PndTrkCluster::PrintList(), PndMvdEventAnaTask::PrintTrackCand(), DrawHits::ProcessBarHit(), PndDrcRecoLookupMapS::ProcessBarHit(), PndDrcRecoLookupMap::ProcessBarHit(), PndMQMvdPixelDigiProcessorBursts::ProcessData(), GFKalman::processHit(), GFDaf::processTrack(), PndSttRecoHitProducer2< hit_T, measurement_T >::produce(), PndFtsRecoHitProducer2< hit_T, measurement_T >::produce(), genfit::MeasurementProducer< hit_T, measurement_T >::produce(), QAmacro_emc_4(), QAmacro_mvd_ana(), QAmacro_stt_4(), PndDrcAccuDigiPixelDraw::ReadAllHits(), PndFTSCAClusterData::readEvent(), PndMvdConvertApv::ReadNext(), reco_analys(), PndMvdRiemannVertexFinderTask::refit(), PndFTSCAGBTracker::Refit(), PndFTSCAGBTracker::Refit_1(), PndTrkHitList::RemoveHit(), PndTrkCluster::ReverseSort(), PndMQFileSamplerHits::Run(), PndMQFileSinkBursts::Run(), PndForwardTrackFinderTask::saveCombined(), PndForwardTrackFinderTask::saveCorrectedTracklets(), PndForwardTrackFinderTask::saveTrackCollection(), PndTrkComparisonMCtruth::SciTilMatchtoMC(), PndDrcRecoLookupMap::SectorNum(), PndMdtTrk::SetHitCount(), PndRichPhoton::SetHitPos(), PndRichPhoton::SetPDHit(), PndTrkTrack::SetRefHit(), PndTrkCluster::SortFromHit(), PndTrkClean::SplitAtHit(), PndTrkCluster::SplitAtHit(), PndFtsCellTrackletGenerator::splitLayers(), PndTrkCluster::SplitV(), PndRiemannTrack::szFit(), test_check(), vis_mc_ids(), PndSttSignalOverlap::WriteToOutputHit(), PndFtsSignalOverlap::WriteToOutputHit(), PndSttMvdGemTracking::ZFind(), PndTrkLegendreSecTask::ZPhiFit(), PndTrkLegendreTask::ZPhiFit(), and PndTrkLegendreSecTask2::ZPhiFit().

1  {
2  Int_t verbose = 0;
3 
4  // ----- Timer --------------------------------------------------------
5  TStopwatch timer;
6  timer.Start();
7 
8  // ----- Reconstruction run -------------------------------------------
9  FairRunAna *fRun= new FairRunAna();
10  fRun->SetGenerateRunInfo(kFALSE);
11  fRun->SetInputFile(inFile);
12  fRun->AddFriend(inDigi);
13  fRun->SetOutputFile(outFile);
14  fRun->SetUseFairLinks(kTRUE);
15  if(timeBased) fRun->RunWithTimeStamps();
16 
17  // ----- Parameter database --------------------------------------------
18  FairRuntimeDb* rtdb = fRun->GetRuntimeDb();
19  FairParRootFileIo* parInput = new FairParRootFileIo();
20 
21  if(parFile=="batch"){
22  TList* parlist = new TList();
23  for(Int_t i=0; i<4; i++) parlist->Add(new TObjString(Form("par_b%d.root",i)));
24  parInput->open(parlist);
25  }else{
26  parInput->open(parFile.Data());
27  }
28  rtdb->setFirstInput(parInput);
29 
30  // ----- DRC hit producer --------------------------------------------
32  fRun->AddTask(hitfind);
33 
34  // ----- Initialize and run -------------------------------------------
35  fRun->Init();
36  fRun->Run(0,nEvents);
37 
38  // ----- Finish -------------------------------------------------------
39  timer.Stop();
40  Double_t rtime = timer.RealTime();
41  Double_t ctime = timer.CpuTime();
42  cout << endl << endl;
43  cout << "Macro finished succesfully." << endl;
44  cout << "Output file is " << outFile << endl;
45  cout << "Parameter file is " << parFile << endl;
46  cout << "Real time " << rtime << " s, CPU time " << ctime << " s" << endl;
47  cout << endl;
48  return 0;
49 }
Int_t i
Definition: run_full.C:25
TString outFile
Definition: hit_dirc.C:17
#define verbose
TString inFile
Definition: hit_dirc.C:8
FairRunAna * fRun
Definition: hit_dirc.C:58
PndDrcHitFinder * hitfind
Definition: hit_dirc.C:97
Double_t
TString parFile
Definition: hit_dirc.C:14
Int_t nEvents
Definition: hit_dirc.C:11
TStopwatch timer
Definition: hit_dirc.C:51
FairRuntimeDb * rtdb
Definition: hit_dirc.C:66
Double_t ctime
Definition: hit_dirc.C:114
FairParAsciiFileIo * parInput
Double_t rtime
Definition: hit_dirc.C:113