|
|
#include <RPCCosmicSeedrecHitFinder.h>
Definition at line 29 of file RPCCosmicSeedrecHitFinder.h.
◆ ConstMuonRecHitContainer
◆ ConstMuonRecHitPointer
◆ MuonRecHitContainer
◆ MuonRecHitPointer
◆ RPCCosmicSeedrecHitFinder()
RPCCosmicSeedrecHitFinder::RPCCosmicSeedrecHitFinder |
( |
| ) |
|
◆ ~RPCCosmicSeedrecHitFinder()
RPCCosmicSeedrecHitFinder::~RPCCosmicSeedrecHitFinder |
( |
| ) |
|
◆ checkandfill()
void RPCCosmicSeedrecHitFinder::checkandfill |
( |
| ) |
|
|
private |
◆ complete()
Definition at line 159 of file RPCCosmicSeedrecHitFinder.cc.
160 bool isrecHitsfound =
false;
164 cout <<
"Finding recHits from " <<
i <<
" th layer" << endl;
166 GlobalPoint currentPosition = (*it)->globalPosition();
170 if (!(*it)->isValid())
176 RPCRecHit* thisRPCRecHit = dynamic_cast<RPCRecHit*>(thisTrackingRecHit);
177 currentBX = thisRPCRecHit->
BunchX();
179 delete thisTrackingRecHit;
185 bool Clustercheck =
false;
188 for (std::vector<int>::const_iterator CluIter =
ClusterSet.begin(); CluIter !=
ClusterSet.end(); CluIter++)
191 if (Clustercheck !=
true)
194 cout <<
"Candidate recHit's position: " << currentPosition.
x() <<
", " << currentPosition.
y() <<
", "
195 << currentPosition.
z() <<
". BX : " << currentBX << endl;
204 cout <<
"1st recHit's global position: " << currentPosition.
x() <<
", " << currentPosition.
y() <<
", "
205 << currentPosition.
z() <<
". BX: " << currentBX << endl;
206 isrecHitsfound =
true;
214 GlobalPoint lastPosition = lastrecHitRef->globalPosition();
217 RPCRecHit* lastRPCRecHit = dynamic_cast<RPCRecHit*>(lastTrackingRecHit);
219 delete lastTrackingRecHit;
222 if (currentPosition.
y() >= lastPosition.
y())
231 cout <<
"Check isinsideRegion: " << isinsideRegion << endl;
236 bool iscrossanyEdge =
iscorssEdge(lastrecHitRef, *it);
237 cout <<
"Check iscrossanyEdge: " << iscrossanyEdge << endl;
242 unsigned int NumberinSeed =
therecHits.size();
244 cout << (NumberinSeed + 1) <<
"th recHit's global position: " << currentPosition.
x() <<
", "
245 << currentPosition.
y() <<
", " << currentPosition.
z() <<
". BX: " << currentBX << endl;
246 isrecHitsfound =
true;
250 bool findNext =
complete(currentSegment, *it);
251 if (findNext ==
false &&
therecHits.size() > 3) {
252 for (ConstMuonRecHitContainer::const_iterator iter =
therecHits.begin(); iter !=
therecHits.end(); iter++)
253 cout <<
"Find recHit in seed candidate : " << (*iter)->globalPosition().x() <<
", "
254 << (*iter)->globalPosition().y() <<
", " << (*iter)->globalPosition().z() << endl;
262 return isrecHitsfound;
References funct::abs(), RPCRecHit::BunchX(), TrackingRecHit::clone(), RPCRecHit::clusterSize(), PixelTestBeamValidation_cfi::ClusterSize, gather_cfg::cout, TrackingRecHit::hit(), mps_fire::i, RPCBxOrConfig_cff::lastBX, RPCLayerNumber, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
◆ configure()
◆ fillrecHits()
void RPCCosmicSeedrecHitFinder::fillrecHits |
( |
| ) |
|
◆ iscorssEdge()
Definition at line 287 of file RPCCosmicSeedrecHitFinder.cc.
289 bool iscorss =
false;
292 GlobalPoint lastPosition = lastrecHitRef->globalPosition();
293 GlobalPoint currentPosition = currentrecHitRef->globalPosition();
294 GlobalPoint testPosition((lastPosition.
x() + currentPosition.
x()) / 2,
295 (lastPosition.
y() + currentPosition.
y()) / 2,
296 (lastPosition.
z() + currentPosition.
z()) / 2);
310 DetId lastId = lastrecHitRef->geographicalId();
312 int lastRegion = lastRPCId.
region();
313 DetId currentId = currentrecHitRef->geographicalId();
315 int currentRegion = currentRPCId.
region();
317 if (lastRegion != currentRegion)
References DetId::rawId(), RPCDetId::region(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
◆ isinsideAngleRange()
◆ isouterLayer()
◆ LayerComponent()
int RPCCosmicSeedrecHitFinder::LayerComponent |
( |
| ) |
|
|
private |
◆ setEdge()
void RPCCosmicSeedrecHitFinder::setEdge |
( |
const RPCGeometry & |
rpcGeometry | ) |
|
◆ setInput()
◆ setLayers()
void RPCCosmicSeedrecHitFinder::setLayers |
( |
const std::vector< unsigned int > & |
Layers | ) |
|
◆ setOutput()
void RPCCosmicSeedrecHitFinder::setOutput |
( |
RPCSeedFinder * |
Seed | ) |
|
◆ unsetEdge()
void RPCCosmicSeedrecHitFinder::unsetEdge |
( |
| ) |
|
◆ unsetInput()
void RPCCosmicSeedrecHitFinder::unsetInput |
( |
| ) |
|
◆ AllrecHits
◆ BxRange
unsigned int RPCCosmicSeedrecHitFinder::BxRange |
|
private |
◆ ClusterSet
std::vector<int> RPCCosmicSeedrecHitFinder::ClusterSet |
|
private |
◆ innerBounds
std::vector<BoundPlane> RPCCosmicSeedrecHitFinder::innerBounds |
|
private |
◆ isConfigured
bool RPCCosmicSeedrecHitFinder::isConfigured |
|
private |
◆ isEdgeset
bool RPCCosmicSeedrecHitFinder::isEdgeset |
|
private |
◆ isInputset
bool RPCCosmicSeedrecHitFinder::isInputset |
|
private |
◆ isLayerset
bool RPCCosmicSeedrecHitFinder::isLayerset |
|
private |
◆ isLayersmixed
bool RPCCosmicSeedrecHitFinder::isLayersmixed |
|
private |
◆ isOuterLayerfilled
bool RPCCosmicSeedrecHitFinder::isOuterLayerfilled |
|
private |
◆ isOutputset
bool RPCCosmicSeedrecHitFinder::isOutputset |
|
private |
◆ LayersinRPC
std::vector<unsigned int> RPCCosmicSeedrecHitFinder::LayersinRPC |
|
private |
◆ MaxDeltaPhi
double RPCCosmicSeedrecHitFinder::MaxDeltaPhi |
|
private |
◆ therecHits
◆ theSeed
MuonTransientTrackingRecHit::MuonRecHitPointer MuonRecHitPointer
int region() const
Region id: 0 for Barrel, +/-1 For +/- Endcap.
void setrecHits(ConstMuonRecHitContainer &recHits)
virtual TrackingRecHit const * hit() const
Global3DVector GlobalVector
bool isinsideAngleRange(const GlobalVector &lastSegment, const GlobalPoint &lastPosition, const GlobalPoint ¤tPosition)
std::vector< unsigned int > LayersinRPC
bool iscorssEdge(const MuonRecHitPointer &lastrecHitRef, const MuonRecHitPointer ¤trecHitRef)
bool isouterLayer(const MuonRecHitPointer &recHitRef)
SeedingLayerSetsHits::SeedingLayer Layer
const DetIdContainer & detIds() const override
Returm a vector of all GeomDet DetIds (including those of GeomDetUnits)
const Plane & surface() const
The nominal surface of the GeomDet.
bool complete(const GlobalVector &lastSegment, const MuonRecHitPointer &lastrecHitRef)
std::vector< int > ClusterSet
MuonTransientTrackingRecHit::MuonRecHitContainer::const_iterator find(MuonTransientTrackingRecHit::MuonRecHitContainer::const_iterator firstIter, MuonTransientTrackingRecHit::MuonRecHitContainer::const_iterator lastIter, const MuonTransientTrackingRecHit::MuonRecHitPointer &recHitRef)
void clear(HadCaloObj &c)
std::vector< BoundPlane > innerBounds
MuonRecHitContainer AllrecHits[12]
virtual TrackingRecHit * clone() const =0
ConstMuonRecHitContainer therecHits
const RPCChamber * chamber(RPCDetId id) const
constexpr uint32_t rawId() const
get the raw id
#define EachEndcapLayerNumber
T getParameter(std::string const &) const
#define BarrelLayerNumber
Abs< T >::type abs(const T &t)
bool isEndcap(GeomDetEnumerators::SubDetector m)
Geom::Phi< T > phi() const