CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
DetectorTools Class Reference

Public Member Functions

 DetectorTools (const HGCalDDDConstants &hgcons, const CaloGeometry &geom, const MagneticField &bfieldH, const Propagator &propH)
 

Public Attributes

const MagneticFieldbfield
 
std::unique_ptr< GeomDetfirstDisk_ [2]
 
const HGCalDDDConstantshgcons
 
std::unique_ptr< GeomDetinterfaceDisk_ [2]
 
const Propagatorpropagator
 
hgcal::RecHitTools rhtools
 

Detailed Description

Definition at line 65 of file TICLDumper.cc.

Constructor & Destructor Documentation

◆ DetectorTools()

DetectorTools::DetectorTools ( const HGCalDDDConstants hgcons,
const CaloGeometry geom,
const MagneticField bfieldH,
const Propagator propH 
)
inline

Definition at line 67 of file TICLDumper.cc.

References Disk::build(), firstDisk_, relativeConstraints::geom, hgcal::RecHitTools::getPositionLayer(), hgcons, interfaceDisk_, hgcal::RecHitTools::lastLayerEE(), HGCalDDDConstants::rangeR(), rhtools, hgcal::RecHitTools::setGeometry(), HGCalDDDConstants::waferZ(), and z.

71  : hgcons(hgcons), rhtools(), bfield(bfieldH), propagator(propH) {
73 
74  // build disks at HGCal front & EM-Had interface for track propagation
75  float zVal = hgcons.waferZ(1, true);
76  std::pair<float, float> rMinMax = hgcons.rangeR(zVal, true);
77 
78  float zVal_interface = rhtools.getPositionLayer(rhtools.lastLayerEE()).z();
79  std::pair<float, float> rMinMax_interface = hgcons.rangeR(zVal_interface, true);
80 
81  for (int iSide = 0; iSide < 2; ++iSide) {
82  float zSide = (iSide == 0) ? (-1. * zVal) : zVal;
83  firstDisk_[iSide] = std::make_unique<GeomDet>(
84  Disk::build(Disk::PositionType(0, 0, zSide),
86  SimpleDiskBounds(rMinMax.first, rMinMax.second, zSide - 0.5, zSide + 0.5))
87  .get());
88 
89  zSide = (iSide == 0) ? (-1. * zVal_interface) : zVal_interface;
90  interfaceDisk_[iSide] = std::make_unique<GeomDet>(
91  Disk::build(Disk::PositionType(0, 0, zSide),
93  SimpleDiskBounds(rMinMax_interface.first, rMinMax_interface.second, zSide - 0.5, zSide + 0.5))
94  .get());
95  }
96  }
double waferZ(int layer, bool reco) const
static DiskPointer build(Args &&... args)
Definition: BoundDisk.h:38
const Propagator & propagator
Definition: TICLDumper.cc:103
hgcal::RecHitTools rhtools
Definition: TICLDumper.cc:101
std::pair< double, double > rangeR(double z, bool reco) const
std::unique_ptr< GeomDet > interfaceDisk_[2]
Definition: TICLDumper.cc:100
GlobalPoint getPositionLayer(int layer, bool nose=false) const
Definition: RecHitTools.cc:152
std::unique_ptr< GeomDet > firstDisk_[2]
Definition: TICLDumper.cc:99
void setGeometry(CaloGeometry const &)
Definition: RecHitTools.cc:79
const MagneticField & bfield
Definition: TICLDumper.cc:102
const HGCalDDDConstants & hgcons
Definition: TICLDumper.cc:98
unsigned int lastLayerEE(bool nose=false) const
Definition: RecHitTools.h:76

Member Data Documentation

◆ bfield

const MagneticField& DetectorTools::bfield

Definition at line 102 of file TICLDumper.cc.

Referenced by TracksterDumperHelper::fillFromEvent().

◆ firstDisk_

std::unique_ptr<GeomDet> DetectorTools::firstDisk_[2]

Definition at line 99 of file TICLDumper.cc.

Referenced by DetectorTools(), and TracksterDumperHelper::fillFromEvent().

◆ hgcons

const HGCalDDDConstants& DetectorTools::hgcons

Definition at line 98 of file TICLDumper.cc.

Referenced by DetectorTools().

◆ interfaceDisk_

std::unique_ptr<GeomDet> DetectorTools::interfaceDisk_[2]

Definition at line 100 of file TICLDumper.cc.

Referenced by DetectorTools().

◆ propagator

const Propagator& DetectorTools::propagator

Definition at line 103 of file TICLDumper.cc.

Referenced by TracksterDumperHelper::fillFromEvent().

◆ rhtools

hgcal::RecHitTools DetectorTools::rhtools

Definition at line 101 of file TICLDumper.cc.

Referenced by DetectorTools().