Skip to content

Commit 02a0752

Browse files
committed
Removed ParameterSet from L1MuCSCTFConfiguration
The L1MuCSCTFConfiguration does not need to depend upon ParameterSet to do its job. The functionality was moved to a standalone function. Only CSCTFSectorProcessor was dependent upon that member function.
1 parent 2c737cd commit 02a0752

File tree

5 files changed

+562
-509
lines changed

5 files changed

+562
-509
lines changed

CondFormats/L1TObjects/interface/L1MuCSCTFConfiguration.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#include "CondFormats/Serialization/interface/Serializable.h"
55

66
#include <string>
7-
#include <FWCore/ParameterSet/interface/ParameterSet.h>
87

98
class L1MuCSCTFConfiguration {
109
private:
@@ -13,7 +12,11 @@ class L1MuCSCTFConfiguration {
1312
public:
1413
const std::string* configAsText(void) const throw() { return registers; }
1514

16-
edm::ParameterSet parameters(int sp) const;
15+
using const_iterator = const std::string*;
16+
const_iterator begin() const { return registers; }
17+
const_iterator end() const { return registers + 12; }
18+
19+
const std::string& operator[](int iIndex) const { return registers[iIndex]; }
1720

1821
L1MuCSCTFConfiguration& operator=(const L1MuCSCTFConfiguration& conf) {
1922
for (int sp = 0; sp < 12; sp++)
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#ifndef CondFormats_L1TObjects_parameters_h
2+
#define CondFormats_L1TObjects_parameters_h
3+
// -*- C++ -*-
4+
//
5+
// Package: CondFormats/L1TObjects
6+
// Class : parameters
7+
//
8+
/**\function parameters parameters.h "CondFormats/L1TObjects/interface/parameters.h"
9+
10+
Description: Converts info in L1MuCSCTFConfiguration to a edm::ParameterSet
11+
12+
Usage:
13+
14+
*/
15+
//
16+
// Original Author: Christopher Jones
17+
// Created: Thu, 27 May 2021 20:02:19 GMT
18+
//
19+
20+
// system include files
21+
22+
// user include files
23+
#include "FWCore/ParameterSet/interface/ParameterSetfwd.h"
24+
25+
class L1MuCSCTFConfiguration;
26+
27+
// forward declarations
28+
edm::ParameterSet parameters(L1MuCSCTFConfiguration const&, int sp);
29+
30+
#endif

0 commit comments

Comments
 (0)