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,
122 const std::vector<DetId>&
ids,
123 std::vector<double>& edet,
125 std::vector<unsigned int>* detIds,
126 std::vector<double>* hitEnergies);
199 a_coneR_(iConfig.getParameter<double>(
"coneRadius")),
200 a_mipR_(iConfig.getParameter<double>(
"coneRadiusMIP")),
201 a_mipR2_(iConfig.getParameter<double>(
"coneRadiusMIP2")),
202 a_mipR3_(iConfig.getParameter<double>(
"coneRadiusMIP3")),
203 a_mipR4_(iConfig.getParameter<double>(
"coneRadiusMIP4")),
204 a_mipR5_(iConfig.getParameter<double>(
"coneRadiusMIP5")),
205 pTrackMin_(iConfig.getParameter<double>(
"minimumTrackP")),
206 eEcalMax_(iConfig.getParameter<double>(
"maximumEcalEnergy")),
209 hcalScale_(iConfig.getUntrackedParameter<double>(
"hHcalScale", 1.0)),
210 eIsolate1_(iConfig.getParameter<double>(
"isolationEnergyTight")),
211 eIsolate2_(iConfig.getParameter<double>(
"isolationEnergyLoose")),
212 pTrackLow_(iConfig.getParameter<double>(
"momentumLow")),
213 pTrackHigh_(iConfig.getParameter<double>(
"momentumHigh")),
216 useRaw_(iConfig.getUntrackedParameter<
int>(
"useRaw", 0)),
217 dataType_(iConfig.getUntrackedParameter<
int>(
"dataType", 0)),
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 " 328 for (
int i = 0;
i < 10;
i++)
330 for (
int i = 0;
i < 8; ++
i)
338 unsigned int k1(0), k2(0);
339 for (
auto phi : phibins_) {
343 for (
auto eta : etabins_) {
386 respCorrs->
setTopo(theHBHETopology);
396 if (!trkCollection.
isValid()) {
415 if (recVtxs.
isValid() && !(recVtxs->empty())) {
417 for (
unsigned int k = 0;
k < recVtxs->size(); ++
k) {
418 if (!((*recVtxs)[
k].isFake()) && ((*recVtxs)[
k].ndof() > 4)) {
438 if (!barrelRecHitsHandle.
isValid()) {
444 if (!endcapRecHitsHandle.
isValid()) {
458 std::vector<spr::propagatedTrackDirection> trkCaloDirections;
460 std::vector<spr::propagatedTrackID> trkCaloDets;
462 std::vector<math::XYZTLorentzVector> vecL1, vecL3;
487 for (
const auto& decision : finalDecisions) {
488 if (decision.first.find(
l1TrigName_) != std::string::npos) {
495 <<
" from a list of " << finalDecisions.size() <<
" decisions";
501 if (triggerResults.
isValid()) {
505 for (
unsigned int iHLT = 0; iHLT < triggerResults->
size(); iHLT++) {
515 <<
"This trigger " << names[iHLT] <<
" Flag " << hlt <<
":" <<
t_trgbits->at(i);
526 std::array<int, 3> ntksave{{0, 0, 0}};
554 if (!triggerEventHandle.
isValid()) {
557 triggerEvent = *(triggerEventHandle.
product());
560 if (triggerResults.
isValid()) {
561 std::vector<std::string>
modules;
564 for (
unsigned int iHLT = 0; iHLT < triggerResults->
size(); iHLT++) {
569 std::vector<math::XYZTLorentzVector> vecL2;
573 for (
unsigned int ifilter = 0; ifilter < triggerEvent.
sizeFilters(); ++ifilter) {
574 std::vector<int>
Keys;
577 for (
unsigned int imodule = 0; imodule < moduleLabels.size(); imodule++) {
578 if (label.find(moduleLabels[imodule]) != std::string::npos) {
582 for (
unsigned int ifiltrKey = 0; ifiltrKey < triggerEvent.
filterKeys(ifilter).size(); ++ifiltrKey) {
583 Keys.push_back(triggerEvent.
filterKeys(ifilter)[ifiltrKey]);
586 if (label.find(
l2Filter_) != std::string::npos) {
588 }
else if (label.find(
l3Filter_) != std::string::npos) {
595 <<
"key " << ifiltrKey <<
" : pt " << TO.
pt() <<
" eta " << TO.
eta() <<
" phi " << TO.
phi()
596 <<
" mass " << TO.
mass() <<
" Id " << TO.
id();
601 <<
"sizes " << vecL1.size() <<
":" << vecL2.size() <<
":" << vecL3.size();
609 for (
unsigned int i = 0;
i < vecL2.size();
i++) {
610 double dr =
dR(vecL1[0], vecL2[
i]);
616 mindRvec1 = vecL2[
i];
620 edm::LogVerbatim(
"HcalIsoTrack") <<
"L2 object closest to L1 " << mindRvec1 <<
" at Dr " << mindR1;
623 if (!vecL1.empty()) {
630 if (!vecL3.empty()) {
674 tree =
fs->
make<TTree>(
"CalibTree",
"CalibTree");
676 tree->Branch(
"t_Run", &
t_Run,
"t_Run/I");
691 tree->Branch(
"t_p", &
t_p,
"t_p/D");
692 tree->Branch(
"t_pt", &
t_pt,
"t_pt/D");
693 tree->Branch(
"t_phi", &
t_phi,
"t_phi/D");
715 t_DetIds =
new std::vector<unsigned int>();
716 t_DetIds1 =
new std::vector<unsigned int>();
717 t_DetIds3 =
new std::vector<unsigned int>();
722 tree->Branch(
"t_DetIds",
"std::vector<unsigned int>", &
t_DetIds);
723 tree->Branch(
"t_HitEnergies",
"std::vector<double>", &t_HitEnergies);
724 tree->Branch(
"t_trgbits",
"std::vector<bool>", &t_trgbits);
725 tree->Branch(
"t_DetIds1",
"std::vector<unsigned int>", &t_DetIds1);
726 tree->Branch(
"t_DetIds3",
"std::vector<unsigned int>", &t_DetIds3);
727 tree->Branch(
"t_HitEnergies1",
"std::vector<double>", &t_HitEnergies1);
728 tree->Branch(
"t_HitEnergies3",
"std::vector<double>", &t_HitEnergies3);
730 tree2 =
fs->
make<TTree>(
"EventInfo",
"Event Information");
747 tree2->Branch(
"t_ietaAll",
"std::vector<int>", &t_ietaAll);
748 tree2->Branch(
"t_ietaGood",
"std::vector<int>", &t_ietaGood);
749 tree2->Branch(
"t_trackType",
"std::vector<int>", &t_trackType);
762 <<
" init flag " << flag <<
" change flag " << changed_;
770 for (
unsigned itrig = 0; itrig <
trigNames_.size(); itrig++) {
772 if (triggerindx >=
n) {
774 <<
"the current menu";
792 std::vector<std::string>
trig = {
"HLT_PFJet40",
802 desc.
add<std::vector<std::string>>(
"triggers",
trig);
809 desc.
add<
double>(
"minTrackPt", 1.0);
810 desc.
add<
double>(
"maxDxyPV", 0.02);
811 desc.
add<
double>(
"maxDzPV", 0.02);
812 desc.
add<
double>(
"maxChi2", 5.0);
813 desc.
add<
double>(
"maxDpOverP", 0.1);
814 desc.
add<
int>(
"minOuterHit", 4);
815 desc.
add<
int>(
"minLayerCrossed", 8);
816 desc.
add<
int>(
"maxInMiss", 0);
817 desc.
add<
int>(
"maxOutMiss", 0);
819 desc.
add<
double>(
"minimumTrackP", 20.0);
820 desc.
add<
double>(
"coneRadius", 34.98);
822 desc.
add<
double>(
"coneRadiusMIP", 14.0);
823 desc.
add<
double>(
"coneRadiusMIP2", 18.0);
824 desc.
add<
double>(
"coneRadiusMIP3", 20.0);
825 desc.
add<
double>(
"coneRadiusMIP4", 22.0);
826 desc.
add<
double>(
"coneRadiusMIP5", 24.0);
827 desc.
add<
double>(
"maximumEcalEnergy", 2.0);
829 desc.
add<
double>(
"maxTrackP", 8.0);
830 desc.
add<
double>(
"slopeTrackP", 0.05090504066);
831 desc.
add<
double>(
"isolationEnergyTight", 2.0);
832 desc.
add<
double>(
"isolationEnergyLoose", 10.0);
834 desc.
add<
double>(
"EBHitEnergyThreshold", 0.08);
835 desc.
add<
double>(
"EEHitEnergyThreshold0", 0.30);
836 desc.
add<
double>(
"EEHitEnergyThreshold1", 0.00);
837 desc.
add<
double>(
"EEHitEnergyThreshold2", 0.00);
838 desc.
add<
double>(
"EEHitEnergyThreshold3", 0.00);
839 desc.
add<
double>(
"EEHitEnergyThresholdLow", 0.30);
840 desc.
add<
double>(
"EEHitEnergyThresholdHigh", 0.30);
842 desc.
add<
double>(
"momentumLow", 40.0);
843 desc.
add<
double>(
"momentumHigh", 60.0);
844 desc.
add<
int>(
"prescaleLow", 1);
845 desc.
add<
int>(
"prescaleHigh", 1);
870 descriptions.
add(
"HcalIsoTrkAnalyzer", desc);
874 std::vector<math::XYZTLorentzVector>& vecL3,
876 std::vector<spr::propagatedTrackDirection>& trkCaloDirections,
877 std::vector<spr::propagatedTrackID>& trkCaloDets,
889 int nSave(0),
nLoose(0), nTight(0);
891 std::vector<spr::propagatedTrackDirection>::const_iterator trkDetItr;
892 unsigned int nTracks(0), nselTracks(0);
893 t_nTrk = trkCaloDirections.size();
895 for (trkDetItr = trkCaloDirections.begin(),
nTracks = 0; trkDetItr != trkCaloDirections.end();
897 const reco::Track* pTrack = &(*(trkDetItr->trkItr));
901 << pTrack->
eta() <<
"|" << pTrack->
phi() <<
"|" << pTrack->
p();
904 for (
unsigned int k = 0;
k < vecL3.size(); ++
k) {
905 double dr =
dR(vecL3[
k], v4);
910 t_mindR1 = (!vecL1.empty()) ?
dR(vecL1[0], v4) : 999;
915 if (trkDetItr->okHCAL) {
919 if (
t_p > 40.0 &&
t_p <= 60.0)
926 oneCutParameters.
maxDzPV = 100;
929 bool qltyFlag =
spr::goodTrack(pTrack, leadPV, oneCutParameters,
false);
932 oneCutParameters.
maxDzPV = 100;
944 edm::LogVerbatim(
"HcalIsoTrack") <<
"qltyFlag|okECAL|okHCAL : " << qltyFlag <<
"|" << trkDetItr->okECAL <<
"|" 945 << trkDetItr->okHCAL <<
" eIsolation " << eIsolation;
947 t_qltyFlag = (qltyFlag && trkDetItr->okECAL && trkDetItr->okHCAL);
952 std::vector<DetId> eIds;
953 std::vector<double> eHit;
957 trkDetItr->pointHCAL,
958 trkDetItr->pointECAL,
960 trkDetItr->directionECAL,
964 for (
unsigned int k = 0;
k < eIds.size(); ++
k) {
974 std::vector<DetId> eIds2;
975 std::vector<double> eHit2;
979 trkDetItr->pointHCAL,
980 trkDetItr->pointECAL,
982 trkDetItr->directionECAL,
986 for (
unsigned int k = 0;
k < eIds2.size(); ++
k) {
996 std::vector<DetId> eIds3;
997 std::vector<double> eHit3;
1000 endcapRecHitsHandle,
1001 trkDetItr->pointHCAL,
1002 trkDetItr->pointECAL,
1004 trkDetItr->directionECAL,
1008 for (
unsigned int k = 0;
k < eIds3.size(); ++
k) {
1018 std::vector<DetId> eIds4;
1019 std::vector<double> eHit4;
1021 barrelRecHitsHandle,
1022 endcapRecHitsHandle,
1023 trkDetItr->pointHCAL,
1024 trkDetItr->pointECAL,
1026 trkDetItr->directionECAL,
1030 for (
unsigned int k = 0;
k < eIds4.size(); ++
k) {
1040 std::vector<DetId> eIds5;
1041 std::vector<double> eHit5;
1043 barrelRecHitsHandle,
1044 endcapRecHitsHandle,
1045 trkDetItr->pointHCAL,
1046 trkDetItr->pointECAL,
1048 trkDetItr->directionECAL,
1052 for (
unsigned int k = 0;
k < eIds5.size(); ++
k) {
1063 const DetId cellE(trkDetItr->detIdECAL);
1065 barrelRecHitsHandle,
1066 endcapRecHitsHandle,
1078 barrelRecHitsHandle,
1079 endcapRecHitsHandle,
1090 if (e11x11P.second && e15x15P.second) {
1091 t_eAnnular = (e15x15P.first - e11x11P.first);
1093 t_eAnnular = -(e15x15P.first - e11x11P.first);
1096 const DetId cellH(trkDetItr->detIdHCAL);
1098 theHBHETopology, cellH, hbhe, 2, 2,
false,
true, -100.0, -100.0, -100.0, -100.0, -100.0, 100.0);
1100 theHBHETopology, cellH, hbhe, 3, 3,
false,
true, -100.0, -100.0, -100.0, -100.0, -100.0, 100.0);
1104 <<
" Annular E (Ecal) " << e11x11P.first <<
":" << e15x15P.first <<
":" 1115 int nRecHits(-999), nRecHits1(-999), nRecHits3(-999);
1116 std::vector<DetId>
ids, ids1, ids3;
1117 std::vector<double> edet0, edet1, edet3;
1120 trkDetItr->pointHCAL,
1121 trkDetItr->pointECAL,
1123 trkDetItr->directionHCAL,
1133 trkDetItr->pointHCAL,
1134 trkDetItr->pointECAL,
1136 trkDetItr->directionHCAL,
1146 trkDetItr->pointHCAL,
1147 trkDetItr->pointECAL,
1149 trkDetItr->directionHCAL,
1162 << pTrack->
eta() <<
"|" <<
t_phi <<
"|" <<
t_p <<
" Generator Level p " 1167 for (
unsigned int ll = 0; ll <
t_DetIds->size(); ll++) {
1171 for (
unsigned int ll = 0; ll <
t_DetIds1->size(); ll++) {
1175 for (
unsigned int ll = 0; ll <
t_DetIds3->size(); ll++) {
1212 if (
t_p > 40.0 &&
t_p <= 60.0 && t_selectTk) {
1225 std::array<int, 3>
i3{{nSave,
nLoose, nTight}};
1230 return reco::deltaR(vec1.eta(), vec1.phi(), vec2.eta(), vec2.phi());
1237 double mindR(999.9);
1238 for (
const auto&
p : (*genParticles)) {
1242 pmom =
p.momentum().R();
1250 std::vector<double> sumPFNallSMDQH2;
1256 for (
const auto& pf_it : (*tower)) {
1261 hadder += pf_it.hadEt();
1263 sumPFNallSMDQH2.emplace_back(hadder);
1268 std::sort(sumPFNallSMDQH2.begin(), sumPFNallSMDQH2.end());
1269 if (sumPFNallSMDQH2.size() % 2)
1270 evt_smdq = sumPFNallSMDQH2[(sumPFNallSMDQH2.size() - 1) / 2];
1272 evt_smdq = (sumPFNallSMDQH2[sumPFNallSMDQH2.size() / 2] + sumPFNallSMDQH2[(sumPFNallSMDQH2.size() - 2) / 2]) / 2.;
1296 const std::vector<DetId>&
ids,
1297 std::vector<double>& edet,
1299 std::vector<unsigned int>* detIds,
1300 std::vector<double>* hitEnergies) {
1303 for (
unsigned int k = 0;
k < ids.size(); ++
k) {
1310 for (
const auto& en : edet)
1313 if (
std::abs(ehcal - eHcal) > 0.001)
1314 edm::LogWarning(
"HcalIsoTrack") <<
"Check inconsistent energies: " << indx <<
" " << eHcal <<
":" << ehcal
1315 <<
" from " << ids.size() <<
" cells";
1319 std::map<HcalDetId, double> hitMap;
1320 for (
unsigned int k = 0;
k < ids.size(); ++
k) {
1322 auto itr = hitMap.find(
id);
1323 if (itr == hitMap.end()) {
1324 hitMap[
id] = edet[
k];
1326 (itr->second) += edet[k];
1329 detIds->reserve(hitMap.size());
1330 hitEnergies->reserve(hitMap.size());
1331 for (
const auto&
hit : hitMap) {
1332 detIds->emplace_back(
hit.first.rawId());
1333 hitEnergies->emplace_back(
hit.second);
1336 detIds->reserve(ids.size());
1337 hitEnergies->reserve(ids.size());
1338 for (
unsigned int k = 0;
k < ids.size(); ++
k) {
1339 detIds->emplace_back(ids[
k].rawId());
1340 hitEnergies->emplace_back(edet[
k]);
1344 edm::LogVerbatim(
"HcalIsoTrack") <<
"Input to storeEnergy with " << ids.size() <<
" cells";
1345 for (
unsigned int k = 0;
k < ids.size(); ++
k)
1347 edm::LogVerbatim(
"HcalIsoTrack") <<
"Output of storeEnergy with " << detIds->size() <<
" cells and Etot " << eHcal;
1348 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_
double eThreshold(const DetId &id, const CaloGeometry *geo) const
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