51 : pixelClusterLabel_(iConfig.getParameter<
edm::
InputTag>(
"pixelClusterLabel")),
52 trigstring_(iConfig.getUntrackedParameter<
std::
string>(
"trigstring",
"alcaPCCEvent")),
53 savePerROCInfo_(iConfig.getParameter<
bool>(
"savePerROCInfo")),
55 produces<reco::PixelClusterCountsInEvent, edm::Transition::Event>(
trigstring_);
60 std::unique_ptr<reco::PixelClusterCountsInEvent> thePCCob = std::make_unique<reco::PixelClusterCountsInEvent>();
61 unsigned int bx =
iEvent.bunchCrossing();
70 for (
auto const&
mod : clustColl) {
78 for (
auto const& cluster :
mod) {
79 for (
int i = 0;
i < cluster.size(); ++
i) {
80 const auto pix = cluster.pixel(
i);
89 thePCCob->incrementRoc(((
detId << 7) +
key), 1);
95 int nCluster =
mod.size();
96 thePCCob->increment(
detId(), nCluster);
97 thePCCob->setbxID(
bx);
108 evtParamDesc.
add<
bool>(
"savePerROCInfo",
true);
109 descriptions.
add(
"alcaPCCEventProducer", evtParamDesc);
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
const edm::InputTag pixelClusterLabel_
AlcaPCCEventProducer(const edm::ParameterSet &)
T const * product() const
void produce(edm::StreamID id, edm::Event &e, edm::EventSetup const &c) const final
static constexpr int colsperroc
const bool savePerROCInfo_
const edm::EDGetTokenT< edmNew::DetSetVector< SiPixelCluster > > pixelToken_
~AlcaPCCEventProducer() override=default
static constexpr int nROCcolumns
static constexpr int rowsperroc
key
prepare the HTCondor submission files and eventually submit them
const std::string trigstring_
#define DEFINE_FWK_MODULE(type)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Pixel cluster – collection of neighboring pixels above threshold.
T mod(const T &a, const T &b)