CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
DTConfigTester Class Reference

#include <DTConfigTester.h>

Inheritance diagram for DTConfigTester:
edm::one::EDAnalyzer<> edm::one::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 
 DTConfigTester (const edm::ParameterSet &)
 Constructor. More...
 
- Public Member Functions inherited from edm::one::EDAnalyzer<>
 EDAnalyzer ()=default
 
 EDAnalyzer (const EDAnalyzer &)=delete
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
const EDAnalyzeroperator= (const EDAnalyzer &)=delete
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
bool wantsInputProcessBlocks () const final
 
bool wantsProcessBlocks () const final
 
- Public Member Functions inherited from edm::one::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~EDAnalyzerBase () override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ESResolverIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESResolverIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::array< std::vector< ModuleDescription const *> *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const *> const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProductResolverIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Private Attributes

int my_bti
 
edm::ESGetToken< DTConfigManager, DTConfigManagerRcdmy_configToken
 
int my_sec
 
int my_sl
 
int my_st
 
int my_traco
 
int my_wh
 

Additional Inherited Members

- Public Types inherited from edm::one::EDAnalyzerBase
typedef EDAnalyzerBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::one::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< Bconsumes (edm::InputTag tag) noexcept
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes ()
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag)
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
void resetItemsToGetFrom (BranchType iType)
 

Detailed Description

L1Trigger/DTConfigProducer/interface/DTConfigTester.h

Description: tester for DTConfig

Implementation: <Notes on="" implementation>="">

Definition at line 32 of file DTConfigTester.h.

Constructor & Destructor Documentation

◆ DTConfigTester()

DTConfigTester::DTConfigTester ( const edm::ParameterSet ps)
explicit

Constructor.

Definition at line 17 of file DTConfigTester.cc.

References gather_cfg::cout, edm::EDConsumerBase::esConsumes(), edm::ParameterSet::getUntrackedParameter(), my_bti, my_configToken, my_sec, my_sl, my_st, my_traco, and my_wh.

17  {
18  cout << "DTConfigTester::DTConfigTester()" << endl;
19 
20  my_wh = ps.getUntrackedParameter<int>("wheel");
21  my_sec = ps.getUntrackedParameter<int>("sector");
22  my_st = ps.getUntrackedParameter<int>("station");
23  my_traco = ps.getUntrackedParameter<int>("traco");
24  my_bti = ps.getUntrackedParameter<int>("bti");
25  my_sl = ps.getUntrackedParameter<int>("sl");
27 }
T getUntrackedParameter(std::string const &, T const &) const
edm::ESGetToken< DTConfigManager, DTConfigManagerRcd > my_configToken

Member Function Documentation

◆ analyze()

void DTConfigTester::analyze ( const edm::Event e,
const edm::EventSetup es 
)
overridevirtual

Implements edm::one::EDAnalyzerBase.

Definition at line 29 of file DTConfigTester.cc.

References gather_cfg::cout, MillePedeFileConverter_cfg::e, DTConfigManager::getDTConfigBti(), DTConfigManager::getDTConfigLUTs(), DTConfigManager::getDTConfigPedestals(), DTConfigManager::getDTConfigSectColl(), DTConfigManager::getDTConfigTraco(), DTConfigManager::getDTConfigTrigUnit(), DTConfigManager::getDTConfigTSPhi(), DTConfigManager::getDTConfigTSTheta(), edm::EventSetup::getHandle(), DTConfigManager::lutFromDB(), my_bti, my_configToken, my_sec, my_sl, my_st, my_traco, my_wh, DTConfigTrigUnit::print(), DTConfigTSTheta::print(), DTConfigPedestals::print(), DTConfigLUTs::print(), DTConfigSectColl::print(), DTConfigBti::print(), DTConfigTSPhi::print(), and DTConfigTraco::print().

