CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
DTLocalTriggerBaseTest Class Referenceabstract

#include <DTLocalTriggerBaseTest.h>

Inheritance diagram for DTLocalTriggerBaseTest:
DQMEDHarvester edm::one::EDProducer< edm::one::WatchRuns, edm::one::WatchLuminosityBlocks, edm::one::SharedResources, edm::EndLuminosityBlockProducer > edm::one::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper DTLocalTriggerEfficiencyTest DTLocalTriggerLutTest DTLocalTriggerSynchTest DTLocalTriggerTest DTLocalTriggerTPTest DTTriggerEfficiencyTest DTTriggerLutTest

Public Member Functions

 DTLocalTriggerBaseTest ()
 Constructor. More...
 
virtual ~DTLocalTriggerBaseTest ()
 Destructor. More...
 
- Public Member Functions inherited from DQMEDHarvester
virtual void beginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) override final
 
 DQMEDHarvester (void)
 
virtual void endJob () override final
 
virtual void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) override final
 
virtual void produce (edm::Event &, edm::EventSetup const &) override final
 
virtual ~DQMEDHarvester ()=default
 
- Public Member Functions inherited from edm::one::EDProducer< edm::one::WatchRuns, edm::one::WatchLuminosityBlocks, edm::one::SharedResources, edm::EndLuminosityBlockProducer >
 EDProducer ()=default
 
- Public Member Functions inherited from edm::one::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDProducerBase ()
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
std::vector< edm::ProductResolverIndex > const & indiciesForPutProducts (BranchType iBranchType) const
 
 ProducerBase ()
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription const &)> registrationCallback () const
 used by the fwk to register list of products More...
 
void resolvePutIndicies (BranchType iBranchType, std::unordered_multimap< std::string, edm::ProductResolverIndex > const &iIndicies, std::string const &moduleLabel)
 
virtual ~ProducerBase () noexcept(false)
 
- 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
 
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::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)
 

Protected Member Functions

void beginRun (edm::Run const &run, edm::EventSetup const &context)
 BeginRun. More...
 
void bookCmsHistos (DQMStore::IBooker &, std::string hTag, std::string folder="", bool isGlb=false)
 Book the new MEs (CMS summary) More...
 
void bookSectorHistos (DQMStore::IBooker &, int wheel, int sector, std::string hTag, std::string folder="")
 Book the new MEs (for each sector) More...
 
void bookWheelHistos (DQMStore::IBooker &, int wheel, std::string hTag, std::string folder="")
 Book the new MEs (for each wheel) More...
 
std::string category ()
 Get message logger name. More...
 
void dqmEndJob (DQMStore::IBooker &, DQMStore::IGetter &)
 
void dqmEndLuminosityBlock (DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &)
 Perform client diagnostic in online. More...
 
void endRun (edm::Run const &run, edm::EventSetup const &context)
 Perform client diagnostic in offline. More...
 
std::string fullName (std::string htype)
 Create fullname from histo partial name. More...
 
template<class T >
TgetHisto (MonitorElement *me)
 Convert ME to Histogram fo type T. More...
 
std::string getMEName (std::string histoTag, std::string subfolder, const DTChamberId &chambid)
 Get the ME name (by chamber) More...
 
std::string getMEName (std::string histoTag, std::string subfolder, int wh)
 Get the ME name (by wheel) More...
 
std::pair< float, float > phiRange (const DTChamberId &id)
 Calculate phi range for histograms. More...
 
virtual void runClientDiagnostic (DQMStore::IBooker &, DQMStore::IGetter &)=0
 Perform client analysis. More...
 
void setConfig (const edm::ParameterSet &ps, std::string name)
 Set configuration variables. More...
 
std::string & topFolder (bool isTM)
 Get top folder name. More...
 
- 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)
 

Protected Attributes

std::string baseFolderDDU
 
std::string baseFolderTM
 
std::map< std::string, MonitorElement * > cmsME
 
std::string hwSource
 
std::vector< std::string > hwSources
 
edm::ESHandle< DTGeometrymuonGeom
 
int nevents
 
unsigned int nLumiSegs
 
edm::ParameterSet parameters
 
int prescaleFactor
 
int run
 
bool runOnline
 
