|
|
#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 164 of file RPCCosmicSeedrecHitFinder.cc.
165 bool isrecHitsfound =
false;
169 cout <<
"Finding recHits from " <<
i <<
" th layer" << endl;
171 GlobalPoint currentPosition = (*it)->globalPosition();
175 if (!(*it)->isValid())
181 RPCRecHit* thisRPCRecHit = dynamic_cast<RPCRecHit*>(thisTrackingRecHit);
182 currentBX = thisRPCRecHit->
BunchX();
184 delete thisTrackingRecHit;
190 bool Clustercheck =
false;
193 for (std::vector<int>::const_iterator CluIter =
ClusterSet.begin(); CluIter !=
ClusterSet.end(); CluIter++)
196 if (Clustercheck !=
true)
199 cout <<
"Candidate recHit's position: " << currentPosition.
x() <<
", " << currentPosition.
y() <<
", "
200 << currentPosition.
z() <<
". BX : " << currentBX << endl;
209 cout <<
"1st recHit's global position: " << currentPosition.
x() <<
", " << currentPosition.
y() <<
", "
210 << currentPosition.
z() <<
". BX: " << currentBX << endl;
211 isrecHitsfound =
true;
219 GlobalPoint lastPosition = lastrecHitRef->globalPosition();
222 RPCRecHit* lastRPCRecHit = dynamic_cast<RPCRecHit*>(lastTrackingRecHit);
224 delete lastTrackingRecHit;
227 if (currentPosition.
y() >= lastPosition.
y())
236 cout <<
"Check isinsideRegion: " << isinsideRegion << endl;
241 bool iscrossanyEdge =
iscorssEdge(lastrecHitRef, *it);
242 cout <<
"Check iscrossanyEdge: " << iscrossanyEdge << endl;
247 unsigned int NumberinSeed =
therecHits.size();
249 cout << (NumberinSeed + 1) <<
"th recHit's global position: " << currentPosition.
x() <<
", "
250 << currentPosition.
y() <<
", " << currentPosition.
z() <<
". BX: " << currentBX << endl;
251 isrecHitsfound =
true;
255 bool findNext =
complete(currentSegment, *it);
256 if (findNext ==
false &&
therecHits.size() > 3) {
257 for (ConstMuonRecHitContainer::const_iterator iter =
therecHits.begin(); iter !=
therecHits.end(); iter++)
258 cout <<
"Find recHit in seed candidate : " << (*iter)->globalPosition().x() <<
", "
259 << (*iter)->globalPosition().y() <<
", " << (*iter)->globalPosition().z() << endl;
267 return isrecHitsfound;
References funct::abs(), begin, RPCRecHit::BunchX(), TrackingRecHit::clone(), PixelTestBeamValidation_cfi::ClusterSize, RPCRecHit::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 292 of file RPCCosmicSeedrecHitFinder.cc.
294 bool iscorss =
false;
297 GlobalPoint lastPosition = lastrecHitRef->globalPosition();
298 GlobalPoint currentPosition = currentrecHitRef->globalPosition();
299 GlobalPoint testPosition((lastPosition.
x() + currentPosition.
x()) / 2,
300 (lastPosition.
y() + currentPosition.
y()) / 2,
301 (lastPosition.
z() + currentPosition.
z()) / 2);
315 DetId lastId = lastrecHitRef->geographicalId();
317 int lastRegion = lastRPCId.
region();
318 DetId currentId = currentrecHitRef->geographicalId();
320 int currentRegion = currentRPCId.
region();
322 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()
◆ 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
T getParameter(std::string const &) const
const RPCChamber * chamber(RPCDetId id) const
constexpr uint32_t rawId() const
get the raw id
#define EachEndcapLayerNumber
#define BarrelLayerNumber
Abs< T >::type abs(const T &t)
bool isEndcap(GeomDetEnumerators::SubDetector m)
Geom::Phi< T > phi() const