25 #define DEBUG(x) do { std::cout << x << std::endl; } while (0) 53 produces< MTDTrackingDetSetVector >();
62 descriptions.
add(
"mtdTrackingRecHitProducer", desc);
82 auto outputhits = std::make_unique<MTDTrackingDetSetVector>();
83 auto& theoutputhits = *outputhits;
85 run(inputBarrel,theoutputhits);
86 run(inputEndcap,theoutputhits);
101 DEBUG(
"inputCollection " << input.
size());
102 for ( ; DSViter != input.
end() ; DSViter++) {
103 unsigned int detid = DSViter->detId();
104 DetId detIdObject( detid );
106 if( genericDet ==
nullptr ) {
107 throw cms::Exception(
"MTDTrackingRecHitProducer") <<
"GeographicalID: " << std::hex
117 for ( ; clustIt != clustEnd; clustIt++) {
118 DEBUG(
"Cluster: size " << clustIt->
size() <<
" " << clustIt->x() <<
"," << clustIt->y() <<
" " << clustIt->energy() <<
" " << clustIt->time());
135 DEBUG(
"outputCollection " << output.
size());
edm::Ref< typename HandleT::element_type, typename HandleT::element_type::value_type::value_type > makeRefTo(const HandleT &iHandle, typename HandleT::element_type::value_type::const_iterator itIter)
void push_back(data_type const &d)
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
const_iterator end(bool update=false) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
LocalError localPositionError() const final
const edm::EDGetTokenT< FTLClusterCollection > ftlbClusters_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
const edm::EDGetTokenT< FTLClusterCollection > ftleClusters_
~MTDTrackingRecHitProducer() override=default
data_type const * const_iterator
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
static std::string const input
const MTDClusterParameterEstimator * cpe_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
std::tuple< LocalPoint, LocalError, TimeValue, TimeValueError > ReturnType
MTDTrackingRecHitProducer(const edm::ParameterSet &ps)
virtual ReturnType getParameters(const FTLCluster &cl, const GeomDetUnit &det) const =0
A 2D TrackerRecHit with time and time error information.
const MTDGeometry * geom_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
void run(edm::Handle< edmNew::DetSetVector< FTLCluster > > inputHandle, MTDTrackingDetSetVector &output)
LocalPoint localPosition() const final
T const * product() const
void produce(edm::Event &evt, const edm::EventSetup &es) override
const_iterator begin(bool update=false) const
const MTDGeomDet * idToDetUnit(DetId) const override
Return the pointer to the GeomDetUnit corresponding to a given DetId.