std::map< int, std::map< std::string, MonitorElement * > > secME
 
std::string sourceFolder
 
std::string testName
 
std::string trigSource
 
std::vector< std::string > trigSources
 
std::map< int, std::map< std::string, MonitorElement * > > whME
 

Additional Inherited Members

- Public Types inherited from edm::one::EDProducerBase
typedef EDProducerBase ModuleType
 
- Public Types inherited from edm::ProducerBase
typedef ProductRegistryHelper::TypeLabelList TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::one::EDProducerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 

Detailed Description

Definition at line 42 of file DTLocalTriggerBaseTest.h.

Constructor & Destructor Documentation

DTLocalTriggerBaseTest::DTLocalTriggerBaseTest ( )
inline
DTLocalTriggerBaseTest::~DTLocalTriggerBaseTest ( )
virtual

Destructor.

Definition at line 37 of file DTLocalTriggerBaseTest.cc.

References python.rootplot.argparse::category.

Referenced by DTLocalTriggerBaseTest().

37  {
38 
39  LogVerbatim(category()) << "[" << testName << "Test]: analyzed " << nevents << " events";
40 
41 }
std::string category()
Get message logger name.

Member Function Documentation

void DTLocalTriggerBaseTest::beginRun ( edm::Run const &  run,
edm::EventSetup const &  context 
)
protectedvirtual
void DTLocalTriggerBaseTest::bookCmsHistos ( DQMStore::IBooker ,
std::string  hTag,
std::string  folder = "",
bool  isGlb = false 
)
protected

Book the new MEs (CMS summary)

Definition at line 223 of file DTLocalTriggerBaseTest.cc.

References DQMStore::IBooker::book2D(), python.rootplot.argparse::category, LogTrace, MonitorElement::setAxisTitle(), and DQMStore::IBooker::setCurrentFolder().

Referenced by DTLocalTriggerBaseTest().

224  {
225 
226  bool isTM = hwSource == "TM";
227  string basedir = topFolder(isTM);
228  if (folder != "") {
229  basedir += folder +"/" ;
230  }
231 
232  ibooker.setCurrentFolder(basedir);
233 
234  string hname = isGlb ? hTag : fullName(hTag);
235  LogTrace(category()) << "[" << testName << "Test]: booking " << basedir << hname;
236 
237  MonitorElement* me = ibooker.book2D(hname.c_str(),hname.c_str(),12,1,13,5,-2,3);
238  me->setAxisTitle("Sector",1);
239  me->setAxisTitle("Wheel",2);
240  cmsME[hname] = me;
241 
242 }
#define LogTrace(id)
std::string category()
Get message logger name.
std::string & topFolder(bool isTM)
Get top folder name.
std::map< std::string, MonitorElement * > cmsME
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
std::string fullName(std::string htype)
Create fullname from histo partial name.
void DTLocalTriggerBaseTest::bookSectorHistos ( DQMStore::IBooker ,
int  wheel,
int  sector,
std::string  hTag,
std::string  folder = "" 
)
protected

Book the new MEs (for each sector)

Definition at line 158 of file DTLocalTriggerBaseTest.cc.

References DQMStore::IBooker::book1D(), DQMStore::IBooker::book2D(), python.rootplot.argparse::category, LogTrace, SimDataFormats::CaloAnalysis::sc, MonitorElement::setBinLabel(), DQMStore::IBooker::setCurrentFolder(), and makeMuonMisalignmentScenario::wheel.

Referenced by DTLocalTriggerEfficiencyTest::Bookings(), DTLocalTriggerBaseTest(), and DTLocalTriggerEfficiencyTest::runClientDiagnostic().

