CMS 3D CMS Logo

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 
19 
22 
23 #include "TMath.h"
24 #include "TRandom.h"
25 
26 
28  public:
31 
32  private:
33  virtual void beginJob() ;
34  virtual void produce(edm::Event&, const edm::EventSetup&);
35  virtual void endJob() ;
36  void resetTowers(edm::Event& iEvent,const edm::EventSetup& iSetup);
38  DetId getNearestTower(double eta, double phi) const;
39  // uint32_t denseIndex(int ieta, int iphi, double eta) const;
40  int eta2ieta(double eta) const;
41  int phi2iphi(double phi, int ieta) const;
42 
43  // ----------member data ---------------------------
44 
46  bool useHF_;
47 
48  std::map<DetId,double> towers_;
49 
50 
51  double PI;
52  TRandom* random_;
53 
54  CaloGeometry const * geo_; // geometry
55 
56 
57  static const double etatow[];
58  static const double etacent[];
59  double etaedge[42];
60 
61 
62 
63 
64 };
65 #endif
static const double etatow[]
int phi2iphi(double phi, int ieta) const
ParticleTowerProducer(const edm::ParameterSet &)
void resetTowers(edm::Event &iEvent, const edm::EventSetup &iSetup)
int iEvent
Definition: GenABIO.cc:230
std::map< DetId, double > towers_
static const double etacent[]
Definition: DetId.h:18
int eta2ieta(double eta) const
edm::EDGetTokenT< reco::PFCandidateCollection > src_
Particle reconstructed by the particle flow algorithm.
Definition: PFCandidate.h:39
CaloGeometry const * geo_
DetId getNearestTower(const reco::PFCandidate &in) const
virtual void produce(edm::Event &, const edm::EventSetup &)