CMS 3D CMS Logo

CompositeTSG.cc
Go to the documentation of this file.
2 
6 
8  theCategory = "CompositeTSG";
9 
10  //configure the individual components of the TSG
11  std::vector<std::string> PSetNames = par.getParameter<std::vector<std::string> >("PSetNames");
12 
13  for (std::vector<std::string>::iterator nIt = PSetNames.begin(); nIt != PSetNames.end(); nIt++) {
15  if (TSGpset.empty()) {
16  theNames.push_back((*nIt) + ":" + "NULL");
17  theTSGs.emplace_back(nullptr);
18  } else {
19  std::string SeedGenName = TSGpset.getParameter<std::string>("ComponentName");
20  theNames.push_back((*nIt) + ":" + SeedGenName);
21  theTSGs.emplace_back(TrackerSeedGeneratorFactory::get()->create(SeedGenName, TSGpset, IC));
22  }
23  }
24 }
25 
26 CompositeTSG::~CompositeTSG() = default;
27 
30  for (unsigned int iTSG = 0; iTSG != theTSGs.size(); iTSG++) {
31  if (theTSGs[iTSG])
32  theTSGs[iTSG]->init(service);
33  }
34 }
35 
37  theEvent = &event;
38  for (unsigned int iTSG = 0; iTSG != theTSGs.size(); iTSG++) {
39  if (theTSGs[iTSG])
40  theTSGs[iTSG]->setEvent(event);
41  }
42 }
service
Definition: service.py:1
MessageLogger.h
HLT_2018_cff.PSetNames
PSetNames
Definition: HLT_2018_cff.py:44711
TrackerSeedGeneratorFactory.h
beamerCreator.create
def create(alignables, pedeDump, additionalData, outputFile, config)
Definition: beamerCreator.py:44
CompositeTSG::setEvent
void setEvent(const edm::Event &event) override
set the event to the TSGs
Definition: CompositeTSG.cc:36
TrackerSeedGenerator::theEvent
const edm::Event * theEvent
Definition: TrackerSeedGenerator.h:50
CompositeTSG::theNames
std::vector< std::string > theNames
Definition: CompositeTSG.h:40
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition: ParameterSet.h:36
CompositeTSG::theTSGs
std::vector< std::unique_ptr< TrackerSeedGenerator > > theTSGs
Definition: CompositeTSG.h:39
CompositeTSG::init
void init(const MuonServiceProxy *service) override
initialized the TSGs
Definition: CompositeTSG.cc:28
get
#define get
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
CompositeTSG.h
MuonServiceProxy.h
CompositeTSG::~CompositeTSG
~CompositeTSG() override
MuonServiceProxy
Definition: MuonServiceProxy.h:38
CompositeTSG::theCategory
std::string theCategory
Definition: CompositeTSG.h:41
event
Definition: event.py:1
CompositeTSG::CompositeTSG
CompositeTSG(const edm::ParameterSet &pset, edm::ConsumesCollector &IC)
Definition: CompositeTSG.cc:7
edm::Event
Definition: Event.h:73
event
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of "!*" before the partial wildcard feature was incorporated). The per-event "cost" of each negative criterion with multiple relevant triggers is about the same as ! *was in the past
edm::ConsumesCollector
Definition: ConsumesCollector.h:39
edm::ParameterSet::empty
bool empty() const
Definition: ParameterSet.h:190
CompositeTSG::theProxyService
const MuonServiceProxy * theProxyService
Definition: CompositeTSG.h:43