159  {
160 
161  stringstream wh; wh << wheel;
162  stringstream sc; sc << sector;
163  int sectorid = (wheel+3) + (sector-1)*5;
164  bool isTM = hwSource=="TM" ;
165  string basedir = topFolder(isTM)+"Wheel"+wh.str()+"/Sector"+sc.str()+"/";
166  if (folder!="") {
167  basedir += folder +"/";
168  }
169 
170  ibooker.setCurrentFolder(basedir);
171 
172  string fullTag = fullName(hTag);
173  string hname = fullTag + "_W" + wh.str()+"_Sec" +sc.str();
174  LogTrace(category()) << "[" << testName << "Test]: booking " << basedir << hname;
175  if (hTag.find("BXDistribPhi") != string::npos){
176 
177  MonitorElement* me = ibooker.book2D(hname.c_str(),hname.c_str(),25,-4.5,20.5,4,0.5,4.5);
178  me->setBinLabel(1,"MB1",2);
179  me->setBinLabel(2,"MB2",2);
180  me->setBinLabel(3,"MB3",2);
181  me->setBinLabel(4,"MB4",2);
182  secME[sectorid][fullTag] = me;
183  return;
184  }
185  else if (hTag.find("QualDistribPhi") != string::npos){
186  MonitorElement* me = ibooker.book2D(hname.c_str(),hname.c_str(),7,-0.5,6.5,4,0.5,4.5);
187  me->setBinLabel(1,"MB1",2);
188  me->setBinLabel(2,"MB2",2);
189  me->setBinLabel(3,"MB3",2);
190  me->setBinLabel(4,"MB4",2);
191  me->setBinLabel(1,"LI",1);
192  me->setBinLabel(2,"LO",1);
193  me->setBinLabel(3,"HI",1);
194  me->setBinLabel(4,"HO",1);
195  me->setBinLabel(5,"LL",1);
196  me->setBinLabel(6,"HL",1);
197  me->setBinLabel(7,"HH",1);
198  secME[sectorid][fullTag] = me;
199  return;
200  }
201  else if (hTag.find("Phi") != string::npos ||
202  hTag.find("TkvsTrig") != string::npos ){
203  MonitorElement* me = ibooker.book1D(hname.c_str(),hname.c_str(),4,0.5,4.5);
204  me->setBinLabel(1,"MB1",1);
205  me->setBinLabel(2,"MB2",1);
206  me->setBinLabel(3,"MB3",1);
207  me->setBinLabel(4,"MB4",1);
208  secME[sectorid][fullTag] = me;
209  return;
210  }
211 
212  if (hTag.find("Theta") != string::npos){
213  MonitorElement* me =ibooker.book1D(hname.c_str(),hname.c_str(),3,0.5,3.5);
214  me->setBinLabel(1,"MB1",1);
215  me->setBinLabel(2,"MB2",1);
216  me->setBinLabel(3,"MB3",1);
217  secME[sectorid][fullTag] = me;
218  return;
219  }
220 
221 }
std::map< int, std::map< std::string, MonitorElement * > > secME
void setBinLabel(int bin, const std::string &label, int axis=1)
set bin label for x, y or z axis (axis=1, 2, 3 respectively)
#define LogTrace(id)
std::string category()
Get message logger name.
std::string & topFolder(bool isTM)
Get top folder name.
std::string fullName(std::string htype)
Create fullname from histo partial name.
void DTLocalTriggerBaseTest::bookWheelHistos ( DQMStore::IBooker ,
int  wheel,
std::string  hTag,
std::string  folder = "" 
)
protected

Book the new MEs (for each wheel)

Definition at line 244 of file DTLocalTriggerBaseTest.cc.

References DQMStore::IBooker::book2D(), python.rootplot.argparse::category, LogTrace, MonitorElement::setAxisTitle(), MonitorElement::setBinLabel(), DQMStore::IBooker::setCurrentFolder(), and makeMuonMisalignmentScenario::wheel.

Referenced by DTLocalTriggerEfficiencyTest::Bookings(), DTLocalTriggerBaseTest(), and DTLocalTriggerEfficiencyTest::runClientDiagnostic().

