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 namespace edm {
10  class ParameterSet;
11  class EventSetup;
12 } // namespace edm
13 
14 class PSimHit;
15 
27 public:
28  using RotationMatrix = ROOT::Math::Rotation3D;
29  using Translation = ROOT::Math::DisplacementVector3D<ROOT::Math::Cartesian3D<double>>;
30 
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
RPDisplacementGenerator::displacePoint
Local3DPoint displacePoint(const Local3DPoint &)
displaces a point
Definition: RPDisplacementGenerator.cc:60
edm
HLT enums.
Definition: AlignableModifier.h:19
RPDisplacementGenerator::rawToDecId
static uint32_t rawToDecId(uint32_t raw)
Definition: RPDisplacementGenerator.cc:92
RPDisplacementGenerator::RotationMatrix
ROOT::Math::Rotation3D RotationMatrix
Definition: RPDisplacementGenerator.h:28
RPDisplacementGenerator::rotation_
RotationMatrix rotation_
Definition: RPDisplacementGenerator.h:44
RPDisplacementGenerator::detId_
RPDetId detId_
ID of the detector.
Definition: RPDisplacementGenerator.h:40
Point3DBase< float, LocalTag >
RPDisplacementGenerator::isOn_
bool isOn_
set to false to bypass displacements
Definition: RPDisplacementGenerator.h:47
RPDisplacementGenerator::shift_
Translation shift_
displacement
Definition: RPDisplacementGenerator.h:43
edm::ParameterSet
Definition: ParameterSet.h:47
ParameterSet
Definition: Functions.h:16
edm::EventSetup
Definition: EventSetup.h:57
RPDisplacementGenerator::Translation
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > Translation
Definition: RPDisplacementGenerator.h:29
RPDisplacementGenerator
This class introduces displacements of RP. It actually shifts and rotates PSimHit positions....
Definition: RPDisplacementGenerator.h:26
RPDetId
uint32_t RPDetId
Definition: RPSimTypes.h:11
RPSimTypes.h
RPDisplacementGenerator::RPDisplacementGenerator
RPDisplacementGenerator(const edm::ParameterSet &, RPDetId, const edm::EventSetup &)
Definition: RPDisplacementGenerator.cc:19
RPDisplacementGenerator::displace
PSimHit displace(const PSimHit &)
returns displaced PSimHit
Definition: RPDisplacementGenerator.cc:69
TotemRPDetId.h
EventSetup
PSimHit
Definition: PSimHit.h:15