FairRoot/PandaRoot
Functions | Variables
sim_ftof.C File Reference

Go to the source code of this file.

Functions

timer Start ()
 
gROOT Macro ("$VMCWORKDIR/gconfig/rootlogon.C")
 
gSystem Load ("libFtof")
 
fRun SetName ("TGeant4")
 
fRun SetOutputFile ("test.root")
 
fRun SetMaterials ("media_pnd.geo")
 
Cave SetGeometryFileName ("cave.geo")
 
fRun AddModule (Cave)
 
Magnet SetGeometryFileName ("magnet.geo")
 
fRun AddModule (Magnet)
 
Dipole SetGeometryFileName ("dipole.geo")
 
fRun AddModule (Dipole)
 
FTof SetGeometryFileName ("ftofwall.root")
 
fRun AddModule (FTof)
 
fRun SetGenerator (primGen)
 
primGen AddGenerator (AsciiGen)
 
fField AddField (map)
 
fField AddField (map1)
 
fField AddField (map2)
 
fRun SetField (fField)
 
fRun SetStoreTraj (kTRUE)
 
fRun Init ()
 
 if (fField)
 
fieldPar setInputVersion (fRun->GetRunId(), 1)
 
fieldPar setChanged ()
 
output open ("simparams.root")
 
rtdb setOutput (output)
 
rtdb saveOutput ()
 
rtdb print ()
 
fRun Run (nEvents)
 
timer Stop ()
 
 printf ("RealTime=%f seconds, CpuTime=%f seconds\n", rtime, ctime)
 
 exit (0)
 

Variables

 gDebug =0
 
FairRunSim * fRun = new FairRunSim()
 
TString inFile3 = "/d/panda02/urqmd_smm/pbarC_3_GeV.root"
 
FairModule * Cave = new PndCave("CAVE")
 
FairModule * Magnet = new PndMagnet("MAGNET")
 
FairModule * Dipole = new PndMagnet("MAGNET")
 
FairDetector * FTof = new PndFtof("FTOF",kTRUE)
 
FairPrimaryGenerator * primGen = new FairPrimaryGenerator()
 
PndUrqmdSmmGeneratorAsciiGen = new PndUrqmdSmmGenerator(inFile3)
 
PndMultiFieldfField = new PndMultiField()
 
PndTransMapmap = new PndTransMap("TransMap", "R")
 
PndDipoleMapmap1 = new PndDipoleMap("DipoleMap", "R")
 
PndSolenoidMapmap2 = new PndSolenoidMap("SolenoidMap", "R")
 
FairRuntimeDb * rtdb =fRun->GetRuntimeDb()
 
PndMultiFieldParfieldPar = (PndMultiFieldPar*) rtdb->getContainer("PndMultiFieldPar")
 
Bool_t kParameterMerged =kTRUE
 
FairParRootFileIo * output =new FairParRootFileIo(kParameterMerged)
 
Int_t nEvents = 100
 
Double_t rtime = timer.RealTime()
 
Double_t ctime = timer.CpuTime()
 

Function Documentation

fField AddField ( map  )
fField AddField ( map1  )
fField AddField ( map2  )
primGen AddGenerator ( AsciiGen  )
fRun AddModule ( Cave  )
fRun AddModule ( Magnet  )
fRun AddModule ( Dipole  )
fRun AddModule ( FTof  )
exit ( )

Referenced by PndFilteredPrimaryGenerator::AddFilter(), Photospp::Log::Assert(), Vec< T >::at(), PndTrkSttAdjacencies::CalculateAdjacentStt(), PndTrkSttAdjacencies::CalculateAdjacentStt2(), PndLmdAlignQA::calculateOverlapingAreas(), PndTrkBoundaryParStraws2::CalculateSpecialRegion(), PndCAGBTracker::CATrackFinder(), check_complete(), check_pid(), PndLmdAlignManager::checkIOpaths(), PndMdt::ConstructGeometry(), convertRootMatricesToJSON(), create_HV_MAPS(), PndLmdAlignQA::createHist(), dbuilder(), digi_complete_runs(), digi_sttcombi(), drawGeo(), error(), error_matrix_data_production(), PndCATracking::Exec(), PndEmcReader::fill_vector(), PndHypGeReader::fill_vector(), PndTrkChi2Fits::FitSZspace(), PndLmdGeometryHelper::getOverlapInfos(), PndLmdPairFinderTask::getPixelHitFromSdsHit(), PndCAGBTracker::Hit(), if(), IsBarrelMVD(), KFParticleSIMD::KFParticleSIMD(), Mrun_sim1_PndFlatGen(), MyMainFrame::MyMainFrame(), mz_E_to_s(), mz_legendre_polynomial(), mz_linear_extrapolation(), mz_pp_to_leplep_vandewi_init(), mz_pp_to_pipi_get_costheta_lattice_site(), mz_pp_to_pipi_sigma(), mz_pp_to_pipi_vandewi_init(), mz_pp_to_pipi_vandewi_sigma_legendre(), mzrnd(), mzvmod2(), mzvscalar(), operator>>(), pid_complete_runs(), PndCANPlets::PndCANPlets(), PndEvtGenDirect::PndEvtGenDirect(), PndFtfDirect::PndFtfDirect(), PndLmdGeometryHelper::PndLmdGeometryHelper(), PndPidMlAssociatorTask::PndPidMlAssociatorTask(), rad_complete(), ReadMainzProto60v6::read_energy_factor(), ReadMainzProto60v4::read_energy_factor(), PndLmdAlignManager::readFilesAndAlign(), readInTopix4TBData(), readMatrixFromDisk(), PndLmdSensorAligner::readPairsFromBinary(), PndFsmEmcPid::readParameters(), PndRichCalDb::ReadRootFile(), PndFieldMap::ReadRootFile(), readRootMatrices(), reco_complete_runs(), reco_sttcombi(), runEvtSel(), runReco(), runSim(), PndOnlineFilterInfo::SetNTag(), RKTrackRep::setPDG(), PndFtfDirect::Setup(), sim_complete_runs(), sim_mvd(), sim_sttcombi_pgun(), switch_history_entries_status(), testFile(), and Vec< T >::Vec().

