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__");
virtual double p() const
magnitude of momentum vector
virtual float pt() const
transverse momentum
std::map< std::string, TH2F * > THistoMap
virtual void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
#define DEFINE_FWK_MODULE(type)
virtual float phi() const
momentum azimuthal angle
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)
void addDefault(ParameterSetDescription const &psetDescription)
std::string getKey(const DetId &det)
virtual float eta() const
momentum pseudorapidity
std::vector< std::string > getAllKeys()
virtual void analyze(const edm::Event &, const edm::EventSetup &)
virtual int charge() const
electric charge
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
std::map< std::string, std::map< std::string, float > > TTreeTempStorageMap
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
TTreeTempStorageMap treeStorageMap_
std::map< int, std::map< int, std::string > > TMySubMap