|
|
Go to the documentation of this file.
35 debug =
pset.getUntrackedParameter<
bool>(
"debug");
83 vector<DTRecHit1DPair> hitsFromPhi1(rangeHitsFromPhi1.first, rangeHitsFromPhi1.second);
84 vector<DTRecHit1DPair> hitsFromPhi2(rangeHitsFromPhi2.first, rangeHitsFromPhi2.second);
86 cout <<
"Number of DTRecHit1DPair in the SL 1 (Phi 1): " << hitsFromPhi1.size() << endl
87 <<
"Number of DTRecHit1DPair in the SL 3 (Phi 2): " << hitsFromPhi2.size() << endl;
96 vector<DTRecHit1DPair> hitsFromTheta(rangeHitsFromTheta.first, rangeHitsFromTheta.second);
98 cout <<
"Number of DTRecHit1DPair in the SL 2 (Theta): " << hitsFromTheta.size() << endl;
111 vector<DTSLRecSegment2D> segments2DTheta(rangeTheta.first, rangeTheta.second);
114 cout <<
"Number of 2D-segments in the second SL (Theta): " << segments2DTheta.size() << endl;
124 cout <<
"Reconstructing of the Phi segments" << endl;
127 vector<std::shared_ptr<DTHitPairForFit>> pairPhiOwned;
131 cout <<
"There are " << resultPhi.size() <<
" Phi cand" << endl;
140 cout <<
"Reconstructing of the Theta segments" << endl;
142 vector<DTSLRecSegment2D> segments2DTheta(thetaSegs.
begin(), thetaSegs.
end());
156 cout <<
"No Theta SL" << endl;
161 cout <<
"Building of the concrete DTRecSegment4D" << endl;
162 if (!resultPhi.empty()) {
163 for (vector<DTSegmentCand*>::const_iterator
phi = resultPhi.begin();
phi != resultPhi.end(); ++
phi) {
164 std::unique_ptr<DTChamberRecSegment2D> superPhi(**
phi);
168 cout <<
"superPhi: " << *superPhi << endl;
176 cout <<
"Theta: " << *zed << endl;
186 zed->localPosition().x(), (zSL->toLocal(
theChamber->
toGlobal(superPhi->localPosition()))).
y(), 0.);
195 cout <<
"Created a 4D seg " << *newSeg << endl;
200 cout <<
" seg updated " << *newSeg << endl;
215 cout <<
"Created a 4D segment using only the 2D Phi segment " << *newSeg << endl;
232 cout <<
"Theta: " << *zed << endl;
245 cout <<
"Created a 4D segment using only the 2D Theta segment " << *newSeg << endl;
257 for (vector<DTSegmentCand*>::iterator
phi = resultPhi.begin();
phi != resultPhi.end(); ++
phi)
264 vector<std::shared_ptr<DTHitPairForFit>>& pairPhiOwned) {
273 cout <<
"DTCombinatorialPatternReco4D::buildPhiSuperSegmentsCandidates: "
274 <<
"No Hits in the two Phi SL" << endl;
275 return vector<DTSegmentCand*>();
284 copy(pairPhi2.begin(), pairPhi2.end(), back_inserter(pairPhi1));
286 pairPhiOwned.swap(pairPhi1);
308 auto hit = std::make_unique<DTRecHit1D>(
311 std::vector<DTRecHit1D> newHits(1, *
hit);
DTChamberId id() const
Return the DTChamberId of this chamber.
void setDTRecHit1DContainer(edm::Handle< DTRecHitCollection > all1DHits) override
DTCombinatorialPatternReco4D(const edm::ParameterSet &pset)
Constructor.
LocalVector localDirection() const override
Local direction in Chamber frame.
void calculateT0corr(DTRecSegment2D *seg) const
DTEnums::DTCellSide lrSide() const
The side of the cell.
~DTCombinatorialPatternReco4D() override
Destructor.
DTSuperLayerId superLayerId() const
The id of the superlayer on which reside the segment.
std::vector< DTRecHit1DPair > theHitsFromPhi1
Geom::Theta< T > theta() const
edm::ESHandle< DTGeometry > theDTGeometry
std::vector< DTSegmentCand * > buildPhiSuperSegmentsCandidates(std::vector< std::shared_ptr< DTHitPairForFit >> &pairPhiOwned)
std::vector< DTSLRecSegment2D > theSegments2DTheta
void setES(const edm::EventSetup &setup) override
LocalError localPositionError() const override
local position error in SL frame
LocalPoint localPosition() const override
Local position in Chamber frame.
const DTSLRecSegment2D * zSegment() const
The Z segment: 0 if not zed projection available.
std::vector< DTRecHit1DPair > theHitsFromTheta
std::vector< std::shared_ptr< DTHitPairForFit > > initHits(const DTSuperLayer *sl, const std::vector< DTRecHit1DPair > &hits)
const DTChamber * chamber(const DTChamberId &id) const
Return a DTChamber given its id.
DTWireId wireId() const
Return the wireId.
Cos< T >::type cos(const T &t)
const caConstants::TupleMultiplicity *__restrict__ const HitsOnGPU *__restrict__ double *__restrict__ float *__restrict__ double *__restrict__ uint32_t nHits
DTCombinatorialPatternReco * the2DAlgo
LocalPoint toLocal(const GlobalPoint &gp) const
Conversion to the R.F. of the GeomDet.
GlobalPoint toGlobal(const Local2DPoint &lp) const
Conversion to the global R.F. from the R.F. of the GeomDet.
static std::pair< DTLayerId, DTSuperLayerIdComparator > layersBySuperLayer(DTSuperLayerId slId)
Access by SL objects written into a RangeMap by layer.
double chi2() const override
the chi2 of the fit
LocalPoint localPosition() const override
local position in SL frame
void setDTRecSegment2DContainer(edm::Handle< DTRecSegment2DCollection > all2DSegments) override
CLHEP::HepSymMatrix AlgebraicSymMatrix
AlgebraicSymMatrix covMatrix() const
the Covariance Matrix
edm::OwnVector< DTRecSegment4D > reconstruct() override
Operations.
void setES(const edm::EventSetup &setup)
set the setup
std::vector< DTRecHit1DPair > theHitsFromPhi2
float digiTime() const
Return the time (ns) of the digi used to build the rechit.
std::pair< const_iterator, const_iterator > range
iterator range
void setES(const edm::EventSetup &setup) override
void setChamber(const DTChamberId &chId) override
std::vector< DTRecHit1D > specificRecHits() const
Access to specific components.
DTSegmentUpdator * theUpdator
edm::OwnVector< DTSLRecSegment2D > reconstruct(const DTSuperLayer *sl, const std::vector< DTRecHit1DPair > &hits) override
this function is called in the producer
DTRecSegment4D * segmentSpecialZed(const DTRecSegment4D *seg)
Build a 4d segment with a zed component made by just one hits.
std::vector< DTSegmentCand * > buildSegments(const DTSuperLayer *sl, const std::vector< std::shared_ptr< DTHitPairForFit >> &hits)
const DTSuperLayer * superLayer(const DTSuperLayerId &id) const
Return a DTSuperLayer given its id.
LocalVector localDirection() const override
the local direction in SL frame
const DTSuperLayer * superLayer(const DTSuperLayerId &id) const
Return the superlayer corresponding to the given id.
const DTChamberRecSegment2D * phiSegment() const
The superPhi segment: 0 if no phi projection available.
const DTChamber * theChamber
void update(DTRecSegment4D *seg, const bool calcT0, bool allow3par) const
recompute hits position and refit the segment4D