CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ParticleTowerProducer.h
Go to the documentation of this file.
1 #ifndef ParticleTowerProducer_h
2 #define ParticleTowerProducer_h
3 
4 
5 // user include files
8 
11 
13 
15 
20 
24 
25 #include "TMath.h"
26 #include "TRandom.h"
27 
28 
29 
31  public:
34 
35  private:
36  virtual void beginJob() ;
37  virtual void produce(edm::Event&, const edm::EventSetup&);
38  virtual void endJob() ;
39  void resetTowers(edm::Event& iEvent,const edm::EventSetup& iSetup);
41  DetId getNearestTower(double eta, double phi) const;
42  uint32_t denseIndex(int ieta, int iphi, double eta) const;
43  int eta2ieta(double eta) const;
44  int phi2iphi(double phi, int ieta) const;
45 
46  // ----------member data ---------------------------
47 
49  bool useHF_;
50 
51  std::map<DetId,double> towers_;
52 
53 
54  double PI;
55  TRandom* random_;
56 
57  CaloGeometry const * geo_; // geometry
58 
59 
60  static const double etatow[];
61  static const double etacent[];
62  double etaedge[42];
63 
64 
65 
66 
67 };
68 #endif
static const double etatow[]
int phi2iphi(double phi, int ieta) const
T eta() const
uint32_t denseIndex(int ieta, int iphi, double eta) const
ParticleTowerProducer(const edm::ParameterSet &)
void resetTowers(edm::Event &iEvent, const edm::EventSetup &iSetup)
int iEvent
Definition: GenABIO.cc:243
std::map< DetId, double > towers_
static const double etacent[]
Definition: DetId.h:20
int eta2ieta(double eta) const
Particle reconstructed by the particle flow algorithm.
Definition: PFCandidate.h:33
CaloGeometry const * geo_
DetId getNearestTower(const reco::PFCandidate &in) const
virtual void produce(edm::Event &, const edm::EventSetup &)
Definition: DDAxes.h:10