FairRoot/PandaRoot
Functions | Variables
outdated/dc1/stt/runreco.C File Reference

Go to the source code of this file.

Functions

gROOT LoadMacro ("$VMCWORKDIR/gconfig/basiclibs.C")
 
 basiclibs ()
 
gSystem Load ("libGeoBase")
 
gSystem Load ("libParBase")
 
gSystem Load ("libBase")
 
gSystem Load ("libPndData")
 
gSystem Load ("libField")
 
gSystem Load ("libPassive")
 
gSystem Load ("libGen")
 
gSystem Load ("libStt")
 
gSystem Load ("libEmc")
 
gSystem Load ("libgenfit")
 
gSystem Load ("libtpc")
 
gSystem Load ("libtpcreco")
 
gSystem Load ("libtrackrep")
 
gSystem Load ("librecotasks")
 
gSystem Load ("libMvd")
 
gSystem Load ("libMvdReco")
 
gSystem Load ("libLHETrack")
 
timer Start ()
 
fRun SetInputFile (inFile)
 
fRun SetOutputFile (outFile)
 
parInput1 open (parFile.Data())
 
parIo1 open (allDigiFile.Data(),"in")
 
rtdb setFirstInput (parInput1)
 
rtdb setSecondInput (parIo1)
 
fRun LoadGeometry ()
 
fRun AddTask (sttHitProducer)
 
sttFindTracks AddHitCollectionName ("STTHit","STTPoint")
 
fRun AddTask (sttFindTracks)
 
fRun AddTask (sttTrackMatcher)
 
sttFitTracks AddHitCollectionName ("STTHit")
 
fRun AddTask (sttFitTracks)
 
TVector2 topAnchor (0., 0.)
 
TVector2 botAnchor (0., 0.)
 
mvdHitProd SetVerbose (iVerbose)
 
fRun AddTask (mvdHitProd)
 
fRun AddTask (mvdPixProd)
 
fRun AddTask (mvdmccls)
 
fRun AddTask (mvdClusterizer)
 
fRun AddTask (emcHitProd)
 
fRun AddTask (emcHitsToWaveform)
 
fRun AddTask (emcWaveformToDigi)
 
fRun AddTask (emcMakeCluster)
 
fRun AddTask (emcHdrFiller)
 
fRun AddTask (emcMakeBump)
 
fRun AddTask (emcMakeRecoHit)
 
fRun Init ()
 
fRun Run (0, nEvents)
 
timer Stop ()
 

Variables

TString inFile = "points_sttmvdemc.root"
 
TString parFile = "testparams.root"
 
TString outFile = "tracks_sttmvdemc.root"
 
Int_t nEvents = 0
 
TStopwatch timer
 
FairRunAna * fRun = new FairRunAna()
 
TString allDigiFile = "./all.par"
 
FairRuntimeDb * rtdb = fRun->GetRuntimeDb()
 
FairParRootFileIo * parInput1 = new FairParRootFileIo()
 
FairParAsciiFileIo * parIo1 = new FairParAsciiFileIo()
 
PndSttHitProducerRealFaststtHitProducer = new PndSttHitProducerRealFast()
 
PndSttTrackFinderIdealsttTrackFinder = new PndSttTrackFinderIdeal(iVerbose)
 
PndSttFindTrackssttFindTracks = new PndSttFindTracks("Track Finder", "FairTask", sttTrackFinder, iVerbose)
 
PndSttMatchTrackssttTrackMatcher = new PndSttMatchTracks("Match tracks", "STT", iVerbose)
 
PndSttTrackFittersttTrackFitter = new PndSttHelixTrackFitter(0)
 
PndSttFitTrackssttFitTracks = new PndSttFitTracks("STT Track Fitter", "FairTask", sttTrackFitter)
 
double topPitch =0.015
 
double botPitch =0.015
 
double orient =TMath::Pi()*(0.5)
 
double skew =TMath::Pi()*(0.5)
 
int topFE = 10
 
int botFE = 4
 
int nrFEChannels = 128
 
double threshold =3000.
 
double noise =1000.
 
PndMvdStripHitProducermvdHitProd
 
Double_t lx =0.01
 
Double_t ly =0.01
 
PndMvdHybridHitProducermvdPixProd = new PndMvdHybridHitProducer(lx,ly,threshold,noise)
 
Double_t chargecut = 3. * noise
 put such stuff inside the task More...
 
PndMvdStripClusterTaskmvdmccls = new PndMvdStripClusterTask(chargecut,inFile)
 
PndMvdPixelClusterTaskmvdClusterizer = new PndMvdPixelClusterTask(1.8,76,84, inFile)
 
PndEmcHitProduceremcHitProd = new PndEmcHitProducer()
 
PndEmcMakeDigiemcMakeDigi =new PndEmcMakeDigi()
 
PndEmcHitsToWaveformemcHitsToWaveform = new PndEmcHitsToWaveform(iVerbose)
 
PndEmcWaveformToDigiemcWaveformToDigi =new PndEmcWaveformToDigi(iVerbose)
 
