90 produces< DetIdCollection >() ;
129 std::auto_ptr< DetIdCollection > interestingDetIdCollection(
new DetIdCollection() ) ;
130 for(TrackCollection::const_iterator itTrack = tkTracks->begin();
131 itTrack != tkTracks->end();
141 const std::vector<DetId>& ids = topology->
getWindow(centerId, 5, 5);
142 for ( std::vector<DetId>::const_iterator
id = ids.begin();
id != ids.end(); ++
id )
143 if(
std::find(interestingDetIdCollection->begin(), interestingDetIdCollection->end(), *
id)
144 == interestingDetIdCollection->end())
145 interestingDetIdCollection->push_back(*
id);
150 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)
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) ...
void produce(edm::Event &, const edm::EventSetup &)
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 &)
void beginRun(edm::Run &, const edm::EventSetup &)
edm::EDCollection< DetId > DetIdCollection
void loadParameters(const edm::ParameterSet &)