29  {
30  cout << "DTConfigTester::analyze()" << endl;
31  cout << "\tRun number :" << e.id().run() << endl;
32  cout << "\tEvent number :" << e.id().event() << endl;
33 
34  using namespace edm;
35 
37 
38  cout << "\tPrint configuration :" << endl;
39 
40  DTBtiId btiid(my_wh, my_st, my_sec, my_sl, my_bti);
41  DTTracoId tracoid(my_wh, my_st, my_sec, my_traco);
42  DTChamberId chid(my_wh, my_st, my_sec);
43  DTSectCollId scid(my_wh, my_sec);
44 
45  dtConfig->getDTConfigBti(btiid)->print();
46  dtConfig->getDTConfigTraco(tracoid)->print();
47  dtConfig->getDTConfigTSTheta(chid)->print();
48  dtConfig->getDTConfigTSPhi(chid)->print();
49  dtConfig->getDTConfigTrigUnit(chid)->print();
50 
51  if (dtConfig->lutFromDB())
52  dtConfig->getDTConfigLUTs(chid)->print();
53  else {
54  cout << "******************************************************************"
55  "*************"
56  << endl;
57  cout << "* DTTrigger configuration : LUT parameters from "
58  "GEOMETRY *"
59  << endl;
60  cout << "******************************************************************"
61  "*************"
62  << endl;
63  }
64 
65  dtConfig->getDTConfigSectColl(scid)->print();
66  dtConfig->getDTConfigPedestals()->print();
67 
68  /*
69  // 100209 SV testing luts for each chamber type: keep in case lut from DB
70  debug is necessary DTChamberId chid1(-2,3,1); cout << "\n CHAMBER -2 3 1"
71  << endl; dtConfig->getDTConfigLUTs(chid1)->print();
72 
73  DTChamberId chid2(0,2,2);
74  cout << "\n CHAMBER 0 2 2" << endl;
75  dtConfig->getDTConfigLUTs(chid2)->print();
76 
77  DTChamberId chid3(-2,4,8);
78  cout << "\n CHAMBER -2 4 8" << endl;
79  dtConfig->getDTConfigLUTs(chid3)->print();
80 
81  DTChamberId chid4(1,4,12);
82  cout << "\n CHAMBER 1 4 12" << endl;
83  dtConfig->getDTConfigLUTs(chid4)->print();
84 
85  DTChamberId chid5(-2,4,5);
86  cout << "\n CHAMBER -2 4 5 " << endl;
87  dtConfig->getDTConfigLUTs(chid5)->print();
88 
89  DTChamberId chid6(0,4,2);
90  cout << "\n CHAMBER 0 4 2" << endl;
91  dtConfig->getDTConfigLUTs(chid6)->print();
92 
93  DTChamberId chid7(-2,4,9);
94  cout << "\n CHAMBER -2 4 9" << endl;
95  dtConfig->getDTConfigLUTs(chid7)->print();
96 
97  DTChamberId chid8(0,4,11);
98  cout << "\n CHAMBER 0 4 11" << endl;
99  dtConfig->getDTConfigLUTs(chid8)->print();
100 
101  DTChamberId chid9(-2,1,1);
102  cout << "\n CHAMBER -2 1 1" << endl;
103  dtConfig->getDTConfigLUTs(chid9)->print();
104 
105  DTChamberId chid10(-2,4,13);
106  cout << "\n CHAMBER -2 4 13" << endl;
107  dtConfig->getDTConfigLUTs(chid10)->print();
108 
109  DTChamberId chid11(1,4,4);
110  cout << "\n CHAMBER 1 4 4 " << endl;
111  dtConfig->getDTConfigLUTs(chid11)->print();
112 
113  DTChamberId chid12(-2,4,14);
114  cout << "\n CHAMBER -2 4 14" << endl;
115  dtConfig->getDTConfigLUTs(chid12)->print();
116 
117  DTChamberId chid13(0,4,10);
118  cout << "\n CHAMBER 0 4 10" << endl;
119  dtConfig->getDTConfigLUTs(chid13)->print();
120 
121  DTChamberId chid14(-2,4,11);
122  cout << "\n CHAMBER -2 4 11" << endl;
123  dtConfig->getDTConfigLUTs(chid14)->print();
124 
125  DTChamberId chid15(1,4,9);
126  cout << "\n CHAMBER 1 4 9" << endl;
127  dtConfig->getDTConfigLUTs(chid15)->print();
128 
129  DTChamberId chid16(0,1,2);
130  cout << "\n CHAMBER 0 1 2 " << endl;
131  dtConfig->getDTConfigLUTs(chid16)->print();
132 
133  DTChamberId chid17(-2,2,1);
134  cout << "\n CHAMBER -2 2 1" << endl;
135  dtConfig->getDTConfigLUTs(chid17)->print();
136 
137  DTChamberId chid18(0,3,2);
138  cout << "\n CHAMBER 0 3 2 " << endl;
139  dtConfig->getDTConfigLUTs(chid18)->print();
140 
141  DTChamberId chid19(-2,4,10);
142  cout << "\n CHAMBER 0 2 2" << endl;
143  dtConfig->getDTConfigLUTs(chid19)->print();
144 
145  DTChamberId chid20(0,4,14);
146  cout << "\n CHAMBER 0 4 14" << endl;
147  dtConfig->getDTConfigLUTs(chid20)->print();
148 
149  DTChamberId chid21(-2,4,12);
150  cout << "\n CHAMBER -2 4 12" << endl;
151  dtConfig->getDTConfigLUTs(chid21)->print();
152 
153  DTChamberId chid22(1,4,8);
154  cout << "\n CHAMBER 1 4 8" << endl;
155  dtConfig->getDTConfigLUTs(chid22)->print();
156 
157  DTChamberId chid23(-2,4,1);
158  cout << "\n CHAMBER -2 4 1" << endl;
159  dtConfig->getDTConfigLUTs(chid23)->print();
160 
161  DTChamberId chid24(0,4,6);
162  cout << "\n CHAMBER 0 4 6" << endl;
163  dtConfig->getDTConfigLUTs(chid24)->print();
164 
165  DTChamberId chid25(-2,4,4);
166  cout << "\n CHAMBER -2 4 4" << endl;
167  dtConfig->getDTConfigLUTs(chid25)->print();
168 
169  DTChamberId chid26(1,4,13);
170  cout << "\n CHAMBER 1 4 13 " << endl;
171  dtConfig->getDTConfigLUTs(chid26)->print();
172 
173  */
174  return;
175 }
const DTConfigTraco * getDTConfigTraco(DTTracoId) const
Get desired TRACO configuration.
bool lutFromDB() const
Lut from DB flag.
edm::ESGetToken< DTConfigManager, DTConfigManagerRcd > my_configToken
void print() const
Print the setup.
const DTConfigBti * getDTConfigBti(DTBtiId) const
Get desired BTI configuration.
void print() const
Print the setup.
const DTConfigTSPhi * getDTConfigTSPhi(DTChamberId) const
Get desired Trigger Server Phi configuration.
const DTConfigSectColl * getDTConfigSectColl(DTSectCollId) const
Get desired SectorCollector configuration.
void print() const
Print the setup.
const DTConfigTrigUnit * getDTConfigTrigUnit(DTChamberId) const
Get desired Trigger Unit configuration.
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
Definition: EventSetup.h:130
void print() const
Print the setup.
Definition: DTConfigBti.cc:212
const DTConfigLUTs * getDTConfigLUTs(DTChamberId) const
Get desired LUT configuration.
void print() const
Print the setup.
Definition: DTConfigLUTs.cc:96
void print() const
Print the setup.
const DTConfigPedestals * getDTConfigPedestals() const
Get desired Pedestals configuration.
HLT enums.
void print() const
Print the setup.
const DTConfigTSTheta * getDTConfigTSTheta(DTChamberId) const
Get desired Trigger Server Theta configuration.
void print() const
Print the setup.

Member Data Documentation

◆ my_bti

int DTConfigTester::my_bti
private

Definition at line 45 of file DTConfigTester.h.

Referenced by analyze(), and DTConfigTester().

◆ my_configToken

edm::ESGetToken<DTConfigManager, DTConfigManagerRcd> DTConfigTester::my_configToken
private

Definition at line 48 of file DTConfigTester.h.

Referenced by analyze(), and DTConfigTester().

◆ my_sec

int DTConfigTester::my_sec
private

Definition at line 42 of file DTConfigTester.h.

Referenced by analyze(), and DTConfigTester().

◆ my_sl

int DTConfigTester::my_sl
private

Definition at line 46 of file DTConfigTester.h.

Referenced by analyze(), and DTConfigTester().

◆ my_st

int DTConfigTester::my_st
private

Definition at line 43 of file DTConfigTester.h.

Referenced by analyze(), and DTConfigTester().

◆ my_traco

int DTConfigTester::my_traco
private

Definition at line 44 of file DTConfigTester.h.

Referenced by analyze(), and DTConfigTester().

◆ my_wh

int DTConfigTester::my_wh
private

Definition at line 41 of file DTConfigTester.h.

Referenced by analyze(), and DTConfigTester().