CMS 3D CMS Logo

EcalSimpleProducer.h
Go to the documentation of this file.
1 #ifndef SimCalorimetry_EcalElectronicsEmulationEcalSimpleProducer_h
2 #define SimCalorimetry_EcalElectronicsEmulationEcalSimpleProducer_h
3 
5 #include <TFormula.h>
6 #include <memory>
7 #include <string>
8 
39  // constructor(s) and destructor(s)
40 public:
46 
49  ~EcalSimpleProducer() override{};
50 
54  void beginJob() override{};
55 
59  void produce(edm::Event &evt, const edm::EventSetup &) override;
60 
61  // method(s)
62 public:
63 private:
70  void replaceAll(std::string &s, const std::string &from, const std::string &to) const;
71 
77  int cIndex2iEta(int iEta0) const { return (iEta0 < 85) ? iEta0 - 85 : iEta0 - 84; }
78 
84  int cIndex2iPhi(int iPhi0) const { return (iPhi0 + 10) % 360 + 1; }
85 
91  int cIndex2iTtEta(int iEta0) const { return (iEta0 < 28) ? iEta0 - 28 : iEta0 - 27; }
92 
98  int cIndex2iTtPhi(int iPhi0) const { return iPhi0 + 1; }
99 
100  // attribute(s)
101 protected:
102 private:
105  std::unique_ptr<TFormula> formula_;
106 
109  std::unique_ptr<TFormula> tpFormula_;
110 
113  std::unique_ptr<TFormula> simHitFormula_;
114 
117  bool verbose_;
118 };
119 
120 #endif
EDProducer.h
EcalSimpleProducer::cIndex2iTtPhi
int cIndex2iTtPhi(int iPhi0) const
Definition: EcalSimpleProducer.h:98
EcalSimpleProducer::simHitFormula_
std::unique_ptr< TFormula > simHitFormula_
Definition: EcalSimpleProducer.h:113
to
edm::one::EDProducer
Definition: EDProducer.h:30
EcalSimpleProducer::tpFormula_
std::unique_ptr< TFormula > tpFormula_
Definition: EcalSimpleProducer.h:109
EcalSimpleProducer
Definition: EcalSimpleProducer.h:38
alignCSCRings.s
s
Definition: alignCSCRings.py:92
EcalSimpleProducer::verbose_
bool verbose_
Definition: EcalSimpleProducer.h:117
EcalSimpleProducer::replaceAll
void replaceAll(std::string &s, const std::string &from, const std::string &to) const
Definition: EcalSimpleProducer.cc:166
EcalSimpleProducer::produce
void produce(edm::Event &evt, const edm::EventSetup &) override
Definition: EcalSimpleProducer.cc:18
EcalSimpleProducer::formula_
std::unique_ptr< TFormula > formula_
Definition: EcalSimpleProducer.h:105
edm::ParameterSet
Definition: ParameterSet.h:47
edm::EventSetup
Definition: EventSetup.h:58
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
EcalSimpleProducer::cIndex2iEta
int cIndex2iEta(int iEta0) const
Definition: EcalSimpleProducer.h:77
EcalSimpleProducer::EcalSimpleProducer
EcalSimpleProducer(const edm::ParameterSet &pset)
Definition: EcalSimpleProducer.cc:99
EcalSimpleProducer::~EcalSimpleProducer
~EcalSimpleProducer() override
Definition: EcalSimpleProducer.h:49
EcalSimpleProducer::cIndex2iTtEta
int cIndex2iTtEta(int iEta0) const
Definition: EcalSimpleProducer.h:91
EcalSimpleProducer::beginJob
void beginJob() override
Definition: EcalSimpleProducer.h:54
edm::Event
Definition: Event.h:73
EcalSimpleProducer::cIndex2iPhi
int cIndex2iPhi(int iPhi0) const
Definition: EcalSimpleProducer.h:84
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27