CMS 3D CMS Logo

RPDisplacementGenerator.h
Go to the documentation of this file.
1 #ifndef SimPPS_RPDigiProducer_RP_DISPLACEMENT_GENERATOR_H
2 #define SimPPS_RPDigiProducer_RP_DISPLACEMENT_GENERATOR_H
3 
6 #include <Math/Rotation3D.h>
7 #include <map>
8 
9 class PSimHit;
10 
21 class CTPPSGeometry;
22 
24 public:
25  using RotationMatrix = ROOT::Math::Rotation3D;
26  using Translation = ROOT::Math::DisplacementVector3D<ROOT::Math::Cartesian3D<double>>;
27 
28  RPDisplacementGenerator(bool iIsOn,
29  RPDetId,
30  const CTPPSRPAlignmentCorrectionsData* alignments,
31  const CTPPSGeometry& geom);
32 
34  PSimHit displace(const PSimHit&);
35 
36  static uint32_t rawToDecId(uint32_t raw);
37 
38 private:
41 
45 
47  bool isOn_;
48 
51 };
52 
53 #endif
RPDetId detId_
ID of the detector.
static uint32_t rawToDecId(uint32_t raw)
Translation shift_
displacement
bool isOn_
set to false to bypass displacements
ROOT::Math::Rotation3D RotationMatrix
uint32_t RPDetId
Definition: RPSimTypes.h:12
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > Translation
The manager class for TOTEM RP geometry.
Definition: CTPPSGeometry.h:30
PSimHit displace(const PSimHit &)
returns displaced PSimHit
Container for CTPPS RP alignment corrections. The corrections are stored on two levels - RP and senso...
RPDisplacementGenerator(bool iIsOn, RPDetId, const CTPPSRPAlignmentCorrectionsData *alignments, const CTPPSGeometry &geom)
Local3DPoint displacePoint(const Local3DPoint &)
displaces a point