7 #include "TLorentzVector.h" 102 std::array<int, 3>
fillTree(std::vector<math::XYZTLorentzVector>& vecL1,
103 std::vector<math::XYZTLorentzVector>& vecL3,
105 std::vector<spr::propagatedTrackDirection>& trkCaloDirections,
106 std::vector<spr::propagatedTrackID>& trkCaloDets,
125 const std::vector<DetId>& ids,
126 std::vector<double>& edet,
128 std::vector<unsigned int>* detIds,
129 std::vector<double>* hitEnergies);
225 theTrackQuality_(iConfig.getParameter<
std::
string>(
"trackQuality")),
226 processName_(iConfig.getParameter<
std::
string>(
"processName")),
227 l1Filter_(iConfig.getParameter<
std::
string>(
"l1Filter")),
228 l2Filter_(iConfig.getParameter<
std::
string>(
"l2Filter")),
229 l3Filter_(iConfig.getParameter<
std::
string>(
"l3Filter")),
230 a_coneR_(iConfig.getParameter<double>(
"coneRadius")),
231 a_mipR_(iConfig.getParameter<double>(
"coneRadiusMIP")),
232 a_mipR2_(iConfig.getParameter<double>(
"coneRadiusMIP2")),
233 a_mipR3_(iConfig.getParameter<double>(
"coneRadiusMIP3")),
234 a_mipR4_(iConfig.getParameter<double>(
"coneRadiusMIP4")),
235 a_mipR5_(iConfig.getParameter<double>(
"coneRadiusMIP5")),
236 pTrackMin_(iConfig.getParameter<double>(
"minimumTrackP")),
237 eEcalMax_(iConfig.getParameter<double>(
"maximumEcalEnergy")),
238 maxRestrictionP_(iConfig.getParameter<double>(
"maxTrackP")),
239 slopeRestrictionP_(iConfig.getParameter<double>(
"slopeTrackP")),
240 hcalScale_(iConfig.getUntrackedParameter<double>(
"hHcalScale", 1.0)),
241 eIsolate1_(iConfig.getParameter<double>(
"isolationEnergyTight")),
242 eIsolate2_(iConfig.getParameter<double>(
"isolationEnergyLoose")),
243 pTrackLow_(iConfig.getParameter<double>(
"momentumLow")),
244 pTrackHigh_(iConfig.getParameter<double>(
"momentumHigh")),
245 prescaleLow_(iConfig.getParameter<
int>(
"prescaleLow")),
246 prescaleHigh_(iConfig.getParameter<
int>(
"prescaleHigh")),
247 useRaw_(iConfig.getUntrackedParameter<
int>(
"useRaw", 0)),
248 dataType_(iConfig.getUntrackedParameter<
int>(
"dataType", 0)),
249 mode_(iConfig.getUntrackedParameter<
int>(
"outMode", 11)),
250 ignoreTrigger_(iConfig.getUntrackedParameter<
bool>(
"ignoreTriggers",
false)),
251 useL1Trigger_(iConfig.getUntrackedParameter<
bool>(
"useL1Trigger",
false)),
252 unCorrect_(iConfig.getUntrackedParameter<
bool>(
"unCorrect",
false)),
253 getCharge_(iConfig.getUntrackedParameter<
bool>(
"getCharge",
false)),
254 collapseDepth_(iConfig.getUntrackedParameter<
bool>(
"collapseDepth",
false)),
255 fillInRange_(iConfig.getUntrackedParameter<
bool>(
"fillInRange",
false)),
256 hitEthrEB_(iConfig.getParameter<double>(
"EBHitEnergyThreshold")),
257 hitEthrEE0_(iConfig.getParameter<double>(
"EEHitEnergyThreshold0")),
258 hitEthrEE1_(iConfig.getParameter<double>(
"EEHitEnergyThreshold1")),
259 hitEthrEE2_(iConfig.getParameter<double>(
"EEHitEnergyThreshold2")),
260 hitEthrEE3_(iConfig.getParameter<double>(
"EEHitEnergyThreshold3")),
261 hitEthrEELo_(iConfig.getParameter<double>(
"EEHitEnergyThresholdLow")),
262 hitEthrEEHi_(iConfig.getParameter<double>(
"EEHitEnergyThresholdHigh")),
263 triggerEvent_(iConfig.getParameter<
edm::
InputTag>(
"labelTriggerEvent")),
264 theTriggerResultsLabel_(iConfig.getParameter<
edm::
InputTag>(
"labelTriggerResult")),
265 labelGenTrack_(iConfig.getParameter<
std::
string>(
"labelTrack")),
266 labelRecVtx_(iConfig.getParameter<
std::
string>(
"labelVertex")),
267 labelEB_(iConfig.getParameter<
std::
string>(
"labelEBRecHit")),
268 labelEE_(iConfig.getParameter<
std::
string>(
"labelEERecHit")),
269 labelHBHE_(iConfig.getParameter<
std::
string>(
"labelHBHERecHit")),
270 labelTower_(iConfig.getParameter<
std::
string>(
"labelCaloTower")),
271 l1TrigName_(iConfig.getUntrackedParameter<
std::
string>(
"l1TrigName",
"L1_SingleJet60")),
272 oldID_(iConfig.getUntrackedParameter<
std::
vector<
int>>(
"oldID")),
273 newDepth_(iConfig.getUntrackedParameter<
std::
vector<
int>>(
"newDepth")),
274 hep17_(iConfig.getUntrackedParameter<
bool>(
"hep17")),
275 debEvents_(iConfig.getParameter<
std::
vector<
int>>(
"debugEvents")),
276 usePFThresh_(iConfig.getParameter<
bool>(
"usePFThreshold")),
277 labelBS_(iConfig.getParameter<
std::
string>(
"labelBeamSpot")),
278 modnam_(iConfig.getUntrackedParameter<
std::
string>(
"moduleName",
"")),
279 prdnam_(iConfig.getUntrackedParameter<
std::
string>(
"producerName",
"")),
280 labelMuon_(iConfig.getParameter<
std::
string>(
"labelMuon")),
281 algTag_(iConfig.getParameter<
edm::
InputTag>(
"algInputTag")),
282 extTag_(iConfig.getParameter<
edm::
InputTag>(
"extInputTag")),
313 theHBHETopology_(nullptr),
319 const double isolationRadius(28.9), innerR(10.0), outerR(30.0);
341 for (
unsigned int k = 0;
k <
oldID_.size(); ++
k) {
367 <<
"Parameters read from config file \n" 392 for (
unsigned int k = 0;
k <
oldID_.size(); ++
k)
396 for (
int i = 0;
i < 10;
i++)
398 for (
int i = 0;
i < 8; ++
i)
406 unsigned int k1(0), k2(0);
432 <<
" Luminosity " <<
iEvent.luminosityBlock() <<
" Bunch " 433 <<
iEvent.bunchCrossing();
454 if (!trkCollection.
isValid()) {
473 if (recVtxs.
isValid() && !(recVtxs->empty())) {
475 for (
unsigned int k = 0;
k < recVtxs->size(); ++
k) {
476 if (!((*recVtxs)[
k].isFake()) && ((*recVtxs)[
k].ndof() > 4)) {
496 if (!barrelRecHitsHandle.
isValid()) {
501 if (!endcapRecHitsHandle.
isValid()) {
506 if (!
hbhe.isValid()) {
513 std::vector<spr::propagatedTrackDirection> trkCaloDirections;
515 std::vector<spr::propagatedTrackID> trkCaloDets;
517 std::vector<math::XYZTLorentzVector> vecL1, vecL3;
544 for (
const auto& decision : finalDecisions) {
545 if (decision.first.find(
l1TrigName_) != std::string::npos) {
553 <<
" from a list of " << finalDecisions.size() <<
" decisions";
562 for (
unsigned int iHLT = 0; iHLT <
triggerResults->size(); iHLT++) {
587 std::array<int, 3> ntksave{{0, 0, 0}};
614 if (!triggerEventHandle.
isValid()) {
622 std::vector<std::string>
modules;
625 for (
unsigned int iHLT = 0; iHLT <
triggerResults->size(); iHLT++) {
630 std::vector<math::XYZTLorentzVector> vecL2;
634 for (
unsigned int ifilter = 0; ifilter <
triggerEvent.sizeFilters(); ++ifilter) {
635 std::vector<int>
Keys;
638 for (
unsigned int imodule = 0; imodule < moduleLabels.size(); imodule++) {
639 if (
label.find(moduleLabels[imodule]) != std::string::npos) {
644 for (
unsigned int ifiltrKey = 0; ifiltrKey <
triggerEvent.filterKeys(ifilter).size(); ++ifiltrKey) {
658 <<
"key " << ifiltrKey <<
" : pt " << TO.
pt() <<
" eta " << TO.
eta() <<
" phi " << TO.
phi()
659 <<
" mass " << TO.
mass() <<
" Id " << TO.
id();
665 <<
"sizes " << vecL1.size() <<
":" << vecL2.size() <<
":" << vecL3.size();
673 for (
unsigned int i = 0;
i < vecL2.size();
i++) {
674 double dr =
dR(vecL1[0], vecL2[
i]);
681 mindRvec1 = vecL2[
i];
686 edm::LogVerbatim(
"HcalIsoTrack") <<
"L2 object closest to L1 " << mindRvec1 <<
" at Dr " << mindR1;
689 if (!vecL1.empty()) {
696 if (!vecL3.empty()) {
742 tree =
fs->make<TTree>(
"CalibTree",
"CalibTree");
744 tree->Branch(
"t_Run", &
t_Run,
"t_Run/I");
759 tree->Branch(
"t_p", &
t_p,
"t_p/D");
760 tree->Branch(
"t_pt", &
t_pt,
"t_pt/D");
761 tree->Branch(
"t_phi", &
t_phi,
"t_phi/D");
783 t_DetIds =
new std::vector<unsigned int>();
784 t_DetIds1 =
new std::vector<unsigned int>();
785 t_DetIds3 =
new std::vector<unsigned int>();
790 tree->Branch(
"t_DetIds",
"std::vector<unsigned int>", &
t_DetIds);
793 tree->Branch(
"t_DetIds1",
"std::vector<unsigned int>", &
t_DetIds1);
794 tree->Branch(
"t_DetIds3",
"std::vector<unsigned int>", &
t_DetIds3);
798 tree2 =
fs->make<TTree>(
"EventInfo",
"Event Information");
835 <<
" init flag " <<
flag <<
" change flag " << changed_;
842 for (
unsigned itrig = 0; itrig <
trigNames_.size(); itrig++) {
844 if (triggerindx >=
n) {
846 <<
"the current menu";
870 std::vector<std::string>
trig = {
"HLT_PFJet40",
880 desc.add<std::vector<std::string>>(
"triggers",
trig);
887 desc.add<
double>(
"minTrackPt", 1.0);
888 desc.add<
double>(
"maxDxyPV", 0.02);
889 desc.add<
double>(
"maxDzPV", 0.02);
890 desc.add<
double>(
"maxChi2", 5.0);
891 desc.add<
double>(
"maxDpOverP", 0.1);
892 desc.add<
int>(
"minOuterHit", 4);
893 desc.add<
int>(
"minLayerCrossed", 8);
894 desc.add<
int>(
"maxInMiss", 0);
895 desc.add<
int>(
"maxOutMiss", 0);
897 desc.add<
double>(
"minimumTrackP", 10.0);
898 desc.add<
double>(
"coneRadius", 34.98);
900 desc.add<
double>(
"coneRadiusMIP", 14.0);
901 desc.add<
double>(
"coneRadiusMIP2", 18.0);
902 desc.add<
double>(
"coneRadiusMIP3", 20.0);
903 desc.add<
double>(
"coneRadiusMIP4", 22.0);
904 desc.add<
double>(
"coneRadiusMIP5", 24.0);
905 desc.add<
double>(
"maximumEcalEnergy", 2.0);
907 desc.add<
double>(
"maxTrackP", 8.0);
908 desc.add<
double>(
"slopeTrackP", 0.05090504066);
909 desc.add<
double>(
"isolationEnergyTight", 2.0);
910 desc.add<
double>(
"isolationEnergyLoose", 10.0);
912 desc.add<
double>(
"EBHitEnergyThreshold", 0.08);
913 desc.add<
double>(
"EEHitEnergyThreshold0", 0.30);
914 desc.add<
double>(
"EEHitEnergyThreshold1", 0.00);
915 desc.add<
double>(
"EEHitEnergyThreshold2", 0.00);
916 desc.add<
double>(
"EEHitEnergyThreshold3", 0.00);
917 desc.add<
double>(
"EEHitEnergyThresholdLow", 0.30);
918 desc.add<
double>(
"EEHitEnergyThresholdHigh", 0.30);
920 desc.add<
double>(
"momentumLow", 40.0);
921 desc.add<
double>(
"momentumHigh", 60.0);
922 desc.add<
int>(
"prescaleLow", 1);
923 desc.add<
int>(
"prescaleHigh", 1);
941 desc.addUntracked<
int>(
"useRaw", 0);
942 desc.addUntracked<
bool>(
"ignoreTriggers",
false);
943 desc.addUntracked<
bool>(
"useL1Trigger",
false);
944 desc.addUntracked<
double>(
"hcalScale", 1.0);
945 desc.addUntracked<
int>(
"dataType", 0);
946 desc.addUntracked<
bool>(
"unCorrect",
false);
947 desc.addUntracked<
bool>(
"getCharge",
false);
948 desc.addUntracked<
bool>(
"collapseDepth",
false);
949 desc.addUntracked<
bool>(
"fillInRange",
false);
951 desc.addUntracked<
int>(
"outMode", 11);
952 std::vector<int>
dummy;
953 desc.addUntracked<std::vector<int>>(
"oldID",
dummy);
954 desc.addUntracked<std::vector<int>>(
"newDepth",
dummy);
955 desc.addUntracked<
bool>(
"hep17",
false);
957 desc.add<std::vector<int>>(
"debugEvents",
events);
958 desc.add<
bool>(
"usePFThreshold",
true);
959 descriptions.
add(
"hcalIsoTrkAnalyzer",
desc);
963 std::vector<math::XYZTLorentzVector>& vecL3,
965 std::vector<spr::propagatedTrackDirection>& trkCaloDirections,
966 std::vector<spr::propagatedTrackID>& trkCaloDets,
978 int nSave(0),
nLoose(0), nTight(0);
981 t_nTrk = trkCaloDirections.size();
983 for (
const auto& trkDetItr : trkCaloDirections) {
984 const reco::Track* pTrack = &(*(trkDetItr.trkItr));
996 for (
unsigned int k = 0;
k < vecL3.size(); ++
k) {
997 double dr =
dR(vecL3[
k], v4);
1002 t_mindR1 = (!vecL1.empty()) ?
dR(vecL1[0], v4) : 999;
1009 if (trkDetItr.okHCAL) {
1013 if (
t_p > 40.0 &&
t_p <= 60.0)
1020 oneCutParameters.
maxDzPV = 100;
1023 bool qltyFlag =
spr::goodTrack(pTrack, leadPV, oneCutParameters,
false);
1026 oneCutParameters.
maxDzPV = 100;
1039 edm::LogVerbatim(
"HcalIsoTrack") <<
"qltyFlag|okECAL|okHCAL : " << qltyFlag <<
"|" << trkDetItr.okECAL <<
"|" 1040 << trkDetItr.okHCAL <<
" eIsolation " << eIsolation;
1042 t_qltyFlag = (qltyFlag && trkDetItr.okECAL && trkDetItr.okHCAL);
1047 std::vector<DetId> eIds;
1048 std::vector<double> eHit;
1050 barrelRecHitsHandle,
1051 endcapRecHitsHandle,
1052 trkDetItr.pointHCAL,
1053 trkDetItr.pointECAL,
1055 trkDetItr.directionECAL,
1059 for (
unsigned int k = 0;
k < eIds.size(); ++
k) {
1070 std::vector<DetId> eIds2;
1071 std::vector<double> eHit2;
1073 barrelRecHitsHandle,
1074 endcapRecHitsHandle,
1075 trkDetItr.pointHCAL,
1076 trkDetItr.pointECAL,
1078 trkDetItr.directionECAL,
1082 for (
unsigned int k = 0;
k < eIds2.size(); ++
k) {
1093 std::vector<DetId> eIds3;
1094 std::vector<double> eHit3;
1096 barrelRecHitsHandle,
1097 endcapRecHitsHandle,
1098 trkDetItr.pointHCAL,
1099 trkDetItr.pointECAL,
1101 trkDetItr.directionECAL,
1105 for (
unsigned int k = 0;
k < eIds3.size(); ++
k) {
1116 std::vector<DetId> eIds4;
1117 std::vector<double> eHit4;
1119 barrelRecHitsHandle,
1120 endcapRecHitsHandle,
1121 trkDetItr.pointHCAL,
1122 trkDetItr.pointECAL,
1124 trkDetItr.directionECAL,
1128 for (
unsigned int k = 0;
k < eIds4.size(); ++
k) {
1139 std::vector<DetId> eIds5;
1140 std::vector<double> eHit5;
1142 barrelRecHitsHandle,
1143 endcapRecHitsHandle,
1144 trkDetItr.pointHCAL,
1145 trkDetItr.pointECAL,
1147 trkDetItr.directionECAL,
1151 for (
unsigned int k = 0;
k < eIds5.size(); ++
k) {
1163 const DetId cellE(trkDetItr.detIdECAL);
1165 barrelRecHitsHandle,
1166 endcapRecHitsHandle,
1178 barrelRecHitsHandle,
1179 endcapRecHitsHandle,
1190 if (e11x11P.second && e15x15P.second) {
1191 t_eAnnular = (e15x15P.first - e11x11P.first);
1193 t_eAnnular = -(e15x15P.first - e11x11P.first);
1196 const DetId cellH(trkDetItr.detIdHCAL);
1198 theHBHETopology_, cellH,
hbhe, 2, 2,
false,
true, -100.0, -100.0, -100.0, -100.0, -100.0, 100.0);
1200 theHBHETopology_, cellH,
hbhe, 3, 3,
false,
true, -100.0, -100.0, -100.0, -100.0, -100.0, 100.0);
1205 <<
" Annular E (Ecal) " << e11x11P.first <<
":" << e15x15P.first <<
":" 1216 int nRecHits(-999), nRecHits1(-999), nRecHits3(-999);
1217 std::vector<DetId> ids, ids1, ids3;
1218 std::vector<double> edet0, edet1, edet3;
1221 trkDetItr.pointHCAL,
1222 trkDetItr.pointECAL,
1224 trkDetItr.directionHCAL,
1230 for (
unsigned k = 0;
k < ids.size(); ++
k)
1238 trkDetItr.pointHCAL,
1239 trkDetItr.pointECAL,
1241 trkDetItr.directionHCAL,
1247 for (
unsigned k = 0;
k < ids1.size(); ++
k)
1255 trkDetItr.pointHCAL,
1256 trkDetItr.pointECAL,
1258 trkDetItr.directionHCAL,
1264 for (
unsigned k = 0;
k < ids3.size(); ++
k)
1272 <<
"This track : " <<
nTracks <<
" (pt|eta|phi|p) : " <<
t_pt <<
"|" << pTrack->
eta() <<
"|" <<
t_phi 1277 for (
unsigned int ll = 0; ll <
t_DetIds->size(); ll++) {
1281 for (
unsigned int ll = 0; ll <
t_DetIds1->size(); ll++) {
1285 for (
unsigned int ll = 0; ll <
t_DetIds3->size(); ll++) {
1345 std::array<int, 3>
i3{{nSave,
nLoose, nTight}};
1357 double mindR(999.9);
1362 pmom =
p.momentum().R();
1370 std::vector<double> sumPFNallSMDQH2;
1376 for (
const auto& pf_it : (*
tower)) {
1381 hadder += pf_it.hadEt();
1383 sumPFNallSMDQH2.emplace_back(hadder);
1388 std::sort(sumPFNallSMDQH2.begin(), sumPFNallSMDQH2.end());
1389 if (sumPFNallSMDQH2.size() % 2)
1390 evt_smdq = sumPFNallSMDQH2[(sumPFNallSMDQH2.size() - 1) / 2];
1392 evt_smdq = (sumPFNallSMDQH2[sumPFNallSMDQH2.size() / 2] + sumPFNallSMDQH2[(sumPFNallSMDQH2.size() - 2) / 2]) / 2.;
1404 eThr =
static_cast<double>((*eThresholds_)[
id]);
1423 for (
unsigned int k = 0;
k <
oldID_.size(); ++
k) {
1433 const std::vector<DetId>& ids,
1434 std::vector<double>& edet,
1436 std::vector<unsigned int>* detIds,
1437 std::vector<double>* hitEnergies) {
1440 for (
unsigned int k = 0;
k < ids.size(); ++
k) {
1447 for (
unsigned int k = 0;
k < ids.size(); ++
k) {
1454 for (
const auto& en : edet)
1458 edm::LogWarning(
"HcalIsoTrack") <<
"Check inconsistent energies: " << indx <<
" " << eHcal <<
":" << ehcal
1459 <<
" from " << ids.size() <<
" cells";
1463 std::map<HcalDetId, double> hitMap;
1464 for (
unsigned int k = 0;
k < ids.size(); ++
k) {
1466 auto itr = hitMap.find(
id);
1467 if (itr == hitMap.end()) {
1468 hitMap[
id] = edet[
k];
1470 (itr->second) += edet[
k];
1473 detIds->reserve(hitMap.size());
1474 hitEnergies->reserve(hitMap.size());
1475 for (
const auto&
hit : hitMap) {
1476 detIds->emplace_back(
hit.first.rawId());
1477 hitEnergies->emplace_back(
hit.second);
1480 detIds->reserve(ids.size());
1481 hitEnergies->reserve(ids.size());
1482 for (
unsigned int k = 0;
k < ids.size(); ++
k) {
1483 detIds->emplace_back(ids[
k].
rawId());
1484 hitEnergies->emplace_back(edet[
k]);
1489 edm::LogVerbatim(
"HcalIsoTrack") <<
"Input to storeEnergy with " << ids.size() <<
" cells";
1490 for (
unsigned int k = 0;
k < ids.size(); ++
k)
1492 edm::LogVerbatim(
"HcalIsoTrack") <<
"Output of storeEnergy with " << detIds->size() <<
" cells and Etot " << eHcal;
1493 for (
unsigned int k = 0;
k < detIds->size(); ++
k)
1501 for (reco::MuonCollection::const_iterator recMuon = muonh->begin(); recMuon != muonh->end(); ++recMuon) {
1502 if (recMuon->innerTrack().isNonnull()) {
1503 const reco::Track* pTrack = (recMuon->innerTrack()).
get();
1504 bool mediumMuon = (((recMuon->isPFMuon()) && (recMuon->isGlobalMuon() || recMuon->isTrackerMuon())) &&
1505 (recMuon->innerTrack()->validFraction() > 0.49));
1507 double chiGlobal = ((recMuon->globalTrack().isNonnull()) ? recMuon->globalTrack()->normalizedChi2() : 999);
1508 bool goodGlob = (recMuon->isGlobalMuon() && chiGlobal < 3 &&
1509 recMuon->combinedQuality().chi2LocalPosition < 12 && recMuon->combinedQuality().trkKink < 20);
1527 for (
int capid = 0; capid < 4; ++capid)
static const std::string kSharedResource
const std::string labelHBHE_
constexpr double deltaPhi(double phi1, double phi2)
const std::vector< std::string > trigNames_
double eCone_hcal(const CaloGeometry *geo, edm::Handle< T > &hits, const GlobalPoint &hpoint1, const GlobalPoint &point1, double dR, const GlobalVector &trackMom, int &nRecHits, double hbThr=-100, double heThr=-100, double hfThr=-100, double hoThr=-100, double tMin=-500, double tMax=500, int detOnly=-1, int useRaw=0, bool debug=false)
Log< level::Info, true > LogVerbatim
spr::trackSelectionParameters selectionParameter_
std::vector< GenParticle > GenParticleCollection
collection of GenParticles
const edm::EDGetTokenT< edm::TriggerResults > tok_trigRes_
std::vector< spr::propagatedTrackID > propagateCALO(edm::Handle< reco::TrackCollection > &trkCollection, const CaloGeometry *geo, const MagneticField *bField, const std::string &theTrackQuality, bool debug=false)
HcalRespCorrs * respCorrs_
const HcalTopology * theHBHETopology_
~HcalIsoTrkAnalyzer() override
T getParameter(std::string const &) const
const std::string l1TrigName_
const double maxRestrictionP_
const std::string modnam_
std::vector< int > oldEta_
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
The single EDProduct to be saved for each event (AOD case)
HcalDetId mergedDepthDetId(const HcalDetId &id) const
const std::string labelRecVtx_
constexpr int zside() const
get the z-side of the cell (1/-1)
const Point & position() const
position
const edm::ESGetToken< EcalPFRecHitThresholds, EcalPFRecHitThresholdsRcd > tok_ecalPFRecHitThresholds_
TrackQuality
track quality
constexpr int ietaAbs() const
get the absolute value of the cell ieta
const std::string labelTower_
double px() const
x coordinate of momentum vector
double p() const
momentum vector magnitude
std::vector< int > * t_ietaAll
const edm::ESGetToken< HcalTopology, HcalRecNumberingRecord > tok_htopo_
const double hitEthrEELo_
T const * product() const
std::vector< Track > TrackCollection
collection of Tracks
std::vector< int > oldDepth_
const edm::ESGetToken< EcalSeverityLevelAlgo, EcalSeverityLevelAlgoRcd > tok_sevlv_
double py() const
y coordinate of momentum vector
const double hitEthrEEHi_
const std::string labelBS_
const edm::EDGetTokenT< CaloTowerCollection > tok_cala_
std::vector< double > * t_HitEnergies
double chargeIsolationCone(unsigned int trkIndex, std::vector< spr::propagatedTrackDirection > &trkDirs, double dR, int &nNearTRKs, bool debug=false)
void beginRun(edm::Run const &, edm::EventSetup const &) override
const edm::EDGetTokenT< reco::VertexCollection > tok_recVtx_
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
const edm::EDGetTokenT< GenEventInfoProduct > tok_ew_
std::vector< Vertex > VertexCollection
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
std::vector< double > etabins_
std::vector< unsigned int > * t_DetIds
const std::string names[nVars_]
const edm::EDGetTokenT< reco::BeamSpot > tok_bs_
std::vector< double > * t_HitEnergies1
void analyze(edm::Event const &, edm::EventSetup const &) override
const edm::ESGetToken< CaloTopology, CaloTopologyRecord > tok_caloTopology_
std::vector< Muon > MuonCollection
collection of Muon objects
const Item * getValues(DetId fId, bool throwOnFail=true) const
const edm::InputTag extTag_
const bool ignoreTrigger_
const edm::InputTag algTag_
Single trigger physics object (e.g., an isolated muon)
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
std::array< int, 3 > fillTree(std::vector< math::XYZTLorentzVector > &vecL1, std::vector< math::XYZTLorentzVector > &vecL3, math::XYZPoint &leadPV, std::vector< spr::propagatedTrackDirection > &trkCaloDirections, std::vector< spr::propagatedTrackID > &trkCaloDets, const CaloGeometry *geo, const CaloTopology *topo, const EcalChannelStatus *theEcalChStatus, const EcalSeverityLevelAlgo *theEcalSevlv, edm::Handle< EcalRecHitCollection > &barrelRecHitsHandle, edm::Handle< EcalRecHitCollection > &endcapRecHitsHandle, edm::Handle< HBHERecHitCollection > &hbhe, edm::Handle< CaloTowerCollection > &towerHandle, edm::Handle< reco::GenParticleCollection > &genParticles, const HcalDbService *conditions, const edm::Handle< reco::MuonCollection > &muonh)
double pt() const
track transverse momentum
constexpr HcalSubdetector subdet() const
get the subdetector
const EcalPFRecHitThresholds * eThresholds_
const edm::EDGetTokenT< EcalRecHitCollection > tok_EE_
const edm::ESGetToken< CaloGeometry, CaloGeometryRecord > tok_geom_
double chargeIsolationEcal(unsigned int trkIndex, std::vector< spr::propagatedTrackID > &vdetIds, const CaloGeometry *geo, const CaloTopology *caloTopology, int ieta, int iphi, bool debug=false)
std::vector< double > * t_HitEnergies3
const std::string labelGenTrack_
double trackP(const reco::Track *, const edm::Handle< reco::GenParticleCollection > &)
GlobalPoint getPosition(const DetId &id) const
Get the position of a given detector id.
unsigned int size() const
number of trigger paths in trigger table
bool goodTrack(const reco::Track *pTrack, math::XYZPoint leadPV, trackSelectionParameters parameters, bool debug=false)
std::vector< double > vec1
const bool collapseDepth_
constexpr int ieta() const
get the cell ieta
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
l1t::L1TGlobalUtil * l1GtUtils_
const std::vector< std::string > & moduleLabels(unsigned int trigger) const
label(s) of module(s) on a trigger path
std::vector< bool > * t_hltbits
const edm::EDGetTokenT< reco::GenParticleCollection > tok_parts_
Abs< T >::type abs(const T &t)
float segmentCompatibility(const reco::Muon &muon, reco::Muon::ArbitrationType arbitrationType=reco::Muon::SegmentAndTrackArbitration)
double phi() const
azimuthal angle of momentum vector
double eCone_ecal(const CaloGeometry *geo, edm::Handle< T > &barrelhits, edm::Handle< T > &endcaphits, const GlobalPoint &hpoint1, const GlobalPoint &point1, double dR, const GlobalVector &trackMom, int &nRecHits, double ebThr=-100, double eeThr=-100, double tMin=-500, double tMax=500, bool debug=false)
#define DEFINE_FWK_MODULE(type)
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
unsigned int triggerIndex(const std::string &triggerName) const
slot position of trigger path in trigger table (0 to size-1)
static std::string const triggerResults
HLTConfigProvider hltConfig_
const std::string l3Filter_
constexpr double respcorrgain(int fCapId) const
get response corrected gain for capid=0..3
constexpr auto deltaR(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
const edm::ESGetToken< HcalRespCorrs, HcalRespCorrsRcd > tok_resp_
const edm::EDGetTokenT< HBHERecHitCollection > tok_hbhe_
std::vector< bool > * t_trgbits
std::vector< TriggerObject > TriggerObjectCollection
collection of trigger physics objects (e.g., all isolated muons)
const double slopeRestrictionP_
double eta() const
pseudorapidity of momentum vector
const std::vector< int > debEvents_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
static TrackQuality qualityByName(const std::string &name)
const std::string l2Filter_
const edm::EDGetTokenT< trigger::TriggerEvent > tok_trigEvt_
const std::string processName_
const edm::EDGetTokenT< reco::MuonCollection > tok_Muon_
XYZPointD XYZPoint
point in space with cartesian internal representation
std::vector< size_type > Keys
const edm::EDGetTokenT< reco::TrackCollection > tok_genTrack_
const std::string labelEB_
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d'tor
double pz() const
z coordinate of momentum vector
std::vector< double > phibins_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
double rhoh(const edm::Handle< CaloTowerCollection > &)
double dR(math::XYZTLorentzVector &, math::XYZTLorentzVector &)
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > tok_bFieldH_
const edm::EDGetTokenT< EcalRecHitCollection > tok_EB_
std::vector< int > oldDet_
const edm::InputTag theTriggerResultsLabel_
void endRun(edm::Run const &, edm::EventSetup const &) override
HcalIsoTrkAnalyzer(edm::ParameterSet const &)
const edm::ESGetToken< EcalChannelStatus, EcalChannelStatusRcd > tok_ecalChStatus_
const HcalDDDRecConstants * hdc_
reco::TrackBase::TrackQuality minQuality
const edm::EDGetTokenT< BXVector< GlobalAlgBlk > > tok_alg_
const edm::ESGetToken< HcalDDDRecConstants, HcalRecNumberingRecord > tok_ddrec_
const std::vector< std::pair< std::string, bool > > & decisionsFinal()
const JetExtendedData & getValue(const Container &, const reco::JetBaseRef &)
get value for the association. Throw exception if no association found
std::vector< unsigned int > * t_DetIds1
const std::string prdnam_
const std::vector< int > newDepth_
const edm::InputTag triggerEvent_
Log< level::Warning, false > LogWarning
double gainFactor(const HcalDbService *dbserv, const HcalDetId &id)
std::vector< int > * t_ietaGood
std::vector< unsigned int > * t_DetIds3
double eThreshold(const DetId &id, const CaloGeometry *geo) const
const std::vector< int > oldID_
constexpr int iphi() const
get the cell iphi
const std::string labelEE_
const std::string labelMuon_
void setTopo(const HcalTopology *topo)
void retrieveL1(const edm::Event &iEvent, const edm::EventSetup &evSetup)
initialize the class (mainly reserve)
const edm::ESGetToken< HcalDbService, HcalDbRecord > tok_dbservice_
bool notaMuon(const reco::Track *pTrack0, const edm::Handle< reco::MuonCollection > &muonh)
DetId newId(const DetId &)
const std::string l1Filter_
double eECALmatrix(const DetId &detId, edm::Handle< T > &hitsEB, edm::Handle< T > &hitsEE, const CaloGeometry *geo, const CaloTopology *caloTopology, int ieta, int iphi, double ebThr=-100, double eeThr=-100, double tMin=-500, double tMax=500, bool debug=false)
double eHCALmatrix(const HcalTopology *topology, const DetId &det, edm::Handle< T > &hits, int ieta, int iphi, bool includeHO=false, bool algoNew=true, double hbThr=-100, double heThr=-100, double hfThr=-100, double hoThr=-100, double tMin=-500, double tMax=500, int useRaw=0, bool debug=false)
const std::string theTrackQuality_
void storeEnergy(int indx, const HcalDbService *conditions, const std::vector< DetId > &ids, std::vector< double > &edet, double &eHcal, std::vector< unsigned int > *detIds, std::vector< double > *hitEnergies)
std::vector< int > * t_trackType
constexpr int depth() const
get the tower depth