113 edm::LogInfo(
"BTVHLTOfflineSource") <<
"TriggerResults not found, " 125 edm::LogInfo(
"BTVHLTOfflineSource") <<
"TriggerEvent not found, " 162 float Discr_online = iter->second;
163 if (Discr_online<0) Discr_online = -0.05;
165 v.Discr->Fill(Discr_online);
166 v.Pt->Fill(iter->first->pt());
167 v.Eta->Fill(iter->first->eta());
169 if(offlineJetTagHandlerb.
isValid()){
170 for (
auto const & iterOffb : *offlineJetTagHandlerb){
171 float DR =
reco::deltaR(iterOffb.first->eta(),iterOffb.first->phi(),iter->first->eta(),iter->first->phi());
173 float Discr_offline = iterOffb.second;
176 if(offlineJetTagHandlerbb.
isValid()){
177 for (
auto const & iterOffbb : *offlineJetTagHandlerbb){
178 DR =
reco::deltaR(iterOffbb.first->eta(),iterOffbb.first->phi(),iter->first->eta(),iter->first->phi());
180 Discr_offline += iterOffbb.second;
186 if (Discr_offline<0) Discr_offline = -0.05;
187 v.Discr_HLTvsRECO->Fill(Discr_online, Discr_offline);
188 v.Discr_HLTMinusRECO->Fill(Discr_online - Discr_offline);
190 v.Discr_turnon_loose .denominator->Fill(Discr_offline);
191 v.Discr_turnon_medium.denominator->Fill(Discr_offline);
192 v.Discr_turnon_tight .denominator->Fill(Discr_offline);
203 if (
v.getTriggerType() ==
"PF") {
209 v.PVz->Fill(VertexHandler->begin()->z());
210 if (offlineVertexHandler.
isValid()) {
211 v.PVz_HLTMinusRECO->Fill(VertexHandler->begin()->z()-offlineVertexHandler->begin()->z());
220 v.fastPVz->Fill(VertexHandler->begin()->z());
221 if (offlineVertexHandler.
isValid()) {
222 v.fastPVz_HLTMinusRECO->Fill(VertexHandler->begin()->z()-offlineVertexHandler->begin()->z());
241 for (
const auto & shallowTagInfo : *shallowTagInfoCollection) {
242 const auto & tagVars = shallowTagInfo.taggingVariables();
246 v.n_vtx->Fill(tagVar);
249 v.n_sel_tracks->Fill(tagVar);}
254 for (
unsigned i_trk=0; i_trk <
trackSip3dVal.size(); i_trk++) {
257 v.h_3d_ip_distance->Fill(val);
258 v.h_3d_ip_error->Fill(val/sig);
259 v.h_3d_ip_sig->Fill(sig);
264 v.vtx_mass->Fill(tagVar);}
266 v.n_vtx_trks->Fill(tagVar);}
EventNumber_t event() const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< std::vector< reco::ShallowTagInfo > > shallowTagInfosTokenCalo_
edm::Handle< trigger::TriggerEvent > triggerObj_
edm::EDGetTokenT< reco::JetTagCollection > pfTagsToken_
edm::EDGetTokenT< reco::JetTagCollection > offlineDiscrTokenb_
edm::LuminosityBlockNumber_t luminosityBlock() const
edm::EDGetTokenT< std::vector< reco::Vertex > > hltCaloPVToken_
Strings::size_type size() const
edm::Handle< std::vector< reco::ShallowTagInfo > > shallowTagInfosPf
edm::EDGetTokenT< std::vector< reco::Vertex > > offlinePVToken_
edm::EDGetTokenT< trigger::TriggerEvent > triggerSummaryFUToken
edm::Handle< edm::TriggerResults > triggerResults_
unsigned int triggerIndex(std::string const &name) const
edm::Handle< reco::JetTagCollection > pfTags
PathInfoCollection hltPathsAll_
constexpr auto deltaR(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
edm::EDGetTokenT< reco::JetTagCollection > offlineDiscrTokenbb_
edm::EDGetTokenT< std::vector< reco::Vertex > > hltFastPVToken_
edm::EDGetTokenT< edm::TriggerResults > triggerResultsToken
edm::EDGetTokenT< std::vector< reco::Vertex > > hltPFPVToken_
float turnon_threshold_loose_
edm::EDGetTokenT< trigger::TriggerEvent > triggerSummaryToken
edm::EDGetTokenT< std::vector< reco::ShallowTagInfo > > shallowTagInfosTokenPf_
edm::Handle< reco::JetTagCollection > caloTags
const_iterator begin() const
edm::EDGetTokenT< reco::JetTagCollection > caloTagsToken_
edm::TriggerNames triggerNames_
edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const override
float turnon_threshold_tight_
edm::EDGetTokenT< edm::TriggerResults > triggerResultsFUToken
edm::Handle< std::vector< reco::ShallowTagInfo > > shallowTagInfosCalo
float turnon_threshold_medium_