EICrecon
JANA based reconstruction for the EPIC detector
Loading...
Searching...
No Matches
TrackingOccupancyAnalysis.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
17
18public:
19 void init(JApplication* app, TDirectory* plugin_tdir);
20
21 void process(const std::shared_ptr<const JEvent>& event);
22
23private:
25 std::vector<std::string> m_data_names = {
26 "SiBarrelHits", // Barrel Tracker
27 "VertexBarrelHits", // Vertex
28 "TrackerEndcapHits", // End Cap tracker
29 // MPGD
30 "MPGDBarrelHits",
31 "OuterMPGDBarrelHits",
32 "ForwardMPGDEndcapHits",
33 "BackwardMPGDEndcapHits",
34 // TOF
35 "TOFEndcapHits",
36 "TOFBarrelHits",
37 };
38
40 std::vector<std::shared_ptr<TH1F>> m_hits_count_hists;
41
43 std::vector<std::shared_ptr<TH2F>> m_hits_occup_hists;
44
46 TH2F* m_total_occup_th2;
47};
Definition TrackingOccupancyAnalysis.h:16
void init(JApplication *app, TDirectory *plugin_tdir)
Definition TrackingOccupancyAnalysis.cc:17
void process(const std::shared_ptr< const JEvent > &event)
Definition TrackingOccupancyAnalysis.cc:43