40 #include <boost/foreach.hpp>
76 typedef std::map<int, std::map<int, std::string> >
TMySubMap;
84 typedef std::map<std::string, TTree * >
TTreeMap;
104 colLen_(iConfig.getParameter<edm::InputTag>(
"colLen")),
105 colDep_(iConfig.getParameter<edm::InputTag>(
"colDep")),
106 _inputCol(iConfig.getParameter<edm::InputTag>(
"selectedMuons")),
107 charge_(iConfig.getParameter<int>(
"charge"))
131 histoMap_[
name]=fs->
make<TH2F>( name.c_str() , name.c_str(), 1000, 0., 200., 1000, 0, 20. );
136 treeStorageMap_[
name][
"p"] = -999;
137 treeStorageMap_[
name][
"eta"] = -999;
138 treeStorageMap_[
name][
"phi"] = -999;
139 treeStorageMap_[
name][
"len"] = -999;
140 treeStorageMap_[
name][
"val"] = -999;
141 treeStorageMap_[
name][
"charge"] = -999;
144 treeMap_[
name]->Branch(entry.first.c_str(), &entry.second);
174 typedef std::map<unsigned int,float> TMyCol;
184 DetId det(entry.first);
185 float len = entry.second;
188 if (hDeposits->find(entry.first) != hDeposits->end())
189 val = (hDeposits->find(entry.first))->
second;
217 std::vector<std::string>
ret;
218 ret.push_back(
"H__");
std::map< std::string, TH2F * > THistoMap
virtual double p() const GCC11_FINAL
magnitude of momentum vector
virtual void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
#define DEFINE_FWK_MODULE(type)
AnaMuonCaloCleaner(const edm::ParameterSet &)
virtual void endRun(edm::Run const &, edm::EventSetup const &)
bool isGlobalMuon() const
T * make(const Args &...args) const
make new ROOT object
virtual void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
U second(std::pair< T, U > const &p)
virtual float phi() const GCC11_FINAL
momentum azimuthal angle
void addDefault(ParameterSetDescription const &psetDescription)
std::string getKey(const DetId &det)
std::vector< std::string > getAllKeys()
virtual void analyze(const edm::Event &, const edm::EventSetup &)
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
Container::value_type value_type
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
virtual float eta() const GCC11_FINAL
momentum pseudorapidity
std::map< std::string, std::map< std::string, float > > TTreeTempStorageMap
virtual int charge() const GCC11_FINAL
electric charge
virtual void beginRun(edm::Run const &, edm::EventSetup const &)
std::map< std::string, TTree * > TTreeMap
std::map< int, std::string > TMyMainMap
Detector det() const
get the detector field from this detid
virtual float pt() const GCC11_FINAL
transverse momentum
TTreeTempStorageMap treeStorageMap_
std::map< int, std::map< int, std::string > > TMySubMap