33 #include "CLHEP/Random/RandomEngine.h"
43 produces<ClusterCollectionFP420>().setBranchAlias(alias);
45 trackerContainers.clear();
46 trackerContainers = conf.
getParameter<std::vector<std::string> >(
"ROUList");
54 std::cout <<
"Creating a ClusterizerFP420" << std::endl;
55 std::cout <<
"ClusterizerFP420: dn0=" << dn0 <<
" sn0=" << sn0 <<
" pn0=" << pn0 <<
" rn0=" << rn0 << std::endl;
58 sClusterizerFP420_ = std::make_unique<FP420ClusterMain>(conf, dn0, sn0, pn0, rn0);
64 std::cout <<
"BeginJob method " << std::endl;
101 std::cout <<
"ClusterizerFP420: produce" << std::endl;
129 throw cms::Exception(
"InvalidReference") <<
"Invalid reference to DigiCollectionFP420 \n";
133 std::cout <<
"ClusterizerFP420: OK1" << std::endl;
137 auto soutput = std::make_unique<ClusterCollectionFP420>();
171 for (
int det = 1; det < dn0; det++) {
172 for (
int sector = 1; sector < sn0; sector++) {
173 for (
int zmodule = 1; zmodule < pn0; zmodule++) {
177 std::vector<ClusterFP420> collector;
180 inputRange.first = collector.begin();
181 inputRange.second = collector.end();
183 soutput->putclear(inputRange, detID);
197 std::cout <<
"ClusterizerFP420: OK2" << std::endl;
199 sClusterizerFP420_->run(
input, soutput.get());
202 std::cout <<
"ClusterizerFP420: OK3" << std::endl;
212 std::cout <<
"ClusterizerFP420: OK4" << std::endl;
T getUntrackedParameter(std::string const &, T const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
static std::string const input
static unsigned packMYIndex(int rn0, int pn0, int sn0, int det, int zside, int sector, int zmodule)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
T getParameter(std::string const &) const
std::pair< ContainerIterator, ContainerIterator > Range