Skip to content

Commit

Permalink
After running scram b code-format
Browse files Browse the repository at this point in the history
  • Loading branch information
nancymarinelli committed Dec 13, 2023
1 parent 8772cac commit e41887c
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ void EcalEBPhase2TPParamProducer::fillDescriptions(edm::ConfigurationDescription
desc.add<double>("Et_sat", 1998.36);
desc.add<double>("xtal_LSB", 0.0488);
desc.add<unsigned int>("binOfMaximum", 6);
descriptions.add("ecalEBPhase2TPParamProducerDefault",desc);
descriptions.add("ecalEBPhase2TPParamProducerDefault", desc);
}

void EcalEBPhase2TPParamProducer::analyze(const edm::Event& evt, const edm::EventSetup& evtSetup) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class EcalTPGWeightGroup;

class EcalEBPhase2AmplitudeReconstructor {
private:
static const int maxSamplesUsed_=12;
static const int maxSamplesUsed_ = 12;
bool debug_;
int inputsAlreadyIn_;
int buffer_[maxSamplesUsed_];
Expand All @@ -25,7 +25,6 @@ class EcalEBPhase2AmplitudeReconstructor {
int setInput(int input);
void process();
int processedOutput_;


public:
EcalEBPhase2AmplitudeReconstructor(bool debug);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

#include <iostream>


EcalEBPhase2AmplitudeReconstructor::EcalEBPhase2AmplitudeReconstructor(bool debug)
: debug_(debug), inputsAlreadyIn_(0), shift_(13) {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include <iostream>


EcalEBPhase2TimeReconstructor::EcalEBPhase2TimeReconstructor(bool debug)
: debug_(debug), inputsAlreadyIn_(0), shift_(maxSamplesUsed_) {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,30 +214,29 @@ void EcalEBTrigPrimPhase2Producer::produce(edm::Event& e, const edm::EventSetup&
<< " For Barrel " << pOut->size() << " TP Digis were produced" << std::endl;
}

// debug prints if TP > 0. The number of TP with Et>0 is also used later for a LogInfo
// debug prints if TP > 0. The number of TP with Et>0 is also used later for a LogInfo
int nonZeroTP = 0;
int nXstal = 0;
for (unsigned int i = 0; i < pOut->size(); ++i) {
nXstal++;
for (int isam = 0; isam < (*pOut)[i].size(); ++isam) {
if ((*pOut)[i][isam].encodedEt() > 0) {
nonZeroTP++;
if (debug_) {
LogDebug("EcalEBTrigPrimPhase2Producer")
<< " For xStal n " << nXstal << " xTsal Id " << (((*pOut)[i])).id() << ", TP is " << (*pOut)[i]
<< " (*pOut)[i][isam].raw() " << (*pOut)[i][isam].raw() << " (*pOut)[i][isam].encodedEt() "
<< (*pOut)[i][isam].encodedEt() << " (*pOut)[i][isam].time() " << (*pOut)[i][isam].time() << std::endl;
}
nonZeroTP++;
if (debug_) {
LogDebug("EcalEBTrigPrimPhase2Producer")
<< " For xStal n " << nXstal << " xTsal Id " << (((*pOut)[i])).id() << ", TP is " << (*pOut)[i]
<< " (*pOut)[i][isam].raw() " << (*pOut)[i][isam].raw() << " (*pOut)[i][isam].encodedEt() "
<< (*pOut)[i][isam].encodedEt() << " (*pOut)[i][isam].time() " << (*pOut)[i][isam].time() << std::endl;
}
}
}
}


edm::LogInfo("EcalEBTrigPrimPhase2Producer")
<< "EcalTPG"
<< "\n =================> For Barrel , " << pOut->size() << " TP Digis were produced (including zero ones)"
<< " Non zero primitives were " << nonZeroTP << std::endl;
<< "EcalTPG"
<< "\n =================> For Barrel , " << pOut->size() << " TP Digis were produced (including zero ones)"
<< " Non zero primitives were " << nonZeroTP << std::endl;

// put result into the Event
e.put(std::move(pOut));
}
Expand Down

0 comments on commit e41887c

Please sign in to comment.