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)))
39 edm::LogWarning(
"HLTTauDQMOffline") <<
"HLTTauDQML1Plotter::HLTTauDQML1Plotter: " << e.
what();
59 char buffer[BUFMAX] =
"";
70 snprintf(buffer, BUFMAX,
"L1 central jet #eta (E_{T} > %.1f);L1 jet #eta;entries",
l1JetMinEt_);
72 snprintf(buffer, BUFMAX,
"L1 central jet #phi (E_{T} > %.1f);L1 jet #phi;entries",
l1JetMinEt_);
75 snprintf(buffer, BUFMAX,
"L1 leading (#tau OR central jet E_{T} > %.1f) E_{T};L1 (#tau or central jet) E_{T};entries",
l1JetMinEt_);
77 snprintf(buffer, BUFMAX,
"L1 leading (#tau OR central jet E_{T} > %.1f) #eta;L1 (#tau or central jet) #eta;entries",
l1JetMinEt_);
79 snprintf(buffer, BUFMAX,
"L1 leading (#tau OR central jet E_{T} > %.1f) #phi;L1 (#tau or central jet) #phi;entries",
l1JetMinEt_);
82 snprintf(buffer, BUFMAX,
"L1 second-leading (#tau OR central jet E_{T} > %.1f) E_{T};L1 (#tau or central jet) E_{T};entries",
l1JetMinEt_);
84 snprintf(buffer, BUFMAX,
"L1 second-leading (#tau OR central jet E_{T} > %.1f) #eta;L1 (#tau or central jet) #eta;entries",
l1JetMinEt_);
86 snprintf(buffer, BUFMAX,
"L1 second-leading (#tau OR central jet E_{T} > %.1f) #phi;L1 (#tau or central jet) #phi;entries",
l1JetMinEt_);
90 l1tauEtRes_ = store->
book1D(
"L1TauEtResol",
"L1 #tau E_{T} resolution;[L1 #tau E_{T}-Ref #tau E_{T}]/Ref #tau E_{T};entries",60,-1,4);
91 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_);
129 snprintf(buffer, BUFMAX,
"L1 central jet #eta Efficiency (E_{T} > %.1f);Ref #tau #eta;entries",
l1JetMinEt_);
133 snprintf(buffer, BUFMAX,
"L1 central jet #eta Denominator (E_{T} > %.1f);Ref #tau #eta;entries",
l1JetMinEt_);
137 snprintf(buffer, BUFMAX,
"L1 central jet #phi Efficiency (E_{T} > %.1f);Ref #tau #eta;entries",
l1JetMinEt_);
141 snprintf(buffer, BUFMAX,
"L1 central jet #phi Efficiency (E_{T} > %.1f);Ref #tau #eta;entries",
l1JetMinEt_);
163 for ( LVColl::const_iterator iter = refC.
taus.begin(); iter != refC.
taus.end(); ++iter ) {
190 for(l1extra::L1JetParticleCollection::const_iterator
i = taus->begin();
i != taus->end(); ++
i) {
191 l1taus.push_back(
i->p4());
196 pathTaus.push_back(
i->p4());
205 for(l1extra::L1JetParticleCollection::const_iterator
i = jets->begin();
i != jets->end(); ++
i) {
206 l1jets.push_back(
i->p4());
212 pathTaus.push_back(
i->p4());
223 for ( LVColl::const_iterator
i = refC.
taus.begin();
i != refC.
taus.end(); ++
i ) {
237 pathTaus.push_back(m.second);
241 for ( LVColl::const_iterator
i = refC.
taus.begin();
i != refC.
taus.end(); ++
i ) {
256 pathTaus.push_back(m.second);
264 if(pathTaus.size() > 1)
std::sort(pathTaus.begin(), pathTaus.end(), [](
const LV&
a,
const LV&
b) {
return a.pt() >
b.pt(); });
266 if ( pathTaus.size() > 0 ) {
271 if ( pathTaus.size() > 1 ) {
virtual char const * what() const
T getUntrackedParameter(std::string const &, T const &) const
const double matchDeltaR_
MonitorElement * l1jetEta_
edm::EDGetTokenT< l1extra::L1JetParticleCollection > l1ExtraJetsToken_
MonitorElement * secondTauEta_
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
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_
void removeContents(void)
erase all monitoring elements in current directory (not including subfolders);
MonitorElement * firstTauEt_
MonitorElement * l1tauHighEtEffDenom_
MonitorElement * l1jetEtEffDenom_
MonitorElement * l1tauEtEffNum_
MonitorElement * l1tauPhi_
edm::InputTag l1ExtraTaus_
MonitorElement * l1tauEta_
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)
TH1F * getTH1F(void) const
edm::InputTag l1ExtraJets_
MonitorElement * l1tauEtaEffDenom_
MonitorElement * l1tauEtRes_
MonitorElement * l1jetPhi_
MonitorElement * l1jetEt_
MonitorElement * l1jetEtaEffDenom_
std::pair< bool, LV > match(const LV &, const LVColl &, double)
void setCurrentFolder(const std::string &fullpath)
MonitorElement * l1tauPhiEffNum_
MonitorElement * l1tauHighEtEffNum_