13 #include "TDirectory.h" 15 #include "TLorentzVector.h" 16 #include "TInterpreter.h" 101 std::array<int,3>
fillTree(std::vector< math::XYZTLorentzVector>& vecL1,
102 std::vector< math::XYZTLorentzVector>& vecL3,
104 std::vector<spr::propagatedTrackDirection>& trkCaloDirections,
105 std::vector<spr::propagatedTrackID>& trkCaloDets,
121 const std::vector<DetId>&
ids,
122 std::vector<double>& edet,
double & eHcal,
123 std::vector<unsigned int> *detIds,
124 std::vector<double> *hitEnergies);
196 a_coneR_(iConfig.getParameter<double>(
"coneRadius")),
197 a_mipR_(iConfig.getParameter<double>(
"coneRadiusMIP")),
198 a_mipR2_(iConfig.getParameter<double>(
"coneRadiusMIP2")),
199 a_mipR3_(iConfig.getParameter<double>(
"coneRadiusMIP3")),
200 a_mipR4_(iConfig.getParameter<double>(
"coneRadiusMIP4")),
201 a_mipR5_(iConfig.getParameter<double>(
"coneRadiusMIP5")),
202 pTrackMin_(iConfig.getParameter<double>(
"minimumTrackP")),
203 eEcalMax_(iConfig.getParameter<double>(
"maximumEcalEnergy")),
206 hcalScale_(iConfig.getUntrackedParameter<double>(
"hHcalScale",1.0)),
207 eIsolate1_(iConfig.getParameter<double>(
"isolationEnergyTight")),
208 eIsolate2_(iConfig.getParameter<double>(
"isolationEnergyLoose")),
209 pTrackLow_(iConfig.getParameter<double>(
"momentumLow")),
210 pTrackHigh_(iConfig.getParameter<double>(
"momentumHigh")),
213 useRaw_(iConfig.getUntrackedParameter<
int>(
"useRaw",0)),
214 dataType_(iConfig.getUntrackedParameter<
int>(
"dataType",0)),
215 mode_(iConfig.getUntrackedParameter<
int>(
"outMode",11)),
220 hitEthrEB_(iConfig.getParameter<double>(
"EBHitEnergyThreshold") ),
221 hitEthrEE0_(iConfig.getParameter<double>(
"EEHitEnergyThreshold0") ),
222 hitEthrEE1_(iConfig.getParameter<double>(
"EEHitEnergyThreshold1") ),
223 hitEthrEE2_(iConfig.getParameter<double>(
"EEHitEnergyThreshold2") ),
224 hitEthrEE3_(iConfig.getParameter<double>(
"EEHitEnergyThreshold3") ),
239 const double isolationRadius(28.9), innerR(10.0), outerR(30.0);
268 tok_bs_ = consumes<reco::BeamSpot>(labelBS);
273 tok_alg_ = consumes<BXVector<GlobalAlgBlk>>(algTag);
275 if (modnam.empty()) {
320 <<
"\t a_charIsoR " << a_charIsoR_
341 <<
"\t mode_ " <<
mode_ 346 <<
" L1Filter:" <<
l1Filter_ <<
" L2Filter:" 362 unsigned int k1(0), k2(0);
363 for (
auto phi : phibins_) {
366 for (
auto eta : etabins_) {
411 respCorrs->
setTopo(theHBHETopology);
421 if (!trkCollection.
isValid()) {
440 if (recVtxs.
isValid() && !(recVtxs->empty())) {
442 for (
unsigned int k=0;
k<recVtxs->size(); ++
k) {
443 if (!((*recVtxs)[
k].isFake()) && ((*recVtxs)[
k].ndof() > 4)) {
454 edm::LogVerbatim(
"HcalIsoTrack") <<
"Primary Vertex " << leadPV <<
" out of " 463 if (!barrelRecHitsHandle.
isValid()) {
470 if (!endcapRecHitsHandle.
isValid()) {
486 std::vector<spr::propagatedTrackDirection> trkCaloDirections;
488 trkCaloDirections,
false);
489 std::vector<spr::propagatedTrackID> trkCaloDets;
492 std::vector<math::XYZTLorentzVector> vecL1, vecL3;
501 <<
" out of " <<
t_Tracks <<
" with Trigger " 515 for (
const auto& decision : finalDecisions) {
516 if (decision.first.find(
l1TrigName_) != std::string::npos) {
523 <<
" is " <<
t_L1Bit <<
" from a list of " 524 << finalDecisions.size() <<
" decisions";
530 if (triggerResults.
isValid()) {
534 for (
unsigned int iHLT=0; iHLT<triggerResults->
size(); iHLT++) {
543 << names[iHLT] <<
" Flag " 556 std::array<int,3> ntksave{ {0,0,0} };
561 ntksave =
fillTree(vecL1, vecL3, leadPV, trkCaloDirections, trkCaloDets,
562 geo, caloTopology, theHBHETopology, theEcalChStatus,
563 theEcalSevlv, barrelRecHitsHandle, endcapRecHitsHandle,
564 hbhe, caloTower, genParticles, respCorrs);
572 if (!triggerEventHandle.
isValid()) {
576 triggerEvent = *(triggerEventHandle.
product());
579 if (triggerResults.
isValid()) {
580 std::vector<std::string>
modules;
583 for (
unsigned int iHLT=0; iHLT<triggerResults->
size(); iHLT++) {
588 std::vector<math::XYZTLorentzVector> vecL2;
589 vecL1.clear(); vecL3.clear();
591 for (
unsigned int ifilter=0; ifilter<triggerEvent.
sizeFilters();
593 std::vector<int>
Keys;
596 for (
unsigned int imodule=0; imodule<moduleLabels.size();
598 if (label.find(moduleLabels[imodule]) != std::string::npos) {
602 for (
unsigned int ifiltrKey=0;
603 ifiltrKey<triggerEvent.
filterKeys(ifilter).size();
605 Keys.push_back(triggerEvent.
filterKeys(ifilter)[ifiltrKey]);
608 if (label.find(
l2Filter_) != std::string::npos) {
610 }
else if (label.find(
l3Filter_) != std::string::npos) {
612 }
else if ((label.find(
l1Filter_) != std::string::npos) ||
618 <<
" : pt " << TO.
pt()
619 <<
" eta " << TO.
eta()
620 <<
" phi " << TO.
phi()
621 <<
" mass " << TO.
mass()
627 <<
":" << vecL2.size() <<
":" 636 for (
unsigned int i=0;
i<vecL2.size();
i++) {
637 double dr =
dR(vecL1[0],vecL2[
i]);
643 mindRvec1 = vecL2[
i];
648 << mindRvec1 <<
" at Dr " 652 if (!vecL1.empty()) {
659 if (!vecL3.empty()) {
668 ntksave =
fillTree(vecL1, vecL3, leadPV, trkCaloDirections,
669 trkCaloDets, geo, caloTopology,theHBHETopology,
670 theEcalChStatus, theEcalSevlv,
671 barrelRecHitsHandle, endcapRecHitsHandle,
672 hbhe, caloTower, genParticles, respCorrs);
694 tree =
fs->
make<TTree>(
"CalibTree",
"CalibTree");
696 tree->Branch(
"t_Run", &
t_Run,
"t_Run/I");
705 if (((
mode_/10)%10) == 1) {
713 tree->Branch(
"t_p", &
t_p,
"t_p/D");
714 tree->Branch(
"t_pt", &
t_pt,
"t_pt/D");
715 tree->Branch(
"t_phi", &
t_phi,
"t_phi/D");
737 t_DetIds =
new std::vector<unsigned int>();
738 t_DetIds1 =
new std::vector<unsigned int>();
739 t_DetIds3 =
new std::vector<unsigned int>();
744 tree->Branch(
"t_DetIds",
"std::vector<unsigned int>", &
t_DetIds);
745 tree->Branch(
"t_HitEnergies",
"std::vector<double>", &t_HitEnergies);
746 if (((
mode_/10)%10) == 1) {
747 tree->Branch(
"t_trgbits",
"std::vector<bool>", &t_trgbits);
749 if ((
mode_%10) == 1) {
750 tree->Branch(
"t_DetIds1",
"std::vector<unsigned int>", &t_DetIds1);
751 tree->Branch(
"t_DetIds3",
"std::vector<unsigned int>", &t_DetIds3);
752 tree->Branch(
"t_HitEnergies1",
"std::vector<double>", &t_HitEnergies1);
753 tree->Branch(
"t_HitEnergies3",
"std::vector<double>", &t_HitEnergies3);
755 tree2 =
fs->
make<TTree>(
"EventInfo",
"Event Information");
772 tree2->Branch(
"t_ietaAll",
"std::vector<int>", &t_ietaAll);
773 tree2->Branch(
"t_ietaGood",
"std::vector<int>", &t_ietaGood);
774 tree2->Branch(
"t_trackType",
"std::vector<int>", &t_trackType);
789 <<
" init flag " << flag <<
" change flag " 798 for (
unsigned itrig=0; itrig<
trigNames_.size(); itrig++) {
800 if (triggerindx >=
n) {
802 << triggerindx <<
" does not exist in " 803 <<
"the current menu";
807 << triggerindx <<
" exists";
822 std::vector<std::string> trig = {
"HLT_PFJet40",
"HLT_PFJet60",
"HLT_PFJet80",
823 "HLT_PFJet140",
"HLT_PFJet200",
"HLT_PFJet260",
824 "HLT_PFJet320",
"HLT_PFJet400",
"HLT_PFJet450",
826 desc.
add<std::vector<std::string>>(
"triggers",trig);
833 desc.
add<
double>(
"minTrackPt",1.0);
834 desc.
add<
double>(
"maxDxyPV",0.02);
835 desc.
add<
double>(
"maxDzPV",0.02);
836 desc.
add<
double>(
"maxChi2",5.0);
837 desc.
add<
double>(
"maxDpOverP",0.1);
838 desc.
add<
int>(
"minOuterHit",4);
839 desc.
add<
int>(
"minLayerCrossed",8);
840 desc.
add<
int>(
"maxInMiss",0);
841 desc.
add<
int>(
"maxOutMiss",0);
843 desc.
add<
double>(
"minimumTrackP",20.0);
844 desc.
add<
double>(
"coneRadius",34.98);
846 desc.
add<
double>(
"coneRadiusMIP",14.0);
847 desc.
add<
double>(
"coneRadiusMIP2",18.0);
848 desc.
add<
double>(
"coneRadiusMIP3",20.0);
849 desc.
add<
double>(
"coneRadiusMIP4",22.0);
850 desc.
add<
double>(
"coneRadiusMIP5",24.0);
851 desc.
add<
double>(
"maximumEcalEnergy",2.0);
853 desc.
add<
double>(
"maxTrackP",8.0);
854 desc.
add<
double>(
"slopeTrackP",0.05090504066);
855 desc.
add<
double>(
"isolationEnergyTight",2.0);
856 desc.
add<
double>(
"isolationEnergyLoose",10.0);
858 desc.
add<
double>(
"EBHitEnergyThreshold",0.10);
859 desc.
add<
double>(
"EEHitEnergyThreshold0",-41.0664);
860 desc.
add<
double>(
"EEHitEnergyThreshold1",68.7950);
861 desc.
add<
double>(
"EEHitEnergyThreshold2",-38.1483);
862 desc.
add<
double>(
"EEHitEnergyThreshold3",7.04303);
864 desc.
add<
double>(
"momentumLow", 40.0);
865 desc.
add<
double>(
"momentumHigh",60.0);
866 desc.
add<
int>(
"prescaleLow", 1);
867 desc.
add<
int>(
"prescaleHigh",1);
893 descriptions.
add(
"HcalIsoTrkAnalyzer",desc);
897 std::vector< math::XYZTLorentzVector>& vecL3,
899 std::vector<spr::propagatedTrackDirection>& trkCaloDirections,
900 std::vector<spr::propagatedTrackID>& trkCaloDets,
913 int nSave(0),
nLoose(0), nTight(0);
915 std::vector<spr::propagatedTrackDirection>::const_iterator trkDetItr;
916 unsigned int nTracks(0), nselTracks(0);
917 t_nTrk = trkCaloDirections.size();
919 for (trkDetItr = trkCaloDirections.begin(),
nTracks=0;
920 trkDetItr != trkCaloDirections.end(); trkDetItr++,
nTracks++) {
921 const reco::Track* pTrack = &(*(trkDetItr->trkItr));
923 pTrack->
pz(), pTrack->
p());
926 <<
" (pt|eta|phi|p) :" << pTrack->
pt()
927 <<
"|" << pTrack->
eta() <<
"|" 928 << pTrack->
phi() <<
"|" <<pTrack->
p();
931 for (
unsigned int k=0;
k<vecL3.size(); ++
k) {
932 double dr =
dR(vecL3[
k],v4);
937 t_mindR1 = (!vecL1.empty()) ?
dR(vecL1[0],v4) : 999;
943 if (trkDetItr->okHCAL) {
953 oneCutParameters.
maxDzPV = 100;
956 bool qltyFlag =
spr::goodTrack(pTrack,leadPV,oneCutParameters,
false);
959 oneCutParameters.
maxDzPV = 100;
970 << qltyFlag <<
"|" << trkDetItr->okECAL
971 <<
"|" << trkDetItr->okHCAL
972 <<
" eIsolation " << eIsolation;
974 t_qltyFlag = (qltyFlag && trkDetItr->okECAL && trkDetItr->okHCAL);
979 std::vector<DetId> eIds;
980 std::vector<double> eHit;
982 endcapRecHitsHandle, trkDetItr->pointHCAL,
984 trkDetItr->directionECAL, eIds, eHit);
986 for (
unsigned int k=0;
k<eIds.size(); ++
k) {
991 if (eHit[k] > eThr) eEcal += eHit[
k];
1000 std::vector<DetId> eIds2;
1001 std::vector<double> eHit2;
1003 endcapRecHitsHandle, trkDetItr->pointHCAL,
1005 trkDetItr->directionECAL, eIds2, eHit2);
1007 for (
unsigned int k=0;
k<eIds2.size(); ++
k) {
1012 if (eHit2[k] > eThr) eEcal2 += eHit2[
k];
1021 std::vector<DetId> eIds3;
1022 std::vector<double> eHit3;
1024 endcapRecHitsHandle, trkDetItr->pointHCAL,
1026 trkDetItr->directionECAL, eIds3, eHit3);
1028 for (
unsigned int k=0;
k<eIds3.size(); ++
k) {
1033 if (eHit3[k] > eThr) eEcal3 += eHit3[
k];
1042 std::vector<DetId> eIds4;
1043 std::vector<double> eHit4;
1045 endcapRecHitsHandle, trkDetItr->pointHCAL,
1047 trkDetItr->directionECAL, eIds4, eHit4);
1049 for (
unsigned int k=0;
k<eIds4.size(); ++
k) {
1054 if (eHit4[k] > eThr) eEcal4 += eHit4[
k];
1063 std::vector<DetId> eIds5;
1064 std::vector<double> eHit5;
1066 endcapRecHitsHandle, trkDetItr->pointHCAL,
1068 trkDetItr->directionECAL, eIds5, eHit5);
1070 for (
unsigned int k=0;
k<eIds5.size(); ++
k) {
1075 if (eHit5[k] > eThr) eEcal5 += eHit5[
k];
1085 caloTopology, 15,15);
1086 const DetId cellE(trkDetItr->detIdECAL);
1087 std::pair<double, bool> e11x11P =
1089 *theEcalChStatus,geo,caloTopology,theEcalSevlv,
1090 5,5,-100.0,-100.0,-100.0,100.0);
1091 std::pair<double, bool> e15x15P =
1093 *theEcalChStatus,geo,caloTopology,theEcalSevlv,7,7,
1094 -100.0,-100.0,-100.0,100.0);
1095 if (e11x11P.second && e15x15P.second) {
1096 t_eAnnular = (e15x15P.first - e11x11P.first);
1098 t_eAnnular =-(e15x15P.first - e11x11P.first);
1102 const DetId cellH(trkDetItr->detIdHCAL);
1104 -100.0,-100.0,-100.0,-100.0,-100.0,100.0);
1106 -100.0,-100.0,-100.0,-100.0,-100.0,100.0);
1111 <<
" Annular E (Ecal) " << e11x11P.first
1112 <<
":" << e15x15P.first <<
":" 1121 int nRecHits(-999), nRecHits1(-999), nRecHits3(-999);
1122 std::vector<DetId>
ids, ids1, ids3;
1123 std::vector<double> edet0, edet1, edet3;
1126 trkDetItr->directionHCAL,nRecHits,
1133 trkDetItr->directionHCAL,nRecHits1,
1140 trkDetItr->directionHCAL,nRecHits3,
1150 <<
" (pt|eta|phi|p) :" <<
t_pt 1151 <<
"|" << pTrack->
eta() <<
"|" 1153 <<
" Generator Level p " 1157 <<
" eHcal" <<
t_eHcal <<
" ieta " 1158 << t_ieta <<
" Quality " 1161 for (
unsigned int ll=0; ll<
t_DetIds->size(); ll++) {
1163 <<
" hit enery is = " 1166 for (
unsigned int ll=0; ll<
t_DetIds1->size(); ll++) {
1168 <<
" hit enery is = " 1171 for (
unsigned int ll=0; ll<
t_DetIds3->size(); ll++) {
1173 <<
" hit enery is = " 1199 if (
t_p > 40.0 &&
t_p <= 60.0 && t_selectTk) {
1213 std::array<int,3> i3{ {nSave,
nLoose,nTight} };
1218 return reco::deltaR(vec1.eta(),vec1.phi(),vec2.eta(),vec2.phi());
1226 double mindR(999.9);
1227 for (
const auto &
p : (*genParticles)) {
1229 p.momentum().Eta(),
p.momentum().Phi());
1231 mindR =
dR; pmom =
p.momentum().R();
1240 std::vector<double> sumPFNallSMDQH2;
1246 for (
const auto & pf_it : (*tower)) {
1249 hadder += pf_it.hadEt();
1251 sumPFNallSMDQH2.emplace_back(hadder);
1256 std::sort(sumPFNallSMDQH2.begin(),sumPFNallSMDQH2.end());
1257 if (sumPFNallSMDQH2.size()%2) evt_smdq = sumPFNallSMDQH2[(sumPFNallSMDQH2.size()-1)/2];
1258 else evt_smdq = (sumPFNallSMDQH2[sumPFNallSMDQH2.size()/2]+sumPFNallSMDQH2[(sumPFNallSMDQH2.size()-2)/2])/2.;
1267 const std::vector<DetId>&
ids,
1268 std::vector<double>& edet,
1270 std::vector<unsigned int> *detIds,
1271 std::vector<double> *hitEnergies) {
1274 for (
unsigned int k=0;
k<ids.size(); ++
k) {
1276 if (corr != 0) edet[
k] /=
corr;
1280 for (
const auto& en : edet) ehcal += en;
1283 edm::LogWarning(
"HcalIsoTrack") <<
"Check inconsistent energies: " << indx
1284 <<
" " << eHcal <<
":" << ehcal
1285 <<
" from " << ids.size() <<
" cells";
1289 std::map<HcalDetId,double> hitMap;
1290 for (
unsigned int k=0;
k<ids.size(); ++
k) {
1292 auto itr = hitMap.find(
id);
1293 if (itr == hitMap.end()) {
1294 hitMap[
id] = edet[
k];
1296 (itr->second) += edet[k];
1299 detIds->reserve(hitMap.size()); hitEnergies->reserve(hitMap.size());
1300 for (
const auto&
hit : hitMap) {
1301 detIds->emplace_back(
hit.first.rawId());
1302 hitEnergies->emplace_back(
hit.second);
1305 detIds->reserve(ids.size()); hitEnergies->reserve(ids.size());
1306 for (
unsigned int k=0;
k<ids.size(); ++
k) {
1307 detIds->emplace_back(ids[
k].rawId());
1308 hitEnergies->emplace_back(edet[
k]);
1313 << ids.size() <<
" cells";
1314 for (
unsigned int k=0;
k<ids.size(); ++
k)
1318 << detIds->size() <<
" cells and Etot " 1320 for (
unsigned int k=0; k<detIds->size(); ++
k)
1323 << (*hitEnergies)[
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_
#define DEFINE_FWK_MODULE(type)
std::vector< int > * t_ietaAll
bool accept() const
Has at least one path accepted the event?
const Keys & filterKeys(trigger::size_type index) const
int bunchCrossing() const
edm::LuminosityBlockNumber_t luminosityBlock() const
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_
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