22 #include <boost/ref.hpp>
23 #include <boost/bind.hpp>
24 #include <boost/function.hpp>
25 #include <boost/iterator/transform_iterator.hpp>
45 for(it = towerMap.begin(); it != towerMap.end(); ++it)
46 if((*it).second > 0) NbMaskedTT++;
47 ss <<
"Barrel masked Trigger Towers " << NbMaskedTT <<std::endl;
54 std::vector<int>
const&,
55 std::vector<float>
const& )
const {
56 gStyle->SetPalette(1);
58 TCanvas
canvas(
"CC map",
"CC map",800, 400);
60 TH2F*
barrel =
new TH2F(
"EB",
"EB TPG Tower Status", 72, 0, 72, 34, -17, 17);
63 std::cout <<
" tower map size " << towerMap.size() << std::endl;
65 for(it = towerMap.begin(); it != towerMap.end(); ++it) {
66 if((*it).second > 0) {
68 int ieta = ttId.
ieta();
70 int iphi = ttId.
iphi() - 1;
71 barrel->Fill(iphi, ieta, (*it).second);
74 TLine*
l =
new TLine(0., 0., 0., 0.);
79 for(
int i = 0;
i <17;
i++) {
80 Double_t
x = 4.+ (
i * 4);
81 l =
new TLine(x, -17., x, 17.);
84 l =
new TLine(0., 0., 72., 0.);
87 canvas.SaveAs(filename.c_str());
std::map< uint32_t, uint16_t >::const_iterator EcalTPGTowerStatusMapIterator
std::map< uint32_t, uint16_t > EcalTPGTowerStatusMap
std::string plot(std::string const &, std::string const &, std::vector< int > const &, std::vector< float > const &) const
#define PYTHON_WRAPPER(_class, _name)
unsigned ttId(DetId const &)
int ieta() const
get the tower ieta
std::string summary() const
static std::string dumpXML(const EcalCondHeader &header, const EcalTPGTowerStatus &record)
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
int iphi() const
get the tower iphi