CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SiPhase2OuterTrackerLorentzAngle.h
Go to the documentation of this file.
1 #ifndef CondCore_SiPhase2TrackerObjects_SiPhase2OuterTrackerLorentzAngle_h
2 #define CondCore_SiPhase2TrackerObjects_SiPhase2OuterTrackerLorentzAngle_h
3 
7 
8 #include <vector>
9 #include <map>
10 #include <iostream>
11 #include <cstdint>
12 
27 public:
30 
31  inline void putLorentzAngles(std::unordered_map<unsigned int, float>& LA) { m_LA = LA; }
32  inline const std::unordered_map<unsigned int, float>& getLorentzAngles() const { return m_LA; }
33 
34  void getLorentzAngles_PSP(const TrackerGeometry* geo, std::unordered_map<unsigned int, float>& out) const {
36  }
37 
38  void getLorentzAngles_PSS(const TrackerGeometry* geo, std::unordered_map<unsigned int, float>& out) const {
40  }
41 
42  void getLorentzAngles_2S(const TrackerGeometry* geo, std::unordered_map<unsigned int, float>& out) const {
44  }
45 
46  bool putLorentzAngle(const uint32_t&, float);
47  float getLorentzAngle(const uint32_t&) const;
48 
49  // Prints LorentzAngles for all detIds.
50  void printDebug(std::stringstream& ss, const TrackerTopology* trackerTopo) const;
51 
52 private:
53  void getLorentzAnglesByModuleType(const TrackerGeometry* trackerGeometry,
54  const TrackerGeometry::ModuleType& theType,
55  std::unordered_map<unsigned int, float>& out) const;
56 
57  std::unordered_map<unsigned int, float> m_LA;
58 
60 };
61 
62 #endif
const std::unordered_map< unsigned int, float > & getLorentzAngles() const
void getLorentzAnglesByModuleType(const TrackerGeometry *trackerGeometry, const TrackerGeometry::ModuleType &theType, std::unordered_map< unsigned int, float > &out) const
void getLorentzAngles_PSP(const TrackerGeometry *geo, std::unordered_map< unsigned int, float > &out) const
void printDebug(std::stringstream &ss, const TrackerTopology *trackerTopo) const
void getLorentzAngles_PSS(const TrackerGeometry *geo, std::unordered_map< unsigned int, float > &out) const
void putLorentzAngles(std::unordered_map< unsigned int, float > &LA)
void getLorentzAngles_2S(const TrackerGeometry *geo, std::unordered_map< unsigned int, float > &out) const
#define COND_SERIALIZABLE
Definition: Serializable.h:39
std::unordered_map< unsigned int, float > m_LA
float getLorentzAngle(const uint32_t &) const