Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-09-16 08:17:05

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 <JANA/Utils/JTypeInfo.h>
0009 #include <string>
0010 #include <vector>
0011 
0012 #include "extensions/jana/JOmniFactoryGeneratorT.h"
0013 #include "factories/digi/SiliconTrackerDigi_factory.h"
0014 #include "factories/tracking/TrackerHitReconstruction_factory.h"
0015 
0016 extern "C" {
0017 void InitPlugin(JApplication* app) {
0018   InitJANAPlugin(app);
0019 
0020   using namespace eicrecon;
0021 
0022   // Digitization
0023   app->Add(new JOmniFactoryGeneratorT<SiliconTrackerDigi_factory>(
0024       "TOFEndcapRawHits", {"EventHeader", "TOFEndcapHits"},
0025       {"TOFEndcapRawHits", "TOFEndcapRawHitAssociations"},
0026       {
0027           .threshold      = 6.0 * dd4hep::keV,
0028           .timeResolution = 0.025,
0029       },
0030       app));
0031 
0032   // Convert raw digitized hits into hits with geometry info (ready for tracking)
0033   app->Add(new JOmniFactoryGeneratorT<TrackerHitReconstruction_factory>(
0034       "TOFEndcapRecHits", {"TOFEndcapRawHits"}, // Input data collection tags
0035       {"TOFEndcapRecHits"},                     // Output data tag
0036       {
0037           .timeResolution = 0.025,
0038       },
0039       app));
0040 }
0041 } // extern "C"