12 inline T sqr(
T t) {
return t*
t;}
37 if ( hits.
size() < 2)
return;
53 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);
87 LogDebug(
"CosmicSeedCreator") <<
"Reverse all applied";
105 if (reverseAll) initialMomentum *=-1;
110 initialMomentum *=-1;
124 LogDebug(
"CosmicSeedCreator")<<
"Position freeState: " << usedHit->globalPosition()
125 <<
"\nCharge: "<< charge
126 <<
"\nInitial momentum :" << initialMomentum ;
134 seedCollection.push_back(seed);
147 <<
"Using SeedCreator---------->\n"
148 <<
"seedCollections size = " << seedCollection.size();
150 if ( seedCollection.size() >
maxseeds_ ) {
151 edm::LogError(
"TooManySeeds") <<
"Found too many seeds (" << seedCollection.size() <<
" > " <<
maxseeds_ <<
"), bailing out.\n";
152 seedCollection.clear();
edm::ESHandle< MagneticField > bfield
virtual bool compatible(const SeedingHitSet &hits, const TrackingRegion ®ion) const =0
const SeedComparitor * filter
GlobalVector const & direction() const
the direction around which region is constructed
std::vector< TrajectorySeed > TrajectorySeedCollection
virtual void makeSeed(TrajectorySeedCollection &seedCollection, const SeedingHitSet &hits)
const TrackingRegion * region
Square< F >::type sqr(const F &f)
unsigned int size() const
virtual void init(const TrackingRegion ®ion, const edm::EventSetup &es, const SeedComparitor *filter)