52 LogDebug(
"CosmicSeedCreator") <<
"initial momentum = " << initialMomentum;
61 bool reverseAll =
false;
62 if (fabs(tth1->globalPosition().perp()) < fabs(tth2->globalPosition().perp()))
75 bool bottomSeed = (usedHit->globalPosition().y() < 0);
82 LogDebug(
"CosmicSeedCreator") <<
"Reverse all applied";
99 initialMomentum *= -1;
104 initialMomentum *= -1;
116 LogDebug(
"CosmicSeedCreator") <<
"Position freeState: " << usedHit->globalPosition() <<
"\nCharge: " << charge
117 <<
"\nInitial momentum :" << initialMomentum;
123 seedCollection.emplace_back(PTraj, seedHits, seedDirection);
132 LogDebug(
"CosmicSeedCreator") <<
"Using SeedCreator---------->\n" 133 <<
"seedCollections size = " << seedCollection.size();
137 <<
"), bailing out.\n";
138 seedCollection.clear();
edm::ESHandle< MagneticField > bfield
void init(const TrackingRegion ®ion, const edm::EventSetup &es, const SeedComparitor *filter) override
const SeedComparitor * filter
GlobalVector const & direction() const
the direction around which region is constructed
BaseTrackerRecHit const * ConstRecHitPointer
std::vector< TrajectorySeed > TrajectorySeedCollection
const TrackingRegion * region
void makeSeed(TrajectorySeedCollection &seedCollection, const SeedingHitSet &hits) override
Square< F >::type sqr(const F &f)
unsigned int size() const
bool isUndef(TrackingRecHit const &hit)