Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-11-09 09:33:25

0001 // SPDX-License-Identifier: LGPL-3.0-or-later
0002 // Copyright (C) 2026 Wouter Deconinck
0003 
0004 #include <JANA/JApplicationFwd.h>
0005 #include <JANA/Utils/JTypeInfo.h>
0006 #include <string>
0007 #include <vector>
0008 
0009 #include <Evaluator/DD4hepUnits.h>
0010 #include <edm4eic/unit_system.h>
0011 
0012 #include "extensions/jana/JOmniFactoryGeneratorT.h"
0013 #include "factories/digi/SiliconTrackerDigi_factory.h"
0014 
0015 extern "C" {
0016 void InitPlugin(JApplication* app) {
0017   InitJANAPlugin(app);
0018 
0019   using namespace eicrecon;
0020 
0021   // Luminosity pair-spectrometer tracker (epic compact/far_backward/lumi/spec_tracker.xml):
0022   // two planes (module 0, 1) of top and bottom silicon sectors in front of EcalLumiSpec,
0023   // 0.3 mm thick, segmented as CartesianGridXY with LumiSpecTracker_pixelSize = 0.1 mm.
0024   // The pixel size comes from the geometry; there is no sensor-specific readout model yet.
0025   // - threshold: as for the other far-region silicon trackers (RPOTS, FOFFMTRK), well below
0026   //   the most probable MIP deposit of about 80 keV in 0.3 mm of silicon.
0027   // - timeResolution: AC-LGAD value used by the far-forward trackers (B0TRK, RPOTS, FOFFMTRK).
0028   app->Add(new JOmniFactoryGeneratorT<SiliconTrackerDigi_factory>(
0029       "LumiSpecTrackerRawHits", {"EventHeader", "LumiSpecTrackerHits"},
0030       {"LumiSpecTrackerRawHits", "LumiSpecTrackerRawHitLinks", "LumiSpecTrackerRawHitAssociations"},
0031       {
0032           .threshold      = 10.0 * dd4hep::keV,
0033           .timeResolution = 30 * edm4eic::unit::ps,
0034       },
0035       app));
0036 }
0037 }