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;
127 seedCollection.emplace_back(PTraj, seedHits, seedDirection);
136 LogDebug(
"CosmicSeedCreator") <<
"Using SeedCreator---------->\n"
137 <<
"seedCollections size = " << seedCollection.size();
141 <<
"), bailing out.\n";
142 seedCollection.clear();
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_
bool getData(T &iHolder) const
const SeedComparitor * filter
GlobalVector const & direction() const
the direction around which region is constructed
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
unsigned int size() const
bool isUndef(TrackingRecHit const &hit)