ATLAS Offline Software
Loading...
Searching...
No Matches
MM_DigitToolOutput.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef MM_DIGITIZATION_MM_DIGITTOOLOUTPUT_H
6#define MM_DIGITIZATION_MM_DIGITTOOLOUTPUT_H
7
8/*-----------------------------------------------
9
10Created March 2013 by Nektarios Chr. Benekos
11 Karakostas Konstantinos <Konstantinos.Karakostas@cern.ch>
12
13Class to store output produced by MDT_Digitization tools:
14- was hit efficient
15- strip position
16- strip charge
17- strip time
18- first strip position [for Trigger study]
19- first strip time [for Trigger study]
20
21-----------------------------------------------*/
22
23#include <vector>
24
26public:
27 MM_DigitToolOutput(bool hitWasEff, const std::vector<int>& strpos, const std::vector<float>& time, const std::vector<float>& charge,
28 int strTrig, float strTimeTrig) :
29 m_hitWasEff(hitWasEff),
30 m_strpos(strpos),
31 m_time(time),
33 m_stripForTrigger(strTrig),
34 m_stripTimeForTrigger(strTimeTrig)
35
36 {
37 m_isValid = !(m_strpos.empty() || m_time.empty() || m_charge.empty());
38 }
39
41
42 bool hitWasEfficient() const { return m_hitWasEff; }
43 const std::vector<int>& stripPos() const { return m_strpos; }
44 const std::vector<float>& stripTime() const { return m_time; }
45 const std::vector<float>& stripCharge() const { return m_charge; }
46 bool isValid() const { return m_isValid; }
47
48 int stripForTrigger() const { return m_stripForTrigger; }
50 void setStripForTrigger(int val) { m_stripForTrigger = val; }
52
53private:
54 bool m_hitWasEff{false};
55 std::vector<int> m_strpos{};
56 std::vector<float> m_time{};
57 std::vector<float> m_charge{};
60 bool m_isValid{false};
61};
62
63#endif
double charge(const T &p)
Definition AtlasPID.h:997
std::vector< float > m_time
bool hitWasEfficient() const
const std::vector< float > & stripCharge() const
std::vector< float > m_charge
std::vector< int > m_strpos
const std::vector< float > & stripTime() const
~MM_DigitToolOutput()=default
void setStripForTrigger(int val)
const std::vector< int > & stripPos() const
MM_DigitToolOutput(bool hitWasEff, const std::vector< int > &strpos, const std::vector< float > &time, const std::vector< float > &charge, int strTrig, float strTimeTrig)
float stripTimeForTrigger() const
void setStripTimeForTrigger(float val)