28 cout <<
"DTConfigTrivialProducer::DTConfigTrivialProducer()" << endl;
43 cout <<
"DTConfigTrivialProducer::~DTConfigTrivialProducer()" << endl;
52 cout <<
"DTConfigTrivialProducer::produce()" << endl;
59 std::unique_ptr<DTConfigManager> dtConfig = std::unique_ptr<DTConfigManager>(
m_manager);
66 cout <<
"DTConfigTrivialProducer::buildManager()" << endl;
80 for (
int iwh = -2; iwh <= 2; ++iwh) {
81 for (
int ist = 1; ist <= 4; ++ist) {
82 for (
int ise = 1; ise <= 12; ++ise) {
84 vector<int> nmap = conf_map.getUntrackedParameter<vector<int>>(
mapEntryName(chambid).c_str());
87 std::cout <<
" Filling configuration for chamber : wh " << chambid.
wheel() <<
", st " << chambid.
station()
88 <<
", se " << chambid.
sector() << endl;
92 for (
int isl = 1; isl <= 3; isl++) {
93 int ncell = nmap[isl - 1];
95 for (
int ibti = 0; ibti < ncell; ibti++) {
98 std::cout <<
"Filling BTI config for chamber : wh " << chambid.
wheel() <<
", st " << chambid.
station()
99 <<
", se " << chambid.
sector() <<
"... sl " << isl <<
", bti " << ibti + 1 << endl;
104 int ntraco = nmap[3];
106 for (
int itraco = 0; itraco < ntraco; itraco++) {
109 std::cout <<
"Filling TRACO config for chamber : wh " << chambid.
wheel() <<
", st " << chambid.
station()
110 <<
", se " << chambid.
sector() <<
", traco " << itraco + 1 << endl;
125 for (
int iwh = -2; iwh <= 2; ++iwh) {
126 for (
int ise = 13; ise <= 14; ++ise) {
129 vector<int> nmap = conf_map.getUntrackedParameter<vector<int>>(
mapEntryName(chambid).c_str());
132 std::cout <<
" Filling configuration for chamber : wh " << chambid.
wheel() <<
", st " << chambid.
station()
133 <<
", se " << chambid.
sector() << endl;
137 for (
int isl = 1; isl <= 3; isl++) {
138 int ncell = nmap[isl - 1];
140 for (
int ibti = 0; ibti < ncell; ibti++) {
143 std::cout <<
"Filling BTI config for chamber : wh " << chambid.
wheel() <<
", st " << chambid.
station()
144 <<
", se " << chambid.
sector() <<
"... sl " << isl <<
", bti " << ibti + 1 << endl;
149 int ntraco = nmap[3];
151 for (
int itraco = 0; itraco < ntraco; itraco++) {
154 std::cout <<
"Filling TRACO config for chamber : wh " << chambid.
wheel() <<
", st " << chambid.
station()
155 <<
", se " << chambid.
sector() <<
", traco " << itraco + 1 << endl;
170 for (
int wh = -2; wh <= 2; wh++)
171 for (
int se = 1; se <= 12; se++)
183 cout <<
"DTConfigTrivialProducer::buildPedestals()" << endl;
186 for (
int iwh = -2; iwh <= 2; ++iwh) {
187 for (
int ist = 1; ist <= 4; ++ist) {
188 for (
int ise = 1; ise <= 14; ++ise) {
189 if (ise > 12 && ist != 4)
206 int iwh = chambid.
wheel();
207 std::ostringstream
os;
void setLutFromDB(bool lutFromDB)
Set lut from DB flag.
int station() const
Return the station number.
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
T getParameter(std::string const &) const
void setDTTPGDebug(bool debug)
SetGlobalDebug flag.
void setDTConfigTSTheta(DTChamberId chambid, DTConfigTSTheta conf)
Set DTConfigTSTheta for desired chip.
void buildManager()
Build Config Manager.
void setUseAcceptParam(bool acceptparam)
Set the use of Bti acceptance parameters (LL,LH,CL,CH,RL,RH)
int set(int wheelId, int stationId, int sectorId, int nc, float ph, DTTimeUnits::type unit)
void setES(DTTPGParameters const *tpgParams, DTT0 const *t0Params=nullptr)
Set parameters from ES.
std::unique_ptr< T, impl::DeviceDeleter > unique_ptr
DTTPGParameters * m_tpgParams
void setDTConfigTraco(DTTracoId, DTConfigTraco)
Set DTConfigTraco for desired chip.
T getUntrackedParameter(std::string const &, T const &) const
DTConfigPedestals buildTrivialPedestals()
Build Config Pedestals.
~DTConfigTrivialProducer() override
destructor
DTConfigManager * m_manager
void setDTConfigBti(DTBtiId, DTConfigBti)
Set DTConfigBti for desired chip.
void setDTConfigTSPhi(DTChamberId chambid, DTConfigTSPhi conf)
Set DTConfigTSPhi for desired chip.
void setUseT0(bool useT0)
Set t0i subtraction.
DTConfigTrivialProducer(const edm::ParameterSet &)
Constructor.
void setDTConfigLUTs(DTChamberId chambid, DTConfigLUTs conf)
Set DTConfigLUTs for desired chamber.
void setDTConfigPedestals(DTConfigPedestals pedestals)
Set DTConfigPedestals configuration.
void setDTConfigSectColl(DTSectCollId sectcollid, DTConfigSectColl conf)
Set DTConfigSectColl for desired chip.
std::string mapEntryName(const DTChamberId &chambid) const
int wheel() const
Return the wheel number.
std::unique_ptr< DTConfigManager > produce(const DTConfigManagerRcd &)
ES produce method.
void setDTConfigTrigUnit(DTChamberId chambid, DTConfigTrigUnit conf)
Set DTConfigTrigUnit for desired chamber.