68 : pTrackLow_(iConfig.getParameter<double>(
"momentumLow")),
69 pTrackHigh_(iConfig.getParameter<double>(
"momentumHigh")),
70 useRaw_(iConfig.getUntrackedParameter<
int>(
"useRaw", 0)),
71 dataType_(iConfig.getUntrackedParameter<
int>(
"dataType", 0)),
72 labelIsoTkVar_(iConfig.getParameter<
edm::
InputTag>(
"isoTrackVarLabel")),
73 labelIsoTkEvt_(iConfig.getParameter<
edm::
InputTag>(
"isoTrackEvtLabel")),
74 debEvents_(iConfig.getParameter<
std::
vector<
int>>(
"debugEvents")),
89 <<
" events to be debugged";
102 <<
" Luminosity " <<
iEvent.luminosityBlock() <<
" Bunch " 103 <<
iEvent.bunchCrossing();
108 if (isotrkCalibColl.isValid()) {
109 auto isotrkCalib = *isotrkCalibColl.product();
112 edm::LogVerbatim(
"HcalIsoTrack") <<
"Finds HcalIsoTrkCalibVariablesCollection with " << isotrkCalib.size()
116 for (
const auto& itr : isotrkCalib) {
175 <<
" qltyFlag:qltyMissFlag:qltyPVFlag:selectTk " <<
t_qltyFlag <<
":" 220 edm::LogVerbatim(
"HcalIsoTrack") <<
"Cannot find HcalIsoTrkCalibVariablesCollection";
225 if (isotrkEventColl.isValid()) {
226 auto isotrkEvent = isotrkEventColl.product();
229 edm::LogVerbatim(
"HcalIsoTrack") <<
"Finds HcalIsoTrkEventVariablesCollection with " << isotrkEvent->size()
232 auto itr = isotrkEvent->begin();
233 if (itr != isotrkEvent->end()) {
252 edm::LogVerbatim(
"HcalIsoTrack") <<
"Cannot find HcalIsoTrkEventVariablesCollections";
258 tree =
fs->make<TTree>(
"CalibTree",
"CalibTree");
260 tree->Branch(
"t_Run", &
t_Run,
"t_Run/I");
275 tree->Branch(
"t_p", &
t_p,
"t_p/D");
276 tree->Branch(
"t_pt", &
t_pt,
"t_pt/D");
277 tree->Branch(
"t_phi", &
t_phi,
"t_phi/D");
307 tree2 =
fs->make<TTree>(
"EventInfo",
"Event Information");
332 <<
" events with p < " <<
pTrackLow_ <<
", " <<
nHigh_ <<
" events with p > " 338 desc.add<
double>(
"momentumLow", 40.0);
339 desc.add<
double>(
"momentumHigh", 60.0);
340 desc.addUntracked<
int>(
"useRaw", 0);
341 desc.addUntracked<
int>(
"dataType", 0);
345 desc.add<std::vector<int>>(
"debugEvents",
events);
346 descriptions.
add(
"hcalIsoTrackAnalyzer",
desc);
static const std::string kSharedResource
Log< level::Info, true > LogVerbatim
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::vector< double > t_HitEnergies1
const std::vector< int > debEvents_
void beginRun(edm::Run const &, edm::EventSetup const &) override
std::vector< double > t_HitEnergies3
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
HcalIsoTrackAnalyzer(edm::ParameterSet const &)
~HcalIsoTrackAnalyzer() override
#define DEFINE_FWK_MODULE(type)
std::vector< bool > t_trgbits
edm::EDGetTokenT< HcalIsoTrkCalibVariablesCollection > tokIsoTrkVar_
std::vector< int > t_ietaAll
void add(std::string const &label, ParameterSetDescription const &psetDescription)
const edm::InputTag labelIsoTkVar_
std::vector< HcalIsoTrkCalibVariables > HcalIsoTrkCalibVariablesCollection
void analyze(edm::Event const &, edm::EventSetup const &) override
std::vector< int > t_trackType
std::vector< bool > t_hltbits
std::vector< unsigned int > t_DetIds1