12 #include "boost/foreach.hpp"
15 : Suffix ( iConfig.getParameter<std::
string>(
"Suffix") ),
17 clusters_token_( consumes< edmNew::DetSetVector<
SiStripCluster> >(iConfig.getParameter<edm::
InputTag>(
"Clusters")))
19 std::vector<edm::InputTag> rec_hits_tags = iConfig.
getParameter<std::vector<edm::InputTag> >(
"InputTags");
20 for(
auto itag : rec_hits_tags) {
22 consumes< SiStripRecHit2DCollection >(itag)
26 produces <std::vector<float> > (
Prefix +
"strip" +
Suffix );
27 produces <std::vector<float> > (
Prefix +
"merr" +
Suffix );
28 produces <std::vector<float> > (
Prefix +
"localx" +
Suffix );
29 produces <std::vector<float> > (
Prefix +
"localy" +
Suffix );
30 produces <std::vector<float> > (
Prefix +
"localxerr" +
Suffix );
31 produces <std::vector<float> > (
Prefix +
"localyerr" +
Suffix );
32 produces <std::vector<float> > (
Prefix +
"globalx" +
Suffix );
33 produces <std::vector<float> > (
Prefix +
"globaly" +
Suffix );
34 produces <std::vector<float> > (
Prefix +
"globalz" +
Suffix );
41 int size = clustermap.size();
42 std::auto_ptr<std::vector<float> > strip (
new std::vector<float>(size, -10000 ));
43 std::auto_ptr<std::vector<float> > merr (
new std::vector<float>(size, -10000 ));
44 std::auto_ptr<std::vector<float> > localx (
new std::vector<float>(size, -10000 ));
45 std::auto_ptr<std::vector<float> > localy (
new std::vector<float>(size, -10000 ));
46 std::auto_ptr<std::vector<float> > localxerr (
new std::vector<float>(size, -1 ));
47 std::auto_ptr<std::vector<float> > localyerr (
new std::vector<float>(size, -1 ));
48 std::auto_ptr<std::vector<float> > globalx (
new std::vector<float>(size, -10000 ));
49 std::auto_ptr<std::vector<float> > globaly (
new std::vector<float>(size, -10000 ));
50 std::auto_ptr<std::vector<float> > globalz (
new std::vector<float>(size, -10000 ));
60 shallow::CLUSTERMAP::iterator cluster = clustermap.find( std::make_pair(hit.
geographicalId().
rawId(), hit.
cluster()->firstStrip() ) );
61 if(cluster != clustermap.end() ) {
63 unsigned int i = cluster->second;
T getParameter(std::string const &) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
ShallowRechitClustersProducer(const edm::ParameterSet &)
GlobalPoint toGlobal(const Local2DPoint &lp) const
Conversion to the global R.F. from the R.F. of the GeomDet.
virtual const StripTopology & specificTopology() const
Returns a reference to the strip proxy topology.
virtual float strip(const LocalPoint &) const =0
const edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > clusters_token_
uint32_t rawId() const
get the raw id
virtual MeasurementError measurementError(const LocalPoint &, const LocalError &) const =0
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
std::vector< edm::EDGetTokenT< SiStripRecHit2DCollection > > rec_hits_tokens_
ClusterRef cluster() const
void produce(edm::Event &, const edm::EventSetup &)
CLUSTERMAP make_cluster_map(const edm::Event &, const edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > &)
std::map< std::pair< uint32_t, uint16_t >, unsigned int > CLUSTERMAP
DetId geographicalId() const
virtual LocalError localPositionError() const final
tuple size
Write out results.
virtual LocalPoint localPosition() const final