105 edm::LogInfo(
"BTVHLTOfflineSource") <<
"TriggerResults not found, " 117 edm::LogInfo(
"BTVHLTOfflineSource") <<
"TriggerEvent not found, " 150 float CSV_online = iter->second;
151 if (CSV_online<0) CSV_online = -0.05;
153 v.getMEhisto_CSV()->Fill(CSV_online);
154 v.getMEhisto_Pt()->Fill(iter->first->pt());
155 v.getMEhisto_Eta()->Fill(iter->first->eta());
158 if(offlineJetTagHandlerPF.
isValid()){
159 for (
auto const & iterO : *offlineJetTagHandlerPF){
160 float CSV_offline = iterO.second;
161 if (CSV_offline<0) CSV_offline = -0.05;
162 DR =
reco::deltaR(iterO.first->eta(),iterO.first->phi(),iter->first->eta(),iter->first->phi());
164 v.getMEhisto_CSV_RECOvsHLT()->Fill(CSV_offline,CSV_online);
continue;
172 v.getMEhisto_PVz()->Fill(VertexHandler->begin()->z());
173 if (offlineVertexHandler.
isValid())
v.getMEhisto_PVz_HLTMinusRECO()->Fill(VertexHandler->begin()->z()-offlineVertexHandler->begin()->z());
181 float CSV_online = iter->second;
182 if (CSV_online<0) CSV_online = -0.05;
184 v.getMEhisto_CSV()->Fill(CSV_online);
185 v.getMEhisto_Pt()->Fill(iter->first->pt());
186 v.getMEhisto_Eta()->Fill(iter->first->eta());
189 if(offlineJetTagHandlerCalo.
isValid()){
190 for (
auto const & iterO : *offlineJetTagHandlerCalo)
192 float CSV_offline = iterO.second;
193 if (CSV_offline<0) CSV_offline = -0.05;
194 DR =
reco::deltaR(iterO.first->eta(),iterO.first->phi(),iter->first->eta(),iter->first->phi());
197 v.getMEhisto_CSV_RECOvsHLT()->Fill(CSV_offline,CSV_online);
continue;
205 v.getMEhisto_PVz()->Fill(VertexHandler->begin()->z());
206 if (offlineVertexHandler.
isValid())
v.getMEhisto_fastPVz_HLTMinusRECO()->Fill(VertexHandler->begin()->z()-offlineVertexHandler->begin()->z());
212 v.getMEhisto_fastPVz()->Fill(VertexHandler->begin()->z());
213 if (offlineVertexHandler.
isValid())
v.getMEhisto_PVz_HLTMinusRECO()->Fill(VertexHandler->begin()->z()-offlineVertexHandler->begin()->z());
edm::EDGetTokenT< reco::JetTagCollection > offlineCSVTokenCalo_
EventNumber_t event() const
edm::EDGetTokenT< reco::JetTagCollection > offlineCSVTokenPF_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::Handle< trigger::TriggerEvent > triggerObj_
edm::LuminosityBlockNumber_t luminosityBlock() const
edm::EDGetTokenT< std::vector< reco::Vertex > > hltCaloPVToken_
edm::Handle< reco::JetTagCollection > csvPfTags
Strings::size_type size() const
edm::EDGetTokenT< std::vector< reco::Vertex > > offlinePVToken_
edm::EDGetTokenT< trigger::TriggerEvent > triggerSummaryFUToken
edm::Handle< reco::JetTagCollection > csvCaloTags
edm::Handle< edm::TriggerResults > triggerResults_
unsigned int triggerIndex(std::string const &name) const
auto deltaR(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
PathInfoCollection hltPathsAll_
edm::EDGetTokenT< reco::JetTagCollection > csvCaloTagsToken_
edm::EDGetTokenT< std::vector< reco::Vertex > > hltFastPVToken_
edm::EDGetTokenT< edm::TriggerResults > triggerResultsToken
edm::EDGetTokenT< std::vector< reco::Vertex > > hltPFPVToken_
edm::EDGetTokenT< trigger::TriggerEvent > triggerSummaryToken
edm::EDGetTokenT< reco::JetTagCollection > csvPfTagsToken_
const_iterator begin() const
edm::TriggerNames triggerNames_
edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const override
edm::EDGetTokenT< edm::TriggerResults > triggerResultsFUToken