EICrecon
JANA based reconstruction for the EPIC detector
Loading...
Searching...
No Matches
HitReconstructionAnalysis.h
Go to the documentation of this file.
1// Created by Dmitry Romanov
2// Subject to the terms in the LICENSE file found in the top-level directory.
3//
4
5#pragma once
6
7#include <JANA/JApplicationFwd.h>
8#include <JANA/JEvent.h>
9#include <TDirectory.h>
10#include <TH1.h>
11#include <TH2.h>
12#include <memory>
13#include <string>
14#include <vector>
15
17public:
18 void init(JApplication* app, TDirectory* plugin_tdir);
19
20 void process(const std::shared_ptr<const JEvent>& event);
21
22private:
24 std::vector<std::string> m_data_names = {
25 "SiBarrelTrackerRecHits", // Barrel Tracker
26 "SiBarrelVertexRecHits", // Vertex
27 "SiEndcapTrackerRecHits", // End Cap tracker
28 // MPGD
29 "MPGDBarrelRecHits",
30 "OuterMPGDBarrelRecHits",
31 "ForwardMPGDEndcapRecHits",
32 "BackwardMPGDEndcapRecHits",
33 // TOF
34 "TOFEndcapRecHits",
35 "TOFBarrelRecHit",
36 };
37
39 std::vector<std::shared_ptr<TH1F>> m_hits_count_hists;
40
42 std::vector<std::shared_ptr<TH2F>> m_hits_occup_hists;
43
45 TH2F* m_total_occup_th2;
46};
Definition HitReconstructionAnalysis.h:16
void init(JApplication *app, TDirectory *plugin_tdir)
Definition HitReconstructionAnalysis.cc:17
void process(const std::shared_ptr< const JEvent > &event)
Definition HitReconstructionAnalysis.cc:44