ATLAS Offline Software
MuonSpectrometer
MuonDigitization
MM_Digitization
MM_Digitization
MM_DigitToolInput.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef MM_DIGITIZATION_MM_DIGITTOOLINPUT_H
6
#define MM_DIGITIZATION_MM_DIGITTOOLINPUT_H
7
#include "
GeoPrimitives/GeoPrimitives.h
"
8
#include "Identifier/Identifier.h"
9
/*-----------------------------------------------
10
11
Created March 2013 by Nektarios Chr. Benekos
12
Karakostas Konstantinos <Konstantinos.Karakostas@cern.ch>
13
14
Class to store input needed for the MM_Digitization tools:
15
- G4 driftradius
16
- position along tube
17
- magnetic field strength at hit position
18
- local temperature
19
- electric charge
20
- gamma factor
21
- hit Identifier
22
23
-----------------------------------------------*/
24
/*******************************************************************************/
25
class
MM_DigitToolInput
{
26
public
:
27
MM_DigitToolInput
(
int
stripIdLocal,
double
posx,
double
incomingAngleXZ
,
double
incomingAngleYZ
,
const
Amg::Vector3D
&
magneticField
,
28
int
stripMinId,
int
stripMaxId,
int
gasgap
,
float
eventTime
)
29
30
:
31
m_stripIDLocal
(stripIdLocal),
32
m_xpos
(posx),
33
m_incomingAngleXZ
(
incomingAngleXZ
),
34
m_incomingAngleYZ
(
incomingAngleYZ
),
35
m_magneticField
(
magneticField
),
36
m_stripMinId
(stripMinId),
37
m_stripMaxId
(stripMaxId),
38
m_gasgap
(
gasgap
),
39
m_eventTime
(
eventTime
) {}
40
41
~MM_DigitToolInput
() =
default
;
42
int
stripIDLocal
()
const
{
return
m_stripIDLocal
; }
43
double
positionWithinStrip
()
const
{
return
m_xpos
; }
44
double
incomingAngleXZ
()
const
{
return
m_incomingAngleXZ
; }
45
double
incomingAngleYZ
()
const
{
return
m_incomingAngleYZ
; }
46
const
Amg::Vector3D
&
magneticField
()
const
{
return
m_magneticField
; }
// kT unit, local cordinate
47
int
stripMinID
()
const
{
return
m_stripMinId
; }
48
int
stripMaxID
()
const
{
return
m_stripMaxId
; }
49
int
gasgap
()
const
{
return
m_gasgap
; }
50
Identifier
getHitID
()
const
{
return
m_hitID
; }
51
float
eventTime
()
const
{
return
m_eventTime
; }
52
53
private
:
54
int
m_stripIDLocal
{0};
55
double
m_xpos
{0.};
56
double
m_incomingAngleXZ
{0.};
57
double
m_incomingAngleYZ
{0.};
58
Amg::Vector3D
m_magneticField
{
Amg::Vector3D::Zero
()};
59
int
m_stripMinId
{0};
60
int
m_stripMaxId
{0};
61
int
m_gasgap
{0};
62
Identifier
m_hitID
{0};
63
float
m_eventTime
{0.f};
64
};
65
/*******************************************************************************/
66
#endif
MM_DigitToolInput::m_incomingAngleYZ
double m_incomingAngleYZ
Definition:
MM_DigitToolInput.h:57
MM_DigitToolInput::stripMaxID
int stripMaxID() const
Definition:
MM_DigitToolInput.h:48
MM_DigitToolInput::MM_DigitToolInput
MM_DigitToolInput(int stripIdLocal, double posx, double incomingAngleXZ, double incomingAngleYZ, const Amg::Vector3D &magneticField, int stripMinId, int stripMaxId, int gasgap, float eventTime)
Definition:
MM_DigitToolInput.h:27
MM_DigitToolInput::stripMinID
int stripMinID() const
Definition:
MM_DigitToolInput.h:47
MM_DigitToolInput
Definition:
MM_DigitToolInput.h:25
MM_DigitToolInput::~MM_DigitToolInput
~MM_DigitToolInput()=default
MM_DigitToolInput::getHitID
Identifier getHitID() const
Definition:
MM_DigitToolInput.h:50
MM_DigitToolInput::eventTime
float eventTime() const
Definition:
MM_DigitToolInput.h:51
MM_DigitToolInput::magneticField
const Amg::Vector3D & magneticField() const
Definition:
MM_DigitToolInput.h:46
GeoPrimitives.h
MM_DigitToolInput::gasgap
int gasgap() const
Definition:
MM_DigitToolInput.h:49
MM_DigitToolInput::m_stripMaxId
int m_stripMaxId
Definition:
MM_DigitToolInput.h:60
MM_DigitToolInput::m_stripIDLocal
int m_stripIDLocal
Definition:
MM_DigitToolInput.h:54
MM_DigitToolInput::incomingAngleYZ
double incomingAngleYZ() const
Definition:
MM_DigitToolInput.h:45
MM_DigitToolInput::incomingAngleXZ
double incomingAngleXZ() const
Definition:
MM_DigitToolInput.h:44
MM_DigitToolInput::m_incomingAngleXZ
double m_incomingAngleXZ
Definition:
MM_DigitToolInput.h:56
MM_DigitToolInput::m_gasgap
int m_gasgap
Definition:
MM_DigitToolInput.h:61
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition:
GeoPrimitives.h:47
MM_DigitToolInput::m_magneticField
Amg::Vector3D m_magneticField
Definition:
MM_DigitToolInput.h:58
MM_DigitToolInput::stripIDLocal
int stripIDLocal() const
Definition:
MM_DigitToolInput.h:42
MM_DigitToolInput::positionWithinStrip
double positionWithinStrip() const
Definition:
MM_DigitToolInput.h:43
MM_DigitToolInput::m_hitID
Identifier m_hitID
Definition:
MM_DigitToolInput.h:62
MM_DigitToolInput::m_xpos
double m_xpos
Definition:
MM_DigitToolInput.h:55
MM_DigitToolInput::m_eventTime
float m_eventTime
Definition:
MM_DigitToolInput.h:63
MM_DigitToolInput::m_stripMinId
int m_stripMinId
Definition:
MM_DigitToolInput.h:59
generate::Zero
void Zero(TH1D *hin)
Definition:
generate.cxx:32
Identifier
Definition:
IdentifierFieldParser.cxx:14
Generated on Sun Dec 22 2024 21:14:35 for ATLAS Offline Software by
1.8.18