#include <UserCode/HcalLaserEventFilter/src/HcalLaserEventFilter.cc>
Public Member Functions | |
HcalLaserEventFilter (const edm::ParameterSet &) | |
~HcalLaserEventFilter () | |
Public Member Functions inherited from edm::EDFilter | |
EDFilter () | |
ModuleDescription const & | moduleDescription () const |
virtual | ~EDFilter () |
Public Member Functions inherited from edm::ProducerBase | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
ProducerBase () | |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
std::function< void(BranchDescription const &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
virtual | ~ProducerBase () |
Public Member Functions inherited from edm::EDConsumerBase | |
std::vector< ConsumesInfo > | consumesInfo () const |
EDConsumerBase () | |
ProductHolderIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
void | itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
std::vector < ProductHolderIndexAndSkipBit > const & | itemsToGetFromEvent () const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const |
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
virtual | ~EDConsumerBase () |
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
Static Public Member Functions inherited from edm::EDFilter | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &) |
Private Member Functions | |
virtual void | beginJob () override |
virtual void | endJob () override |
virtual bool | filter (edm::Event &, const edm::EventSetup &) override |
std::vector< int > | GetCMSSWVersion (std::string const &) |
bool | IsGreaterThanMinCMSSWVersion (std::vector< int > const &) |
Private Attributes | |
const bool | debug_ |
int | errorcount |
bool | forceUseHcalNoiseSummary_ |
bool | forceUseRecHitCollection_ |
const edm::InputTag | hbheInputLabel_ |
edm::EDGetTokenT < HBHERecHitCollection > | hbheToken_ |
const edm::InputTag | hcalNoiseSummaryLabel_ |
edm::EDGetTokenT < HcalNoiseSummary > | hcalNoiseSummaryToken_ |
int | maxerrormessage_ |
const unsigned int | minOccupiedHBHE_ |
std::vector< int > | minVersion_ |
const bool | reverseFilter_ |
std::vector< std::pair < edm::RunNumber_t, edm::EventNumber_t > > | RunEventData_ |
const bool | taggingMode_ |
bool | useHcalNoiseSummary_ |
const bool | vetoByHBHEOccupancy_ |
const bool | vetoByRunEventNumber_ |
Additional Inherited Members | |
Public Types inherited from edm::EDFilter | |
typedef EDFilter | ModuleType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
Description: Filter for removing Hcal laser events
Implementation: Filter allows users to remove specific (run,event) pairs that have been identified as noise It also allows users to remove events in which the number of HBHE rechits exceeds a given threshold (5000 by default).
Definition at line 49 of file HcalLaserEventFilter.cc.
|
explicit |
Definition at line 111 of file HcalLaserEventFilter.cc.
References errorcount, edm::ParameterSet::getUntrackedParameter(), i, DTTTrigCorrFirst::run, and RunEventData_.
HcalLaserEventFilter::~HcalLaserEventFilter | ( | ) |
Definition at line 148 of file HcalLaserEventFilter.cc.
|
overrideprivatevirtual |
Reimplemented from edm::EDFilter.
Definition at line 258 of file HcalLaserEventFilter.cc.
References GetCMSSWVersion(), edm::getReleaseVersion(), IsGreaterThanMinCMSSWVersion(), minVersion_, AlCaHLTBitMon_QueryRunRegistry::string, and useHcalNoiseSummary_.
|
overrideprivatevirtual |
Reimplemented from edm::EDFilter.
Definition at line 275 of file HcalLaserEventFilter.cc.
|
static |
Definition at line 280 of file HcalLaserEventFilter.cc.
References edm::ConfigurationDescriptions::addDefault(), and edm::ParameterSetDescription::setUnknown().
|
overrideprivatevirtual |
Implements edm::EDFilter.
Definition at line 163 of file HcalLaserEventFilter.cc.
References gather_cfg::cout, debug_, errorcount, edm::EventID::event(), forceUseHcalNoiseSummary_, forceUseRecHitCollection_, edm::Event::getByToken(), hbheInputLabel_, hbheToken_, hcalNoiseSummaryLabel_, hcalNoiseSummaryToken_, i, edm::EventBase::id(), maxerrormessage_, minOccupiedHBHE_, edm::Event::put(), reverseFilter_, edm::EventID::run(), RunEventData_, taggingMode_, useHcalNoiseSummary_, vetoByHBHEOccupancy_, and vetoByRunEventNumber_.
|
private |
Definition at line 288 of file HcalLaserEventFilter.cc.
References prof2calltree::prefix, AlCaHLTBitMon_QueryRunRegistry::string, lumiQTWidget::t, and groupFilesInBlocks::temp.
Referenced by beginJob().
|
private |
Definition at line 320 of file HcalLaserEventFilter.cc.
References minVersion_.
Referenced by beginJob().
|
private |
Definition at line 75 of file HcalLaserEventFilter.cc.
Referenced by filter().
|
private |
Definition at line 90 of file HcalLaserEventFilter.cc.
Referenced by filter(), and HcalLaserEventFilter().
|
private |
Definition at line 96 of file HcalLaserEventFilter.cc.
Referenced by filter().
|
private |
Definition at line 95 of file HcalLaserEventFilter.cc.
Referenced by filter().
|
private |
Definition at line 82 of file HcalLaserEventFilter.cc.
Referenced by filter().
|
private |
Definition at line 83 of file HcalLaserEventFilter.cc.
Referenced by filter().
|
private |
Definition at line 84 of file HcalLaserEventFilter.cc.
Referenced by filter().
|
private |
Definition at line 85 of file HcalLaserEventFilter.cc.
Referenced by filter().
|
private |
Definition at line 91 of file HcalLaserEventFilter.cc.
Referenced by filter().
|
private |
Definition at line 72 of file HcalLaserEventFilter.cc.
Referenced by filter().
|
private |
Definition at line 97 of file HcalLaserEventFilter.cc.
Referenced by beginJob(), and IsGreaterThanMinCMSSWVersion().
|
private |
Definition at line 79 of file HcalLaserEventFilter.cc.
Referenced by filter().
|
private |
Definition at line 68 of file HcalLaserEventFilter.cc.
Referenced by filter(), and HcalLaserEventFilter().
|
private |
Definition at line 87 of file HcalLaserEventFilter.cc.
Referenced by filter().
|
private |
Definition at line 94 of file HcalLaserEventFilter.cc.
Referenced by beginJob(), and filter().
|
private |
Definition at line 71 of file HcalLaserEventFilter.cc.
Referenced by filter().
|
private |
Definition at line 67 of file HcalLaserEventFilter.cc.
Referenced by filter().