FairRoot/PandaRoot
Functions | Variables
tutorials/charmonium/feb10/run_digi_sttcombi.C File Reference

Go to the source code of this file.

Functions

gROOT LoadMacro ("$VMCWORKDIR/gconfig/rootlogon.C")
 
 rootlogon ()
 
timer Start ()
 
fRun SetInputFile (inFile)
 
fRun SetOutputFile (outFile)
 
parInput1 open (parFile.Data())
 
parIo1 open (allDigiFile.Data(),"in")
 
rtdb setFirstInput (parInput1)
 
rtdb setSecondInput (parIo1)
 
fRun AddTask (sttHitProducer)
 
sttFindTracks AddHitCollectionName ("STTHit","STTPoint")
 
fRun AddTask (sttFindTracks)
 
fRun AddTask (sttTrackMatcher)
 
sttFitTracks AddHitCollectionName ("STTHit")
 
fRun AddTask (sttFitTracks)
 
fRun AddTask (sttHHProducer)
 
mvddigi SetVerbose (iVerbose)
 
fRun AddTask (mvddigi)
 
fRun AddTask (mvdmccls)
 
emcHitsToWaveform SetStorageOfData (kFALSE)
 
fRun AddTask (emcHitsToWaveform)
 
fRun AddTask (emcWaveformToDigi)
 
fRun AddTask (emcMakeCluster)
 
fRun AddTask (emcMakeBump)
 
fRun AddTask (emcHdrFiller)
 
fRun AddTask (tofhit)
 
mdtHitProd SetPositionSmearing (.3)
 
fRun AddTask (mdtHitProd)
 
fRun AddTask (mdtTrkProd)
 
fRun AddTask (drchit)
 
fRun AddTask (gemDigitize)
 
fRun AddTask (gemFindHits)
 
fRun Init ()
 
fRun Run (0, nEvents)
 
rtdb saveOutput ()
 
rtdb print ()
 
timer Stop ()
 

Variables

TString inFile = "points_sttcombi.root"
 
TString parFile = "params_sttcombi.root"
 
TString outFile = "digi_sttcombi.root"
 
Int_t nEvents = 0
 
TString sysFile = gSystem->Getenv("VMCWORKDIR")
 
TStopwatch timer
 
FairRunAna * fRun = new FairRunAna()
 
TString allDigiFile = sysFile+"/macro/params/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)
 
PndSttHelixHitProducersttHHProducer = new PndSttHelixHitProducer()
 
PndMvdDigiTaskmvddigi = new PndMvdDigiTask()
 
PndMvdClusterTaskmvdmccls = new PndMvdClusterTask()
 
PndEmcHitsToWaveformemcHitsToWaveform = new PndEmcHitsToWaveform(iVerbose)
 
PndEmcWaveformToDigiemcWaveformToDigi =new PndEmcWaveformToDigi(iVerbose)
 
PndEmcMakeClusteremcMakeCluster = new PndEmcMakeCluster(iVerbose)
 
PndEmcMakeBumpemcMakeBump = new PndEmcMakeBump()
 
PndEmcHdrFilleremcHdrFiller = new PndEmcHdrFiller()
 
PndTofHitProducerIdeal * tofhit = new PndTofHitProducerIdeal()
 
PndMdtHitProducerIdealmdtHitProd = new PndMdtHitProducerIdeal()
 
PndMdtTrkProducermdtTrkProd = new PndMdtTrkProducer()
 
PndDrcHitProducerIdealdrchit = new PndDrcHitProducerIdeal()
 
Int_t verboseLevel = 0
 
PndGemDigitizegemDigitize = new PndGemDigitize("GEM Digitizer", verboseLevel)
 
