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();
97 edm::LogVerbatim(
"HcalAlCa") <<
" Size of muon collection " << mucand->size();
98 for (
const auto& it : *(mucand.
product())) {
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();
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
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
edm::EDGetTokenT< reco::TrackCollection > tok_tracks_
Geom::Phi< T > phi() const
edm::EDGetTokenT< reco::MuonCollection > tok_muons_
edm::EDGetTokenT< reco::SuperClusterCollection > tok_gamma_
edm::EDGetTokenT< HORecHitCollection > tok_ho_
edm::EDGetTokenT< HBHERecHitCollection > tok_hbheProd_
edm::EDGetTokenT< HORecHitCollection > tok_horeco_
edm::EDGetTokenT< HOCalibVariableCollection > tok_hovar_
GlobalPoint getPosition(const DetId &id) const
Get the position of a given detector id.
edm::EDGetTokenT< EcalRecHitCollection > tok_ecal_
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
edm::EDGetTokenT< HBHERecHitCollection > tok_hbhe_
edm::EDGetTokenT< reco::CaloJetCollection > tok_jets_
edm::EDGetTokenT< HFRecHitCollection > tok_hf_
T const * product() const
void getAllStableProvenance(std::vector< StableProvenance const * > &provenances) const