FairRoot/PandaRoot
test.C
Go to the documentation of this file.
1 // root macro to analyze the clusterization output
2 {
3  bool verbose = false;
4 
5  // ----- Load libraries ------------------------------------------------
6  gROOT->Macro("$VMCWORKDIR/gconfig/rootlogon.C");
7  gROOT->LoadMacro("../Tools.C");
9  gROOT->LoadMacro("../Helper.C");
10  // ----- Timer --------------------------------------------------------
11  TStopwatch timer;
12  timer.Start();
13  // ------------------------------------------------------------------------
14  TString HitFileName="data/cosmic02.hit";
15  TString CalibFileName="calib.par";
16 
17  PndMvdConvertApv* ApvConverter= new PndMvdConvertApv(CalibFileName, HitFileName);
18  long int nEvents = ApvConverter->GetNofEvents();
19  for(long int i=0;i<nEvents;++i)
20  {
21  std::vector<PndSdsDigiStrip> = ApvConverter->ReadNext();
22  }
23 
24  // ----- Finish -------------------------------------------------------
25  timer.Stop();
26  Double_t rtime = timer.RealTime();
27  Double_t ctime = timer.CpuTime();
28  cout << endl << endl;
29  cout << "Macro finished succesfully." << endl;
30  cout << "Real time " << rtime << " s, CPU time " << ctime << " s" << endl;
31  cout << endl;
32  // ------------------------------------------------------------------------
33 
34 }
Int_t i
Definition: run_full.C:25
#define verbose
Convert meassured data into PndSdsDigiStrip.
TString HitFileName
Double_t
std::vector< PndSdsDigiStrip > ReadNext()
Int_t nEvents
Definition: hit_dirc.C:11
TStopwatch timer
Definition: hit_dirc.C:51
PndMvdConvertApv * ApvConverter
Double_t ctime
Definition: hit_dirc.C:114
Double_t rtime
Definition: hit_dirc.C:113
LoadPandaStyle()
TString CalibFileName