Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:18:31

0001 
0002 //
0003 // Template for this file generated with eicmkplugin.py
0004 // Author: Nilanga Wickramaarachchi
0005 //
0006 
0007 #include <JANA/JEventProcessorSequentialRoot.h>
0008 #include <TH2D.h>
0009 #include <TFile.h>
0010 #include <edm4hep/SimTrackerHit.h>
0011 #include <edm4hep/MCParticle.h>
0012 
0013 class hpDIRCsimHitsProcessor: public JEventProcessorSequentialRoot {
0014 private:
0015   PrefetchT<edm4hep::SimTrackerHit> simhits = {this, "DIRCBarHits"};
0016   
0017     // Declare histogram and tree pointers here. e.g.
0018     // TH1D* hEraw  = nullptr;
0019     // TH2D* hEdigi = nullptr ;
0020   TH2D* hHitposition_direct = nullptr;
0021   TH1D* hnhits = nullptr;
0022   TH1D* htime = nullptr;
0023   TH1D* hwavelength = nullptr;
0024   TH1I* hist_parent_pdg = nullptr;
0025   
0026 public:
0027     hpDIRCsimHitsProcessor() { 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 };