-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
1,331 additions
and
40 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
#include "CondCore/ESSources/interface/registration_macros.h" | ||
#include "CondFormats/PCLConfig/interface/AlignPCLThresholds.h" | ||
#include "CondFormats/PCLConfig/interface/AlignPCLThresholdsHG.h" | ||
#include "CondFormats/DataRecord/interface/AlignPCLThresholdsRcd.h" | ||
#include "CondFormats/DataRecord/interface/AlignPCLThresholdsHGRcd.h" | ||
|
||
REGISTER_PLUGIN(AlignPCLThresholdsRcd, AlignPCLThresholds); | ||
REGISTER_PLUGIN(AlignPCLThresholdsHGRcd, AlignPCLThresholdsHG); |
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,8 @@ | ||
#ifndef AlignPCLThresholdsRcd_AlignPCLThresholdsHGRcd_h | ||
#define AlignPCLThresholdsRcd_AlignPCLThresholdsHGRcd_h | ||
|
||
#include "FWCore/Framework/interface/EventSetupRecordImplementation.h" | ||
|
||
class AlignPCLThresholdsHGRcd : public edm::eventsetup::EventSetupRecordImplementation<AlignPCLThresholdsHGRcd> {}; | ||
|
||
#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,4 @@ | ||
#include "CondFormats/DataRecord/interface/AlignPCLThresholdsHGRcd.h" | ||
#include "FWCore/Framework/interface/eventsetuprecord_registration_macro.h" | ||
|
||
EVENTSETUP_RECORD_REG(AlignPCLThresholdsHGRcd); |
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,47 @@ | ||
#ifndef CondFormats_PCLConfig_AlignPCLThresholdsHG_h | ||
#define CondFormats_PCLConfig_AlignPCLThresholdsHG_h | ||
|
||
#include "CondFormats/PCLConfig/interface/AlignPCLThresholds.h" | ||
#include "CondFormats/Serialization/interface/Serializable.h" | ||
|
||
#include <map> | ||
#include <string> | ||
#include <vector> | ||
|
||
class AlignPCLThresholdsHG : public AlignPCLThresholds { | ||
public: | ||
AlignPCLThresholdsHG() {} | ||
|
||
enum FloatParamIndex { | ||
FRACTION_CUT_X = 0, | ||
FRACTION_CUT_Y = 1, | ||
FRACTION_CUT_Z = 2, | ||
FRACTION_CUT_TX = 3, | ||
FRACTION_CUT_TY = 4, | ||
FRACTION_CUT_TZ = 5, | ||
FSIZE = 6 | ||
}; | ||
|
||
void SetFractionCut(const std::string &AlignableId, const coordType &type, const float &cut); | ||
|
||
const std::unordered_map<std::string, std::vector<float>> &getFloatMap() const { return floatMap; } | ||
const std::vector<float> &getFloatVec(const std::string &AlignableId) const; | ||
|
||
float getFractionCut(const std::string &AlignableId, const coordType &type) const; | ||
std::array<float, 6> getFractionCut(const std::string &AlignableId) const; | ||
|
||
int payloadVersion() const; | ||
|
||
void printAllHG() const; | ||
|
||
~AlignPCLThresholdsHG() override {} | ||
|
||
private: | ||
std::unordered_map<std::string, std::vector<float>> floatMap; | ||
std::unordered_map<std::string, std::vector<int>> intMap; | ||
std::unordered_map<std::string, std::vector<std::string>> stringMap; | ||
|
||
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
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
Oops, something went wrong.