33 @example_histo#
include "FWCore/ServiceRegistry/interface/Service.h" 34 @example_histo#
include "CommonTools/UtilAlgos/interface/TFileService.h" 61 #ifdef THIS_IS_AN_EVENTSETUP_EXAMPLE 80 #ifdef THIS_IS_AN_EVENTSETUP_EXAMPLE 81 setupDataToken_ = esConsumes<SetupData, SetupRecord>();
84 @example_histo usesResource(
"TFileService");
86 @example_histo
histo =
fs->make<TH1I>(
"charge",
"Charges", 2, -1, 1);
110 #ifdef THIS_IS_AN_EVENTSETUP_EXAMPLE 114 auto pSetup = iSetup.
getHandle(setupToken_);
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::vector< Track > TrackCollection
collection of Tracks
edm::EDGetTokenT< TrackCollection > tracksToken_
void addDefault(ParameterSetDescription const &psetDescription)
#define DEFINE_FWK_MODULE(type)
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
void analyze(const edm::Event &, const edm::EventSetup &) override
bool include(const CollT &coll, const ItemT &item)
example_histo TH1I * histo