87 : pTrackLow_(iConfig.getParameter<double>(
"momentumLow")),
88 pTrackHigh_(iConfig.getParameter<double>(
"momentumHigh")),
89 useRaw_(iConfig.getUntrackedParameter<
int>(
"useRaw", 0)),
90 dataType_(iConfig.getUntrackedParameter<
int>(
"dataType", 0)),
91 unCorrect_(iConfig.getUntrackedParameter<
int>(
"unCorrect", 0)),
92 fillInRange_(iConfig.getUntrackedParameter<
bool>(
"fillInRange",
false)),
93 labelIsoTkVar_(iConfig.getParameter<
edm::
InputTag>(
"isoTrackVarLabel")),
94 labelIsoTkEvt_(iConfig.getParameter<
edm::
InputTag>(
"isoTrackEvtLabel")),
95 debEvents_(iConfig.getParameter<
std::
vector<
int>>(
"debugEvents")),
101 theHBHETopology_(nullptr),
116 <<
" events to be debugged";
135 <<
" Luminosity " <<
iEvent.luminosityBlock() <<
" Bunch " 136 <<
iEvent.bunchCrossing();
141 if (isotrkCalibColl.isValid()) {
142 auto isotrkCalib = *isotrkCalibColl.product();
145 edm::LogVerbatim(
"HcalIsoTrack") <<
"Finds HcalIsoTrkCalibVariablesCollection with " << isotrkCalib.size()
149 for (
const auto& itr : isotrkCalib) {
208 <<
" qltyFlag:qltyMissFlag:qltyPVFlag:selectTk " <<
t_qltyFlag <<
":" 238 for (
unsigned int k = 0;
k <
t_DetIds.size(); ++
k) {
280 edm::LogVerbatim(
"HcalIsoTrack") <<
"Cannot find HcalIsoTrkCalibVariablesCollection";
285 if (isotrkEventColl.isValid()) {
286 auto isotrkEvent = isotrkEventColl.product();
289 edm::LogVerbatim(
"HcalIsoTrack") <<
"Finds HcalIsoTrkEventVariablesCollection with " << isotrkEvent->size()
292 auto itr = isotrkEvent->begin();
293 if (itr != isotrkEvent->end()) {
312 edm::LogVerbatim(
"HcalIsoTrack") <<
"Cannot find HcalIsoTrkEventVariablesCollections";
318 tree =
fs->make<TTree>(
"CalibTree",
"CalibTree");
320 tree->Branch(
"t_Run", &
t_Run,
"t_Run/I");
335 tree->Branch(
"t_p", &
t_p,
"t_p/D");
336 tree->Branch(
"t_pt", &
t_pt,
"t_pt/D");
337 tree->Branch(
"t_phi", &
t_phi,
"t_phi/D");
367 tree2 =
fs->make<TTree>(
"EventInfo",
"Event Information");
399 <<
" events with p < " <<
pTrackLow_ <<
", " <<
nHigh_ <<
" events with p > " 409 desc.add<
double>(
"momentumLow", 40.0);
410 desc.add<
double>(
"momentumHigh", 60.0);
411 desc.addUntracked<
int>(
"useRaw", 0);
412 desc.addUntracked<
int>(
"dataType", 0);
413 desc.addUntracked<
int>(
"unCorrect", 0);
414 desc.addUntracked<
bool>(
"fillInRange",
false);
418 desc.add<std::vector<int>>(
"debugEvents",
events);
419 descriptions.
add(
"hcalIsoTrackAnalyzer",
desc);
432 for (
int capid = 0; capid < 4; ++capid)
static const std::string kSharedResource
Log< level::Info, true > LogVerbatim
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::vector< double > t_HitEnergies1
const HcalTopology * theHBHETopology_
const std::vector< int > debEvents_
void beginRun(edm::Run const &, edm::EventSetup const &) override
const edm::ESGetToken< HcalDbService, HcalDbRecord > tok_dbservice_
std::vector< double > t_HitEnergies3
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
edm::EDGetTokenT< HcalIsoTrkEventVariablesCollection > tokIsoTrkEvt_
std::vector< int > t_ietaGood
void endRun(edm::Run const &, edm::EventSetup const &) override
std::vector< unsigned int > t_DetIds3
std::vector< unsigned int > t_DetIds
std::vector< double > t_HitEnergies
const edm::InputTag labelIsoTkEvt_
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
std::vector< HcalIsoTrkEventVariables > HcalIsoTrkEventVariablesCollection
const edm::ESGetToken< HcalRespCorrs, HcalRespCorrsRcd > tok_respcorr_
const Item * getValues(DetId fId, bool throwOnFail=true) const
HcalIsoTrackAnalyzer(edm::ParameterSet const &)
~HcalIsoTrackAnalyzer() override
HcalRespCorrs * respCorrs_
double respCorr(const DetId &id)
#define DEFINE_FWK_MODULE(type)
std::vector< bool > t_trgbits
edm::EDGetTokenT< HcalIsoTrkCalibVariablesCollection > tokIsoTrkVar_
std::vector< int > t_ietaAll
constexpr double respcorrgain(int fCapId) const
get response corrected gain for capid=0..3
const edm::ESGetToken< HcalTopology, HcalRecNumberingRecord > tok_htopo_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
const edm::InputTag labelIsoTkVar_
std::vector< HcalIsoTrkCalibVariables > HcalIsoTrkCalibVariablesCollection
double gainFactor(const HcalDbService *dbserv, const HcalDetId &id)
void analyze(edm::Event const &, edm::EventSetup const &) override
std::vector< int > t_trackType
const JetExtendedData & getValue(const Container &, const reco::JetBaseRef &)
get value for the association. Throw exception if no association found
std::vector< bool > t_hltbits
std::vector< unsigned int > t_DetIds1
void setTopo(const HcalTopology *topo)