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);
DTCombinatorialPatternReco * the2DAlgo
std::pair< const_iterator, const_iterator > range
iterator range
LocalPoint localPosition() const override
local position in SL frame
void setDTRecSegment2DContainer(edm::Handle< DTRecSegment2DCollection > all2DSegments) override
std::vector< std::shared_ptr< DTHitPairForFit > > initHits(const DTSuperLayer *sl, const std::vector< DTRecHit1DPair > &hits)
LocalVector localDirection() const override
the local direction in SL frame
DTChamberId id() const
Return the DTChamberId of this chamber.
LocalPoint toLocal(const GlobalPoint &gp) const
Conversion to the R.F. of the GeomDet.
double chi2() const override
the chi2 of the fit
edm::OwnVector< DTSLRecSegment2D > reconstruct(const DTSuperLayer *sl, const std::vector< DTRecHit1DPair > &hits) override
this function is called in the producer
static std::pair< DTLayerId, DTSuperLayerIdComparator > layersBySuperLayer(DTSuperLayerId slId)
Access by SL objects written into a RangeMap by layer.
LocalVector localDirection() const override
Local direction in Chamber frame.
edm::OwnVector< DTRecSegment4D > reconstruct() override
Operations.
std::vector< DTRecHit1DPair > theHitsFromPhi2
void setChamber(const DTChamberId &chId) override
DTSegmentUpdator * theUpdator
LocalPoint localPosition() const override
Local position in Chamber frame.
const DTSLRecSegment2D * zSegment() const
The Z segment: 0 if not zed projection available.
float digiTime() const
Return the time (ns) of the digi used to build the rechit.
DTRecSegment4D * segmentSpecialZed(const DTRecSegment4D *seg)
Build a 4d segment with a zed component made by just one hits.
void update(DTRecSegment4D *seg, const bool calcT0, bool allow3par) const
recompute hits position and refit the segment4D
void calculateT0corr(DTRecSegment2D *seg) const
const DTChamber * theChamber
const DTSuperLayer * superLayer(const DTSuperLayerId &id) const
Return the superlayer corresponding to the given id.
void setES(const edm::EventSetup &setup)
set the setup
const DTSuperLayer * superLayer(const DTSuperLayerId &id) const
Return a DTSuperLayer given its id.
void setDTRecHit1DContainer(edm::Handle< DTRecHitCollection > all1DHits) override
Cos< T >::type cos(const T &t)
DTEnums::DTCellSide lrSide() const
The side of the cell.
LocalError localPositionError() const override
local position error in SL frame
edm::ESGetToken< DTGeometry, MuonGeometryRecord > theDTGeometryToken
DTSuperLayerId superLayerId() const
The id of the superlayer on which reside the segment.
GlobalPoint toGlobal(const Local2DPoint &lp) const
Conversion to the global R.F. from the R.F. of the GeomDet.
const DTChamberRecSegment2D * phiSegment() const
The superPhi segment: 0 if no phi projection available.
std::vector< DTSegmentCand * > buildSegments(const DTSuperLayer *sl, const std::vector< std::shared_ptr< DTHitPairForFit >> &hits)
std::vector< DTRecHit1DPair > theHitsFromPhi1
std::vector< DTSLRecSegment2D > theSegments2DTheta
std::vector< DTRecHit1D > specificRecHits() const
Access to specific components.
~DTCombinatorialPatternReco4D() override
Destructor.
void setES(const edm::EventSetup &setup) override
AlgebraicSymMatrix covMatrix() const
the Covariance Matrix
caConstants::TupleMultiplicity const CAHitNtupletGeneratorKernelsGPU::HitToTuple const cms::cuda::AtomicPairCounter GPUCACell const *__restrict__ uint32_t const *__restrict__ gpuPixelDoublets::CellNeighborsVector const gpuPixelDoublets::CellTracksVector const GPUCACell::OuterHitOfCell const int32_t nHits
std::vector< DTRecHit1DPair > theHitsFromTheta
edm::ESHandle< DTGeometry > theDTGeometry
std::vector< DTSegmentCand * > buildPhiSuperSegmentsCandidates(std::vector< std::shared_ptr< DTHitPairForFit >> &pairPhiOwned)
DTWireId wireId() const
Return the wireId.
CLHEP::HepSymMatrix AlgebraicSymMatrix
DTCombinatorialPatternReco4D(const edm::ParameterSet &pset, edm::ConsumesCollector)
Constructor.
void setES(const edm::EventSetup &setup) override
const DTChamber * chamber(const DTChamberId &id) const
Return a DTChamber given its id.
Geom::Theta< T > theta() const