244  {
245 
246  stringstream wh; wh << wheel;
247  string basedir;
248  bool isTM = hwSource=="TM" ;
249  if (hTag.find("Summary") != string::npos) {
250  basedir = topFolder(isTM); //Book summary histo outside wheel directories
251  } else {
252  basedir = topFolder(isTM) + "Wheel" + wh.str() + "/" ;
253 
254  }
255  if (folder != "") {
256  basedir += folder +"/" ;
257  }
258 
259  ibooker.setCurrentFolder(basedir);
260 
261  string fullTag = fullName(hTag);
262  string hname = fullTag+ "_W" + wh.str();
263 
264  LogTrace(category()) << "[" << testName << "Test]: booking "<< basedir << hname;
265 
266  if (hTag.find("Phi")!= string::npos ||
267  hTag.find("Summary") != string::npos ){
268  MonitorElement* me = ibooker.book2D(hname.c_str(),hname.c_str(),12,1,13,4,1,5);
269 
270 // setLabelPh(me);
271  me->setBinLabel(1,"MB1",2);
272  me->setBinLabel(2,"MB2",2);
273  me->setBinLabel(3,"MB3",2);
274  me->setBinLabel(4,"MB4",2);
275  me->setAxisTitle("Sector",1);
276 
277  whME[wheel][fullTag] = me;
278  return;
279  }
280 
281  if (hTag.find("Theta") != string::npos){
282 
283  MonitorElement* me =ibooker.book2D(hname.c_str(),hname.c_str(),12,1,13,3,1,4);
284 
285 // setLabelTh(me);
286  me->setBinLabel(1,"MB1",2);
287  me->setBinLabel(2,"MB2",2);
288  me->setBinLabel(3,"MB3",2);
289  me->setAxisTitle("Sector",1);
290 
291  whME[wheel][fullTag] = me;
292  return;
293  }
294 
295 }
std::map< int, std::map< std::string, MonitorElement * > > whME
void setBinLabel(int bin, const std::string &label, int axis=1)
set bin label for x, y or z axis (axis=1, 2, 3 respectively)
#define LogTrace(id)
std::string category()
Get message logger name.
std::string & topFolder(bool isTM)
Get top folder name.
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
std::string fullName(std::string htype)
Create fullname from histo partial name.
std::string DTLocalTriggerBaseTest::category ( void  )
inlineprotected

Get message logger name.

Definition at line 100 of file DTLocalTriggerBaseTest.h.

Referenced by DTLocalTriggerEfficiencyTest::bookChambHistos().

100 { return "DTDQM|DTMonitorClient|" + testName + "Test"; } ;
void DTLocalTriggerBaseTest::dqmEndJob ( DQMStore::IBooker ibooker,
DQMStore::IGetter igetter 
)
protectedvirtual

Implements DQMEDHarvester.

Reimplemented in DTLocalTriggerSynchTest.

Definition at line 73 of file DTLocalTriggerBaseTest.cc.

References python.rootplot.argparse::category, and LogTrace.

Referenced by DTLocalTriggerSynchTest::dqmEndJob(), and DTLocalTriggerBaseTest().

73  {
74 
75  LogTrace(category()) << "[" << testName << "Test] endJob called!";
76 
77  if (!runOnline) {
78  LogVerbatim(category()) << "[" << testName << "Test] Client called in offline mode, performing client operations";
79  runClientDiagnostic(ibooker,igetter);
80  }
81 
82 
83 }
#define LogTrace(id)
std::string category()
Get message logger name.
virtual void runClientDiagnostic(DQMStore::IBooker &, DQMStore::IGetter &)=0
Perform client analysis.
void DTLocalTriggerBaseTest::dqmEndLuminosityBlock ( DQMStore::IBooker ibooker,
DQMStore::IGetter igetter,
edm::LuminosityBlock const &  lumiSeg,
edm::EventSetup const &  context 
)
protectedvirtual

Perform client diagnostic in online.

Reimplemented from DQMEDHarvester.

Reimplemented in DTLocalTriggerSynchTest.

Definition at line 55 of file DTLocalTriggerBaseTest.cc.

Referenced by DTLocalTriggerBaseTest().

56  {
57 
58  if (!runOnline) return;
59 
60  LogVerbatim("DTDQM|DTMonitorClient|DTLocalTriggerTest") <<"[" << testName << "Test]: End of LS transition, performing the DQM client operation";
61 
62  // counts number of lumiSegs and prescale
63  nLumiSegs++;
64  if ( nLumiSegs%prescaleFactor != 0 ) return;
65 
66  LogVerbatim("DTDQM|DTMonitorClient|DTLocalTriggerTest") <<"[" << testName << "Test]: "<<nLumiSegs<<" updates";
67 
68  runClientDiagnostic(ibooker, igetter);
69 
70 }
virtual void runClientDiagnostic(DQMStore::IBooker &, DQMStore::IGetter &)=0
Perform client analysis.
void DTLocalTriggerBaseTest::endRun ( edm::Run const &  run,
edm::EventSetup const &  context 
)
protectedvirtual

