#include <ALFA_SimHitsTestTool.h>
Definition at line 11 of file ALFA_SimHitsTestTool.h.
◆ ALFA_SimHitsTestTool()
ALFA_SimHitsTestTool::ALFA_SimHitsTestTool |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ getPrimary()
◆ initialize()
StatusCode ALFA_SimHitsTestTool::initialize |
( |
| ) |
|
|
virtual |
◆ processEvent()
StatusCode ALFA_SimHitsTestTool::processEvent |
( |
| ) |
|
Definition at line 55 of file ALFA_SimHitsTestTool.cxx.
57 int fiber, plate,
sign, station;
59 double E_fiber_sum[8][10][64][2];
61 double E_layer_sum[8][20];
64 const int station_max{8};
65 const int plate_max{10};
66 const int fiber_max{64};
68 for (
int l = 0;
l < station_max;
l++ ) {
70 for (
int i = 0;
i < plate_max;
i++ ) {
71 E_layer_sum[
l][
i] = 0.;
72 E_layer_sum[
l][
i+plate_max] = 0.;
73 for (
int j = 0; j < fiber_max; j++ ) {
74 for (
int k = 0;
k < 2;
k++ ) {
75 E_fiber_sum[
l][
i][j][
k] = 0.;
83 CHECK( evtStore()->
retrieve(coll_handle,
"ALFA_HitCollection") );
86 for (
const ALFA_Hit& hit : *coll_handle) {
88 station = hit.GetStationNumber();
89 plate = hit.GetPlateNumber();
90 fiber = hit.GetFiberNumber();
91 sign = hit.GetSignFiber();
94 m_E_gvs->Fill(station,(hit.GetEnergyDeposit()));
97 E_fiber_sum[station-1][plate-1][fiber-1][(1-
sign)/2] += (hit.GetEnergyDeposit());
100 for (
int l = 0;
l < station_max;
l++ ) {
101 for (
int i = 0;
i < plate_max;
i++ ){
102 for (
int j = 0; j < fiber_max; j++ ) {
103 for (
int k = 0;
k < 2;
k++ ) {
104 E_full_sum[
l] += E_fiber_sum[
l][
i][j][
k];
105 E_layer_sum[
l][2*
i+
k] += E_fiber_sum[
l][
i][j][
k];
106 if (E_fiber_sum[
l][
i][j][
k] > 0.) {
114 for (
int l = 0;
l < station_max;
l++ ) {
116 for (
int i = 0;
i < 2*plate_max;
i++ ) {
121 return StatusCode::SUCCESS;
◆ m_E_full_sum_h
TH1* ALFA_SimHitsTestTool::m_E_full_sum_h[8] |
|
private |
◆ m_E_gvs
TH1* ALFA_SimHitsTestTool::m_E_gvs {} |
|
private |
◆ m_E_layer_sum_h
TH2* ALFA_SimHitsTestTool::m_E_layer_sum_h[8] |
|
private |
◆ m_histSvc
◆ m_hit_map_h
TH2* ALFA_SimHitsTestTool::m_hit_map_h[8] |
|
private |
◆ m_key
std::string SimTestToolBase::m_key |
|
protectedinherited |
◆ m_path
std::string SimTestHisto::m_path {"/truth/"} |
|
protectedinherited |
The documentation for this class was generated from the following files:
#define _TH2D(var, name, nbinx, xmin, xmax, nbiny, ymin, ymax)