1 #include "../interface/TrigPrimTask.h"
38 runOnEmul_ = taskParams.getUntrackedParameter<
bool>(
"runOnEmul");
39 expectedTiming_ = taskParams.getUntrackedParameter<
int>(
"expectedTiming");
44 int binEdges[
nBXBins + 1] = {1, 271, 541, 892, 1162, 1432, 1783, 2053, 2323, 2674, 2944, 3214, 3446, 3490, 3491, 3565};
62 for(
int i(2);
i <= 6;
i++){
71 for(
unsigned iME(0); iME <
sizeof(bookList) /
sizeof(
unsigned); iME++)
72 MEs_[bookList[iME]]->book();
79 else ss << bxBinEdges_[
i - 1] <<
" - " << (bxBinEdges_[
i] - 1);
185 float et(tpItr->compressedEt());
196 int interest(tpItr->ttFlag() & 0x3);
226 int et(tpItr->compressedEt());
234 for(
int iDigi(0); iDigi < 5; iDigi++){
235 float sampleEt((*tpItr)[iDigi].compressedEt());
237 if(sampleEt > maxEt){
252 int realEt(realItr->compressedEt());
254 if(realEt <= 0)
continue;
256 int interest(realItr->ttFlag() & 0x3);
259 if(et != realEt) match =
false;
260 if(tpItr->fineGrain() != realItr->fineGrain()) matchFG =
false;
262 std::vector<int> matchedIndex(0);
263 for(
int iDigi(0); iDigi < 5; iDigi++){
264 if((*tpItr)[iDigi].compressedEt() == realEt)
265 matchedIndex.push_back(iDigi + 1);
268 if(!matchedIndex.size()) matchedIndex.push_back(0);
269 for(std::vector<int>::iterator matchItr(matchedIndex.begin()); matchItr != matchedIndex.end(); ++matchItr){
299 indexAxis.
title =
"TP index";
305 etAxis.
title =
"TP Et";
316 flagAxis.
title =
"TT flag";
std::vector< std::pair< Collections, Collections > > dependencies_
static void setMEData(std::vector< MEData > &)
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
void beginEvent(const edm::Event &, const edm::EventSetup &) override
void runOnEmulTPs(const EcalTrigPrimDigiCollection &)
std::vector< EcalTriggerPrimitiveDigi >::const_iterator const_iterator
int bunchCrossing() const
std::map< uint32_t, unsigned > towerReadouts_
ParameterSet getUntrackedParameterSet(std::string const &name, ParameterSet const &defaultValue) const
const_iterator begin() const
void runOnRealTPs(const EcalTrigPrimDigiCollection &)
EcalTrigTowerDetId towerOf(const DetId &id) const
Get the tower id for this det id (or null if not known)
const EcalTrigTowerConstituentsMap * ttMap_
uint32_t rawId() const
get the raw id
TrigPrimTask(const edm::ParameterSet &, const edm::ParameterSet &)
const EcalTrigPrimDigiCollection * realTps_
std::vector< DetId > constituentsOf(const EcalTrigTowerDetId &id) const
Get the constituent detids for this tower id.
const_iterator end() const
std::vector< MESet * > MEs_
int bxBinEdges_[nBXBins+1]
T const * product() const
const_iterator end() const
void beginRun(const edm::Run &, const edm::EventSetup &) override
iterator find(key_type k)
void runOnDigis(const EcalDigiCollection &)
std::pair< typename Association::data_type::first_type, double > match(Reference key, Association association, bool bestMatchByMaxValue)
Generic matching function.
DEFINE_ECALDQM_WORKER(CertificationClient)
volatile std::atomic< bool > shutdown_flag false
const_iterator begin() const