CMS 3D CMS Logo

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

#include <L1Trigger/DTConfigProducer/interface/DTConfigTester.h>

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

Public Member Functions

virtual void analyze (const edm::Event &, const edm::EventSetup &)
 
 DTConfigTester (const edm::ParameterSet &)
 Constructor. More...
 
 ~DTConfigTester ()
 Destructor. More...
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
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 & itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, 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 updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
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 &)
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
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 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)
 

Detailed Description

Description: tester for DTConfig

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

Definition at line 31 of file DTConfigTester.h.

Constructor & Destructor Documentation

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 
19  cout << "DTConfigTester::DTConfigTester()" << endl;
20 
21  my_wh = ps.getUntrackedParameter<int>("wheel");
22  my_sec = ps.getUntrackedParameter<int>("sector");
23  my_st = ps.getUntrackedParameter<int>("station");
24  my_traco = ps.getUntrackedParameter<int>("traco");
25  my_bti = ps.getUntrackedParameter<int>("bti");
26  my_sl = ps.getUntrackedParameter<int>("sl");
27 }
T getUntrackedParameter(std::string const &, T const &) const
DTConfigTester::~DTConfigTester ( )

Destructor.

Definition at line 29 of file DTConfigTester.cc.

29  {
30 
31  //cout << "DTConfigTester::~DTConfigTester()" << endl;
32 
33 }

Member Function Documentation

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

Definition at line 35 of file DTConfigTester.cc.

References gather_cfg::cout, edm::EventID::event(), edm::EventSetup::get(), DTConfigManager::getDTConfigBti(), DTConfigManager::getDTConfigLUTs(), DTConfigManager::getDTConfigPedestals(), DTConfigManager::getDTConfigSectColl(), DTConfigManager::getDTConfigTraco(), DTConfigManager::getDTConfigTrigUnit(), DTConfigManager::getDTConfigTSPhi(), DTConfigManager::getDTConfigTSTheta(), edm::EventBase::id(), 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(), DTConfigTraco::print(), and edm::EventID::run().

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

Member Data Documentation

int DTConfigTester::my_bti
private

Definition at line 50 of file DTConfigTester.h.

Referenced by analyze(), and DTConfigTester().

int DTConfigTester::my_sec
private

Definition at line 47 of file DTConfigTester.h.

Referenced by analyze(), and DTConfigTester().

int DTConfigTester::my_sl
private

Definition at line 51 of file DTConfigTester.h.

Referenced by analyze(), and DTConfigTester().

int DTConfigTester::my_st
private

Definition at line 48 of file DTConfigTester.h.

Referenced by analyze(), and DTConfigTester().

int DTConfigTester::my_traco
private

Definition at line 49 of file DTConfigTester.h.

Referenced by analyze(), and DTConfigTester().

int DTConfigTester::my_wh
private

Definition at line 46 of file DTConfigTester.h.

Referenced by analyze(), and DTConfigTester().