19 : magneticFieldESToken_(iC.
esConsumes()), maxseeds_(extra.getParameter<
int>(
"maxseeds")) {}
56 LogDebug(
"CosmicSeedCreator") <<
"initial momentum = " << initialMomentum;
65 bool reverseAll =
false;
66 if (fabs(tth1->globalPosition().perp()) < fabs(tth2->globalPosition().perp()))
79 bool bottomSeed = (usedHit->globalPosition().y() < 0);
86 LogDebug(
"CosmicSeedCreator") <<
"Reverse all applied";
103 initialMomentum *= -1;
108 initialMomentum *= -1;
120 LogDebug(
"CosmicSeedCreator") <<
"Position freeState: " << usedHit->globalPosition() <<
"\nCharge: " <<
charge 121 <<
"\nInitial momentum :" << initialMomentum;
136 LogDebug(
"CosmicSeedCreator") <<
"Using SeedCreator---------->\n" 141 <<
"), bailing out.\n";
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
void init(const TrackingRegion ®ion, const edm::EventSetup &es, const SeedComparitor *filter) override
Log< level::Error, false > LogError
const MagneticField * bfield
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magneticFieldESToken_
const SeedComparitor * filter
BaseTrackerRecHit const * ConstRecHitPointer
std::vector< TrajectorySeed > TrajectorySeedCollection
CosmicSeedCreator(const edm::ParameterSet &extra, edm::ConsumesCollector &&)
const TrackingRegion * region
void makeSeed(TrajectorySeedCollection &seedCollection, const SeedingHitSet &hits) override
GlobalVector const & direction() const
the direction around which region is constructed
Square< F >::type sqr(const F &f)
bool isUndef(TrackingRecHit const &hit)