CMS 3D CMS Logo

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

#include <DTConfigTester.h>

Inheritance diagram for DTConfigTester:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 
 DTConfigTester (const edm::ParameterSet &)
 Constructor. More...
 
 ~DTConfigTester () override
 Destructor. More...
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
SerialTaskQueueglobalLuminosityBlocksQueue ()
 
SerialTaskQueueglobalRunsQueue ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
 ~EDAnalyzer () 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
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESProxyIndex > 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
 
bool registeredToConsumeMany (TypeID const &, 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::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Private Attributes

int my_bti
 
int my_sec
 
int my_sl
 
int my_st
 
int my_traco
 
int my_wh
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
static bool wantsGlobalLuminosityBlocks ()
 
static bool wantsGlobalRuns ()
 
static bool wantsInputProcessBlocks ()
 
static bool wantsProcessBlocks ()
 
static bool wantsStreamLuminosityBlocks ()
 
static bool wantsStreamRuns ()
 
- 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 ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
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 30 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::ParameterSet::getUntrackedParameter(), my_bti, 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");
26 }
T getUntrackedParameter(std::string const &, T const &) const

◆ ~DTConfigTester()

DTConfigTester::~DTConfigTester ( )
override

Destructor.

Definition at line 28 of file DTConfigTester.cc.

28  {
29  // cout << "DTConfigTester::~DTConfigTester()" << endl;
30 }

Member Function Documentation

◆ analyze()

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

Implements edm::EDAnalyzer.

Definition at line 32 of file DTConfigTester.cc.

References gather_cfg::cout, MillePedeFileConverter_cfg::e, edm::EventSetup::get(), DTConfigManager::getDTConfigBti(), DTConfigManager::getDTConfigLUTs(), DTConfigManager::getDTConfigPedestals(), DTConfigManager::getDTConfigSectColl(), DTConfigManager::getDTConfigTraco(), DTConfigManager::getDTConfigTrigUnit(), DTConfigManager::getDTConfigTSPhi(), DTConfigManager::getDTConfigTSTheta(), DTConfigManager::lutFromDB(), my_bti, 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().

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

Referenced by analyze(), and DTConfigTester().

◆ my_sec

int DTConfigTester::my_sec
private

Definition at line 43 of file DTConfigTester.h.

Referenced by analyze(), and DTConfigTester().

◆ my_sl

int DTConfigTester::my_sl
private

Definition at line 47 of file DTConfigTester.h.

Referenced by analyze(), and DTConfigTester().

◆ my_st

int DTConfigTester::my_st
private

Definition at line 44 of file DTConfigTester.h.

Referenced by analyze(), and DTConfigTester().

◆ my_traco

int DTConfigTester::my_traco
private

Definition at line 45 of file DTConfigTester.h.

Referenced by analyze(), and DTConfigTester().

◆ my_wh

int DTConfigTester::my_wh
private

Definition at line 42 of file DTConfigTester.h.

Referenced by analyze(), and DTConfigTester().