|
|
Go to the documentation of this file. 1 #ifndef GEMCSCSegment_GEMCSCSegFit_h
2 #define GEMCSCSegment_GEMCSCSegFit_h
41 #include <Math/Functions.h>
42 #include <Math/SVector.h>
43 #include <Math/SMatrix.h>
52 typedef ROOT::Math::SMatrix<double, 16, 16, ROOT::Math::MatRepSym<double, 16> >
SMatrixSym16;
58 typedef ROOT::Math::SMatrix<double, 4>
SMatrix4;
59 typedef ROOT::Math::SMatrix<double, 4, 4, ROOT::Math::MatRepSym<double, 4> >
SMatrixSym4;
62 typedef ROOT::Math::SMatrix<double, 2, 2, ROOT::Math::MatRepSym<double, 2> >
SMatrixSym2;
65 typedef ROOT::Math::SVector<double, 4>
SVector4;
71 std::map<uint32_t, const GEMEtaPartition*> gemrollmap,
72 const std::vector<const TrackingRecHit*>
hits)
80 edm::LogVerbatim(
"GEMCSCSegFit") <<
"[GEMCSCSegFit::ctor] cached the csclayermap and the gemrollmap";
83 std::stringstream csclayermapss;
84 csclayermapss <<
"[GEMCSCSegFit::ctor] :: csclayermap :: elements [" << std::endl;
87 csclayermapss <<
"[CSC DetId " << mapIt->first <<
" =" <<
CSCDetId(mapIt->first) <<
", CSC Layer "
88 << mapIt->second <<
" =" << (mapIt->second)->
id() <<
"]," << std::endl;
90 csclayermapss <<
"]" << std::endl;
96 std::stringstream gemetapartmapss;
97 gemetapartmapss <<
"[GEMCSCSegFit::ctor] :: gemetapartmap :: elements [" << std::endl;
98 for (std::map<uint32_t, const GEMEtaPartition*>::const_iterator mapIt =
gemetapartmap_.begin();
101 gemetapartmapss <<
"[GEM DetId " << mapIt->first <<
" =" <<
GEMDetId(mapIt->first) <<
", GEM EtaPart "
102 << mapIt->second <<
"]," << std::endl;
104 gemetapartmapss <<
"]" << std::endl;
105 std::string gemetapartmapstr = gemetapartmapss.str();
122 float xfit(
float z)
const;
123 float yfit(
float z)
const;
126 float xdev(
float x,
float z)
const;
127 float ydev(
float y,
float z)
const;
128 float Rdev(
float x,
float y,
float z)
const;
131 std::vector<const TrackingRecHit*>
hits(
void)
const {
return hits_; }
142 throw cms::Exception(
"InvalidDetId") <<
"[GEMCSCSegFit] Failed to find CSCChamber in CSCLayerMap" << std::endl;
150 throw cms::Exception(
"InvalidDetId") <<
"[GEMCSCSegFit] Failed to find CSCLayer in CSCLayerMap" << std::endl;
158 <<
"[GEMCSCSegFit] Failed to find GEMEtaPartition in GEMEtaPartMap" << std::endl;
166 <<
"[GEMCSCSegFit] Failed to find Reference CSCChamber in CSCLayerMap" << std::endl;
196 std::vector<const TrackingRecHit*>
hits_;
const CSCChamber * refcscchamber() const
ROOT::Math::SMatrix< double, 16, 16, ROOT::Math::MatRepSym< double, 16 > > SMatrixSym16
std::map< uint32_t, const CSCLayer * > csclayermap_
ROOT::Math::SMatrix< double, 2, 2, ROOT::Math::MatRepSym< double, 2 > > SMatrixSym2
const CSCChamber * cscchamber(uint32_t id) const
const CSCChamber * refcscchamber_
AlgebraicSymMatrix flipErrors(const SMatrixSym4 &)
float yfit(float z) const
ROOT::Math::SMatrix< double, 16, 4 > SMatrix16by4
AlgebraicSymMatrix covarianceMatrix(void)
std::vector< const TrackingRecHit * > hits_
ROOT::Math::SMatrix< double, 4 > SMatrix4
float ydev(float y, float z) const
float xfit(float z) const
ROOT::Math::SMatrix< double, 4, 4, ROOT::Math::MatRepSym< double, 4 > > SMatrixSym4
GEMCSCSegFit(std::map< uint32_t, const CSCLayer * > csclayermap, std::map< uint32_t, const GEMEtaPartition * > gemrollmap, const std::vector< const TrackingRecHit * > hits)
void setScaleXError(double factor)
std::vector< const TrackingRecHit * > hits(void) const
LocalVector localdir() const
CLHEP::HepSymMatrix AlgebraicSymMatrix
float Rdev(float x, float y, float z) const
double scaleXError(void) const
ROOT::Math::SVector< double, 4 > SVector4
SMatrix16by4 derivativeMatrix(void)
Log< level::Info, true > LogVerbatim
const GEMEtaPartition * gemetapartition(uint32_t id) const
SMatrixSym16 weightMatrix(void)
LocalPoint intercept() const
const CSCLayer * csclayer(uint32_t id) const
float xdev(float x, float z) const
std::map< uint32_t, const GEMEtaPartition * > gemetapartmap_