ATLAS Offline Software
Loading...
Searching...
No Matches
SPLayer.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef INDETALIGNGENALGS_SPLAYER_H
6#define INDETALIGNGENALGS_SPLAYER_H
7// SPLayer.h - helper class for InDetAlignNt for processing overlaps
8// definition of one layer of space points
9
10#include <vector>
11#include <string>
12
13class TH1;
14
15class SPLayer {
16 public:
17 SPLayer(const int,const int,const int,const int,const int,const int,
18 const std::string&, const std::vector<TH1*>& );
19 int incnmod(); // increment the number of modules
20 int incnhit(); // increment the number of hits
21 // read methods
22 int dettype() const;
23 int bec() const;
24 int layer() const;
25 int side() const;
26 int nmod() const;
27 int nhit() const;
28 TH1* hptr(int) const;
29 const std::string& name() const;
30
31 private:
33 int m_bec;
35 int m_side;
36 int m_nmod;
37 int m_nhit;
38 std::string m_name;
39 std::vector<TH1*> m_histlist;
40};
41
42inline int SPLayer::incnmod() { return ++m_nmod; }
43inline int SPLayer::incnhit() { return ++m_nhit; }
44
45inline int SPLayer::dettype() const { return m_dettype; }
46inline int SPLayer::bec() const { return m_bec; }
47inline int SPLayer::layer() const { return m_layer; }
48inline int SPLayer::side() const { return m_side; }
49inline int SPLayer::nmod() const { return m_nmod; }
50inline int SPLayer::nhit() const { return m_nhit; }
51inline const std::string& SPLayer::name() const { return m_name; }
52inline TH1* SPLayer::hptr(int i) const { return m_histlist[i]; }
53
54#endif // INDETALIGNGENALGS_SPLAYER_H
55
56
int m_layer
Definition SPLayer.h:34
std::string m_name
Definition SPLayer.h:38
int nhit() const
Definition SPLayer.h:50
int m_side
Definition SPLayer.h:35
int dettype() const
Definition SPLayer.h:45
std::vector< TH1 * > m_histlist
Definition SPLayer.h:39
int m_nhit
Definition SPLayer.h:37
int m_bec
Definition SPLayer.h:33
SPLayer(const int, const int, const int, const int, const int, const int, const std::string &, const std::vector< TH1 * > &)
Definition SPLayer.cxx:12
int m_dettype
Definition SPLayer.h:32
int nmod() const
Definition SPLayer.h:49
int incnmod()
Definition SPLayer.h:42
int layer() const
Definition SPLayer.h:47
int bec() const
Definition SPLayer.h:46
TH1 * hptr(int) const
Definition SPLayer.h:52
int incnhit()
Definition SPLayer.h:43
int m_nmod
Definition SPLayer.h:36
int side() const
Definition SPLayer.h:48
const std::string & name() const
Definition SPLayer.h:51