Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete dead branches in CondCore/EcalPlugins #29043

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -232,17 +232,8 @@ namespace {
std::shared_ptr<EcalPulseCovariances> payload = fetchPayload(std::get<1>(iov));
unsigned int run = std::get<0>(iov);
if (payload.get()) {
// int chan = 0;
for (int ieta = -MAX_IETA; ieta <= MAX_IETA; ieta++) {
Double_t eta = (Double_t)ieta;
if (ieta == 0)
continue;
else if (ieta > 0.)
eta = eta - 0.5; // 0.5 to 84.5
else
eta = eta + 0.5; // -84.5 to -0.5
for (int iphi = 1; iphi <= MAX_IPHI; iphi++) {
//Double_t phi = (Double_t)iphi - 0.5;
EBDetId id(ieta, iphi);
for (int i = 0; i < TEMPLATESAMPLES; ++i) {
for (int j = 0; j < TEMPLATESAMPLES; ++j) {
Expand Down
Expand Up @@ -204,17 +204,8 @@ namespace {
std::shared_ptr<EcalPulseShapes> payload = fetchPayload(std::get<1>(iov));
unsigned int run = std::get<0>(iov);
if (payload.get()) {
// int chan = 0;
for (int ieta = -MAX_IETA; ieta <= MAX_IETA; ieta++) {
Double_t eta = (Double_t)ieta;
if (ieta == 0)
continue;
else if (ieta > 0.)
eta = eta - 0.5; // 0.5 to 84.5
else
eta = eta + 0.5; // -84.5 to -0.5
for (int iphi = 1; iphi <= MAX_IPHI; iphi++) {
//Double_t phi = (Double_t)iphi - 0.5;
EBDetId id(ieta, iphi);
EcalPulseShape pulse = (*payload)[id.rawId()];
for (int s = 0; s < TEMPLATESAMPLES; s++) {
Expand Down
Expand Up @@ -106,17 +106,15 @@ namespace {
align = new TH2F("Ecal Time Offset Constant [ns]", "EB EE", 2, 0, 2, NbRows, 0, NbRows);

EcalTimeOffsetConstant it = (*payload);
double row = NbRows - 0.5;

if (irun == 0) {
val[0] = it.getEBValue();
val[1] = it.getEEValue();

} else {
double row = NbRows - 0.5;
align->Fill(0.5, row, it.getEBValue() - val[0]);
align->Fill(1.5, row, it.getEEValue() - val[1]);

row = row - 1.;
}

} // if payload.get()
Expand Down Expand Up @@ -161,4 +159,4 @@ namespace {
PAYLOAD_INSPECTOR_MODULE(EcalTimeOffsetConstant) {
PAYLOAD_INSPECTOR_CLASS(EcalTimeOffsetConstantPlot);
PAYLOAD_INSPECTOR_CLASS(EcalTimeOffsetConstantDiff);
}
}