33 const std::vector<edm::EDGetTokenT<edm::PCaloHitContainer>>
toksCalo_;
40 : g4Label_(ps.getParameter<std::
string>(
"ModuleLabel")),
41 hitLab_(ps.getParameter<std::
vector<std::
string>>(
"HitCollections")),
50 <<
" collections and maxEvent = " <<
maxEvent_;
51 for (
unsigned int k = 0;
k <
hitLab_.size(); ++
k)
57 std::vector<std::string> coll = {
"EcalHitsEB",
"EcalHitsEE",
"EcalHitsES"};
58 std::vector<int>
type = {0, 1, 2};
60 desc.
add<std::vector<std::string>>(
"HitCollections", coll);
61 desc.
add<std::vector<int>>(
"CollectionTypes",
type);
62 desc.
add<
int>(
"MaxEvent", 10);
63 descriptions.
add(
"ecalSimHitDump", desc);
76 for (
auto const&
hit : *hitsCalo) {
77 double edep =
hit.energy();
78 double time =
hit.time();
79 unsigned int id =
hit.
id();
Log< level::Info, true > LogVerbatim
EventNumber_t event() const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
#define DEFINE_FWK_MODULE(type)
const std::vector< int > types_
auto vector_transform(std::vector< InputType > const &input, Function predicate) -> std::vector< typename std::remove_cv< typename std::remove_reference< decltype(predicate(input.front()))>::type >::type >
Handle< PROD > getHandle(EDGetTokenT< PROD > token) const
EcalSimHitDump(const edm::ParameterSet &ps)
const std::vector< edm::EDGetTokenT< edm::PCaloHitContainer > > toksCalo_
const std::string g4Label_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
T getParameter(std::string const &) const
void add(std::string const &label, ParameterSetDescription const &psetDescription)
void analyze(edm::Event const &, edm::EventSetup const &) override
const std::vector< std::string > hitLab_