8 #include "TLorentzVector.h" 90 std::array<int, 3>
fillTree(std::vector<math::XYZTLorentzVector>& vecL1,
91 std::vector<math::XYZTLorentzVector>& vecL3,
93 std::vector<spr::propagatedGenParticleID>& trackIDs,
111 const std::vector<DetId>& ids,
112 std::vector<double>& edet,
114 std::vector<unsigned int>* detIds,
115 std::vector<double>* hitEnergies);
202 processName_(iConfig.getParameter<
std::
string>(
"processName")),
203 l1Filter_(iConfig.getParameter<
std::
string>(
"l1Filter")),
204 l2Filter_(iConfig.getParameter<
std::
string>(
"l2Filter")),
205 l3Filter_(iConfig.getParameter<
std::
string>(
"l3Filter")),
206 ptMin_(iConfig.getParameter<double>(
"pTMin")),
207 etaMax_(iConfig.getParameter<double>(
"maxChargedHadronEta")),
208 a_coneR_(iConfig.getParameter<double>(
"coneRadius")),
209 a_mipR_(iConfig.getParameter<double>(
"coneRadiusMIP")),
210 a_mipR2_(iConfig.getParameter<double>(
"coneRadiusMIP2")),
211 a_mipR3_(iConfig.getParameter<double>(
"coneRadiusMIP3")),
212 a_mipR4_(iConfig.getParameter<double>(
"coneRadiusMIP4")),
213 a_mipR5_(iConfig.getParameter<double>(
"coneRadiusMIP5")),
214 pTrackMin_(iConfig.getParameter<double>(
"minimumTrackP")),
215 eEcalMax_(iConfig.getParameter<double>(
"maximumEcalEnergy")),
216 maxRestrictionP_(iConfig.getParameter<double>(
"maxTrackP")),
217 slopeRestrictionP_(iConfig.getParameter<double>(
"slopeTrackP")),
218 hcalScale_(iConfig.getUntrackedParameter<double>(
"hHcalScale", 1.0)),
219 eIsolate1_(iConfig.getParameter<double>(
"isolationEnergyTight")),
220 eIsolate2_(iConfig.getParameter<double>(
"isolationEnergyLoose")),
221 pTrackLow_(iConfig.getParameter<double>(
"momentumLow")),
222 pTrackHigh_(iConfig.getParameter<double>(
"momentumHigh")),
223 prescaleLow_(iConfig.getParameter<
int>(
"prescaleLow")),
224 prescaleHigh_(iConfig.getParameter<
int>(
"prescaleHigh")),
225 useRaw_(iConfig.getUntrackedParameter<
int>(
"useRaw", 0)),
226 dataType_(iConfig.getUntrackedParameter<
int>(
"dataType", 0)),
227 mode_(iConfig.getUntrackedParameter<
int>(
"outMode", 11)),
228 ignoreTrigger_(iConfig.getUntrackedParameter<
bool>(
"ignoreTriggers",
false)),
229 useL1Trigger_(iConfig.getUntrackedParameter<
bool>(
"useL1Trigger",
false)),
230 unCorrect_(iConfig.getUntrackedParameter<
bool>(
"unCorrect",
false)),
231 collapseDepth_(iConfig.getUntrackedParameter<
bool>(
"collapseDepth",
false)),
232 hitEthrEB_(iConfig.getParameter<double>(
"EBHitEnergyThreshold")),
233 hitEthrEE0_(iConfig.getParameter<double>(
"EEHitEnergyThreshold0")),
234 hitEthrEE1_(iConfig.getParameter<double>(
"EEHitEnergyThreshold1")),
235 hitEthrEE2_(iConfig.getParameter<double>(
"EEHitEnergyThreshold2")),
236 hitEthrEE3_(iConfig.getParameter<double>(
"EEHitEnergyThreshold3")),
237 hitEthrEELo_(iConfig.getParameter<double>(
"EEHitEnergyThresholdLow")),
238 hitEthrEEHi_(iConfig.getParameter<double>(
"EEHitEnergyThresholdHigh")),
239 triggerEvent_(iConfig.getParameter<
edm::
InputTag>(
"labelTriggerEvent")),
240 theTriggerResultsLabel_(iConfig.getParameter<
edm::
InputTag>(
"labelTriggerResult")),
241 labelGenTrack_(iConfig.getParameter<
std::
string>(
"labelTrack")),
242 labelRecVtx_(iConfig.getParameter<
std::
string>(
"labelVertex")),
243 labelEB_(iConfig.getParameter<
std::
string>(
"labelEBRecHit")),
244 labelEE_(iConfig.getParameter<
std::
string>(
"labelEERecHit")),
245 labelHBHE_(iConfig.getParameter<
std::
string>(
"labelHBHERecHit")),
246 labelTower_(iConfig.getParameter<
std::
string>(
"labelCaloTower")),
247 l1TrigName_(iConfig.getUntrackedParameter<
std::
string>(
"l1TrigName",
"L1_SingleJet60")),
248 oldID_(iConfig.getUntrackedParameter<
std::
vector<
int> >(
"oldID")),
249 newDepth_(iConfig.getUntrackedParameter<
std::
vector<
int> >(
"newDepth")),
250 hep17_(iConfig.getUntrackedParameter<
bool>(
"hep17")),
251 usePFThresh_(iConfig.getParameter<
bool>(
"usePFThreshold")),
252 labelBS_(iConfig.getParameter<
std::
string>(
"labelBeamSpot")),
253 modnam_(iConfig.getUntrackedParameter<
std::
string>(
"moduleName",
"")),
254 prdnam_(iConfig.getUntrackedParameter<
std::
string>(
"producerName",
"")),
255 algTag_(iConfig.getParameter<
edm::
InputTag>(
"algInputTag")),
256 extTag_(iConfig.getParameter<
edm::
InputTag>(
"extInputTag")),
289 const double isolationRadius(28.9), innerR(10.0), outerR(30.0);
299 for (
unsigned int k = 0;
k <
oldID_.size(); ++
k) {
326 <<
"\t a_mipR4 " <<
a_mipR4_ <<
"\t a_mipR5 " <<
a_mipR5_ <<
"\n pTrackMin_ " 346 for (
unsigned int k = 0;
k <
oldID_.size(); ++
k)
350 for (
int i = 0;
i < 10;
i++)
352 for (
int i = 0;
i < 8; ++
i)
360 unsigned int k1(0), k2(0);
377 <<
" Luminosity " <<
iEvent.luminosityBlock() <<
" Bunch " <<
iEvent.bunchCrossing();
392 respCorrs->
setTopo(theHBHETopology);
404 edm::LogWarning(
"HcalIsoTrack") <<
"Cannot access the genParticles collection";
419 if (recVtxs.
isValid() && !(recVtxs->empty())) {
421 for (
unsigned int k = 0;
k < recVtxs->size(); ++
k) {
422 if (!((*recVtxs)[
k].isFake()) && ((*recVtxs)[
k].ndof() > 4)) {
441 if (!barrelRecHitsHandle.
isValid()) {
446 if (!endcapRecHitsHandle.
isValid()) {
451 if (!
hbhe.isValid()) {
458 std::vector<spr::propagatedGenParticleID> trackIDs =
460 std::vector<math::XYZTLorentzVector> vecL1, vecL3;
486 for (
const auto& decision : finalDecisions) {
487 if (decision.first.find(
l1TrigName_) != std::string::npos) {
494 <<
" from a list of " << finalDecisions.size() <<
" decisions";
503 for (
unsigned int iHLT = 0; iHLT <
triggerResults->size(); iHLT++) {
526 std::array<int, 3> ntksave{{0, 0, 0}};
552 if (!triggerEventHandle.
isValid()) {
560 std::vector<std::string>
modules;
563 for (
unsigned int iHLT = 0; iHLT <
triggerResults->size(); iHLT++) {
568 std::vector<math::XYZTLorentzVector> vecL2;
572 for (
unsigned int ifilter = 0; ifilter <
triggerEvent.sizeFilters(); ++ifilter) {
573 std::vector<int>
Keys;
576 for (
unsigned int imodule = 0; imodule < moduleLabels.size(); imodule++) {
577 if (
label.find(moduleLabels[imodule]) != std::string::npos) {
581 for (
unsigned int ifiltrKey = 0; ifiltrKey <
triggerEvent.filterKeys(ifilter).size(); ++ifiltrKey) {
594 <<
"key " << ifiltrKey <<
" : pt " << TO.
pt() <<
" eta " << TO.
eta() <<
" phi " << TO.
phi()
595 <<
" mass " << TO.
mass() <<
" Id " << TO.
id();
600 <<
"sizes " << vecL1.size() <<
":" << vecL2.size() <<
":" << vecL3.size();
608 for (
unsigned int i = 0;
i < vecL2.size();
i++) {
609 double dr =
dR(vecL1[0], vecL2[
i]);
615 mindRvec1 = vecL2[
i];
619 edm::LogVerbatim(
"HcalIsoTrack") <<
"L2 object closest to L1 " << mindRvec1 <<
" at Dr " << mindR1;
622 if (!vecL1.empty()) {
629 if (!vecL3.empty()) {
673 tree =
fs->make<TTree>(
"CalibTree",
"CalibTree");
675 tree->Branch(
"t_Run", &
t_Run,
"t_Run/I");
690 tree->Branch(
"t_p", &
t_p,
"t_p/D");
691 tree->Branch(
"t_pt", &
t_pt,
"t_pt/D");
692 tree->Branch(
"t_phi", &
t_phi,
"t_phi/D");
714 t_DetIds =
new std::vector<unsigned int>();
715 t_DetIds1 =
new std::vector<unsigned int>();
716 t_DetIds3 =
new std::vector<unsigned int>();
721 tree->Branch(
"t_DetIds",
"std::vector<unsigned int>", &
t_DetIds);
724 tree->Branch(
"t_DetIds1",
"std::vector<unsigned int>", &
t_DetIds1);
725 tree->Branch(
"t_DetIds3",
"std::vector<unsigned int>", &
t_DetIds3);
729 tree2 =
fs->make<TTree>(
"EventInfo",
"Event Information");
759 <<
" init flag " <<
flag <<
" change flag " << changed_;
766 for (
unsigned itrig = 0; itrig <
trigNames_.size(); itrig++) {
768 if (triggerindx >=
n) {
770 <<
"the current menu";
788 std::vector<std::string>
trig = {
"HLT_PFJet40",
798 desc.add<std::vector<std::string> >(
"triggers",
trig);
803 desc.add<
double>(
"pTMin", 1.0),
desc.add<
double>(
"maxChargedHadronEta", 3.0);
805 desc.add<
double>(
"minimumTrackP", 10.0);
806 desc.add<
double>(
"coneRadius", 34.98);
808 desc.add<
double>(
"coneRadiusMIP", 14.0);
809 desc.add<
double>(
"coneRadiusMIP2", 18.0);
810 desc.add<
double>(
"coneRadiusMIP3", 20.0);
811 desc.add<
double>(
"coneRadiusMIP4", 22.0);
812 desc.add<
double>(
"coneRadiusMIP5", 24.0);
813 desc.add<
double>(
"maximumEcalEnergy", 2.0);
815 desc.add<
double>(
"maxTrackP", 8.0);
816 desc.add<
double>(
"slopeTrackP", 0.05090504066);
817 desc.add<
double>(
"isolationEnergyTight", 2.0);
818 desc.add<
double>(
"isolationEnergyLoose", 10.0);
820 desc.add<
double>(
"EBHitEnergyThreshold", 0.08);
821 desc.add<
double>(
"EEHitEnergyThreshold0", 0.30);
822 desc.add<
double>(
"EEHitEnergyThreshold1", 0.00);
823 desc.add<
double>(
"EEHitEnergyThreshold2", 0.00);
824 desc.add<
double>(
"EEHitEnergyThreshold3", 0.00);
825 desc.add<
double>(
"EEHitEnergyThresholdLow", 0.30);
826 desc.add<
double>(
"EEHitEnergyThresholdHigh", 0.30);
828 desc.add<
double>(
"momentumLow", 40.0);
829 desc.add<
double>(
"momentumHigh", 60.0);
830 desc.add<
int>(
"prescaleLow", 1);
831 desc.add<
int>(
"prescaleHigh", 1);
848 desc.addUntracked<
int>(
"useRaw", 0);
849 desc.addUntracked<
bool>(
"ignoreTriggers",
false);
850 desc.addUntracked<
bool>(
"useL1Trigger",
false);
851 desc.addUntracked<
double>(
"hcalScale", 1.0);
852 desc.addUntracked<
int>(
"dataType", 0);
853 desc.addUntracked<
bool>(
"unCorrect",
false);
854 desc.addUntracked<
bool>(
"collapseDepth",
false);
856 desc.addUntracked<
int>(
"outMode", 11);
857 std::vector<int>
dummy;
858 desc.addUntracked<std::vector<int> >(
"oldID",
dummy);
859 desc.addUntracked<std::vector<int> >(
"newDepth",
dummy);
860 desc.addUntracked<
bool>(
"hep17",
false);
861 desc.add<
bool>(
"usePFThreshold",
true);
862 descriptions.
add(
"hcalIsoTrkSimAnalyzer",
desc);
866 std::vector<math::XYZTLorentzVector>& vecL3,
868 std::vector<spr::propagatedGenParticleID>& trackIDs,
880 int nSave(0),
nLoose(0), nTight(0);
885 for (
auto const& trkDetItr : trackIDs) {
890 << pTrack->
eta() <<
"|" << pTrack->
phi() <<
"|" << pTrack->
p();
893 for (
unsigned int k = 0;
k < vecL3.size(); ++
k) {
894 double dr =
dR(vecL3[
k], v4);
899 t_mindR1 = (!vecL1.empty()) ?
dR(vecL1[0], v4) : 999;
904 if (trkDetItr.okHCAL) {
908 if (
t_p > 40.0 &&
t_p <= 60.0)
920 << trkDetItr.okHCAL <<
" eIsolation " << eIsolation;
927 std::vector<DetId> eIds;
928 std::vector<double> eHit;
935 trkDetItr.directionECAL,
939 for (
unsigned int k = 0;
k < eIds.size(); ++
k) {
949 std::vector<DetId> eIds2;
950 std::vector<double> eHit2;
957 trkDetItr.directionECAL,
961 for (
unsigned int k = 0;
k < eIds2.size(); ++
k) {
971 std::vector<DetId> eIds3;
972 std::vector<double> eHit3;
979 trkDetItr.directionECAL,
983 for (
unsigned int k = 0;
k < eIds3.size(); ++
k) {
993 std::vector<DetId> eIds4;
994 std::vector<double> eHit4;
1001 trkDetItr.directionECAL,
1005 for (
unsigned int k = 0;
k < eIds4.size(); ++
k) {
1015 std::vector<DetId> eIds5;
1016 std::vector<double> eHit5;
1018 barrelRecHitsHandle,
1019 endcapRecHitsHandle,
1020 trkDetItr.pointHCAL,
1021 trkDetItr.pointECAL,
1023 trkDetItr.directionECAL,
1027 for (
unsigned int k = 0;
k < eIds5.size(); ++
k) {
1038 const DetId cellE(trkDetItr.detIdECAL);
1040 barrelRecHitsHandle,
1041 endcapRecHitsHandle,
1053 barrelRecHitsHandle,
1054 endcapRecHitsHandle,
1065 if (e11x11P.second && e15x15P.second) {
1066 t_eAnnular = (e15x15P.first - e11x11P.first);
1068 t_eAnnular = -(e15x15P.first - e11x11P.first);
1071 const DetId cellH(trkDetItr.detIdHCAL);
1073 theHBHETopology, cellH,
hbhe, 2, 2,
false,
true, -100.0, -100.0, -100.0, -100.0, -100.0, 100.0);
1075 theHBHETopology, cellH,
hbhe, 3, 3,
false,
true, -100.0, -100.0, -100.0, -100.0, -100.0, 100.0);
1079 <<
" Annular E (Ecal) " << e11x11P.first <<
":" << e15x15P.first <<
":" 1090 int nRecHits(-999), nRecHits1(-999), nRecHits3(-999);
1091 std::vector<DetId> ids, ids1, ids3;
1092 std::vector<double> edet0, edet1, edet3;
1095 trkDetItr.pointHCAL,
1096 trkDetItr.pointECAL,
1098 trkDetItr.directionHCAL,
1104 for (
unsigned k = 0;
k < ids.size(); ++
k)
1112 trkDetItr.pointHCAL,
1113 trkDetItr.pointECAL,
1115 trkDetItr.directionHCAL,
1121 for (
unsigned k = 0;
k < ids1.size(); ++
k)
1129 trkDetItr.pointHCAL,
1130 trkDetItr.pointECAL,
1132 trkDetItr.directionHCAL,
1138 for (
unsigned k = 0;
k < ids3.size(); ++
k)
1149 << pTrack->
eta() <<
"|" <<
t_phi <<
"|" <<
t_p <<
" Generator Level p " 1154 for (
unsigned int ll = 0; ll <
t_DetIds->size(); ll++) {
1158 for (
unsigned int ll = 0; ll <
t_DetIds1->size(); ll++) {
1162 for (
unsigned int ll = 0; ll <
t_DetIds3->size(); ll++) {
1213 std::array<int, 3>
i3{{nSave,
nLoose, nTight}};
1222 std::vector<double> sumPFNallSMDQH2;
1228 for (
const auto& pf_it : (*
tower)) {
1233 hadder += pf_it.hadEt();
1235 sumPFNallSMDQH2.emplace_back(hadder);
1240 std::sort(sumPFNallSMDQH2.begin(), sumPFNallSMDQH2.end());
1241 if (sumPFNallSMDQH2.size() % 2)
1242 evt_smdq = sumPFNallSMDQH2[(sumPFNallSMDQH2.size() - 1) / 2];
1244 evt_smdq = (sumPFNallSMDQH2[sumPFNallSMDQH2.size() / 2] + sumPFNallSMDQH2[(sumPFNallSMDQH2.size() - 2) / 2]) / 2.;
1255 eThr =
static_cast<double>((*eThresholds_)[
id]);
1274 for (
unsigned int k = 0;
k <
oldID_.size(); ++
k) {
1284 const std::vector<DetId>& ids,
1285 std::vector<double>& edet,
1287 std::vector<unsigned int>* detIds,
1288 std::vector<double>* hitEnergies) {
1291 for (
unsigned int k = 0;
k < ids.size(); ++
k) {
1298 for (
const auto& en : edet)
1302 edm::LogWarning(
"HcalIsoTrack") <<
"Check inconsistent energies: " << indx <<
" " << eHcal <<
":" << ehcal
1303 <<
" from " << ids.size() <<
" cells";
1307 std::map<HcalDetId, double> hitMap;
1308 for (
unsigned int k = 0;
k < ids.size(); ++
k) {
1310 auto itr = hitMap.find(
id);
1311 if (itr == hitMap.end()) {
1312 hitMap[
id] = edet[
k];
1314 (itr->second) += edet[
k];
1317 detIds->reserve(hitMap.size());
1318 hitEnergies->reserve(hitMap.size());
1319 for (
const auto&
hit : hitMap) {
1320 detIds->emplace_back(
hit.first.rawId());
1321 hitEnergies->emplace_back(
hit.second);
1324 detIds->reserve(ids.size());
1325 hitEnergies->reserve(ids.size());
1326 for (
unsigned int k = 0;
k < ids.size(); ++
k) {
1327 detIds->emplace_back(ids[
k].
rawId());
1328 hitEnergies->emplace_back(edet[
k]);
1332 edm::LogVerbatim(
"HcalIsoTrack") <<
"Input to storeEnergy with " << ids.size() <<
" cells";
1333 for (
unsigned int k = 0;
k < ids.size(); ++
k)
1335 edm::LogVerbatim(
"HcalIsoTrack") <<
"Output of storeEnergy with " << detIds->size() <<
" cells and Etot " << eHcal;
1336 for (
unsigned int k = 0;
k < detIds->size(); ++
k)
1342 int id = pTrack->
pdgId();
1343 bool flag = ((
id != 13) && (
id != -13) && (pTrack->
charge() != 0));
static const std::string kSharedResource
constexpr double deltaPhi(double phi1, double phi2)
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
std::vector< GenParticle > GenParticleCollection
collection of GenParticles
const std::vector< int > newDepth_
const std::string labelEB_
void beginRun(edm::Run const &, edm::EventSetup const &) override
edm::EDGetTokenT< reco::VertexCollection > tok_recVtx_
std::vector< spr::propagatedTrackID > propagateCALO(edm::Handle< reco::TrackCollection > &trkCollection, const CaloGeometry *geo, const MagneticField *bField, const std::string &theTrackQuality, bool debug=false)
const std::string labelBS_
HcalIsoTrkSimAnalyzer(edm::ParameterSet const &)
std::vector< double > * t_HitEnergies3
double pz() const final
z coordinate of momentum vector
const std::string labelHBHE_
edm::EDGetTokenT< HBHERecHitCollection > tok_hbhe_
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
double pt() const final
transverse momentum
The single EDProduct to be saved for each event (AOD case)
HcalDetId mergedDepthDetId(const HcalDetId &id) const
constexpr int zside() const
get the z-side of the cell (1/-1)
const Point & position() const
position
HepPDT::ParticleDataTable ParticleDataTable
std::vector< double > * t_HitEnergies
const std::string l3Filter_
constexpr int ietaAbs() const
get the absolute value of the cell ieta
double dR(math::XYZTLorentzVector &, math::XYZTLorentzVector &)
const std::string l2Filter_
const std::string labelEE_
T const * product() const
std::vector< int > oldEta_
const std::string labelRecVtx_
const std::vector< std::string > trigNames_
l1t::L1TGlobalUtil * l1GtUtils_
double chargeIsolationGenCone(unsigned int trkIndex, std::vector< spr::propagatedGenParticleID > &trackIDs, double dR, int &nNearTRKs, bool debug=false)
const edm::InputTag algTag_
std::vector< int > * t_ietaGood
std::vector< double > etabins_
std::vector< double > phibins_
const edm::InputTag triggerEvent_
std::vector< bool > * t_hltbits
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
std::vector< Vertex > VertexCollection
double chargeIsolationGenEcal(unsigned int trkIndex, std::vector< spr::propagatedGenParticleID > &trackIDs, const CaloGeometry *geo, const CaloTopology *caloTopology, int ieta, int iphi, bool debug=false)
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
std::vector< unsigned int > * t_DetIds1
const std::string names[nVars_]
edm::ESGetToken< EcalSeverityLevelAlgo, EcalSeverityLevelAlgoRcd > tok_sevlv_
const Item * getValues(DetId fId, bool throwOnFail=true) const
edm::ESGetToken< CaloTopology, CaloTopologyRecord > tok_caloTopology_
DetId newId(const DetId &)
int pdgId() const final
PDG identifier.
Single trigger physics object (e.g., an isolated muon)
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
double rhoh(const edm::Handle< CaloTowerCollection > &)
constexpr HcalSubdetector subdet() const
get the subdetector
const std::vector< int > oldID_
HLTConfigProvider hltConfig_
bool notaMuon(const reco::GenParticle *pTrack)
double px() const final
x coordinate of momentum vector
std::vector< int > oldDepth_
double p() const final
magnitude of momentum vector
const std::string modnam_
const EcalPFRecHitThresholds * eThresholds_
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
std::vector< double > vec1
edm::EDGetTokenT< BXVector< GlobalAlgBlk > > tok_alg_
constexpr int ieta() const
get the cell ieta
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
const double maxRestrictionP_
edm::EDGetTokenT< EcalRecHitCollection > tok_EE_
const HcalDDDRecConstants * hdc_
const std::vector< std::string > & moduleLabels(unsigned int trigger) const
label(s) of module(s) on a trigger path
std::vector< int > * t_ietaAll
const std::string l1Filter_
Abs< T >::type abs(const T &t)
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)
const std::string prdnam_
std::vector< int > * t_trackType
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)
edm::ESGetToken< HcalTopology, HcalRecNumberingRecord > tok_htopo_
#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)
std::array< int, 3 > fillTree(std::vector< math::XYZTLorentzVector > &vecL1, std::vector< math::XYZTLorentzVector > &vecL3, math::XYZPoint &leadPV, std::vector< spr::propagatedGenParticleID > &trackIDs, 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, const edm::Handle< CaloTowerCollection > &towerHandle, edm::Handle< reco::GenParticleCollection > &genParticles, const HcalRespCorrs *respCorrs)
const bool collapseDepth_
static std::string const triggerResults
const edm::InputTag extTag_
double py() const final
y coordinate of momentum vector
const std::string l1TrigName_
std::vector< unsigned int > * t_DetIds3
~HcalIsoTrkSimAnalyzer() override=default
edm::EDGetTokenT< reco::GenParticleCollection > tok_parts_
std::vector< int > oldDet_
edm::EDGetTokenT< GenEventInfoProduct > tok_ew_
constexpr auto deltaR(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
edm::EDGetTokenT< CaloTowerCollection > tok_cala_
std::vector< TriggerObject > TriggerObjectCollection
collection of trigger physics objects (e.g., all isolated muons)
void endRun(edm::Run const &, edm::EventSetup const &) override
edm::ESGetToken< EcalChannelStatus, EcalChannelStatusRcd > tok_ecalChStatus_
std::vector< unsigned int > * t_DetIds
edm::EDGetTokenT< edm::TriggerResults > tok_trigRes_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
XYZPointD XYZPoint
point in space with cartesian internal representation
std::vector< size_type > Keys
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d'tor
edm::ESGetToken< EcalPFRecHitThresholds, EcalPFRecHitThresholdsRcd > tok_ecalPFRecHitThresholds_
void analyze(edm::Event const &, edm::EventSetup const &) override
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::vector< double > * t_HitEnergies1
edm::EDGetTokenT< trigger::TriggerEvent > tok_trigEvt_
const std::string labelTower_
edm::EDGetTokenT< reco::BeamSpot > tok_bs_
const std::string processName_
edm::ESGetToken< HcalDDDRecConstants, HcalRecNumberingRecord > tok_ddrec_
std::vector< bool > * t_trgbits
const double hitEthrEELo_
edm::ESGetToken< HcalRespCorrs, HcalRespCorrsRcd > tok_resp_
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 double hitEthrEEHi_
edm::ESGetToken< HepPDT::ParticleDataTable, PDTRecord > tok_pdt_
const std::string labelGenTrack_
Log< level::Warning, false > LogWarning
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > tok_geom_
double eThreshold(const DetId &id, const CaloGeometry *geo) const
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > tok_bFieldH_
double phi() const final
momentum azimuthal angle
const edm::InputTag theTriggerResultsLabel_
edm::EDGetTokenT< EcalRecHitCollection > tok_EB_
constexpr int iphi() const
get the cell iphi
const bool ignoreTrigger_
void setTopo(const HcalTopology *topo)
const double slopeRestrictionP_
void retrieveL1(const edm::Event &iEvent, const edm::EventSetup &evSetup)
initialize the class (mainly reserve)
int charge() const final
electric charge
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)
double eta() const final
momentum pseudorapidity
constexpr int depth() const
get the tower depth