#include <SiPhase2OuterTrackerLorentzAngle.h>
Public Member Functions | |
float | getLorentzAngle (const uint32_t &) const |
const std::unordered_map< unsigned int, float > & | getLorentzAngles () const |
void | getLorentzAngles_2S (const TrackerGeometry *geo, std::unordered_map< unsigned int, float > &out) const |
void | getLorentzAngles_PSP (const TrackerGeometry *geo, std::unordered_map< unsigned int, float > &out) const |
void | getLorentzAngles_PSS (const TrackerGeometry *geo, std::unordered_map< unsigned int, float > &out) const |
void | printDebug (std::stringstream &ss, const TrackerTopology *trackerTopo) const |
bool | putLorentzAngle (const uint32_t &, float) |
void | putLorentzAngles (std::unordered_map< unsigned int, float > &LA) |
SiPhase2OuterTrackerLorentzAngle () | |
~SiPhase2OuterTrackerLorentzAngle () | |
Private Member Functions | |
void | getLorentzAnglesByModuleType (const TrackerGeometry *trackerGeometry, const TrackerGeometry::ModuleType &theType, std::unordered_map< unsigned int, float > &out) const |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int version) |
Private Attributes | |
std::unordered_map< unsigned int, float > | m_LA |
Friends | |
class | boost::serialization::access |
template<typename CondSerializationT , typename Enabled > | |
struct | cond::serialization::access |
Stores the Lorentz Angle value for all DetIds. The values are saved internally in a std::unordered_map<detid, lorentzAngle>. It can be filled either by the complete map (putLorentzAngles) or passing a single detIds and lorentzAngles (putLorentzAngle). In the same way getLorentzAngles returns the complete map, while getLorentzAngle the value corresponding to a given DetId. The three methods getLorentzAngles_PSP, getLorentzAngles_PSS and getLorentzAngles_2S are provided to retrieve by reference the Lorentz Angle values map for the P- and S- sensors, in the PS modules separately, as well as the values for the S-senors in the 2S modules. The printDebug method prints LorentzAngles for all detIds.
Definition at line 26 of file SiPhase2OuterTrackerLorentzAngle.h.
|
inline |
Definition at line 28 of file SiPhase2OuterTrackerLorentzAngle.h.
|
inline |
Definition at line 29 of file SiPhase2OuterTrackerLorentzAngle.h.
float SiPhase2OuterTrackerLorentzAngle::getLorentzAngle | ( | const uint32_t & | detid | ) | const |
Definition at line 15 of file SiPhase2OuterTrackerLorentzAngle.cc.
References triggerObjects_cff::id, and m_LA.
Referenced by Phase2StripCPE::driftDirection(), and Phase2TrackerDigitizerAlgorithm::DriftDirection().
|
inline |
Definition at line 32 of file SiPhase2OuterTrackerLorentzAngle.h.
References m_LA.
Referenced by printDebug().
|
inline |
Definition at line 42 of file SiPhase2OuterTrackerLorentzAngle.h.
References getLorentzAnglesByModuleType(), MillePedeFileConverter_cfg::out, and TrackerGeometry::Ph2SS.
|
inline |
Definition at line 34 of file SiPhase2OuterTrackerLorentzAngle.h.
References getLorentzAnglesByModuleType(), MillePedeFileConverter_cfg::out, and TrackerGeometry::Ph2PSP.
|
inline |
Definition at line 38 of file SiPhase2OuterTrackerLorentzAngle.h.
References getLorentzAnglesByModuleType(), MillePedeFileConverter_cfg::out, and TrackerGeometry::Ph2PSS.
|
private |
Definition at line 25 of file SiPhase2OuterTrackerLorentzAngle.cc.
References TrackerGeometry::getDetectorType(), m_LA, and MillePedeFileConverter_cfg::out.
Referenced by getLorentzAngles_2S(), getLorentzAngles_PSP(), and getLorentzAngles_PSS().
void SiPhase2OuterTrackerLorentzAngle::printDebug | ( | std::stringstream & | ss, |
const TrackerTopology * | trackerTopo | ||
) | const |
Definition at line 35 of file SiPhase2OuterTrackerLorentzAngle.cc.
References getLorentzAngles(), and contentValuesCheck::ss.
bool SiPhase2OuterTrackerLorentzAngle::putLorentzAngle | ( | const uint32_t & | detid, |
float | value | ||
) |
Definition at line 4 of file SiPhase2OuterTrackerLorentzAngle.cc.
References m_LA, and relativeConstraints::value.
|
inline |
|
private |
|
friend |
Definition at line 59 of file SiPhase2OuterTrackerLorentzAngle.h.
|
friend |
Definition at line 59 of file SiPhase2OuterTrackerLorentzAngle.h.
|
private |
Definition at line 57 of file SiPhase2OuterTrackerLorentzAngle.h.
Referenced by getLorentzAngle(), getLorentzAngles(), getLorentzAnglesByModuleType(), putLorentzAngle(), and putLorentzAngles().