PndEmcMakeClusteremcMakeCluster = new PndEmcMakeCluster(iVerbose)
 
PndEmcHdrFilleremcHdrFiller = new PndEmcHdrFiller()
 
PndEmcMakeBumpemcMakeBump = new PndEmcMakeBump()
 
PndEmcMakeRecoHitemcMakeRecoHit = new PndEmcMakeRecoHit()
 
Double_t rtime = timer.RealTime()
 
Double_t ctime = timer.CpuTime()
 

Function Documentation

sttFindTracks AddHitCollectionName ( "STTHit"  ,
"STTPoint"   
)
sttFitTracks AddHitCollectionName ( "STTHit"  )
fRun AddTask ( sttHitProducer  )
fRun AddTask ( sttFindTracks  )
fRun AddTask ( sttTrackMatcher  )
fRun AddTask ( sttFitTracks  )
fRun AddTask ( mvdHitProd  )
fRun AddTask ( mvdPixProd  )
fRun AddTask ( mvdmccls  )
fRun AddTask ( mvdClusterizer  )
fRun AddTask ( emcHitProd  )
fRun AddTask ( emcHitsToWaveform  )
fRun AddTask ( emcWaveformToDigi  )
fRun AddTask ( emcMakeCluster  )
fRun AddTask ( emcHdrFiller  )
fRun AddTask ( emcMakeBump  )
fRun AddTask ( emcMakeRecoHit  )
basiclibs ( )
TVector2 botAnchor ( 0.  ,
0.   
)
fRun Init ( )

Initialize the session

Definition at line 20 of file NHitsPerEvent.C.

