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_));
55 ProducerAnalyzer::~ProducerAnalyzer() {
62 void ProducerAnalyzer::endJob() {}
76 std::vector<StableProvenance const*> 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") {
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 " 147 energyECAL = energyECAL + hite.energy();
155 for (
const auto& hith : *(hbhe.
product())) {
159 edm::LogVerbatim(
"HcalAlCa") <<
" Energy HCAL " << hith.energy() <<
" eta " << posH.
eta() <<
" phi " 162 energyHCAL = energyHCAL + hith.energy();
168 if (nameProd_ ==
"GammaJetProd" || nameProd_ ==
"DiJProd") {
186 if (nameProd_ ==
"GammaJetProd") {
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();
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
access the subdetector geometry for the given subdetector directly
T getUntrackedParameter(std::string const &, T const &) const
double energyECAL(std::vector< DetId > &vdets, edm::Handle< T > &hitsEB, edm::Handle< T > &hitsEE, double ebThr=-100, double eeThr=-100, double tMin=-500, double tMax=500, bool debug=false)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Geom::Phi< T > phi() const
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
GlobalPoint getPosition(const DetId &id) const
Get the position of a given detector id.
Namespace of DDCMS conversion namespace.
double energyHCAL(std::vector< DetId > &vdets, edm::Handle< T > &hits, double hbThr=-100, double heThr=-100, double hfThr=-100, double hoThr=-100, double tMin=-500, double tMax=500, int useRaw=0, bool debug=false)
T const * product() const
std::vector< HOCalibVariables > HOCalibVariableCollection
collection of HOcalibration variabale
T const * product() const
void getAllStableProvenance(std::vector< StableProvenance const * > &provenances) const