EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
scan.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file scan.C
1 
2 void scan(const char *fin, const char *fout = 0)
3 {
4  // Import the EicToyModel model singleton class instance;
5  auto eic = EicToyModel::Import(fin);
6  // Build the vacuum chamber TGeo geometry;
7  eic->BuildVacuumChamber();
8 
9  // Request azimuthal scan in the -4.5 < eta < -3.5 range (e-endcap);
10  //auto mfscan = new EtmAzimuthalScan(-4.5, -3.5);
11  auto mfscan = new EtmAzimuthalScan(3.5, 4.5);
12 
13  // Example: constant 3T field;
14  mfscan->SetBfield(3.0);
15  // Example: location of the "mfield.4col.dat" BeastMagneticField library data file;
16  //mfscan->SetBfield("<path>/mfield.4col.dat");
17 
18  // Other options: vertex smearing along the beam line (default: 0),
19  // statistics (default: 100; reset to 1, if vertex smearing is zero);
20  mfscan->SetVertexSigma(8 * etm::cm)->SetStat(1000);
21 
22  // Perform scan;
23  mfscan->DoIt(fout);
24 
25  exit(0);
26 } // scan()