40 #include <boost/foreach.hpp>
76 typedef std::map<int, std::map<int, std::string> >
TMySubMap;
99 colLen_(iConfig.getParameter<edm::InputTag>(
"colLen")),
100 colDep_(iConfig.getParameter<edm::InputTag>(
"colDep")),
101 _inputCol(iConfig.getParameter<edm::InputTag>(
"selectedMuons")),
102 charge_(iConfig.getParameter<int>(
"charge"))
147 typedef std::map<unsigned int,float> TMyCol;
155 unsigned int selectedDet = 0;
158 DetId det(entry.first);
159 float len = entry.second;
162 if (hDeposits->find(entry.first) != hDeposits->end())
163 val = (hDeposits->find(entry.first))->
second;
164 else if (name ==
"H_Ecal_EcalEndcap") {
166 selectedDet = entry.first;
169 const bool fDebug =
false;
171 std::cout <<
"XX " << name <<
" " << det.
rawId() <<
" " << len <<
" " << val << std::endl;
174 if (selectedDet != 0) {
184 if ( selectedDet == rh.
id().
rawId() ) {
198 std::vector<std::string>
ret;
199 ret.push_back(
"H__");
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::vector< std::string > getAllKeys()
#define DEFINE_FWK_MODULE(type)
bool isGlobalMuon() const
std::map< int, std::map< int, std::string > > TMySubMap
uint32_t rawId() const
get the raw id
U second(std::pair< T, U > const &p)
void addDefault(ParameterSetDescription const &psetDescription)
TestMuonCaloCleaner(const edm::ParameterSet &)
std::string getKey(const DetId &det)
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
Container::value_type value_type
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
virtual void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
virtual void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
virtual void analyze(const edm::Event &, const edm::EventSetup &)
virtual void beginRun(edm::Run const &, edm::EventSetup const &)
DetId id() const
get the id
virtual int charge() const GCC11_FINAL
electric charge
virtual void endRun(edm::Run const &, edm::EventSetup const &)
std::map< std::string, TH2F * > THistoMap
std::map< int, std::string > TMyMainMap
Detector det() const
get the detector field from this detid