13 #include "TDirectory.h" 15 #include "TLorentzVector.h" 16 #include "TInterpreter.h" 100 std::array<int, 3>
fillTree(std::vector<math::XYZTLorentzVector>& vecL1,
101 std::vector<math::XYZTLorentzVector>& vecL3,
103 std::vector<spr::propagatedTrackDirection>& trkCaloDirections,
104 std::vector<spr::propagatedTrackID>& trkCaloDets,
121 const std::vector<DetId>&
ids,
122 std::vector<double>& edet,
124 std::vector<unsigned int>* detIds,
125 std::vector<double>* hitEnergies);
198 a_coneR_(iConfig.getParameter<double>(
"coneRadius")),
199 a_mipR_(iConfig.getParameter<double>(
"coneRadiusMIP")),
200 a_mipR2_(iConfig.getParameter<double>(
"coneRadiusMIP2")),
201 a_mipR3_(iConfig.getParameter<double>(
"coneRadiusMIP3")),
202 a_mipR4_(iConfig.getParameter<double>(
"coneRadiusMIP4")),
203 a_mipR5_(iConfig.getParameter<double>(
"coneRadiusMIP5")),
204 pTrackMin_(iConfig.getParameter<double>(
"minimumTrackP")),
205 eEcalMax_(iConfig.getParameter<double>(
"maximumEcalEnergy")),
208 hcalScale_(iConfig.getUntrackedParameter<double>(
"hHcalScale", 1.0)),
209 eIsolate1_(iConfig.getParameter<double>(
"isolationEnergyTight")),
210 eIsolate2_(iConfig.getParameter<double>(
"isolationEnergyLoose")),
211 pTrackLow_(iConfig.getParameter<double>(
"momentumLow")),
212 pTrackHigh_(iConfig.getParameter<double>(
"momentumHigh")),
215 useRaw_(iConfig.getUntrackedParameter<
int>(
"useRaw", 0)),
216 dataType_(iConfig.getUntrackedParameter<
int>(
"dataType", 0)),
217 mode_(iConfig.getUntrackedParameter<
int>(
"outMode", 11)),
222 hitEthrEB_(iConfig.getParameter<double>(
"EBHitEnergyThreshold")),
223 hitEthrEE0_(iConfig.getParameter<double>(
"EEHitEnergyThreshold0")),
224 hitEthrEE1_(iConfig.getParameter<double>(
"EEHitEnergyThreshold1")),
225 hitEthrEE2_(iConfig.getParameter<double>(
"EEHitEnergyThreshold2")),
226 hitEthrEE3_(iConfig.getParameter<double>(
"EEHitEnergyThreshold3")),
227 hitEthrEELo_(iConfig.getParameter<double>(
"EEHitEnergyThresholdLow")),
228 hitEthrEEHi_(iConfig.getParameter<double>(
"EEHitEnergyThresholdHigh")),
245 const double isolationRadius(28.9), innerR(10.0), outerR(30.0);
275 tok_bs_ = consumes<reco::BeamSpot>(labelBS);
280 tok_alg_ = consumes<BXVector<GlobalAlgBlk>>(algTag);
282 if (modnam.empty()) {
305 <<
"Parameters read from config file \n" 312 <<
"\t a_charIsoR " << a_charIsoR_ <<
"\t a_mipR " <<
a_mipR_ <<
"\t a_mipR2 " <<
a_mipR2_ <<
"\t a_mipR3 " 329 for (
int i = 0;
i < 10;
i++)
331 for (
int i = 0;
i < 8; ++
i)
339 unsigned int k1(0), k2(0);
340 for (
auto phi : phibins_) {
344 for (
auto eta : etabins_) {
387 respCorrs->
setTopo(theHBHETopology);
397 if (!trkCollection.
isValid()) {
416 if (recVtxs.
isValid() && !(recVtxs->empty())) {
418 for (
unsigned int k = 0;
k < recVtxs->size(); ++
k) {
419 if (!((*recVtxs)[
k].isFake()) && ((*recVtxs)[
k].ndof() > 4)) {
439 if (!barrelRecHitsHandle.
isValid()) {
445 if (!endcapRecHitsHandle.
isValid()) {
459 std::vector<spr::propagatedTrackDirection> trkCaloDirections;
461 std::vector<spr::propagatedTrackID> trkCaloDets;
463 std::vector<math::XYZTLorentzVector> vecL1, vecL3;
488 for (
const auto& decision : finalDecisions) {
489 if (decision.first.find(
l1TrigName_) != std::string::npos) {
496 <<
" from a list of " << finalDecisions.size() <<
" decisions";
502 if (triggerResults.
isValid()) {
506 for (
unsigned int iHLT = 0; iHLT < triggerResults->
size(); iHLT++) {
516 <<
"This trigger " << names[iHLT] <<
" Flag " << hlt <<
":" <<
t_trgbits->at(i);
527 std::array<int, 3> ntksave{{0, 0, 0}};
555 if (!triggerEventHandle.
isValid()) {
558 triggerEvent = *(triggerEventHandle.
product());
561 if (triggerResults.
isValid()) {
562 std::vector<std::string>
modules;
565 for (
unsigned int iHLT = 0; iHLT < triggerResults->
size(); iHLT++) {
570 std::vector<math::XYZTLorentzVector> vecL2;
574 for (
unsigned int ifilter = 0; ifilter < triggerEvent.
sizeFilters(); ++ifilter) {
575 std::vector<int>
Keys;
578 for (
unsigned int imodule = 0; imodule < moduleLabels.size(); imodule++) {
579 if (label.find(moduleLabels[imodule]) != std::string::npos) {
583 for (
unsigned int ifiltrKey = 0; ifiltrKey < triggerEvent.
filterKeys(ifilter).size(); ++ifiltrKey) {
584 Keys.push_back(triggerEvent.
filterKeys(ifilter)[ifiltrKey]);
587 if (label.find(
l2Filter_) != std::string::npos) {
589 }
else if (label.find(
l3Filter_) != std::string::npos) {
596 <<
"key " << ifiltrKey <<
" : pt " << TO.
pt() <<
" eta " << TO.
eta() <<
" phi " << TO.
phi()
597 <<
" mass " << TO.
mass() <<
" Id " << TO.
id();
602 <<
"sizes " << vecL1.size() <<
":" << vecL2.size() <<
":" << vecL3.size();
610 for (
unsigned int i = 0;
i < vecL2.size();
i++) {
611 double dr =
dR(vecL1[0], vecL2[
i]);
617 mindRvec1 = vecL2[
i];
621 edm::LogVerbatim(
"HcalIsoTrack") <<
"L2 object closest to L1 " << mindRvec1 <<
" at Dr " << mindR1;
624 if (!vecL1.empty()) {
631 if (!vecL3.empty()) {
675 tree =
fs->
make<TTree>(
"CalibTree",
"CalibTree");
677 tree->Branch(
"t_Run", &
t_Run,
"t_Run/I");
686 if (((
mode_ / 10) % 10) == 1) {
694 tree->Branch(
"t_p", &
t_p,
"t_p/D");
695 tree->Branch(
"t_pt", &
t_pt,
"t_pt/D");
696 tree->Branch(
"t_phi", &
t_phi,
"t_phi/D");
718 t_DetIds =
new std::vector<unsigned int>();
719 t_DetIds1 =
new std::vector<unsigned int>();
720 t_DetIds3 =
new std::vector<unsigned int>();
725 tree->Branch(
"t_DetIds",
"std::vector<unsigned int>", &
t_DetIds);
726 tree->Branch(
"t_HitEnergies",
"std::vector<double>", &t_HitEnergies);
727 if (((
mode_ / 10) % 10) == 1) {
728 tree->Branch(
"t_trgbits",
"std::vector<bool>", &t_trgbits);
730 if ((
mode_ % 10) == 1) {
731 tree->Branch(
"t_DetIds1",
"std::vector<unsigned int>", &t_DetIds1);
732 tree->Branch(
"t_DetIds3",
"std::vector<unsigned int>", &t_DetIds3);
733 tree->Branch(
"t_HitEnergies1",
"std::vector<double>", &t_HitEnergies1);
734 tree->Branch(
"t_HitEnergies3",
"std::vector<double>", &t_HitEnergies3);
736 tree2 =
fs->
make<TTree>(
"EventInfo",
"Event Information");
753 tree2->Branch(
"t_ietaAll",
"std::vector<int>", &t_ietaAll);
754 tree2->Branch(
"t_ietaGood",
"std::vector<int>", &t_ietaGood);
755 tree2->Branch(
"t_trackType",
"std::vector<int>", &t_trackType);
768 <<
" init flag " << flag <<
" change flag " << changed_;
776 for (
unsigned itrig = 0; itrig <
trigNames_.size(); itrig++) {
778 if (triggerindx >=
n) {
780 <<
"the current menu";
798 std::vector<std::string> trig = {
"HLT_PFJet40",
808 desc.
add<std::vector<std::string>>(
"triggers", trig);
815 desc.
add<
double>(
"minTrackPt", 1.0);
816 desc.
add<
double>(
"maxDxyPV", 0.02);
817 desc.
add<
double>(
"maxDzPV", 0.02);
818 desc.
add<
double>(
"maxChi2", 5.0);
819 desc.
add<
double>(
"maxDpOverP", 0.1);
820 desc.
add<
int>(
"minOuterHit", 4);
821 desc.
add<
int>(
"minLayerCrossed", 8);
822 desc.
add<
int>(
"maxInMiss", 0);
823 desc.
add<
int>(
"maxOutMiss", 0);
825 desc.
add<
double>(
"minimumTrackP", 20.0);
826 desc.
add<
double>(
"coneRadius", 34.98);
828 desc.
add<
double>(
"coneRadiusMIP", 14.0);
829 desc.
add<
double>(
"coneRadiusMIP2", 18.0);
830 desc.
add<
double>(
"coneRadiusMIP3", 20.0);
831 desc.
add<
double>(
"coneRadiusMIP4", 22.0);
832 desc.
add<
double>(
"coneRadiusMIP5", 24.0);
833 desc.
add<
double>(
"maximumEcalEnergy", 2.0);
835 desc.
add<
double>(
"maxTrackP", 8.0);
836 desc.
add<
double>(
"slopeTrackP", 0.05090504066);
837 desc.
add<
double>(
"isolationEnergyTight", 2.0);
838 desc.
add<
double>(
"isolationEnergyLoose", 10.0);
840 desc.
add<
double>(
"EBHitEnergyThreshold", 0.08);
841 desc.
add<
double>(
"EEHitEnergyThreshold0", 0.30);
842 desc.
add<
double>(
"EEHitEnergyThreshold1", 0.00);
843 desc.
add<
double>(
"EEHitEnergyThreshold2", 0.00);
844 desc.
add<
double>(
"EEHitEnergyThreshold3", 0.00);
845 desc.
add<
double>(
"EEHitEnergyThresholdLow", 0.30);
846 desc.
add<
double>(
"EEHitEnergyThresholdHigh", 0.30);
848 desc.
add<
double>(
"momentumLow", 40.0);
849 desc.
add<
double>(
"momentumHigh", 60.0);
850 desc.
add<
int>(
"prescaleLow", 1);
851 desc.
add<
int>(
"prescaleHigh", 1);
877 descriptions.
add(
"HcalIsoTrkAnalyzer", desc);
881 std::vector<math::XYZTLorentzVector>& vecL3,
883 std::vector<spr::propagatedTrackDirection>& trkCaloDirections,
884 std::vector<spr::propagatedTrackID>& trkCaloDets,
896 int nSave(0),
nLoose(0), nTight(0);
898 std::vector<spr::propagatedTrackDirection>::const_iterator trkDetItr;
899 unsigned int nTracks(0), nselTracks(0);
900 t_nTrk = trkCaloDirections.size();
902 for (trkDetItr = trkCaloDirections.begin(),
nTracks = 0; trkDetItr != trkCaloDirections.end();
904 const reco::Track* pTrack = &(*(trkDetItr->trkItr));
908 << pTrack->
eta() <<
"|" << pTrack->
phi() <<
"|" << pTrack->
p();
911 for (
unsigned int k = 0;
k < vecL3.size(); ++
k) {
912 double dr =
dR(vecL3[
k], v4);
917 t_mindR1 = (!vecL1.empty()) ?
dR(vecL1[0], v4) : 999;
922 if (trkDetItr->okHCAL) {
926 if (
t_p > 40.0 &&
t_p <= 60.0)
933 oneCutParameters.
maxDzPV = 100;
936 bool qltyFlag =
spr::goodTrack(pTrack, leadPV, oneCutParameters,
false);
939 oneCutParameters.
maxDzPV = 100;
951 edm::LogVerbatim(
"HcalIsoTrack") <<
"qltyFlag|okECAL|okHCAL : " << qltyFlag <<
"|" << trkDetItr->okECAL <<
"|" 952 << trkDetItr->okHCAL <<
" eIsolation " << eIsolation;
954 t_qltyFlag = (qltyFlag && trkDetItr->okECAL && trkDetItr->okHCAL);
959 std::vector<DetId> eIds;
960 std::vector<double> eHit;
964 trkDetItr->pointHCAL,
965 trkDetItr->pointECAL,
967 trkDetItr->directionECAL,
971 for (
unsigned int k = 0;
k < eIds.size(); ++
k) {
991 std::vector<DetId> eIds2;
992 std::vector<double> eHit2;
996 trkDetItr->pointHCAL,
997 trkDetItr->pointECAL,
999 trkDetItr->directionECAL,
1003 for (
unsigned int k = 0;
k < eIds2.size(); ++
k) {
1014 if (eHit2[k] > eThr)
1023 std::vector<DetId> eIds3;
1024 std::vector<double> eHit3;
1026 barrelRecHitsHandle,
1027 endcapRecHitsHandle,
1028 trkDetItr->pointHCAL,
1029 trkDetItr->pointECAL,
1031 trkDetItr->directionECAL,
1035 for (
unsigned int k = 0;
k < eIds3.size(); ++
k) {
1046 if (eHit3[k] > eThr)
1055 std::vector<DetId> eIds4;
1056 std::vector<double> eHit4;
1058 barrelRecHitsHandle,
1059 endcapRecHitsHandle,
1060 trkDetItr->pointHCAL,
1061 trkDetItr->pointECAL,
1063 trkDetItr->directionECAL,
1067 for (
unsigned int k = 0;
k < eIds4.size(); ++
k) {
1078 if (eHit4[k] > eThr)
1087 std::vector<DetId> eIds5;
1088 std::vector<double> eHit5;
1090 barrelRecHitsHandle,
1091 endcapRecHitsHandle,
1092 trkDetItr->pointHCAL,
1093 trkDetItr->pointECAL,
1095 trkDetItr->directionECAL,
1099 for (
unsigned int k = 0;
k < eIds5.size(); ++
k) {
1110 if (eHit5[k] > eThr)
1120 const DetId cellE(trkDetItr->detIdECAL);
1122 barrelRecHitsHandle,
1123 endcapRecHitsHandle,
1135 barrelRecHitsHandle,
1136 endcapRecHitsHandle,
1147 if (e11x11P.second && e15x15P.second) {
1148 t_eAnnular = (e15x15P.first - e11x11P.first);
1150 t_eAnnular = -(e15x15P.first - e11x11P.first);
1153 const DetId cellH(trkDetItr->detIdHCAL);
1155 theHBHETopology, cellH, hbhe, 2, 2,
false,
true, -100.0, -100.0, -100.0, -100.0, -100.0, 100.0);
1157 theHBHETopology, cellH, hbhe, 3, 3,
false,
true, -100.0, -100.0, -100.0, -100.0, -100.0, 100.0);
1161 <<
" Annular E (Ecal) " << e11x11P.first <<
":" << e15x15P.first <<
":" 1172 int nRecHits(-999), nRecHits1(-999), nRecHits3(-999);
1173 std::vector<DetId>
ids, ids1, ids3;
1174 std::vector<double> edet0, edet1, edet3;
1177 trkDetItr->pointHCAL,
1178 trkDetItr->pointECAL,
1180 trkDetItr->directionHCAL,
1190 trkDetItr->pointHCAL,
1191 trkDetItr->pointECAL,
1193 trkDetItr->directionHCAL,
1203 trkDetItr->pointHCAL,
1204 trkDetItr->pointECAL,
1206 trkDetItr->directionHCAL,
1219 << pTrack->
eta() <<
"|" <<
t_phi <<
"|" <<
t_p <<
" Generator Level p " 1224 for (
unsigned int ll = 0; ll <
t_DetIds->size(); ll++) {
1228 for (
unsigned int ll = 0; ll <
t_DetIds1->size(); ll++) {
1232 for (
unsigned int ll = 0; ll <
t_DetIds3->size(); ll++) {
1269 if (
t_p > 40.0 &&
t_p <= 60.0 && t_selectTk) {
1282 std::array<int, 3> i3{{nSave,
nLoose, nTight}};
1287 return reco::deltaR(vec1.eta(), vec1.phi(), vec2.eta(), vec2.phi());
1294 double mindR(999.9);
1295 for (
const auto&
p : (*genParticles)) {
1299 pmom =
p.momentum().R();
1307 std::vector<double> sumPFNallSMDQH2;
1313 for (
const auto& pf_it : (*tower)) {
1318 hadder += pf_it.hadEt();
1320 sumPFNallSMDQH2.emplace_back(hadder);
1325 std::sort(sumPFNallSMDQH2.begin(), sumPFNallSMDQH2.end());
1326 if (sumPFNallSMDQH2.size() % 2)
1327 evt_smdq = sumPFNallSMDQH2[(sumPFNallSMDQH2.size() - 1) / 2];
1329 evt_smdq = (sumPFNallSMDQH2[sumPFNallSMDQH2.size() / 2] + sumPFNallSMDQH2[(sumPFNallSMDQH2.size() - 2) / 2]) / 2.;
1339 const std::vector<DetId>&
ids,
1340 std::vector<double>& edet,
1342 std::vector<unsigned int>* detIds,
1343 std::vector<double>* hitEnergies) {
1346 for (
unsigned int k = 0;
k < ids.size(); ++
k) {
1353 for (
const auto& en : edet)
1356 if (
std::abs(ehcal - eHcal) > 0.001)
1357 edm::LogWarning(
"HcalIsoTrack") <<
"Check inconsistent energies: " << indx <<
" " << eHcal <<
":" << ehcal
1358 <<
" from " << ids.size() <<
" cells";
1362 std::map<HcalDetId, double> hitMap;
1363 for (
unsigned int k = 0;
k < ids.size(); ++
k) {
1365 auto itr = hitMap.find(
id);
1366 if (itr == hitMap.end()) {
1367 hitMap[
id] = edet[
k];
1369 (itr->second) += edet[k];
1372 detIds->reserve(hitMap.size());
1373 hitEnergies->reserve(hitMap.size());
1374 for (
const auto&
hit : hitMap) {
1375 detIds->emplace_back(
hit.first.rawId());
1376 hitEnergies->emplace_back(
hit.second);
1379 detIds->reserve(ids.size());
1380 hitEnergies->reserve(ids.size());
1381 for (
unsigned int k = 0;
k < ids.size(); ++
k) {
1382 detIds->emplace_back(ids[
k].rawId());
1383 hitEnergies->emplace_back(edet[
k]);
1387 edm::LogVerbatim(
"HcalIsoTrack") <<
"Input to storeEnergy with " << ids.size() <<
" cells";
1388 for (
unsigned int k = 0;
k < ids.size(); ++
k)
1390 edm::LogVerbatim(
"HcalIsoTrack") <<
"Output of storeEnergy with " << detIds->size() <<
" cells and Etot " << eHcal;
1391 for (
unsigned int k = 0; k < detIds->size(); ++
k)
unsigned int size() const
number of trigger paths in trigger table
static const std::string kSharedResource
const std::string labelHBHE_
constexpr double deltaPhi(double phi1, double phi2)
const std::vector< std::string > trigNames_
double p() const
momentum vector magnitude
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)
spr::trackSelectionParameters selectionParameter_
T getParameter(std::string const &) const
EventNumber_t event() const
T getUntrackedParameter(std::string const &, T const &) const
std::vector< spr::propagatedTrackID > propagateCALO(edm::Handle< reco::TrackCollection > &trkCollection, const CaloGeometry *geo, const MagneticField *bField, const std::string &theTrackQuality, bool debug=false)
~HcalIsoTrkAnalyzer() override
const unsigned int nTracks(const reco::Vertex &sv)
const std::string l1TrigName_
const double maxRestrictionP_
edm::EDGetTokenT< EcalRecHitCollection > tok_EE_
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
The single EDProduct to be saved for each event (AOD case)
trigger::size_type sizeFilters() const
const std::string labelRecVtx_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
TrackQuality
track quality
HcalDetId mergedDepthDetId(const HcalDetId &id) const
const std::string labelTower_
std::vector< int > * t_ietaAll
bool accept() const
Has at least one path accepted the event?
const double hitEthrEELo_
const Keys & filterKeys(trigger::size_type index) const
int bunchCrossing() const
edm::LuminosityBlockNumber_t luminosityBlock() const
const double hitEthrEEHi_
double phi() const
azimuthal angle of momentum vector
T * make(const Args &...args) const
make new ROOT object
edm::EDGetTokenT< BXVector< GlobalAlgBlk > > tok_alg_
const Item * getValues(DetId fId, bool throwOnFail=true) const
edm::EDGetTokenT< EcalRecHitCollection > tok_EB_
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
edm::EDGetTokenT< reco::TrackCollection > tok_genTrack_
double px() const
x coordinate of momentum vector
void storeEnergy(int indx, const HcalRespCorrs *respCorrs, const std::vector< DetId > &ids, std::vector< double > &edet, double &eHcal, std::vector< unsigned int > *detIds, std::vector< double > *hitEnergies)
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 HcalTopology *theHBHETopology, 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 HcalRespCorrs *respCorrs)
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
std::vector< double > etabins_
Strings const & triggerNames() const
std::vector< unsigned int > * t_DetIds
const std::string names[nVars_]
edm::EDGetTokenT< HBHERecHitCollection > tok_hbhe_
std::vector< double > * t_HitEnergies1
void analyze(edm::Event const &, edm::EventSetup const &) override
edm::EDGetTokenT< reco::GenParticleCollection > tok_parts_
const bool ignoreTrigger_
unsigned int triggerIndex(const std::string &triggerName) const
slot position of trigger path in trigger table (0 to size-1)
Single trigger physics object (e.g., an isolated muon)
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
double chargeIsolationEcal(unsigned int trkIndex, std::vector< spr::propagatedTrackID > &vdetIds, const CaloGeometry *geo, const CaloTopology *caloTopology, int ieta, int iphi, bool debug=false)
edm::EDGetTokenT< trigger::TriggerEvent > tok_trigEvt_
#define DEFINE_FWK_MODULE(type)
std::vector< double > * t_HitEnergies3
const std::string labelGenTrack_
double eta() const
pseudorapidity of momentum vector
edm::EDGetTokenT< reco::BeamSpot > tok_bs_
double trackP(const reco::Track *, const edm::Handle< reco::GenParticleCollection > &)
edm::EDGetTokenT< GenEventInfoProduct > tok_ew_
edm::Service< TFileService > fs
bool goodTrack(const reco::Track *pTrack, math::XYZPoint leadPV, trackSelectionParameters parameters, bool debug=false)
const TriggerObjectCollection & getObjects() const
std::vector< double > vec1
const bool collapseDepth_
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
l1t::L1TGlobalUtil * l1GtUtils_
unsigned int size() const
Get number of paths stored.
double pt() const
track transverse momentum
std::vector< bool > * t_hltbits
int ieta() const
get the cell ieta
GlobalPoint getPosition(const DetId &id) const
Get the position of a given detector id.
Abs< T >::type abs(const T &t)
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)
static std::string const triggerResults
ParameterDescriptionBase * add(U const &iLabel, T const &value)
HLTConfigProvider hltConfig_
const std::string l3Filter_
double pz() const
z coordinate of momentum vector
constexpr auto deltaR(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
const std::vector< std::string > & moduleLabels(unsigned int trigger) const
label(s) of module(s) on a trigger path
std::vector< bool > * t_trgbits
std::vector< TriggerObject > TriggerObjectCollection
collection of trigger physics objects (e.g., all isolated muons)
int iphi() const
get the cell iphi
const double slopeRestrictionP_
const edm::InputTag filterTag(trigger::size_type index) const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
static TrackQuality qualityByName(const std::string &name)
const std::string l2Filter_
T const * product() const
const std::string processName_
XYZPointD XYZPoint
point in space with cartesian internal representation
std::vector< size_type > Keys
const std::string labelEB_
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d'tor
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::InputTag theTriggerResultsLabel_
void endRun(edm::Run const &, edm::EventSetup const &) override
HcalIsoTrkAnalyzer(edm::ParameterSet const &)
const HcalDDDRecConstants * hdc_
reco::TrackBase::TrackQuality minQuality
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
const Point & position() const
position
std::vector< unsigned int > * t_DetIds1
edm::EDGetTokenT< edm::TriggerResults > tok_trigRes_
const edm::InputTag triggerEvent_
std::vector< int > * t_ietaGood
edm::EDGetTokenT< reco::VertexCollection > tok_recVtx_
edm::EDGetTokenT< CaloTowerCollection > tok_cala_
std::vector< unsigned int > * t_DetIds3
T const * product() const
edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const override
const std::string labelEE_
void setTopo(const HcalTopology *topo)
void retrieveL1(const edm::Event &iEvent, const edm::EventSetup &evSetup)
initialize the class (mainly reserve)
double py() const
y coordinate of momentum vector
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_
std::vector< int > * t_trackType