5151#include < cmath>
5252
5353using namespace edm ;
54- using namespace std ;
5554using namespace cmsdt ;
5655
5756class DTTrigPhase2ShowerProd : public edm ::stream::EDProducer<> {
@@ -115,26 +114,26 @@ DTTrigPhase2ShowerProd::DTTrigPhase2ShowerProd(const ParameterSet& pset) {
115114 dtGeomH = esConsumes<DTGeometry, MuonGeometryRecord, edm::Transition::BeginRun>();
116115
117116 if (debug_) {
118- LogDebug (" DTTrigPhase2ShowerProd" ) << " DTTrigPhase2ShowerProd: constructor" << endl;
117+ LogDebug (" DTTrigPhase2ShowerProd" ) << " DTTrigPhase2ShowerProd: constructor" << std:: endl;
119118 if (showerTaggingAlgo_ == 0 ) {
120- LogDebug (" DTTrigPhase2ShowerProd" ) << " Using standalone mode" << endl;
119+ LogDebug (" DTTrigPhase2ShowerProd" ) << " Using standalone mode" << std:: endl;
121120 } else if (showerTaggingAlgo_ == 1 ) {
122- LogDebug (" DTTrigPhase2ShowerProd" ) << " Using firmware emulation mode" << endl;
121+ LogDebug (" DTTrigPhase2ShowerProd" ) << " Using firmware emulation mode" << std:: endl;
123122 } else
124- LogError (" DTTrigPhase2ShowerProd" ) << " Unrecognized shower tagging algorithm" << endl;
123+ LogError (" DTTrigPhase2ShowerProd" ) << " Unrecognized shower tagging algorithm" << std:: endl;
125124 }
126125}
127126
128127DTTrigPhase2ShowerProd::~DTTrigPhase2ShowerProd () {
129128 // Destructor implementation
130129 if (debug_)
131- LogDebug (" DTTrigPhase2ShowerProd" ) << " DTTrigPhase2ShowerProd: destructor" << endl;
130+ LogDebug (" DTTrigPhase2ShowerProd" ) << " DTTrigPhase2ShowerProd: destructor" << std:: endl;
132131}
133132
134133void DTTrigPhase2ShowerProd::beginRun (edm::Run const & iRun, const edm::EventSetup& iEventSetup) {
135134 // beginRun implementation
136135 if (debug_)
137- LogDebug (" DTTrigPhase2ShowerProd" ) << " DTTrigPhase2ShowerProd: beginRun started" << endl;
136+ LogDebug (" DTTrigPhase2ShowerProd" ) << " DTTrigPhase2ShowerProd: beginRun started" << std:: endl;
138137
139138 showerBuilder->initialise (iEventSetup);
140139 if (auto geom = iEventSetup.getHandle (dtGeomH)) {
@@ -145,7 +144,7 @@ void DTTrigPhase2ShowerProd::beginRun(edm::Run const& iRun, const edm::EventSetu
145144void DTTrigPhase2ShowerProd::produce (edm::Event& iEvent, const edm::EventSetup& iEventSetup) {
146145 // produce implementation
147146 if (debug_)
148- LogDebug (" DTTrigPhase2ShowerProd" ) << " DTTrigPhase2ShowerProd: produce Processing event" << endl;
147+ LogDebug (" DTTrigPhase2ShowerProd" ) << " DTTrigPhase2ShowerProd: produce Processing event" << std:: endl;
149148
150149 // Fetch the handle for hits
151150 edm::Handle<DTDigiCollection> dtdigis;
@@ -155,7 +154,7 @@ void DTTrigPhase2ShowerProd::produce(edm::Event& iEvent, const edm::EventSetup&
155154 DTDigiMap digiMap;
156155 DTDigiCollection::DigiRangeIterator detUnitIt;
157156 if (debug_)
158- LogDebug (" DTTrigPhase2ShowerProd" ) << " Preprocessing hits..." << endl;
157+ LogDebug (" DTTrigPhase2ShowerProd" ) << " Preprocessing hits..." << std:: endl;
159158
160159 for (const auto & detUnitIt : *dtdigis) {
161160 const DTLayerId& layId = detUnitIt.first ;
@@ -166,11 +165,11 @@ void DTTrigPhase2ShowerProd::produce(edm::Event& iEvent, const edm::EventSetup&
166165
167166 if (debug_)
168167 LogDebug (" DTTrigPhase2ShowerProd" ) << " Hits preprocessed: " << digiMap.size () << " DT chambers to analyze"
169- << endl;
168+ << std:: endl;
170169
171170 // 2. Look for showers in each chamber
172171 if (debug_)
173- LogDebug (" DTTrigPhase2ShowerProd" ) << " Building shower candidates for:" << endl;
172+ LogDebug (" DTTrigPhase2ShowerProd" ) << " Building shower candidates for:" << std:: endl;
174173
175174 std::map<DTSuperLayerId, ShowerCandidatePtr> ShowerCandidates;
176175 for (const auto & ich : dtGeo_->chambers ()) {
@@ -185,7 +184,7 @@ void DTTrigPhase2ShowerProd::produce(edm::Event& iEvent, const edm::EventSetup&
185184 continue ;
186185
187186 if (debug_)
188- LogDebug (" DTTrigPhase2ShowerProd" ) << " " << chid << endl;
187+ LogDebug (" DTTrigPhase2ShowerProd" ) << " " << chid << std:: endl;
189188
190189 showerBuilder->run (iEvent, iEventSetup, (*dmit).second , ShowerCandidates[sl1id], ShowerCandidates[sl3id]);
191190
@@ -196,7 +195,7 @@ void DTTrigPhase2ShowerProd::produce(edm::Event& iEvent, const edm::EventSetup&
196195
197196 // 3. Check shower candidates and store them if flagged
198197 if (debug_)
199- LogDebug (" DTTrigPhase2ShowerProd" ) << " Selecting shower candidates" << endl;
198+ LogDebug (" DTTrigPhase2ShowerProd" ) << " Selecting shower candidates" << std:: endl;
200199
201200 std::vector<L1Phase2MuDTShower> outShower; // prepare output container
202201 for (auto & sl_showerCand : ShowerCandidates) {
@@ -225,7 +224,7 @@ void DTTrigPhase2ShowerProd::produce(edm::Event& iEvent, const edm::EventSetup&
225224 }
226225 }
227226 if (debug_)
228- LogDebug (" DTTrigPhase2ShowerProd" ) << " Storing results..." << endl;
227+ LogDebug (" DTTrigPhase2ShowerProd" ) << " Storing results..." << std:: endl;
229228
230229 // 4.1 Storing results
231230 std::unique_ptr<L1Phase2MuDTShowerContainer> resultShower (new L1Phase2MuDTShowerContainer);
@@ -236,7 +235,7 @@ void DTTrigPhase2ShowerProd::produce(edm::Event& iEvent, const edm::EventSetup&
236235void DTTrigPhase2ShowerProd::endRun (edm::Run const & iRun, const edm::EventSetup& iEventSetup) {
237236 // endRun implementation
238237 if (debug_)
239- LogDebug (" DTTrigPhase2ShowerProd" ) << " DTTrigPhase2ShowerProd: endRun" << endl;
238+ LogDebug (" DTTrigPhase2ShowerProd" ) << " DTTrigPhase2ShowerProd: endRun" << std:: endl;
240239}
241240
242241void DTTrigPhase2ShowerProd::fillDescriptions (edm::ConfigurationDescriptions& descriptions) {
0 commit comments