PndGemFindHitsgemFindHits = new PndGemFindHits("GEM Hit Finder", verboseLevel)
 
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 ( sttHHProducer  )
fRun AddTask ( mvddigi  )
fRun AddTask ( mvdmccls  )
fRun AddTask ( emcHitsToWaveform  )
fRun AddTask ( emcWaveformToDigi  )
fRun AddTask ( emcMakeCluster  )
fRun AddTask ( emcMakeBump  )
fRun AddTask ( emcHdrFiller  )
fRun AddTask ( tofhit  )
fRun AddTask ( mdtHitProd  )
fRun AddTask ( mdtTrkProd  )
fRun AddTask ( drchit  )
fRun AddTask ( gemDigitize  )
fRun AddTask ( gemFindHits  )
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
gROOT LoadMacro ( "$VMCWORKDIR/gconfig/rootlogon.C )
parInput1 open ( parFile.  Data())
parIo1 open ( allDigiFile.  Data(),
"in"   
)
rtdb print ( )
rootlogon ( )

Definition at line 1 of file outdated/mpiTools/macros/emc/rootlogon.C.

2 {
3  gSystem->AddIncludePath("-I$VMCWORKDIR/emc");
4  gSystem->AddIncludePath("-I$VMCWORKDIR/emc/EmcDigi");
5  gSystem->AddIncludePath("-I$VMCWORKDIR/emc/EmcMC");
6  gSystem->AddIncludePath("-I$VMCWORKDIR/emc/EmcTools");
7  gSystem->AddIncludePath("-I$VMCWORKDIR/emc/EmcReco");
8  gSystem->AddIncludePath("-I$VMCWORKDIR/emc/EmcData");
9  gSystem->AddIncludePath("-I$VMCWORKDIR/pnddata");
10  gSystem->AddIncludePath("-I$VMCWORKDIR/base");
11  gROOT->LoadMacro("$VMCWORKDIR/gconfig/basiclibs.C");
12  basiclibs();
13 
14  gSystem->Load("libDpmEvtGen.so");
15  gSystem->Load("libGeoBase");
16  gSystem->Load("libParBase");
17  gSystem->Load("libBase");
18  gSystem->Load("libTrkBase");
19  gSystem->Load("libPndData");
20  gSystem->Load("libField");
21  gSystem->Load("libPassive");
22  gSystem->Load("libGen");
23  gSystem->Load("libPGen");
24  gSystem->Load("libEmc");
25 
26  delete gRandom;
27  gRandom=new TRandom3(0);
28 }
basiclibs()
fRun Run ( ,
nEvents   
)
rtdb saveOutput ( )
rtdb setFirstInput ( parInput1  )
fRun SetInputFile ( inFile  )
fRun SetOutputFile ( outFile  )
mdtHitProd SetPositionSmearing ( 3)
rtdb setSecondInput ( parIo1  )
emcHitsToWaveform SetStorageOfData ( kFALSE  )
mvddigi SetVerbose ( iVerbose  )
timer Start ( )
timer Stop ( )

Variable Documentation

TString allDigiFile = sysFile+"/macro/params/all.par"
Double_t ctime = timer.CpuTime()
PndEmcHdrFiller* emcHdrFiller = new PndEmcHdrFiller()
PndEmcMakeBump* emcMakeBump = new PndEmcMakeBump()
FairRunAna* fRun = new FairRunAna()
PndGemDigitize* gemDigitize = new PndGemDigitize("GEM Digitizer", verboseLevel)
PndGemFindHits* gemFindHits = new PndGemFindHits("GEM Hit Finder", verboseLevel)
TString inFile = "points_sttcombi.root"
PndMdtTrkProducer* mdtTrkProd = new PndMdtTrkProducer()
PndMvdDigiTask* mvddigi = new PndMvdDigiTask()
Int_t nEvents = 0
TString outFile = "digi_sttcombi.root"
TString parFile = "params_sttcombi.root"
FairParRootFileIo* parInput1 = new FairParRootFileIo()
FairParAsciiFileIo* parIo1 = new FairParAsciiFileIo()
FairRuntimeDb* rtdb = fRun->GetRuntimeDb()
Double_t rtime = timer.RealTime()
PndSttFindTracks* sttFindTracks = new PndSttFindTracks("Track Finder", "FairTask", sttTrackFinder, iVerbose)
PndSttFitTracks* sttFitTracks = new PndSttFitTracks("STT Track Fitter", "FairTask", sttTrackFitter)

Definition at line 75 of file tutorials/charmonium/feb10/run_digi_sttcombi.C.

Referenced by idealcomplete(), and RecoComplete().

PndSttTrackFitter* sttTrackFitter = new PndSttHelixTrackFitter(0)
PndSttMatchTracks* sttTrackMatcher = new PndSttMatchTracks("Match tracks", "STT", iVerbose)
TString sysFile = gSystem->Getenv("VMCWORKDIR")
TStopwatch timer
PndTofHitProducerIdeal* tofhit = new PndTofHitProducerIdeal()
Int_t verboseLevel = 0