8 double getMaxEta(
int binsEta,
double widthEta) {
10 edm::LogWarning(
"HLTTauDQMOffline") <<
"HLTTauDQML1Plotter::HLTTauDQML1Plotter: EtaHistoBinWidth = " << widthEta <<
" <= 0, using default value 0.348 instead";
13 return binsEta/2*widthEta;
22 maxHighPt_(maxhighpt),
23 binsEt_(ps.getUntrackedParameter<int>(
"EtHistoBins", 25)),
24 binsEta_(ps.getUntrackedParameter<int>(
"EtaHistoBins", 14)),
26 maxEta_(getMaxEta(binsEta_, ps.getUntrackedParameter<double>(
"EtaHistoBinWidth", 0.348)))
51 char buffer[BUFMAX] =
"";
61 snprintf(buffer, BUFMAX,
"L1 central jet #eta (E_{T} > %.1f);L1 jet #eta;entries",
l1JetMinEt_);
63 snprintf(buffer, BUFMAX,
"L1 central jet #phi (E_{T} > %.1f);L1 jet #phi;entries",
l1JetMinEt_);
66 snprintf(buffer, BUFMAX,
"L1 leading (#tau OR central jet E_{T} > %.1f) E_{T};L1 (#tau or central jet) E_{T};entries",
l1JetMinEt_);
68 snprintf(buffer, BUFMAX,
"L1 leading (#tau OR central jet E_{T} > %.1f) #eta;L1 (#tau or central jet) #eta;entries",
l1JetMinEt_);
70 snprintf(buffer, BUFMAX,
"L1 leading (#tau OR central jet E_{T} > %.1f) #phi;L1 (#tau or central jet) #phi;entries",
l1JetMinEt_);
73 snprintf(buffer, BUFMAX,
"L1 second-leading (#tau OR central jet E_{T} > %.1f) E_{T};L1 (#tau or central jet) E_{T};entries",
l1JetMinEt_);
75 snprintf(buffer, BUFMAX,
"L1 second-leading (#tau OR central jet E_{T} > %.1f) #eta;L1 (#tau or central jet) #eta;entries",
l1JetMinEt_);
77 snprintf(buffer, BUFMAX,
"L1 second-leading (#tau OR central jet E_{T} > %.1f) #phi;L1 (#tau or central jet) #phi;entries",
l1JetMinEt_);
81 l1tauEtRes_ = iBooker.
book1D(
"L1TauEtResol",
"L1 #tau E_{T} resolution;[L1 #tau E_{T}-Ref #tau E_{T}]/Ref #tau E_{T};entries",60,-1,4);
82 snprintf(buffer, BUFMAX,
"L1 central jet E_{T} resolution (E_{T} > %.1f);[L1 jet E_{T}-Ref #tau E_{T}]/Ref #tau E_{T};entries",
l1JetMinEt_);
105 snprintf(buffer, BUFMAX,
"L1 central jet #eta Efficiency (E_{T} > %.1f);Ref #tau #eta;entries",
l1JetMinEt_);
108 snprintf(buffer, BUFMAX,
"L1 central jet #eta Denominator (E_{T} > %.1f);Ref #tau #eta;Efficiency",
l1JetMinEt_);
111 snprintf(buffer, BUFMAX,
"L1 central jet #phi Efficiency (E_{T} > %.1f);Ref #tau #phi;entries",
l1JetMinEt_);
114 snprintf(buffer, BUFMAX,
"L1 central jet #phi Efficiency (E_{T} > %.1f);Ref #tau #phi;Efficiency",
l1JetMinEt_);
157 for(l1extra::L1JetParticleCollection::const_iterator
i = taus->begin();
i != taus->end(); ++
i) {
158 l1taus.push_back(
i->p4());
163 pathTaus.push_back(
i->p4());
172 for(l1extra::L1JetParticleCollection::const_iterator
i = jets->begin();
i != jets->end(); ++
i) {
173 l1jets.push_back(
i->p4());
179 pathTaus.push_back(
i->p4());
190 for ( LVColl::const_iterator
i = refC.
taus.begin();
i != refC.
taus.end(); ++
i ) {
204 pathTaus.push_back(m.second);
208 for ( LVColl::const_iterator
i = refC.
taus.begin();
i != refC.
taus.end(); ++
i ) {
223 pathTaus.push_back(m.second);
231 if(pathTaus.size() > 1)
std::sort(pathTaus.begin(), pathTaus.end(), [](
const LV&
a,
const LV&
b) {
return a.pt() >
b.pt(); });
233 if ( pathTaus.size() > 0 ) {
238 if ( pathTaus.size() > 1 ) {
T getUntrackedParameter(std::string const &, T const &) const
const double matchDeltaR_
MonitorElement * l1jetEta_
edm::EDGetTokenT< l1extra::L1JetParticleCollection > l1ExtraJetsToken_
MonitorElement * secondTauEta_
void bookHistograms(DQMStore::IBooker &iBooker)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
MonitorElement * firstTauPhi_
MonitorElement * l1jetEtEffNum_
MonitorElement * l1jetPhiEffDenom_
MonitorElement * l1jetHighEtEffDenom_
MonitorElement * l1jetEtaEffNum_
MonitorElement * l1jetHighEtEffNum_
const std::string & triggerTag() const
void analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup, const HLTTauDQMOfflineObjects &refC)
edm::EDGetTokenT< l1extra::L1JetParticleCollection > l1ExtraTausToken_
MonitorElement * firstTauEta_
MonitorElement * l1tauEt_
MonitorElement * secondTauEt_
MonitorElement * l1tauEtEffDenom_
MonitorElement * l1jetEtRes_
MonitorElement * l1jetPhiEffNum_
math::XYZTLorentzVectorD LV
const bool doRefAnalysis_
MonitorElement * l1tauEtaEffNum_
MonitorElement * firstTauEt_
MonitorElement * l1tauHighEtEffDenom_
MonitorElement * l1jetEtEffDenom_
MonitorElement * book1D(Args &&...args)
MonitorElement * l1tauEtEffNum_
MonitorElement * l1tauPhi_
edm::InputTag l1ExtraTaus_
MonitorElement * l1tauEta_
void setCurrentFolder(const std::string &fullpath)
MonitorElement * secondTauPhi_
MonitorElement * l1tauPhiEffDenom_
HLTTauDQML1Plotter(const edm::ParameterSet &, edm::ConsumesCollector &&cc, int phibins, double maxpt, double maxhighpt, bool ref, double dr, const std::string &dqmBaseFolder)
edm::InputTag l1ExtraJets_
MonitorElement * l1tauEtaEffDenom_
MonitorElement * l1tauEtRes_
MonitorElement * l1jetPhi_
MonitorElement * l1jetEt_
MonitorElement * l1jetEtaEffDenom_
std::pair< bool, LV > match(const LV &, const LVColl &, double)
MonitorElement * l1tauPhiEffNum_
MonitorElement * l1tauHighEtEffNum_