Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2024-09-28 07:03:00

0001 
0002 //
0003 // Template for this file generated with eicmkplugin.py
0004 //
0005 
0006 #include <JANA/JEvent.h>
0007 #include <JANA/JEventProcessorSequentialRoot.h>
0008 #include <JANA/Utils/JTypeInfo.h>
0009 #include <TDirectory.h>
0010 #include <TH1.h>
0011 #include <TH2.h>
0012 #include <TNtuple.h>
0013 #include <map>
0014 #include <memory>
0015 #include <string>
0016 
0017 #include "extensions/spdlog/SpdlogMixin.h"
0018 
0019 class TofEfficiency_processor: public JEventProcessorSequentialRoot, public eicrecon::SpdlogMixin  {
0020 private:
0021 
0022     // Containers for histograms
0023     std::map<std::string, TH1*> m_1d_hists;
0024     std::map<std::string, TH2*> m_2d_hists;
0025 
0026 public:
0027     TofEfficiency_processor() { SetTypeName(NAME_OF_THIS); }
0028 
0029     void InitWithGlobalRootLock() override;
0030     void ProcessSequential(const std::shared_ptr<const JEvent>& event) override;
0031     void FinishWithGlobalRootLock() override;
0032 
0033     int IsTOFHit(float x, float y, float z);
0034 
0035     TDirectory *m_dir_main;
0036 
0037     TH2F * m_th2_btof_phiz;
0038     TH2F * m_th2_ftof_rphi;
0039     TNtuple * m_tntuple_track;
0040 };