if ( fField  )

Definition at line 103 of file sim_ftof.C.

References PndMultiFieldPar::SetParameters().

void SetParameters(FairField *field)
PndMultiField * fField
Definition: sim_ftof.C:68
PndMultiFieldPar * fieldPar
Definition: sim_ftof.C:102
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: NHitsPerEvent.C:11
TGraph * gProjections
Definition: NHitsPerEvent.C:16
gSystem Load ( "libFtof"  )
gROOT Macro ( "$VMCWORKDIR/gconfig/rootlogon.C )
output open ( "simparams.root"  )
rtdb print ( )
printf ( RealTime = %f seconds)
fRun Run ( nEvents  )
rtdb saveOutput ( )
fieldPar setChanged ( )
fRun SetField ( fField  )
fRun SetGenerator ( primGen  )
Cave SetGeometryFileName ( "cave.geo"  )
Magnet SetGeometryFileName ( "magnet.geo"  )
Dipole SetGeometryFileName ( "dipole.geo"  )
FTof SetGeometryFileName ( "ftofwall.root"  )
fieldPar setInputVersion ( fRun->  GetRunId(),
 
)
fRun SetMaterials ( "media_pnd.geo"  )
fRun SetName ( "TGeant4"  )
rtdb setOutput ( output  )
fRun SetOutputFile ( "test.root"  )
fRun SetStoreTraj ( kTRUE  )
timer Start ( )
timer Stop ( )

Variable Documentation

Definition at line 62 of file sim_ftof.C.

Referenced by run(), run_test(), runSimHF_GiB_DC(), and sim_pid_runSimHF_GiB_DC().

FairModule* Cave = new PndCave("CAVE")

Definition at line 35 of file sim_ftof.C.

Double_t ctime = timer.CpuTime()

Definition at line 124 of file sim_ftof.C.

FairModule* Dipole = new PndMagnet("MAGNET")

Definition at line 44 of file sim_ftof.C.

PndMultiField* fField = new PndMultiField()

Definition at line 68 of file sim_ftof.C.

PndMultiFieldPar* fieldPar = (PndMultiFieldPar*) rtdb->getContainer("PndMultiFieldPar")
delete fRun = new FairRunSim()

Definition at line 13 of file sim_ftof.C.

FairDetector* FTof = new PndFtof("FTOF",kTRUE)
gDebug =0

Definition at line 6 of file sim_ftof.C.

TString inFile3 = "/d/panda02/urqmd_smm/pbarC_3_GeV.root"

Definition at line 16 of file sim_ftof.C.

Bool_t kParameterMerged =kTRUE

Definition at line 107 of file sim_ftof.C.

FairModule* Magnet = new PndMagnet("MAGNET")

Definition at line 39 of file sim_ftof.C.

PndTransMap* map = new PndTransMap("TransMap", "R")

Definition at line 69 of file sim_ftof.C.

PndDipoleMap* map1 = new PndDipoleMap("DipoleMap", "R")

Definition at line 70 of file sim_ftof.C.

PndSolenoidMap* map2 = new PndSolenoidMap("SolenoidMap", "R")

Definition at line 71 of file sim_ftof.C.

Int_t nEvents = 100

Definition at line 118 of file sim_ftof.C.

FairParRootFileIo* output =new FairParRootFileIo(kParameterMerged)

Definition at line 108 of file sim_ftof.C.

FairPrimaryGenerator* primGen = new FairPrimaryGenerator()

Definition at line 58 of file sim_ftof.C.

FairRuntimeDb* rtdb =fRun->GetRuntimeDb()

Definition at line 100 of file sim_ftof.C.

Double_t rtime = timer.RealTime()

Definition at line 123 of file sim_ftof.C.