ATLAS Offline Software
CutOutArea.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 #ifndef MUONREADOUTGEOMETRYR4_CUTOUTAREA_H
5 #define MUONREADOUTGEOMETRYR4_CUTOUTAREA_H
8 
9 namespace MuonGMR4{
11  struct CutOutArea{
15  double halfLengthX{0.};
17  double lengthY{0.};
20  Amg::Vector3D inclanation{Amg::Vector3D::UnitZ()};
21 
22  };
23  inline std::ostream& operator<<(std::ostream& ostr, const CutOutArea& cut){
24  ostr<<"Cut center "<<Amg::toString(cut.origin,1)<<", half X: "<<cut.halfLengthX<<", half Y "<<cut.lengthY;
25  ostr<<", min X: "<<(cut.origin.x() - cut.halfLengthX)<<", max X: "<<(cut.origin.x() + cut.halfLengthX);
26  ostr<<", min Y: "<<(cut.origin.y() - cut.lengthY)<<", max Y: "<<(cut.origin.y() + cut.lengthY);
27  return ostr;
28  }
29 
30 
31 }
32 
33 #endif
MuonGMR4::CutOutArea
Helper struct to parse the information from the AMDB cutout tables.
Definition: CutOutArea.h:11
MuonGMR4::CutOutArea::lengthY
double lengthY
Half length along the Y axis.
Definition: CutOutArea.h:17
Amg::toString
std::string toString(const Translation3D &translation, int precision=4)
GeoPrimitvesToStringConverter.
Definition: GeoPrimitivesToStringConverter.h:40
MuonGMR4
A muon chamber is a collection of readout elements belonging to the same station.
Definition: ChamberAssembleTool.h:16
EventPrimitivesToStringConverter.h
BindingsTest.cut
cut
This script demonstrates how to call a C++ class from Python Also how to use PyROOT is shown.
Definition: BindingsTest.py:13
MuonGMR4::CutOutArea::origin
Amg::Vector3D origin
Center of the cutout to be applied.
Definition: CutOutArea.h:13
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
MuonDetectorDefs.h
MuonGMR4::operator<<
std::ostream & operator<<(std::ostream &ostr, const CutOutArea &cut)
Definition: CutOutArea.h:23
MuonGMR4::CutOutArea::inclanation
Amg::Vector3D inclanation
The cutout may have an inclanation angle w.r.t to the plane.
Definition: CutOutArea.h:20
generate::Zero
void Zero(TH1D *hin)
Definition: generate.cxx:32
MuonGMR4::CutOutArea::halfLengthX
double halfLengthX
Half length a long the X axis.
Definition: CutOutArea.h:15