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

bsunanda:Run2-hcx65 Attempt to make LUT coder to be flexible for geometry changes #13205

Merged
merged 2 commits into from
Feb 9, 2016
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
17 changes: 11 additions & 6 deletions CalibCalorimetry/HcalTPGAlgos/interface/HcaluLUTTPGCoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class HcalDbService;
class HcaluLUTTPGCoder : public HcalTPGCoder {
public:

HcaluLUTTPGCoder();
HcaluLUTTPGCoder(const HcalTopology* topo);
virtual ~HcaluLUTTPGCoder();
virtual void adc2Linear(const HBHEDataFrame& df, IntegerCaloSamples& ics) const;
virtual void adc2Linear(const HFDataFrame& df, IntegerCaloSamples& ics) const;
Expand All @@ -39,8 +39,8 @@ class HcaluLUTTPGCoder : public HcalTPGCoder {
virtual float getLUTGain(HcalDetId id) const;

void update(const HcalDbService& conditions);
void update(const char* filename, const HcalTopology&, bool appendMSB = false);
void updateXML(const char* filename, const HcalTopology&);
void update(const char* filename, bool appendMSB = false);
void updateXML(const char* filename);
void setLUTGenerationMode(bool gen){ LUTGenerationMode_ = gen; };
void setMaskBit(int bit){ bitToMask_ = bit; };
std::vector<unsigned short> getLinearizationLUTWithMSB(const HcalDetId& id) const;
Expand All @@ -56,12 +56,17 @@ class HcaluLUTTPGCoder : public HcalTPGCoder {
typedef std::vector<LutElement> Lut;

// constants
static const size_t nluts = 46007, INPUT_LUT_SIZE = 128;
static const float lsb_;
static const size_t INPUT_LUT_SIZE = 128;
static const int nFi_ = 72;
static const float lsb_;

// member variables
const HcalTopology* topo_;
bool LUTGenerationMode_;
int bitToMask_;
int bitToMask_;
int firstHBEta_, lastHBEta_, nHBEta_, maxDepthHB_, sizeHB_;
int firstHEEta_, lastHEEta_, nHEEta_, maxDepthHE_, sizeHE_;
int firstHFEta_, lastHFEta_, nHFEta_, maxDepthHF_, sizeHF_;
std::vector< Lut > inputLUT_;
std::vector<float> gain_;
std::vector<float> ped_;
Expand Down