Perform client diagnostic in offline.

Reimplemented from DQMEDHarvester.

Definition at line 86 of file DTLocalTriggerBaseTest.cc.

References python.rootplot.argparse::category, and LogTrace.

Referenced by DTLocalTriggerBaseTest().

86  {
87 
88  LogTrace(category()) << "[" << testName << "Test] endRun called!";
89 
90 }
#define LogTrace(id)
std::string category()
Get message logger name.
string DTLocalTriggerBaseTest::fullName ( std::string  htype)
protected
template<class T >
T * DTLocalTriggerBaseTest::getHisto ( MonitorElement me)
protected

Convert ME to Histogram fo type T.

Definition at line 128 of file DTLocalTriggerBaseTest.h.

References MonitorElement::getRootObject().

Referenced by DTLocalTriggerBaseTest().

128  {
129  return me ? dynamic_cast<T*>(me->getRootObject()) : 0;
130 }
TObject * getRootObject(void) const
long double T
std::string DTLocalTriggerBaseTest::getMEName ( std::string  histoTag,
std::string  subfolder,
const DTChamberId chambid 
)
protected
std::string DTLocalTriggerBaseTest::getMEName ( std::string  histoTag,
std::string  subfolder,
int  wh 
)
protected

Get the ME name (by wheel)

pair< float, float > DTLocalTriggerBaseTest::phiRange ( const DTChamberId id)
protected

Calculate phi range for histograms.

Definition at line 297 of file DTLocalTriggerBaseTest.cc.

References DTTopology::firstChannel(), DTTopology::lastChannel(), edm::max(), edm::min(), GeomDet::position(), DTLayer::specificTopology(), relativeConstraints::station, GeomDet::toLocal(), makeMuonMisalignmentScenario::wheel, DTTopology::wirePosition(), and x().

Referenced by DTLocalTriggerBaseTest().

297  {
298 
299  float min,max;
300  int station = id.station();
301  int sector = id.sector();
302  int wheel = id.wheel();
303 
304  const DTLayer *layer = muonGeom->layer(DTLayerId(id,1,1));
305  DTTopology topo = layer->specificTopology();
306  min = topo.wirePosition(topo.firstChannel());
307  max = topo.wirePosition(topo.lastChannel());
308 
309  if (station == 4){
310 
311  const DTLayer *layer2;
312  float lposx;
313 
314  if (sector == 4){
315  layer2 = muonGeom->layer(DTLayerId(wheel,station,13,1,1));
316  lposx = layer->toLocal(layer2->position()).x();
317  }
318  else if (sector == 10){
319  layer2 = muonGeom->layer(DTLayerId(wheel,station,14,1,1));
320  lposx = layer->toLocal(layer2->position()).x();
321  }
322  else
323  return make_pair(min,max);
324 
325  DTTopology topo2 = layer2->specificTopology();
326 
327  if (lposx>0){
328  max = lposx*.5+topo2.wirePosition(topo2.lastChannel());
329  min -= lposx*.5;
330  }
331  else{
332  min = lposx*.5+topo2.wirePosition(topo2.firstChannel());
333  max -= lposx*.5;
334  }
335 
336  }
337 
338  return make_pair(min,max);
339 
340 }
float wirePosition(int wireNumber) const
Returns the x position in the layer of a given wire number.
Definition: DTTopology.cc:86
LocalPoint toLocal(const GlobalPoint &gp) const
Conversion to the R.F. of the GeomDet.
Definition: GeomDet.h:69
edm::ESHandle< DTGeometry > muonGeom
int firstChannel() const
Returns the wire number of the first wire.
Definition: DTTopology.h:78
int lastChannel() const
Returns the wire number of the last wire.
Definition: DTTopology.h:80
const DTTopology & specificTopology() const
Definition: DTLayer.cc:42
const Surface::PositionType & position() const
The position (origin of the R.F.)
Definition: GeomDet.h:48
T min(T a, T b)
Definition: MathUtil.h:58
const DTLayer * layer(const DTLayerId &id) const
Return a layer given its id.
Definition: DTGeometry.cc:109
virtual void DTLocalTriggerBaseTest::runClientDiagnostic ( DQMStore::IBooker ,
DQMStore::IGetter  
)
protectedpure virtual
void DTLocalTriggerBaseTest::setConfig ( const edm::ParameterSet ps,
std::string  name 
)
protected

