1 #include "../interface/EnergyTask.h"
24 isPhysicsRun_ = taskParams.getUntrackedParameter<
bool>(
"isPhysicsRun");
25 threshS9_ = taskParams.getUntrackedParameter<
double>(
"threshS9");
27 std::map<std::string, std::string> replacements;
28 if(!isPhysicsRun_) replacements[
"oot"] =
" (outOfTime)";
29 else replacements[
"oot"] =
"";
31 for(
unsigned iME(0); iME <
nMESets; iME++)
46 throw cms::Exception(
"EventSetup") <<
"CaloTopology missing" << std::endl;
52 for(
int iFED(0); iFED < 54; iFED++){
77 DetId id(hitItr->id());
91 for(std::vector<DetId>::iterator idItr(
window.begin()); idItr !=
window.end(); ++idItr){
92 if((neighborItr = _hits.
find(*idItr)) == _hits.
end())
continue;
93 if(
isPhysicsRun_ && neighborItr->checkFlagMask(mask))
continue;
94 neighborE =
isPhysicsRun_ ? neighborItr->energy() : neighborItr->outOfTimeEnergy();
102 if(!isSeed)
continue;
std::vector< EcalRecHit >::const_iterator const_iterator
void beginRun(const edm::Run &, const edm::EventSetup &)
static void setMEData(std::vector< MEData > &)
std::vector< DetId > getWindow(const DetId &id, const int &northSouthSize, const int &eastWestSize) const
Get the neighbors of the given cell in a window of given size.
ParameterSet const & getUntrackedParameterSet(std::string const &name, ParameterSet const &defaultValue) const
const CaloTopology * topology_
bool filterRunType(const std::vector< short > &)
const_iterator end() const
std::vector< MESet * > MEs_
T const * product() const
void runOnRecHits(const EcalRecHitCollection &)
iterator find(key_type k)
EnergyTask(const edm::ParameterSet &, const edm::ParameterSet &)
DEFINE_ECALDQM_WORKER(CertificationClient)
const_iterator begin() const