1 #ifndef TOPHLTOFFLINEDQMHELPER 2 #define TOPHLTOFFLINEDQMHELPER 33 if(name.Contains(TString(triggerPath.c_str()), TString::kIgnoreCase)) {
47 for(
const auto & triggerPath : triggerPaths){
48 if(
acceptHLT(event, triggerTable, triggerPath)){
101 void operator()(
const std::vector<reco::Jet>& jets);
189 template <
typename Object>
238 template <
typename Object>
240 src_( iC.consumes<
edm::
View<Object> >(cfg.getParameter<
edm::InputTag>(
"src" ))),
241 select_( cfg.getParameter<
std::
string>(
"select")),
271 template <
typename Object>
288 if(dynamic_cast<const reco::GsfElectron*>(&*
obj)){
289 unsigned int idx =
obj-src->begin();
300 return (
min_<0 &&
max_<0) ? (n>0):accept;
302 template <
typename Object>
322 return (
min_<0 &&
max_<0) ? (n>0):accept;
325 template <
typename Object>
328 throw cms::Exception(
"SelectionStepHLT") <<
"you fail" << std::endl;
T getParameter(std::string const &) const
bool failed_
indicate failed associations
bool existsAs(std::string const ¶meterName, bool trackiness=true) const
checks if a parameter exists as a given type
bool select(const edm::Event &event) override
apply selection
double masslb(reco::RecoCandidate *mu, const reco::MET &met, const reco::Jet &b)
calculate mlb estimate
double massTopQuark(const std::vector< reco::Jet > &jets)
calculate top quark mass estimate
void operator()(const std::vector< reco::Jet > &jets)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
double wMass_
paramater of the w boson mass
Base class for all types of Jets.
edm::EDGetTokenT< reco::JetTagCollection > btagLabel_
choice for b-tag as extra selection type
int min_
min/max for object multiplicity
bool accept() const
Has at least one path accepted the event?
double tmassTopQuark(reco::RecoCandidate *mu, const reco::MET &met, const reco::Jet &b)
calculate top quark transverse mass estimate
bool exists(std::string const ¶meterName) const
checks if a parameter exists
def setup(process, global_tag, zero_tesla=False)
virtual bool select(const edm::Event &event, const edm::EventSetup &setup)
double massWBoson(const std::vector< reco::Jet > &jets)
calculate W boson mass estimate
CalculateHLT(int maxNJets, double wMass)
default constructor
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
Strings const & triggerNames() const
SelectionStepHLT(const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)
default constructor
double massWBoson_
cache of w boson mass estimate
bool selectVertex(const edm::Event &event)
double mlb_
cache of mlb estimate
double massTopQuark_
cache of top quark mass estimate
StringCutObjectSelector< reco::JetID > * jetIDSelect_
selection string on the jetID
maxNJets
maximum number of jets taken into account per event for each hypothesis (this parameter is used in th...
double tmassWBoson(reco::RecoCandidate *mu, const reco::MET &met, const reco::Jet &b)
calculate W boson transverse mass estimate
edm::EDGetTokenT< edm::ValueMap< float > > electronId_
electronId label as extra selection type
~CalculateHLT()=default
default destructor
StringCutObjectSelector< Object > select_
string cut selector
bool acceptHLT(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
edm::EDGetTokenT< edm::View< Object > > src_
input collection
double tmassWBoson_
cache of W boson transverse mass estimate
virtual bool select(const edm::Event &event)
edm::EDGetTokenT< edm::View< reco::Vertex > > pvs_
int maxNJets_
max. number of jets to be considered
double btagWorkingPoint_
choice of b-tag working point as extra selection type
std::string jetCorrector_
jet corrector as extra selection type
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
bool isUninitialized() const
edm::EDGetTokenT< reco::JetIDValueMap > jetIDLabel_
jetID as an extra selection type
double tmassTopQuark_
cache of top quark transverse mass estimate
static std::string const triggerPaths