ATLAS Offline Software
Loading...
Searching...
No Matches
HECHitsTestTool.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5#include "HECHitsTestTool.h"
6
7#include <TH2D.h>
8#include <TH1.h>
9#include <TProfile.h>
10
11HECHitsTestTool::HECHitsTestTool(const std::string& type, const std::string& name, const IInterface* parent)
12 : LArHitsTestTool(type, name, parent)
13{
14}
15
17{
18 std::string origpath=m_path;
19
20 m_path += "LAr/HEC/";
21
22 // variables specific to sub detector (root histo names have to be unique!)
23 _TH1D(m_eta,"HEC_eta",25,-3.5,3.5);
24 _TH1D_WEIGHTED(m_time,"HEC_time",100,0,10);
25 _TH1D(m_edep,"HEC_edep",100,0.,4.);
26 _TH1D(m_etot,"HEC_etot",100,0.,20.);
27 _TH1D_WEIGHTED(m_edep_eta,"HEC_edep_eta",25,-3.5,3.5);
28 _TH1D_WEIGHTED(m_edep_r,"HEC_edep_r",100,300.,2200.);
29 _TPROFILE(m_etot_eta,"HEC_etot_eta",25,-3.,3.);
30
31 m_path = std::move(origpath);
32
34}
35
#define _TH1D_WEIGHTED(var, name, nbin, xmin, xmax)
#define _TH1D(var, name, nbin, xmin, xmax)
#define _TPROFILE(var, name, nbin, xmin, xmax)
StatusCode initialize()
HECHitsTestTool(const std::string &type, const std::string &name, const IInterface *parent)
LArHitsTestTool(const std::string &type, const std::string &name, const IInterface *parent)
virtual StatusCode initialize() override
std::string m_path