ATLAS Offline Software
Loading...
Searching...
No Matches
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
8#include "Identifier/Identifier.h"
9/*-----------------------------------------------
10
11Created March 2013 by Nektarios Chr. Benekos
12 Karakostas Konstantinos <Konstantinos.Karakostas@cern.ch>
13
14Class 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/*******************************************************************************/
26public:
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),
36 m_stripMinId(stripMinId),
37 m_stripMaxId(stripMaxId),
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
53private:
55 double m_xpos{0.};
58 Amg::Vector3D m_magneticField{Amg::Vector3D::Zero()};
61 int m_gasgap{0};
63 float m_eventTime{0.f};
64};
65/*******************************************************************************/
66#endif
Amg::Vector3D m_magneticField
double incomingAngleXZ() const
Identifier getHitID() const
float eventTime() const
double positionWithinStrip() const
const Amg::Vector3D & magneticField() const
double incomingAngleYZ() const
MM_DigitToolInput(int stripIdLocal, double posx, double incomingAngleXZ, double incomingAngleYZ, const Amg::Vector3D &magneticField, int stripMinId, int stripMaxId, int gasgap, float eventTime)
~MM_DigitToolInput()=default
Eigen::Matrix< double, 3, 1 > Vector3D