#include <CSCHitsTestTool.h>
Definition at line 12 of file CSCHitsTestTool.h.
◆ CSCHitsTestTool()
| CSCHitsTestTool::CSCHitsTestTool |
( |
const std::string & | type, |
|
|
const std::string & | name, |
|
|
const IInterface * | parent ) |
|
inline |
◆ checkIdentifier()
| StatusCode CSCHitsTestTool::checkIdentifier |
( |
Identifier | offid | ) |
|
|
protected |
Definition at line 48 of file CSCHitsTestTool.cxx.
48 {
49 const MuonGM::CscReadoutElement* descriptor =
m_pMuonMgr->getCscReadoutElement(offid);
50 if (!descriptor) {
52 return StatusCode::FAILURE;
53 }
54
55
57 double csc_strip_phi = csc_gPos.phi();
58 if (csc_strip_phi < 0.) csc_strip_phi += 2.*
M_PI;
59 double csc_strip_perp __attribute ((
unused)) = csc_gPos.perp();
60 double csc_strip_z __attribute ((
unused)) = csc_gPos.z();
61 double csc_strip_cot __attribute ((
unused)) = 1./
tan(csc_gPos.theta());
62
63 return StatusCode::SUCCESS;
64}
Amg::Vector3D stripPos(const Identifier &id) const
takes into account internal alignment parameters, hence gives accurate answer
Eigen::Matrix< double, 3, 1 > Vector3D
◆ executeCheckEventInfo()
| StatusCode MuonHitTestToolBase::executeCheckEventInfo |
( |
| ) |
|
|
protectedinherited |
Definition at line 35 of file MuonHitTestToolBase.cxx.
36{
37 SG::ReadHandle<xAOD::EventInfo> eventInfo (
m_eventInfoKey,Gaudi::Hive::currentContext());
40 int numrun = eventInfo->runNumber();
41 ATH_MSG_VERBOSE(
"Processing EventInfo event #"<< evt<<
" run: " << numrun);
46
47
48 if (mcEvent->
size()!=1) {
50 return StatusCode::SUCCESS;
51 }
52
53
54
56 for (e=mcEvent->
begin();e!=mcEvent->
end(); ++e) {
57 for (auto p: (**e)) {
63 break;
64 }
65 }
66 }
67 return StatusCode::SUCCESS;
68}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_VERBOSE(x)
#define CHECK(...)
Evaluate an expression and check for errors.
DataModel_detail::const_iterator< DataVector > const_iterator
Standard const_iterator.
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
size_type size() const noexcept
Returns the number of elements in the collection.
bool is_simulation_particle(const T &p)
Method to establish if a particle (or barcode) was created during the simulation (TODO update to be s...
retrieve(aClass, aKey=None)
◆ executeFillHistos()
| StatusCode MuonHitTestToolBase::executeFillHistos |
( |
const Amg::Vector3D & | u | ) |
|
|
protectedinherited |
for MDTs that have barrel + endcap section, take only the barrel when plotting the xy-2d plot of the detector
Definition at line 70 of file MuonHitTestToolBase.cxx.
70 {
72
74
77 }
78
79 double rad=sqrt(
u.x()*
u.x()+
u.y()*
u.y());
82
83
84
85
86
87
88
89
90
91
95
98 }
99 else {
104 }
105
106 return StatusCode::SUCCESS;
107}
@ u
Enums for curvilinear frames.
◆ executeFillHistos_sTGc()
| StatusCode MuonHitTestToolBase::executeFillHistos_sTGc |
( |
const Amg::Vector3D & | , |
|
|
std::string | ) |
|
protectedinherited |
◆ executeFillHistosSectors_Wedge1()
| StatusCode MuonHitTestToolBase::executeFillHistosSectors_Wedge1 |
( |
const Amg::Vector3D & | , |
|
|
std::string | ) |
|
protectedinherited |
◆ executeFillHistosSectors_Wedge2()
| StatusCode MuonHitTestToolBase::executeFillHistosSectors_Wedge2 |
( |
const Amg::Vector3D & | , |
|
|
std::string | ) |
|
protectedinherited |
◆ getIdentifier()
Definition at line 22 of file CSCHitsTestTool.cxx.
22 {
24
25 const std::string & csc_stname = cschelper->
GetStationName(cschit);
30 int csc_measphi = 1;
31 int csc_strip = 1;
32
33
34
35
36
37 Identifier offid =
m_pCscIdHelper->channelID(csc_stname, csc_steta,
38 csc_stphi, csc_cl, csc_wl,
39 csc_measphi, csc_strip);
40 if (offid == 0) {
42 }
43
45 return offid;
46}
int GetWireLayer(const int &hid) const
int GetZSector(const int &hid) const
int GetPhiSector(const int &hid) const
std::string GetStationName(const int &hid) const
int GetChamberLayer(const int &hid) const
static const CscHitIdHelper * GetHelper()
◆ getPrimary()
Definition at line 20 of file SimTestToolBase.cxx.
21{
25 for (e=mcCollection->
begin();e!=mcCollection->
end(); ++e) {
26 for (auto p : (**e)) {
29 }
30 }
31 }
32 }
33 return 0;
34}
◆ initialize()
| StatusCode CSCHitsTestTool::initialize |
( |
| ) |
|
|
virtual |
◆ processEvent()
| StatusCode CSCHitsTestTool::processEvent |
( |
| ) |
|
Definition at line 66 of file CSCHitsTestTool.cxx.
66 {
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
89
91 if (evtStore()->
retrieve(p_collection,
"CSC_Hits") == StatusCode::SUCCESS) {
92 for (const CSCSimHit& hit : *p_collection) {
93
94
95
96 HitID cschit= hit.CSCid();
99
100
101
102
103 GeoCSCHit ghit(hit);
104 if (!ghit) continue;
107 }
108 }
109 }
110
111 return StatusCode::SUCCESS;
112}
AtlasHitsVector< CSCSimHit > CSCSimHitCollection
◆ m_BarrelEtaCut
| double MuonHitTestToolBase::m_BarrelEtaCut |
|
protectedinherited |
MDT barrel eta cut, applicable to the MDT 2D cross section plot.
Definition at line 44 of file MuonHitTestToolBase.h.
◆ m_detBarrel
| TH2* MuonHitTestToolBase::m_detBarrel |
|
protectedinherited |
◆ m_detname
| std::string MuonHitTestToolBase::m_detname |
|
protectedinherited |
◆ m_direction
◆ m_DoCSCTest
| bool CSCHitsTestTool::m_DoCSCTest |
|
private |
◆ m_eta
| TH1* MuonHitTestToolBase::m_eta |
|
protectedinherited |
◆ m_eventInfoKey
◆ m_histSvc
| ServiceHandle<ITHistSvc> SimTestHisto::m_histSvc {"THistSvc", "SimTestHisto"} |
|
protectedinherited |
◆ m_key
| std::string SimTestToolBase::m_key |
|
protectedinherited |
◆ m_longView
| TH2 * MuonHitTestToolBase::m_longView |
|
protectedinherited |
◆ m_muondetBarrel
| TH2* MuonHitTestToolBase::m_muondetBarrel |
|
protectedinherited |
◆ m_muoneta
| TH1* MuonHitTestToolBase::m_muoneta |
|
protectedinherited |
◆ m_muonevnt
| TH1* MuonHitTestToolBase::m_muonevnt |
|
protectedinherited |
◆ m_muonlongView
| TH2 * MuonHitTestToolBase::m_muonlongView |
|
protectedinherited |
◆ m_muonphi
| TH1 * MuonHitTestToolBase::m_muonphi |
|
protectedinherited |
◆ m_muonphiResid
| TH1 * MuonHitTestToolBase::m_muonphiResid |
|
protectedinherited |
◆ m_muonrun
| TH1 * MuonHitTestToolBase::m_muonrun |
|
protectedinherited |
◆ m_muontheta
| TH1 * MuonHitTestToolBase::m_muontheta |
|
protectedinherited |
◆ m_muonzResid
| TH1* MuonHitTestToolBase::m_muonzResid |
|
protectedinherited |
◆ m_path
| std::string SimTestHisto::m_path {"/truth/"} |
|
protectedinherited |
◆ m_pCscIdHelper
◆ m_phi
| TH1 * MuonHitTestToolBase::m_phi |
|
protectedinherited |
◆ m_phiResid
| TH1 * MuonHitTestToolBase::m_phiResid |
|
protectedinherited |
◆ m_pMuonMgr
◆ m_theta
| TH1 * MuonHitTestToolBase::m_theta |
|
protectedinherited |
◆ m_zResid
| TH1* MuonHitTestToolBase::m_zResid |
|
protectedinherited |
The documentation for this class was generated from the following files: