89 produces< DetIdCollection >() ;
128 std::auto_ptr< DetIdCollection > interestingDetIdCollection(
new DetIdCollection() ) ;
129 for(TrackCollection::const_iterator itTrack = tkTracks->begin();
130 itTrack != tkTracks->end();
140 const std::vector<DetId>& ids = topology->
getWindow(centerId, 5, 5);
141 for ( std::vector<DetId>::const_iterator
id = ids.begin();
id != ids.end(); ++id )
142 if(
std::find(interestingDetIdCollection->begin(), interestingDetIdCollection->end(), *id)
143 == interestingDetIdCollection->end())
144 interestingDetIdCollection->push_back(*
id);
149 iEvent.
put(interestingDetIdCollection);
T getParameter(std::string const &) const
#define DEFINE_FWK_MODULE(type)
~HighPtTrackEcalDetIdProducer()
std::vector< DetId > crossedEcalIds
HighPtTrackEcalDetIdProducer(const edm::ParameterSet &)
void useDefaultPropagator()
use the default propagator
std::vector< Track > TrackCollection
collection of Tracks
TrackAssociatorParameters parameters_
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
void produce(edm::Event &, const edm::EventSetup &) override
TrackDetectorAssociator trackAssociator_
edm::InputTag inputCollection_
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
const CaloTopology * caloTopology_
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
virtual std::vector< DetId > getWindow(const DetId &id, const int &northSouthSize, const int &eastWestSize) const
const CaloSubdetectorTopology * getSubdetectorTopology(const DetId &id) const
access the subdetector Topology for the given subdetector directly
TrackDetMatchInfo associate(const edm::Event &, const edm::EventSetup &, const FreeTrajectoryState &, const AssociatorParameters &)
edm::EDCollection< DetId > DetIdCollection
void loadParameters(const edm::ParameterSet &)
void beginRun(const edm::Run &, const edm::EventSetup &) override