Set configuration variables.

Definition at line 93 of file DTLocalTriggerBaseTest.cc.

References python.rootplot.argparse::category, edm::ParameterSet::getUntrackedParameter(), LogTrace, dataset::name, and metProducer_cfi::parameters.

Referenced by DTLocalTriggerBaseTest(), and DTLocalTriggerEfficiencyTest::DTLocalTriggerEfficiencyTest().

93  {
94 
95  testName=name;
96 
97  LogTrace(category()) << "[" << testName << "Test]: Constructor";
98 
99  sourceFolder = ps.getUntrackedParameter<string>("folderRoot", "");
100  runOnline = ps.getUntrackedParameter<bool>("runOnline",true);
101  hwSources = ps.getUntrackedParameter<vector<string> >("hwSources");
102 
103  if (ps.getUntrackedParameter<bool>("localrun",true)) {
104  trigSources.push_back("");
105  }
106  else {
107  trigSources = ps.getUntrackedParameter<vector<string> >("trigSources");
108  }
109 
110  parameters = ps;
111  nevents = 0;
112 
113  prescaleFactor = parameters.getUntrackedParameter<int>("diagnosticPrescale", 1);
114 
115 }
T getUntrackedParameter(std::string const &, T const &) const
std::vector< std::string > trigSources
#define LogTrace(id)
std::string category()
Get message logger name.
std::vector< std::string > hwSources
std::string& DTLocalTriggerBaseTest::topFolder ( bool  isTM)
inlineprotected

Get top folder name.

Definition at line 97 of file DTLocalTriggerBaseTest.h.

References baseFolderDDU, and baseFolderTM.

Referenced by DTLocalTriggerEfficiencyTest::bookChambHistos().

97 { return isTM ? baseFolderTM : baseFolderDDU; } ;

Member Data Documentation

std::string DTLocalTriggerBaseTest::baseFolderDDU
protected
std::string DTLocalTriggerBaseTest::baseFolderTM
protected
std::map<std::string,MonitorElement*> DTLocalTriggerBaseTest::cmsME
protected

Definition at line 122 of file DTLocalTriggerBaseTest.h.

std::string DTLocalTriggerBaseTest::hwSource
protected
std::vector<std::string> DTLocalTriggerBaseTest::hwSources
protected
edm::ESHandle<DTGeometry> DTLocalTriggerBaseTest::muonGeom
protected

Definition at line 119 of file DTLocalTriggerBaseTest.h.

Referenced by DTLocalTriggerEfficiencyTest::beginRun().

int DTLocalTriggerBaseTest::nevents
protected

Definition at line 100 of file DTLocalTriggerBaseTest.h.

unsigned int DTLocalTriggerBaseTest::nLumiSegs
protected

Definition at line 105 of file DTLocalTriggerBaseTest.h.

edm::ParameterSet DTLocalTriggerBaseTest::parameters
protected
int DTLocalTriggerBaseTest::prescaleFactor
protected

Definition at line 106 of file DTLocalTriggerBaseTest.h.

int DTLocalTriggerBaseTest::run
protected
bool DTLocalTriggerBaseTest::runOnline
protected

Definition at line 114 of file DTLocalTriggerBaseTest.h.

std::map<int,std::map<std::string,MonitorElement*> > DTLocalTriggerBaseTest::secME
protected
std::string DTLocalTriggerBaseTest::sourceFolder
protected

Definition at line 112 of file DTLocalTriggerBaseTest.h.

std::string DTLocalTriggerBaseTest::testName
protected
std::string DTLocalTriggerBaseTest::trigSource
protected
std::vector<std::string> DTLocalTriggerBaseTest::trigSources
protected
std::map<int,std::map<std::string,MonitorElement*> > DTLocalTriggerBaseTest::whME
protected