Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-07-14 08:56:22

0001 
0002 // Copyright 2021, Jefferson Science Associates, LLC.
0003 // Subject to the terms in the LICENSE file found in the top-level directory.
0004 
0005 
0006 #pragma once
0007 #include <JANA/JEventProcessor.h>
0008 #include <fstream>
0009 
0010 using std::vector;
0011 using std::string;
0012 using std::pair;
0013 
0014 class JAutoActivator : public JEventProcessor {
0015 private:
0016     bool m_output_processed_event_numbers = false;
0017     std::ofstream m_processed_event_numbers_file;
0018     vector<pair<string,string>> m_auto_activated_factories;
0019 
0020 public:
0021     JAutoActivator();
0022     static std::pair<std::string, std::string> Split(std::string factory_name);
0023     void AddAutoActivatedFactory(string factory_name, string factory_tag);
0024     void Init() override;
0025     void ProcessParallel(const JEvent&) override;
0026     void Process(const JEvent&) override;
0027     void Finish() override;
0028 
0029 };
0030 
0031