|
ATLAS Offline Software
|
#include <TGCHitsTestTool.h>
Definition at line 15 of file TGCHitsTestTool.h.
◆ TGCHitsTestTool()
TGCHitsTestTool::TGCHitsTestTool |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
|
inline |
◆ checkIdentifier()
StatusCode TGCHitsTestTool::checkIdentifier |
( |
Identifier |
offid | ) |
|
|
protected |
Definition at line 45 of file TGCHitsTestTool.cxx.
49 return StatusCode::FAILURE;
54 double tgc_strip_phi = tgc_gPos.phi();
55 if (tgc_strip_phi < 0.) tgc_strip_phi += 2.*
M_PI;
62 return StatusCode::SUCCESS;
◆ executeCheckEventInfo()
StatusCode MuonHitTestToolBase::executeCheckEventInfo |
( |
| ) |
|
|
protectedinherited |
Definition at line 35 of file MuonHitTestToolBase.cxx.
40 int numrun = eventInfo->runNumber();
48 if (mcEvent->
size()!=1) {
50 return StatusCode::SUCCESS;
67 return StatusCode::SUCCESS;
◆ executeFillHistos()
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.
79 double rad=sqrt(
u.x()*
u.x()+
u.y()*
u.y());
106 return StatusCode::SUCCESS;
◆ 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()
Create the offline identifiers, fill them with hit info.Ready to be accessed and retrieve info. Currently not used in this code except for some checks.
Definition at line 23 of file TGCHitsTestTool.cxx.
◆ getPrimary()
◆ initialize()
StatusCode TGCHitsTestTool::initialize |
( |
| ) |
|
|
virtual |
◆ processEvent()
StatusCode TGCHitsTestTool::processEvent |
( |
| ) |
|
Get the generic MuonSpectrometer (MDT,RPC,CSC,TGC) histograms Short description: MuonSpectrometer cross section MuonSpectrometer longitudinal Number of events processed from truth Event specific run number Eta, Theta, Phi, z residual (...), phi residual (...) of hits in MuonSpectrometer
Check the Hits identifiers, access the functions that give: Station name, station eta, station phi, doublet Z, doublet phi, doublet R, GasGap, Measures Phi. The values of these variables are written out to the AANtuple (variable content and range explained in the code section where AANTuple variables are registered)
For every hit within the event, get the global position Amg::Vector3D u and then retrieve all releveant info either from the Amg::Vector3D or from the MC vector (direction)
Definition at line 66 of file TGCHitsTestTool.cxx.
90 if (evtStore()->
retrieve(p_collection,
"TGC_Hits") == StatusCode::SUCCESS) {
91 for (
const TGCSimHit& hit : *p_collection) {
113 return StatusCode::SUCCESS;
◆ 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_DoTGCTest
bool TGCHitsTestTool::m_DoTGCTest |
|
private |
◆ m_eta
TH1* MuonHitTestToolBase::m_eta |
|
protectedinherited |
◆ m_eventInfoKey
◆ m_histSvc
◆ 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_phi
TH1 * MuonHitTestToolBase::m_phi |
|
protectedinherited |
◆ m_phiResid
TH1 * MuonHitTestToolBase::m_phiResid |
|
protectedinherited |
◆ m_pMuonMgr
◆ m_pTgcIdHelper
◆ 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:
def retrieve(aClass, aKey=None)
int GetGasGap(const int &hid) const
#define ATH_MSG_VERBOSE(x)
@ u
Enums for curvilinear frames.
Amg::Vector3D channelPos(const Identifier &id) const
Returns the position of the active channel (wireGang or strip)
const TgcReadoutElement * getTgcReadoutElement(const Identifier &id) const
access via extended identifier (requires unpacking)
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...
std::string GetStationName(const int &hid) const
A TgcReadoutElement corresponds to a single TGC chamber; therefore typically a TGC station contains s...
#define CHECK(...)
Evaluate an expression and check for errors.
static const TgcHitIdHelper * GetHelper()
This defines the McEventCollection, which is really just an ObjectVector of McEvent objects.
int GetStationPhi(const int &hid) const
const TgcIdHelper * tgcIdHelper() const
Eigen::Matrix< double, 3, 1 > Vector3D
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
std::string show_to_string(Identifier id, const IdContext *context=0, char sep='.') const
or provide the printout in string form
int GetStationEta(const int &hid) const
Identifier channelID(int stationName, int stationEta, int stationPhi, int gasGap, int isStrip, int channel) const
size_type size() const noexcept
Returns the number of elements in the collection.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.