CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PhotonMIPHaloTagger.h
Go to the documentation of this file.
1 #ifndef PhotonMIPHaloTagger_H
2 #define PhotonMIPHaloTagger_H
3 
8 
11 
14 
15 #include <string>
16 
18 
19 public:
20 
22 
23  virtual ~PhotonMIPHaloTagger(){};
24 
26 
27  void MIPcalculate(const reco::Photon*,
28  const edm::Event&,
29  const edm::EventSetup& es,
31 
32 
33  //get the seed crystal index
34  void GetSeedHighestE(const reco::Photon* photon,
35  const edm::Event& iEvent,
36  const edm::EventSetup& iSetup,
38  int &seedIEta,
39  int &seedIPhi,
40  double &seedE);
41 
42 
43  //get the MIP Fit Trail results
44  std::vector<double> GetMipTrailFit(const reco::Photon* photon,
45  const edm::Event& iEvent,
46  const edm::EventSetup& iSetup,
47  edm::Handle<EcalRecHitCollection> ecalhitsCollEB,
48  double inputRangeY,
49  double inputRangeX,
50  double inputResWidth,
51  double inputHaloDiscCut,
52  int & NhitCone_,
53  bool & ismipHalo_ );
54 
55 
56 
57 
58 
59 
60  protected:
61 
64 
65 
66 
67  //used inside main methhod
68  double inputRangeY;
69  double inputRangeX;
70  double inputResWidth;
72 
73 
74  //Isolation parameters variables as input
75  double yRangeFit_;
76  double xRangeFit_;
79 
80  //Local Vector for results
81  std::vector<double> mipFitResults_;
82  int nhitCone_;
83  bool ismipHalo_;
84 
85 
86  };
87 
88 #endif // PhotonMIPHaloTagger_H
void MIPcalculate(const reco::Photon *, const edm::Event &, const edm::EventSetup &es, reco::Photon::MIPVariables &mipId)
void GetSeedHighestE(const reco::Photon *photon, const edm::Event &iEvent, const edm::EventSetup &iSetup, edm::Handle< EcalRecHitCollection > Brechit, int &seedIEta, int &seedIPhi, double &seedE)
int iEvent
Definition: GenABIO.cc:230
edm::EDGetToken EBecalCollection_
std::vector< double > mipFitResults_
void setup(const edm::ParameterSet &conf, edm::ConsumesCollector &&iC)
tuple conf
Definition: dbtoconf.py:185
std::vector< double > GetMipTrailFit(const reco::Photon *photon, const edm::Event &iEvent, const edm::EventSetup &iSetup, edm::Handle< EcalRecHitCollection > ecalhitsCollEB, double inputRangeY, double inputRangeX, double inputResWidth, double inputHaloDiscCut, int &NhitCone_, bool &ismipHalo_)
edm::EDGetToken EEecalCollection_