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);
197 a_coneR_(iConfig.getParameter<double>(
"coneRadius")),
198 a_mipR_(iConfig.getParameter<double>(
"coneRadiusMIP")),
199 pTrackMin_(iConfig.getParameter<double>(
"minimumTrackP")),
200 eEcalMax_(iConfig.getParameter<double>(
"maximumEcalEnergy")),
203 hcalScale_(iConfig.getUntrackedParameter<double>(
"hHcalScale",1.0)),
204 eIsolate1_(iConfig.getParameter<double>(
"isolationEnergyTight")),
205 eIsolate2_(iConfig.getParameter<double>(
"isolationEnergyLoose")),
206 pTrackLow_(iConfig.getParameter<double>(
"momentumLow")),
207 pTrackHigh_(iConfig.getParameter<double>(
"momentumHigh")),
210 useRaw_(iConfig.getUntrackedParameter<
int>(
"useRaw",0)),
211 dataType_(iConfig.getUntrackedParameter<
int>(
"dataType",0)),
212 mode_(iConfig.getUntrackedParameter<
int>(
"outMode",11)),
217 hitEthrEB_(iConfig.getParameter<double>(
"EBHitEnergyThreshold") ),
218 hitEthrEE0_(iConfig.getParameter<double>(
"EEHitEnergyThreshold0") ),
219 hitEthrEE1_(iConfig.getParameter<double>(
"EEHitEnergyThreshold1") ),
220 hitEthrEE2_(iConfig.getParameter<double>(
"EEHitEnergyThreshold2") ),
221 hitEthrEE3_(iConfig.getParameter<double>(
"EEHitEnergyThreshold3") ),
236 const double isolationRadius(28.9), innerR(10.0), outerR(30.0);
265 tok_bs_ = consumes<reco::BeamSpot>(labelBS);
270 tok_alg_ = consumes<BXVector<GlobalAlgBlk>>(algTag);
272 if (modnam.empty()) {
317 <<
"\t a_charIsoR " << a_charIsoR_
334 <<
"\t mode_ " <<
mode_ 339 <<
" L1Filter:" <<
l1Filter_ <<
" L2Filter:" 355 unsigned int k1(0), k2(0);
356 for (
auto phi : phibins_) {
359 for (
auto eta : etabins_) {
404 respCorrs->
setTopo(theHBHETopology);
414 reco::TrackCollection::const_iterator trkItr;
415 if (!trkCollection.
isValid()) {
434 if (recVtxs.
isValid() && !(recVtxs->empty())) {
436 for (
unsigned int k=0;
k<recVtxs->size(); ++
k) {
437 if (!((*recVtxs)[
k].isFake()) && ((*recVtxs)[
k].ndof() > 4)) {
448 edm::LogVerbatim(
"HcalIsoTrack") <<
"Primary Vertex " << leadPV <<
" out of " 457 if (!barrelRecHitsHandle.
isValid()) {
464 if (!endcapRecHitsHandle.
isValid()) {
480 std::vector<spr::propagatedTrackDirection> trkCaloDirections;
482 trkCaloDirections,
false);
483 std::vector<spr::propagatedTrackID> trkCaloDets;
486 std::vector<math::XYZTLorentzVector> vecL1, vecL3;
495 <<
" out of " <<
t_Tracks <<
" with Trigger " 509 for (
const auto& decision : finalDecisions) {
510 if (decision.first.find(
l1TrigName_) != std::string::npos) {
517 <<
" is " <<
t_L1Bit <<
" from a list of " 518 << finalDecisions.size() <<
" decisions";
524 if (triggerResults.
isValid()) {
528 for (
unsigned int iHLT=0; iHLT<triggerResults->
size(); iHLT++) {
537 << names[iHLT] <<
" Flag " 550 std::array<int,3> ntksave{ {0,0,0} };
555 ntksave =
fillTree(vecL1, vecL3, leadPV, trkCaloDirections, trkCaloDets,
556 geo, caloTopology, theHBHETopology, theEcalChStatus,
557 theEcalSevlv, barrelRecHitsHandle, endcapRecHitsHandle,
558 hbhe, caloTower, genParticles, respCorrs);
566 if (!triggerEventHandle.
isValid()) {
570 triggerEvent = *(triggerEventHandle.
product());
573 if (triggerResults.
isValid()) {
574 std::vector<std::string>
modules;
577 for (
unsigned int iHLT=0; iHLT<triggerResults->
size(); iHLT++) {
582 std::vector<math::XYZTLorentzVector> vecL2;
583 vecL1.clear(); vecL3.clear();
585 for (
unsigned int ifilter=0; ifilter<triggerEvent.
sizeFilters();
587 std::vector<int>
Keys;
590 for (
unsigned int imodule=0; imodule<moduleLabels.size(); imodule++) {
591 if (label.find(moduleLabels[imodule]) != std::string::npos) {
595 for (
unsigned int ifiltrKey=0; ifiltrKey<triggerEvent.
filterKeys(ifilter).size(); ++ifiltrKey) {
596 Keys.push_back(triggerEvent.
filterKeys(ifilter)[ifiltrKey]);
599 if (label.find(
l2Filter_) != std::string::npos) {
601 }
else if (label.find(
l3Filter_) != std::string::npos) {
603 }
else if ((label.find(
l1Filter_) != std::string::npos) ||
609 <<
" : pt " << TO.
pt()
610 <<
" eta " << TO.
eta()
611 <<
" phi " << TO.
phi()
612 <<
" mass " << TO.
mass()
618 <<
":" << vecL2.size() <<
":" 627 for (
unsigned int i=0;
i<vecL2.size();
i++) {
628 double dr =
dR(vecL1[0],vecL2[
i]);
634 mindRvec1 = vecL2[
i];
639 << mindRvec1 <<
" at Dr " 643 if (!vecL1.empty()) {
650 if (!vecL3.empty()) {
659 ntksave =
fillTree(vecL1, vecL3, leadPV, trkCaloDirections,
660 trkCaloDets, geo, caloTopology,theHBHETopology,
661 theEcalChStatus, theEcalSevlv,
662 barrelRecHitsHandle, endcapRecHitsHandle,
663 hbhe, caloTower, genParticles, respCorrs);
685 tree =
fs->
make<TTree>(
"CalibTree",
"CalibTree");
687 tree->Branch(
"t_Run", &
t_Run,
"t_Run/I");
696 if (((
mode_/10)%10) == 1) {
704 tree->Branch(
"t_p", &
t_p,
"t_p/D");
705 tree->Branch(
"t_pt", &
t_pt,
"t_pt/D");
706 tree->Branch(
"t_phi", &
t_phi,
"t_phi/D");
724 t_DetIds =
new std::vector<unsigned int>();
725 t_DetIds1 =
new std::vector<unsigned int>();
726 t_DetIds3 =
new std::vector<unsigned int>();
731 tree->Branch(
"t_DetIds",
"std::vector<unsigned int>", &
t_DetIds);
732 tree->Branch(
"t_HitEnergies",
"std::vector<double>", &t_HitEnergies);
733 if (((
mode_/10)%10) == 1) {
734 tree->Branch(
"t_trgbits",
"std::vector<bool>", &t_trgbits);
736 if ((
mode_%10) == 1) {
737 tree->Branch(
"t_DetIds1",
"std::vector<unsigned int>", &t_DetIds1);
738 tree->Branch(
"t_DetIds3",
"std::vector<unsigned int>", &t_DetIds3);
739 tree->Branch(
"t_HitEnergies1",
"std::vector<double>", &t_HitEnergies1);
740 tree->Branch(
"t_HitEnergies3",
"std::vector<double>", &t_HitEnergies3);
742 tree2 =
fs->
make<TTree>(
"EventInfo",
"Event Information");
759 tree2->Branch(
"t_ietaAll",
"std::vector<int>", &t_ietaAll);
760 tree2->Branch(
"t_ietaGood",
"std::vector<int>", &t_ietaGood);
761 tree2->Branch(
"t_trackType",
"std::vector<int>", &t_trackType);
776 <<
" init flag " << flag <<
" change flag " 785 for (
unsigned itrig=0; itrig<
trigNames_.size(); itrig++) {
787 if (triggerindx >=
n) {
789 << triggerindx <<
" does not exist in " 790 <<
"the current menu";
794 << triggerindx <<
" exists";
809 std::vector<std::string> trig = {
"HLT_PFJet40",
"HLT_PFJet60",
"HLT_PFJet80",
810 "HLT_PFJet140",
"HLT_PFJet200",
"HLT_PFJet260",
811 "HLT_PFJet320",
"HLT_PFJet400",
"HLT_PFJet450",
813 desc.
add<std::vector<std::string>>(
"triggers",trig);
820 desc.
add<
double>(
"minTrackPt",1.0);
821 desc.
add<
double>(
"maxDxyPV",0.02);
822 desc.
add<
double>(
"maxDzPV",0.02);
823 desc.
add<
double>(
"maxChi2",5.0);
824 desc.
add<
double>(
"maxDpOverP",0.1);
825 desc.
add<
int>(
"minOuterHit",4);
826 desc.
add<
int>(
"minLayerCrossed",8);
827 desc.
add<
int>(
"maxInMiss",0);
828 desc.
add<
int>(
"maxOutMiss",0);
830 desc.
add<
double>(
"minimumTrackP",20.0);
831 desc.
add<
double>(
"coneRadius",34.98);
833 desc.
add<
double>(
"coneRadiusMIP",14.0);
834 desc.
add<
double>(
"maximumEcalEnergy",2.0);
836 desc.
add<
double>(
"maxTrackP",8.0);
837 desc.
add<
double>(
"slopeTrackP",0.05090504066);
838 desc.
add<
double>(
"isolationEnergyTight",2.0);
839 desc.
add<
double>(
"isolationEnergyLoose",10.0);
841 desc.
add<
double>(
"EBHitEnergyThreshold",0.10);
842 desc.
add<
double>(
"EEHitEnergyThreshold0",-41.0664);
843 desc.
add<
double>(
"EEHitEnergyThreshold1",68.7950);
844 desc.
add<
double>(
"EEHitEnergyThreshold2",-38.1483);
845 desc.
add<
double>(
"EEHitEnergyThreshold3",7.04303);
847 desc.
add<
double>(
"momentumLow", 40.0);
848 desc.
add<
double>(
"momentumHigh",60.0);
849 desc.
add<
int>(
"prescaleLow", 1);
850 desc.
add<
int>(
"prescaleHigh",1);
876 descriptions.
add(
"HcalIsoTrkAnalyzer",desc);
880 std::vector< math::XYZTLorentzVector>& vecL3,
882 std::vector<spr::propagatedTrackDirection>& trkCaloDirections,
883 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;
903 trkDetItr != trkCaloDirections.end(); trkDetItr++,
nTracks++) {
904 const reco::Track* pTrack = &(*(trkDetItr->trkItr));
906 pTrack->
pz(), pTrack->
p());
909 <<
" (pt|eta|phi|p) :" << pTrack->
pt()
910 <<
"|" << pTrack->
eta() <<
"|" 911 << pTrack->
phi() <<
"|" <<pTrack->
p();
914 for (
unsigned int k=0;
k<vecL3.size(); ++
k) {
915 double dr =
dR(vecL3[
k],v4);
920 t_mindR1 = (!vecL1.empty()) ?
dR(vecL1[0],v4) : 999;
926 if (trkDetItr->okHCAL) {
936 oneCutParameters.
maxDzPV = 100;
939 bool qltyFlag =
spr::goodTrack(pTrack,leadPV,oneCutParameters,
false);
942 oneCutParameters.
maxDzPV = 100;
953 << qltyFlag <<
"|" << trkDetItr->okECAL
954 <<
"|" << trkDetItr->okHCAL
955 <<
" eIsolation " << eIsolation;
957 t_qltyFlag = (qltyFlag && trkDetItr->okECAL && trkDetItr->okHCAL);
961 std::vector<DetId> eIds;
962 std::vector<double> eHit;
964 endcapRecHitsHandle, trkDetItr->pointHCAL,
966 trkDetItr->directionECAL, eIds, eHit);
968 for (
unsigned int k=0;
k<eIds.size(); ++
k) {
973 if (eHit[k] > eThr) eEcal += eHit[
k];
981 caloTopology, 15,15);
982 const DetId cellE(trkDetItr->detIdECAL);
983 std::pair<double, bool> e11x11P =
985 *theEcalChStatus,geo,caloTopology,theEcalSevlv,
986 5,5,-100.0,-100.0,-100.0,100.0);
987 std::pair<double, bool> e15x15P =
989 *theEcalChStatus,geo,caloTopology,theEcalSevlv,7,7,
990 -100.0,-100.0,-100.0,100.0);
991 if (e11x11P.second && e15x15P.second) {
998 const DetId cellH(trkDetItr->detIdHCAL);
1000 -100.0,-100.0,-100.0,-100.0,-100.0,100.0);
1002 -100.0,-100.0,-100.0,-100.0,-100.0,100.0);
1007 <<
" Annular E (Ecal) " << e11x11P.first
1008 <<
":" << e15x15P.first <<
":" 1017 int nRecHits(-999), nRecHits1(-999), nRecHits3(-999);
1018 std::vector<DetId>
ids, ids1, ids3;
1019 std::vector<double> edet0, edet1, edet3;
1022 trkDetItr->directionHCAL,nRecHits,
1029 trkDetItr->directionHCAL,nRecHits1,
1036 trkDetItr->directionHCAL,nRecHits3,
1046 <<
" (pt|eta|phi|p) :" <<
t_pt 1047 <<
"|" << pTrack->
eta() <<
"|" 1049 <<
" Generator Level p " 1053 <<
" eHcal" <<
t_eHcal <<
" ieta " 1054 << t_ieta <<
" Quality " 1057 for (
unsigned int ll=0; ll<
t_DetIds->size(); ll++) {
1059 <<
" hit enery is = " 1062 for (
unsigned int ll=0; ll<
t_DetIds1->size(); ll++) {
1064 <<
" hit enery is = " 1067 for (
unsigned int ll=0; ll<
t_DetIds3->size(); ll++) {
1069 <<
" hit enery is = " 1095 if (
t_p > 40.0 &&
t_p <= 60.0 && t_selectTk) {
1109 std::array<int,3> i3{ {nSave,
nLoose,nTight} };
1114 return reco::deltaR(vec1.eta(),vec1.phi(),vec2.eta(),vec2.phi());
1122 double mindR(999.9);
1123 for (
const auto &
p : (*genParticles)) {
1125 p.momentum().Eta(),
p.momentum().Phi());
1127 mindR =
dR; pmom =
p.momentum().R();
1136 std::vector<double> sumPFNallSMDQH2;
1142 for (
const auto & pf_it : (*tower)) {
1145 hadder += pf_it.hadEt();
1147 sumPFNallSMDQH2.emplace_back(hadder);
1152 std::sort(sumPFNallSMDQH2.begin(),sumPFNallSMDQH2.end());
1153 if (sumPFNallSMDQH2.size()%2) evt_smdq = sumPFNallSMDQH2[(sumPFNallSMDQH2.size()-1)/2];
1154 else evt_smdq = (sumPFNallSMDQH2[sumPFNallSMDQH2.size()/2]+sumPFNallSMDQH2[(sumPFNallSMDQH2.size()-2)/2])/2.;
1163 const std::vector<DetId>&
ids,
1164 std::vector<double>& edet,
1166 std::vector<unsigned int> *detIds,
1167 std::vector<double> *hitEnergies) {
1170 for (
unsigned int k=0;
k<ids.size(); ++
k) {
1172 if (corr != 0) edet[
k] /=
corr;
1176 for (
const auto& en : edet) ehcal += en;
1179 edm::LogWarning(
"HcalIsoTrack") <<
"Check inconsistent energies: " << indx
1180 <<
" " << eHcal <<
":" << ehcal
1181 <<
" from " << ids.size() <<
" cells";
1185 std::map<HcalDetId,double> hitMap;
1186 for (
unsigned int k=0;
k<ids.size(); ++
k) {
1188 auto itr = hitMap.find(
id);
1189 if (itr == hitMap.end()) {
1190 hitMap[
id] = edet[
k];
1192 (itr->second) += edet[k];
1195 detIds->reserve(hitMap.size()); hitEnergies->reserve(hitMap.size());
1196 for (
const auto&
hit : hitMap) {
1197 detIds->emplace_back(
hit.first.rawId());
1198 hitEnergies->emplace_back(
hit.second);
1201 detIds->reserve(ids.size()); hitEnergies->reserve(ids.size());
1202 for (
unsigned int k=0;
k<ids.size(); ++
k) {
1203 detIds->emplace_back(ids[
k].rawId());
1204 hitEnergies->emplace_back(edet[
k]);
1209 << ids.size() <<
" cells";
1210 for (
unsigned int k=0;
k<ids.size(); ++
k)
1214 << detIds->size() <<
" cells and Etot " 1216 for (
unsigned int k=0; k<detIds->size(); ++
k)
1219 << (*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
static const bool useL1GtTriggerMenuLite(true)
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.
static const bool useL1EventSetup(false)
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