21 {
22  TFile* f = new TFile("2014-10-27-00-06-02_50_MHz_Filtered_PosCorrected_Event.root", "READ");
23  t = (TTree*)f->Get("pndsim");
24 // t->AddFriend("pndsim", "2014-10-27-00-06-02_50_MHz_Filtered_PosCorrected_Residuals.root");
25 // t->AddFriend("pndsim", "2014-10-27-00-06-02_50_MHz_Filtered_PosCorrected_Track.root");
26 // t->AddFriend("pndsim", "2014-10-27-00-06-02_50_MHz_Filtered_TimeCorrectedSorted_Event.root");
27  t->StartViewer();
28 
29  t->SetBranchAddress("MVDHitsPixelPosCorrected", &mvdHitArray);
30 // t->SetBranchAddress("MvdProjectedHit", &mvdProjectedArray);
31 // t->SetBranchAddress("MvdTrack", &trackArray);
32 
33  gHitPoints->SetLineColor(kRed);
34  gHitPoints->SetMarkerStyle(2);
35  gHitPoints->SetMarkerColor(kRed);
36 
37  gProjections->SetLineColor(kBlue);
38  gProjections->SetMarkerStyle(5);
39  gProjections->SetMarkerColor(kBlue);
40 
41 
42 // mg->Add(gProjections, "Projected");
43  mg->Add(gHitPoints, "Hits");
44  t->GetEntry(0);
45 }
TMultiGraph * mg
Definition: NHitsPerEvent.C:17
TGraph * gHitPoints
Definition: NHitsPerEvent.C:15
TClonesArray * mvdHitArray
Definition: NHitsPerEvent.C:12
TFile * f
Definition: bump_analys.C:12
TTree * t
Definition: bump_analys.C:13
TGraph * gProjections
Definition: NHitsPerEvent.C:16
gSystem Load ( "libGeoBase"  )
gSystem Load ( "libParBase"  )
gSystem Load ( "libBase"  )
gSystem Load ( "libPndData"  )
gSystem Load ( "libField"  )
gSystem Load ( "libPassive"  )
gSystem Load ( "libGen"  )
gSystem Load ( "libStt"  )
gSystem Load ( "libEmc"  )
gSystem Load ( "libgenfit"  )
gSystem Load ( "libtpc"  )
gSystem Load ( "libtpcreco"  )
gSystem Load ( "libtrackrep"  )
gSystem Load ( "librecotasks"  )
gSystem Load ( "libMvd"  )
gSystem Load ( "libMvdReco"  )
gSystem Load ( "libLHETrack"  )
fRun LoadGeometry ( )
gROOT LoadMacro ( "$VMCWORKDIR/gconfig/basiclibs.C )
parInput1 open ( parFile.  Data())
parIo1 open ( allDigiFile.  Data(),
"in"   
)
fRun Run ( ,
nEvents   
)
rtdb setFirstInput ( parInput1  )
fRun SetInputFile ( inFile  )
fRun SetOutputFile ( outFile  )
rtdb setSecondInput ( parIo1  )
mvdHitProd SetVerbose ( iVerbose  )
timer Start ( )
timer Stop ( )
TVector2 topAnchor ( 0.  ,
0.   
)

Variable Documentation

TString allDigiFile = "./all.par"

Definition at line 58 of file outdated/dc1/stt/runreco.C.

int botFE = 4

Definition at line 103 of file outdated/dc1/stt/runreco.C.

double botPitch =0.015

Definition at line 97 of file outdated/dc1/stt/runreco.C.

Double_t chargecut = 3. * noise

put such stuff inside the task

Definition at line 124 of file outdated/dc1/stt/runreco.C.

Double_t ctime = timer.CpuTime()

Definition at line 172 of file outdated/dc1/stt/runreco.C.

PndEmcHdrFiller* emcHdrFiller = new PndEmcHdrFiller()

Definition at line 154 of file outdated/dc1/stt/runreco.C.

PndEmcHitProducer* emcHitProd = new PndEmcHitProducer()

Definition at line 140 of file outdated/dc1/stt/runreco.C.

Definition at line 146 of file outdated/dc1/stt/runreco.C.

PndEmcMakeBump* emcMakeBump = new PndEmcMakeBump()

Definition at line 157 of file outdated/dc1/stt/runreco.C.

Definition at line 151 of file outdated/dc1/stt/runreco.C.

PndEmcMakeDigi* emcMakeDigi =new PndEmcMakeDigi()

Definition at line 143 of file outdated/dc1/stt/runreco.C.

PndEmcMakeRecoHit* emcMakeRecoHit = new PndEmcMakeRecoHit()

Definition at line 160 of file outdated/dc1/stt/runreco.C.

Definition at line 147 of file outdated/dc1/stt/runreco.C.

FairRunAna* fRun = new FairRunAna()

Definition at line 52 of file outdated/dc1/stt/runreco.C.

TString inFile = "points_sttmvdemc.root"

Definition at line 7 of file outdated/dc1/stt/runreco.C.

Double_t lx =0.01
Double_t ly =0.01
PndMvdPixelClusterTask* mvdClusterizer = new PndMvdPixelClusterTask(1.8,76,84, inFile)

Definition at line 130 of file outdated/dc1/stt/runreco.C.

Initial value:
Hit Producer Task for strip detectors.
TVector2 botAnchor(0., 0.)
double skew
double botPitch
int nrFEChannels
double threshold
double orient
double topPitch
double noise
TVector2 topAnchor(0., 0.)

Definition at line 108 of file outdated/dc1/stt/runreco.C.

Definition at line 125 of file outdated/dc1/stt/runreco.C.

Definition at line 117 of file outdated/dc1/stt/runreco.C.

Int_t nEvents = 0

Definition at line 16 of file outdated/dc1/stt/runreco.C.

Double_t noise =1000.
int nrFEChannels = 128

Definition at line 104 of file outdated/dc1/stt/runreco.C.

double orient =TMath::Pi()*(0.5)

Definition at line 98 of file outdated/dc1/stt/runreco.C.

Referenced by PndLmdCalStrip::PndLmdCalStrip().

TString outFile = "tracks_sttmvdemc.root"

Definition at line 13 of file outdated/dc1/stt/runreco.C.

TString parFile = "testparams.root"

Definition at line 10 of file outdated/dc1/stt/runreco.C.

FairParRootFileIo* parInput1 = new FairParRootFileIo()

Definition at line 61 of file outdated/dc1/stt/runreco.C.

FairParAsciiFileIo* parIo1 = new FairParAsciiFileIo()

Definition at line 64 of file outdated/dc1/stt/runreco.C.

FairRuntimeDb* rtdb = fRun->GetRuntimeDb()

Definition at line 60 of file outdated/dc1/stt/runreco.C.

Double_t rtime = timer.RealTime()

Definition at line 171 of file outdated/dc1/stt/runreco.C.

double skew =TMath::Pi()*(0.5)
PndSttFindTracks* sttFindTracks = new PndSttFindTracks("Track Finder", "FairTask", sttTrackFinder, iVerbose)

Definition at line 79 of file outdated/dc1/stt/runreco.C.

PndSttFitTracks* sttFitTracks = new PndSttFitTracks("STT Track Fitter", "FairTask", sttTrackFitter)

Definition at line 90 of file outdated/dc1/stt/runreco.C.

Referenced by idealcomplete(), and RecoComplete().

Definition at line 74 of file outdated/dc1/stt/runreco.C.

Definition at line 78 of file outdated/dc1/stt/runreco.C.

PndSttTrackFitter* sttTrackFitter = new PndSttHelixTrackFitter(0)

Definition at line 89 of file outdated/dc1/stt/runreco.C.

Referenced by idealcomplete(), and RecoComplete().

PndSttMatchTracks* sttTrackMatcher = new PndSttMatchTracks("Match tracks", "STT", iVerbose)

Definition at line 84 of file outdated/dc1/stt/runreco.C.

Referenced by idealcomplete(), and RecoComplete().

Double_t threshold =3000.
TStopwatch timer

Definition at line 47 of file outdated/dc1/stt/runreco.C.

int topFE = 10

Definition at line 102 of file outdated/dc1/stt/runreco.C.

double topPitch =0.015

Definition at line 96 of file outdated/dc1/stt/runreco.C.