Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-07-14 08:14:41

0001 // Copyright 2022, Dmitry Romanov
0002 // Subject to the terms in the LICENSE file found in the top-level directory.
0003 //
0004 //
0005 
0006 #include <Evaluator/DD4hepUnits.h>
0007 #include <JANA/JApplicationFwd.h>
0008 #include <string>
0009 
0010 #include "algorithms/interfaces/WithPodConfig.h"
0011 #include "extensions/jana/JOmniFactoryGeneratorT.h"
0012 #include "factories/digi/SiliconTrackerDigi_factory.h"
0013 #include "factories/tracking/TrackerHitReconstruction_factory.h"
0014 
0015 extern "C" {
0016 void InitPlugin(JApplication* app) {
0017   InitJANAPlugin(app);
0018 
0019   using namespace eicrecon;
0020 
0021   // Digitization
0022   app->Add(new JOmniFactoryGeneratorT<SiliconTrackerDigi_factory>(
0023       "TOFEndcapRawHits", {"TOFEndcapHits"}, {"TOFEndcapRawHits", "TOFEndcapRawHitAssociations"},
0024       {
0025           .threshold      = 6.0 * dd4hep::keV,
0026           .timeResolution = 0.025,
0027       },
0028       app));
0029 
0030   // Convert raw digitized hits into hits with geometry info (ready for tracking)
0031   app->Add(new JOmniFactoryGeneratorT<TrackerHitReconstruction_factory>(
0032       "TOFEndcapRecHits", {"TOFEndcapRawHits"}, // Input data collection tags
0033       {"TOFEndcapRecHits"},                     // Output data tag
0034       {
0035           .timeResolution = 0.025,
0036       },
0037       app));
0038 }
0039 } // extern "C"