Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6703 from depasse/EcalSamplesCorrelation
Ecal samples correlation
- Loading branch information
Showing
19 changed files
with
360 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
CondFormats/DataRecord/interface/EcalSamplesCorrelationRcd.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#ifndef CondFormats_EcalObjects_EcalSamplesCorrelationRcd_HH | ||
#define CondFormats_EcalObjects_EcalSamplesCorrelationRcd_HH | ||
|
||
// -*- C++ -*- | ||
// | ||
// Author: Jean Fay | ||
// Created: Monday, 24th Nov 2014 | ||
// | ||
|
||
#include "FWCore/Framework/interface/EventSetupRecordImplementation.h" | ||
|
||
class EcalSamplesCorrelationRcd | ||
: public edm::eventsetup::EventSetupRecordImplementation< | ||
EcalSamplesCorrelationRcd> { | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// -*- C++ -*- | ||
|
||
// Author: Jean Fay | ||
// Created: Monday, 24 Nov 2014 | ||
|
||
#include "CondFormats/DataRecord/interface/EcalSamplesCorrelationRcd.h" | ||
#include "FWCore/Framework/interface/eventsetuprecord_registration_macro.h" | ||
|
||
EVENTSETUP_RECORD_REG(EcalSamplesCorrelationRcd); |
35 changes: 35 additions & 0 deletions
35
CondFormats/EcalObjects/interface/EcalSamplesCorrelation.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#ifndef CondFormats_EcalObjects_EcalSamplesCorrelation_HH | ||
#define CondFormats_EcalObjects_EcalSamplesCorrelation_HH | ||
|
||
// -*- C++ -*- | ||
// | ||
// Author: Jean Fay | ||
// Created: Monday 24 Nov 2014 | ||
// | ||
|
||
#include "CondFormats/Serialization/interface/Serializable.h" | ||
|
||
#include "DataFormats/Math/interface/Matrix.h" | ||
#include <iostream> | ||
#include <vector> | ||
|
||
class EcalSamplesCorrelation { | ||
public: | ||
EcalSamplesCorrelation(); | ||
EcalSamplesCorrelation(const EcalSamplesCorrelation& aset); | ||
~EcalSamplesCorrelation(); | ||
|
||
std::vector<double> EBG12SamplesCorrelation; | ||
std::vector<double> EBG6SamplesCorrelation; | ||
std::vector<double> EBG1SamplesCorrelation; | ||
|
||
std::vector<double> EEG12SamplesCorrelation; | ||
std::vector<double> EEG6SamplesCorrelation; | ||
std::vector<double> EEG1SamplesCorrelation; | ||
|
||
void print(std::ostream& o) const; | ||
|
||
COND_SERIALIZABLE; | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#include "CondFormats/EcalObjects/interface/EcalSamplesCorrelation.h" | ||
|
||
EcalSamplesCorrelation::EcalSamplesCorrelation() {} | ||
EcalSamplesCorrelation::~EcalSamplesCorrelation() {} | ||
|
||
EcalSamplesCorrelation::EcalSamplesCorrelation( | ||
const EcalSamplesCorrelation& aset) {} | ||
|
||
template <typename T> | ||
static inline void print_vector(std::ostream& o, const std::vector<T>& vect) { | ||
o << "["; | ||
for (std::vector<double>::const_iterator i = vect.begin(); i != vect.end(); | ||
++i) { | ||
|
||
std::cout << *i << ", "; | ||
} | ||
o << "]"; | ||
} | ||
|
||
void EcalSamplesCorrelation::print(std::ostream& o) const { | ||
o << "EB Gain 12 correlation:"; | ||
print_vector<double>(o, this->EBG12SamplesCorrelation); | ||
o << std::endl; | ||
o << "EB Gain 6 correlation:"; | ||
print_vector<double>(o, this->EBG6SamplesCorrelation); | ||
o << std::endl; | ||
o << "EB Gain 1 correlation:"; | ||
print_vector<double>(o, this->EBG1SamplesCorrelation); | ||
o << std::endl; | ||
|
||
o << "EE Gain 12 correlation:"; | ||
print_vector<double>(o, this->EEG12SamplesCorrelation); | ||
o << std::endl; | ||
o << "EE Gain 6 correlation:"; | ||
print_vector<double>(o, this->EEG6SamplesCorrelation); | ||
o << std::endl; | ||
o << "EE Gain 1 correlation:"; | ||
print_vector<double>(o, this->EEG1SamplesCorrelation); | ||
o << std::endl; | ||
} |
4 changes: 4 additions & 0 deletions
4
CondFormats/EcalObjects/src/T_EventSetup_EcalSamplesCorrelation.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#include "CondFormats/EcalObjects/interface/EcalSamplesCorrelation.h" | ||
#include "FWCore/Utilities/interface/typelookup.h" | ||
|
||
TYPELOOKUP_DATA_REG(EcalSamplesCorrelation); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
1. 0.75 0.64 0.58 0.51 0.45 0.43 0.42 0.41 0.40 | ||
1. 0.75 0.62 0.58 0.51 0.45 0.43 0.42 0.41 0.40 | ||
1. 0.75 0.60 0.58 0.51 0.45 0.43 0.42 0.41 0.40 | ||
1. 0.71 0.44 0.33 0.22 0.15 0.12 0.10 0.09 0.08 | ||
1. 0.71 0.42 0.33 0.22 0.15 0.12 0.10 0.09 0.08 | ||
1. 0.71 0.40 0.33 0.22 0.15 0.12 0.10 0.09 0.08 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
EcalTrivialConditionRetriever = cms.ESSource("EcalTrivialConditionRetriever", | ||
producedEcalClusterLocalContCorrParameters = cms.untracked.bool(True), | ||
producedEcalClusterCrackCorrParameters = cms.untracked.bool(True), | ||
producedEcalClusterEnergyUncertaintyParameters = cms.untracked.bool(True), | ||
producedEcalClusterEnergyCorrectionParameters = cms.untracked.bool(True), | ||
producedEcalClusterEnergyCorrectionObjectSpecificParameters = cms.untracked.bool(True), | ||
|
||
producedEcalSamplesCorrelation = cms.untracked.bool(True), | ||
getSamplesCorrelationFromFile = cms.untracked.bool(True), | ||
SamplesCorrelationFile = cms.untracked.string('CondTools/Ecal/python/EcalSamplesCorrelation.txt') | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
EcalTrivialConditionRetriever = cms.ESSource("EcalTrivialConditionRetriever", | ||
getEEAlignmentFromFile = cms.untracked.bool(True), | ||
EEAlignmentFile = cms.untracked.string('CalibCalorimetry/EcalTrivialCondModules/data/EEAlignment_2010.txt'), | ||
getESAlignmentFromFile = cms.untracked.bool(True), | ||
ESAlignmentFile = cms.untracked.string('CalibCalorimetry/EcalTrivialCondModules/data/ESAlignment_2010.txt'), | ||
getEBAlignmentFromFile = cms.untracked.bool(True), | ||
EBAlignmentFile = cms.untracked.string('CalibCalorimetry/EcalTrivialCondModules/data/EBAlignment_2010.txt') | ||
producedEcalClusterLocalContCorrParameters = cms.untracked.bool(True), | ||
producedEcalClusterCrackCorrParameters = cms.untracked.bool(True), | ||
producedEcalClusterEnergyUncertaintyParameters = cms.untracked.bool(True), | ||
producedEcalClusterEnergyCorrectionParameters = cms.untracked.bool(True), | ||
producedEcalClusterEnergyCorrectionObjectSpecificParameters = cms.untracked.bool(True), | ||
|
||
getEEAlignmentFromFile = cms.untracked.bool(True), | ||
EEAlignmentFile = cms.untracked.string('CalibCalorimetry/EcalTrivialCondModules/data/EEAlignment_2010.txt'), | ||
getESAlignmentFromFile = cms.untracked.bool(True), | ||
ESAlignmentFile = cms.untracked.string('CalibCalorimetry/EcalTrivialCondModules/data/ESAlignment_2010.txt'), | ||
getEBAlignmentFromFile = cms.untracked.bool(True), | ||
EBAlignmentFile = cms.untracked.string('CalibCalorimetry/EcalTrivialCondModules/data/EBAlignment_2010.txt') | ||
) |
Oops, something went wrong.