38 tok_hovar_ = consumes<HOCalibVariableCollection>(
edm::InputTag(nameProd_, hoInput_));
39 tok_horeco_ = consumes<HORecHitCollection>(
edm::InputTag(
"horeco"));
40 tok_ho_ = consumes<HORecHitCollection>(
edm::InputTag(hoInput_));
41 tok_hoProd_ = consumes<HORecHitCollection>(
edm::InputTag(nameProd_, hoInput_));
43 tok_hf_ = consumes<HFRecHitCollection>(
edm::InputTag(hfInput_));
45 tok_jets_ = consumes<reco::CaloJetCollection>(
edm::InputTag(nameProd_, jetCalo_));
46 tok_gamma_ = consumes<reco::SuperClusterCollection>(
edm::InputTag(nameProd_, gammaClus_));
47 tok_muons_ = consumes<reco::MuonCollection>(
edm::InputTag(nameProd_,
"SelectedMuons"));
48 tok_ecal_ = consumes<EcalRecHitCollection>(
edm::InputTag(nameProd_, ecalInput_));
49 tok_tracks_ = consumes<reco::TrackCollection>(
edm::InputTag(nameProd_, Tracks_));
51 tok_hbheProd_ = consumes<HBHERecHitCollection>(
edm::InputTag(nameProd_, hbheInput_));
52 tok_hbhe_ = consumes<HBHERecHitCollection>(
edm::InputTag(hbheInput_));
54 tok_geom_ = esConsumes<CaloGeometry, CaloGeometryRecord>();
57 ProducerAnalyzer::~ProducerAnalyzer() {
64 void ProducerAnalyzer::endJob() {}
76 std::vector<StableProvenance const*> theProvenance;
77 iEvent.getAllStableProvenance(theProvenance);
78 for (
auto const& provenance : theProvenance) {
79 edm::LogVerbatim(
"HcalAlCa") <<
" Print all module/label names " << provenance->moduleName() <<
" "
80 << provenance->moduleLabel() <<
" " << provenance->productInstanceName();
83 if (nameProd_ ==
"hoCalibProducer") {
90 if (nameProd_ ==
"ALCARECOMuAlZMuMu") {
96 iEvent.getByToken(tok_muons_, mucand);
97 edm::LogVerbatim(
"HcalAlCa") <<
" Size of muon collection " << mucand->size();
98 for (
const auto& it : *(mucand.
product())) {
104 if (nameProd_ !=
"IsoProd" && nameProd_ !=
"ALCARECOMuAlZMuMu" && nameProd_ !=
"hoCalibProducer") {
120 if (nameProd_ ==
"IsoProd") {
128 <<
" Outer " <<
track.outerMomentum() <<
" " <<
track.outerPosition();
130 edm::LogVerbatim(
"HcalAlCa") <<
" Track extra " << myextra->outerMomentum() <<
" " << myextra->outerPosition();
141 for (
const auto& hite : *(
ecal.product())) {
144 edm::LogVerbatim(
"HcalAlCa") <<
" Energy ECAL " << hite.energy() <<
" eta " << posE.
eta() <<
" phi "
155 for (
const auto& hith : *(
hbhe.product())) {
159 edm::LogVerbatim(
"HcalAlCa") <<
" Energy HCAL " << hith.energy() <<
" eta " << posH.
eta() <<
" phi "
168 if (nameProd_ ==
"GammaJetProd" || nameProd_ ==
"DiJProd") {
178 for (
const auto&
jet : *(
jets.product())) {
186 if (nameProd_ ==
"GammaJetProd") {
188 iEvent.getByToken(tok_gamma_, eclus);
190 for (
const auto& iclus : *(eclus.
product())) {
191 edm::LogVerbatim(
"HcalAlCa") <<
" Et gamma " << iclus.energy() / cosh(iclus.eta()) <<
" eta " << iclus.eta()
192 <<
" phi " << iclus.phi();