5 #include "boost/bind.hpp"
6 #include "boost/lambda/lambda.hpp"
18 : peakMode_(latency.singleReadOutMode() == 1),
21 LorentzAngleMap_(LorentzAngle),
22 BackPlaneCorrectionMap_(BackPlaneCorrection)
24 typedef std::map<std::string,SiStripDetId::ModuleGeometry> map_t;
41 const unsigned size = max_element( modules.begin(),modules.end(),
47 for(map_t::const_iterator it=modules.begin(); it!=modules.end(); it++) {
50 xtalk1S(
"xtalk1_" + it->first + modeS ),
51 xtalk2S(
"xtalk2_" + it->first + modeS );
56 xtalk1[it->second] = confObj.
get<
double>(xtalk1S);
57 xtalk2[it->second] = confObj.
get<
double>(xtalk2S);
86 float dir_x = -tanLorentzAnglePerTesla * lbfield.
y();
87 float dir_y = tanLorentzAnglePerTesla * lbfield.
x();
99 for (
auto i=
m_off;
i!=dus.size();++
i) {
102 assert(stripdet->
index()==int(i));
107 p.thickness = bounds.thickness();
110 p.nstrips =
p.topology->nstrips();
115 p.pitch_rel_err2 = (rtop)
116 ?
pow( 0.5
f * rtop->angularWidth() * rtop->stripLength()/rtop->localPitch(
LocalPoint(0,0,0)), 2.f) / 12.
f
Local3DVector LocalVector
StripCPE(edm::ParameterSet &conf, const MagneticField &, const TrackerGeometry &, const SiStripLorentzAngle &, const SiStripBackPlaneCorrection &, const SiStripConfObject &, const SiStripLatency &)
virtual float coveredStrips(const LocalPoint &lp1, const LocalPoint &lp2) const
virtual GlobalVector inTesla(const GlobalPoint &gp) const =0
Field value ad specified global point, in Tesla.
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
StripTopology const * topology
const Bounds & bounds() const
LocalVector toLocal(const reco::Track::Vector &v, const Surface &s)
const TrackerGeometry & geom_
const Plane & surface() const
The nominal surface of the GeomDet.
float backplanecorrection
uint32_t rawId() const
get the raw id
U second(std::pair< T, U > const &p)
const SiStripLorentzAngle & LorentzAngleMap_
virtual const DetUnitContainer & detUnits() const
Returm a vector of all GeomDetUnit.
std::vector< float > xtalk1
float getLorentzAngle(const uint32_t &) const
virtual StripGeomDetType const & specificType() const
unsigned int offsetDU(SubDetector sid) const
StripClusterParameterEstimator::LocalValues localParameters(const SiStripCluster &cl, const GeomDetUnit &) const
virtual const Topology & topology() const
Returns a reference to the strip proxy topology.
float getBackPlaneCorrection(const uint32_t &) const
DetId geographicalId() const
The label of this GeomDet.
const MagneticField & magfield_
float coveredStrips(const LocalVector &, const LocalPoint &) const
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
Detector identifier class for the strip tracker.
const SiStripBackPlaneCorrection & BackPlaneCorrectionMap_
LocalVector driftDirection(const StripGeomDetUnit *det) const
valueType get(const std::string &name) const
std::pair< LocalPoint, LocalError > LocalValues
virtual LocalError localError(float strip, float stripErr2) const =0
std::vector< float > xtalk2
Param const & param(const GeomDetUnit &det) const
virtual LocalPoint localPosition(float strip) const =0
bool isParameter(const std::string &name) const
const PositionType & position() const
tuple size
Write out results.
Power< A, B >::type pow(const A &a, const B &b)
const Plane & specificSurface() const
Same as surface(), kept for backward compatibility.