Skip to content

Commit

Permalink
adriano's comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ccaillol committed Aug 15, 2022
1 parent 54a25d8 commit fb2bed1
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 155 deletions.
36 changes: 11 additions & 25 deletions DQMOffline/L1Trigger/interface/L1TPhase2MuonOffline.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
#include "HLTrigger/HLTcore/interface/HLTConfigProvider.h"

// Common tools
//#include "MuonAnalysis/MuonAssociators/interface/PropagateToMuon.h"
#include "TrackingTools/TransientTrack/interface/TransientTrack.h"
#include "TrackingTools/TransientTrack/interface/TrackTransientTrack.h"
#include "TrackingTools/TransientTrack/interface/TransientTrackBuilder.h"
Expand Down Expand Up @@ -120,33 +119,20 @@ class L1TPhase2MuonOffline : public DQMEDAnalyzer {
std::map<MuType, std::string> muonNames_;

// config params
std::string histFolder_;
std::vector<edm::ParameterSet> cutsVPSet_;
const std::string histFolder_;
const std::vector<edm::ParameterSet> cutsVPSet_;

std::vector<double> effVsPtBins_;
std::vector<double> effVsPhiBins_;
std::vector<double> effVsEtaBins_;
const std::vector<double> effVsPtBins_;
const std::vector<double> effVsPhiBins_;
const std::vector<double> effVsEtaBins_;

bool useAtVtxCoord_;
bool isParticleGun_;
float maxGmtMuonDR_;
const double maxGmtMuonDR_;

// Helper methods
void matchMuonsToGen(std::vector<const reco::GenParticle*> genmus);
std::vector<float> getHistBinsEff(EffType eff);
std::tuple<int, double, double> getHistBinsRes(ResType res);

// Keys for histogram maps
/*typedef std::tuple<MuType, ResType, EtaRegion, QualLevel> histoKeyResType_;
typedef std::tuple<MuType, EffType, int, EtaRegion, QualLevel> histoKeyEffType_;
typedef std::tuple<MuType, VarType> histoKeyVarType_;
*/
// Histograms and histogram containers
// std::map<std::tuple<MuType, EffType, int, EtaRegion, QualLevel>, MonitorElement*> efficiencyHistos_;
// std::map<std::tuple<MuType, ResType, EtaRegion, QualLevel>, MonitorElement*> resolutionHistos_;
// TH1F* efficiencyNum_[kNMuTypes][kNEtaRegions][kNQualLevels][kEffTypes];
// TH1F* efficiencyDen_[kNMuTypes][kNEtaRegions][kNQualLevels][kEffTypes];

MonitorElement* efficiencyNum_[kNMuTypes][kNEtaRegions][kNQualLevels][kEffTypes];
MonitorElement* efficiencyDen_[kNMuTypes][kNEtaRegions][kNQualLevels][kEffTypes];
MonitorElement* resolutionHistos_[kNMuTypes][kNEtaRegions][kNQualLevels][kNResTypes];
Expand All @@ -157,11 +143,11 @@ class L1TPhase2MuonOffline : public DQMEDAnalyzer {
std::vector<GenMuonGMTPair> gmtTkMuonPairs_;
std::vector<std::pair<int, QualLevel>> cuts_;

float lsb_pt;
float lsb_phi;
float lsb_eta;
float lsb_z0;
float lsb_d0;
float lsb_pt = Phase2L1GMT::LSBpt;
float lsb_phi = Phase2L1GMT::LSBphi;
float lsb_eta = Phase2L1GMT::LSBeta;
float lsb_z0 = Phase2L1GMT::LSBSAz0;
float lsb_d0 = Phase2L1GMT::LSBSAd0;
};

//
Expand Down
2 changes: 2 additions & 0 deletions DQMOffline/L1Trigger/python/L1TPhase2MuonOffline_cfi.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@
efficiencyVsPhiBins = cms.untracked.vdouble(effVsPhiBins),
efficiencyVsEtaBins = cms.untracked.vdouble(effVsEtaBins),
efficiencyVsVtxBins = cms.untracked.vdouble(effVsVtxBins),

maxDR = cms.untracked.double(0.3),
)


9 changes: 1 addition & 8 deletions DQMOffline/L1Trigger/src/L1TPhase2MuonOffline.cc
Original file line number Diff line number Diff line change
Expand Up @@ -123,16 +123,9 @@ L1TPhase2MuonOffline::L1TPhase2MuonOffline(const ParameterSet& ps)
effVsPtBins_(ps.getUntrackedParameter<std::vector<double>>("efficiencyVsPtBins")),
effVsPhiBins_(ps.getUntrackedParameter<std::vector<double>>("efficiencyVsPhiBins")),
effVsEtaBins_(ps.getUntrackedParameter<std::vector<double>>("efficiencyVsEtaBins")),
maxGmtMuonDR_(0.3) {
maxGmtMuonDR_(ps.getUntrackedParameter<double>("maxDR")) {
edm::LogInfo("L1TPhase2MuonOffline") << "L1TPhase2MuonOffline::L1TPhase2MuonOffline()" << endl;

// Get Muon constants
lsb_pt = Phase2L1GMT::LSBpt;
lsb_phi = Phase2L1GMT::LSBphi;
lsb_eta = Phase2L1GMT::LSBeta;
lsb_z0 = Phase2L1GMT::LSBSAz0;
lsb_d0 = Phase2L1GMT::LSBSAd0;

for (const auto& c : cutsVPSet_) {
const auto qCut = c.getUntrackedParameter<int>("qualCut");
QualLevel qLevel = kQualOpen;
Expand Down
118 changes: 0 additions & 118 deletions DataFormats/HLTReco/src/classes_def.xml.generated

This file was deleted.

8 changes: 4 additions & 4 deletions L1Trigger/L1TTrackMatch/plugins/L1TrackerEtMissProducer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ class L1TrackerEtMissProducer : public edm::global::EDProducer<> {
// ----------member data ---------------------------
const edm::EDGetTokenT<L1TTTrackRefCollectionType> trackToken_;
const edm::EDGetTokenT<L1TTTrackRefCollectionType> vtxAssocTrackToken_;
std::string L1MetCollectionName;
float maxPt_; // in GeV
int highPtTracks_; // saturate or truncate
bool debug_;
const std::string L1MetCollectionName;
const float maxPt_; // in GeV
const int highPtTracks_; // saturate or truncate
const bool debug_;
};

// constructor
Expand Down

0 comments on commit fb2bed1

Please sign in to comment.