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)))
53 char buffer[BUFMAX] =
"";
65 snprintf(buffer, BUFMAX,
"L1 leading (#tau OR central jet E_{T} > %.1f) E_{T};L1 (#tau or central jet) E_{T};entries",
l1JetMinEt_);
67 snprintf(buffer, BUFMAX,
"L1 leading (#tau OR central jet E_{T} > %.1f) #eta;L1 (#tau or central jet) #eta;entries",
l1JetMinEt_);
69 snprintf(buffer, BUFMAX,
"L1 leading (#tau OR central jet E_{T} > %.1f) #phi;L1 (#tau or central jet) #phi;entries",
l1JetMinEt_);
72 snprintf(buffer, BUFMAX,
"L1 second-leading (#tau OR central jet E_{T} > %.1f) E_{T};L1 (#tau or central jet) E_{T};entries",
l1JetMinEt_);
74 snprintf(buffer, BUFMAX,
"L1 second-leading (#tau OR central jet E_{T} > %.1f) #eta;L1 (#tau or central jet) #eta;entries",
l1JetMinEt_);
76 snprintf(buffer, BUFMAX,
"L1 second-leading (#tau OR central jet E_{T} > %.1f) #phi;L1 (#tau or central jet) #phi;entries",
l1JetMinEt_);
80 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);
112 for ( LVColl::const_iterator iter = refC.
taus.begin(); iter != refC.
taus.end(); ++iter ) {
138 l1taus.push_back(
i->p4());
143 pathTaus.push_back(
i->p4());
153 for (
int ibx = sums->getFirstBX(); ibx <= sums->getLastBX(); ++ibx) {
155 int type =
static_cast<int>( it->getType() );
167 for ( LVColl::const_iterator
i = refC.
taus.begin();
i != refC.
taus.end(); ++
i ) {
181 pathTaus.push_back(m.second);
186 for (
int ibx = sums->getFirstBX(); ibx <= sums->getLastBX(); ++ibx) {
188 int type =
static_cast<int>( it->getType() );
203 if(pathTaus.size() > 1) std::sort(pathTaus.begin(), pathTaus.end(), [](
const LV&
a,
const LV&
b) {
return a.pt() >
b.pt(); });
204 if ( pathTaus.size() > 0 ) {
209 if ( pathTaus.size() > 1 ) {
T getUntrackedParameter(std::string const &, T const &) const
const double matchDeltaR_
MonitorElement * secondTauEta_
void bookHistograms(DQMStore::IBooker &iBooker)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
MonitorElement * firstTauPhi_
MonitorElement * l1etmEtEffNum_
const std::string & triggerTag() const
void analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup, const HLTTauDQMOfflineObjects &refC)
MonitorElement * firstTauEta_
MonitorElement * l1tauEt_
MonitorElement * secondTauEt_
MonitorElement * l1tauEtEffDenom_
math::XYZTLorentzVectorD LV
const bool doRefAnalysis_
MonitorElement * l1tauEtaEffNum_
MonitorElement * firstTauEt_
MonitorElement * l1tauHighEtEffDenom_
edm::EDGetTokenT< l1t::TauBxCollection > l1stage2TausToken_
MonitorElement * l1etmEt_
MonitorElement * book1D(Args &&...args)
edm::InputTag l1stage2Taus_
MonitorElement * l1tauEtEffNum_
MonitorElement * l1tauPhi_
MonitorElement * l1tauEta_
void setCurrentFolder(const std::string &fullpath)
MonitorElement * secondTauPhi_
T const * product() const
MonitorElement * l1tauPhiEffDenom_
HLTTauDQML1Plotter(const edm::ParameterSet &, edm::ConsumesCollector &&cc, int phibins, double maxpt, double maxhighpt, bool ref, double dr, const std::string &dqmBaseFolder)
MonitorElement * l1tauEtaEffDenom_
MonitorElement * l1tauEtRes_
std::pair< bool, LV > match(const LV &, const LVColl &, double)
MonitorElement * l1etmEtEffDenom_
MonitorElement * l1etmPhi_
edm::InputTag l1stage2Sums_
MonitorElement * l1tauPhiEffNum_
MonitorElement * l1tauHighEtEffNum_
edm::EDGetTokenT< l1t::EtSumBxCollection > l1stage2SumsToken_
std::vector< Tau >::const_iterator const_iterator