|
void | _throw_range (det_id_type i) |
|
bool | configureEventSelector (edm::ParameterSet const &iPSet, std::string const &iProcessName, std::vector< std::string > const &iAllTriggerNames, edm::detail::TriggerResultsBasedEventSelector &oSelector, ConsumesCollector &&iC) |
|
void | doTheOffset (int bunchSpace, int bcr, std::vector< PCaloHit > &calohits, unsigned int evtNr, int vertexOffset, bool wrap) |
|
void | doTheOffset (int bunchSpace, int bcr, std::vector< PSimHit > &simhits, unsigned int evtNr, int vertexOffset, bool wrap) |
|
void | doTheOffset (int bunchSpace, int bcr, std::vector< SimTrack > &simtracks, unsigned int evtNr, int vertexOffset, bool wrap) |
|
void | doTheOffset (int bunchSpace, int bcr, std::vector< SimVertex > &simvertices, unsigned int evtNr, int vertexOffset, bool wrap) |
|
void | doTheOffset (int bunchSpace, int bcr, TrackingRecHitCollection &trackingrechits, unsigned int evtNr, int vertexOffset, bool wrap) |
|
template<typename T > |
static no_tag | has_isProductEqual (...) |
|
template<typename T > |
static yes_tag | has_isProductEqual (isProductEqual_function< T, &T::isProductEqual > *dummy) |
|
template<typename T > |
static no_tag | has_member_type (...) |
|
template<typename T > |
static yes_tag | has_member_type (typename T::member_type *) |
|
template<typename T > |
static no_tag | has_mergeProduct (...) |
|
template<typename T > |
static yes_tag | has_mergeProduct (mergeProduct_function< T, &T::mergeProduct > *dummy) |
|
template<typename T > |
no_tag | has_postinsert_helper (...) |
|
template<typename T > |
yes_tag | has_postinsert_helper (postinsert_function< T, &T::post_insert > *p) |
|
template<typename T > |
static no_tag | has_swap (...) |
|
template<typename T > |
static yes_tag | has_swap (swap_function< T, &T::swap > *dummy) |
|
template<typename T > |
static no_tag | has_value_type (...) |
|
template<typename T > |
static yes_tag | has_value_type (typename T::value_type *) |
|
std::string const & | InvalidHash () |
|
bool | isnan (double x) |
|
bool | isnan (float x) |
|
bool | isnan (long double x) |
|
template<typename KEY , typename T , typename E > |
std::ostream & | operator<< (std::ostream &os, ThreadSafeRegistry< KEY, T > const ®) |
|
template<typename COLLECTION > |
void | reallyfillPtrVector (COLLECTION const &coll, std::type_info const &iToType, std::vector< unsigned long > const &iIndicies, std::vector< void const * > &oPtr) |
|
template<class COLLECTION > |
void | reallyFillView (COLLECTION const &coll, ProductID const &id, std::vector< void const * > &ptrs, FillViewHelperVector &helpers) |
|
template<typename COLLECTION > |
void | reallySetPtr (COLLECTION const &coll, std::type_info const &iToType, unsigned long iIndex, void const *&oPtr) |
|
ParameterSetID | registerProperSelectionInfo (edm::ParameterSet const &iInitial, std::string const &iLabel, std::map< std::string, std::vector< std::pair< std::string, int > > > const &outputModulePathPositions, bool anyProductProduced) |
|
Handles the final initialization of the TriggerResutsBasedEventSelector
- Returns
- true if all events will be selected
Definition at line 80 of file TriggerResultsBasedEventSelector.cc.
94 std::vector<std::string> path_specs = iPSet.getParameter<std::vector<std::string> >(
"SelectEvents");
96 if (path_specs.empty()) {
103 std::vector<parsed_path_spec_t> parsed_paths(path_specs.size());
104 for (
size_t i = 0;
i < path_specs.size(); ++
i) {
105 parse_path_spec(path_specs[
i], parsed_paths[
i]);
107 oSelector.
setup(parsed_paths, iAllTriggerNames, iProcessName,
std::move(iC));
References edm::ParameterSet::empty(), edm::ParameterSet::getParameter(), mps_fire::i, eostools::move(), edm::detail::TriggerResultsBasedEventSelector::setup(), and edm::detail::TriggerResultsBasedEventSelector::setupDefault().
Referenced by edm::global::OutputModuleBase::doPreallocate(), edm::limited::OutputModuleBase::doPreallocate(), edm::one::OutputModuleBase::doPreallocate(), edm::global::OutputModuleBase::OutputModuleBase(), edm::limited::OutputModuleBase::OutputModuleBase(), edm::one::OutputModuleBase::OutputModuleBase(), and edm::SubProcess::SubProcess().
template<typename COLLECTION >
void edm::detail::reallyfillPtrVector |
( |
COLLECTION const & |
coll, |
|
|
std::type_info const & |
iToType, |
|
|
std::vector< unsigned long > const & |
iIndicies, |
|
|
std::vector< void const * > & |
oPtr |
|
) |
| |
Definition at line 37 of file fillPtrVector.h.
41 typedef COLLECTION product_type;
43 typedef typename product_type::const_iterator iter;
45 oPtr.reserve(iIndicies.size());
46 if (iToType ==
typeid(element_type)) {
47 for (std::vector<unsigned long>::const_iterator itIndex = iIndicies.begin(), itEnd = iIndicies.end();
50 iter it = coll.begin();
51 std::advance(it, *itIndex);
53 oPtr.push_back(address);
56 for (std::vector<unsigned long>::const_iterator itIndex = iIndicies.begin(), itEnd = iIndicies.end();
59 iter it = coll.begin();
60 std::advance(it, *itIndex);
67 "TypeConversionError "
68 "edm::PtrVector<> : unable to convert type ",
69 typeid(element_type).
name(),
References edm::detail::GetProduct< COLLECTION >::address(), edm::errors::LogicError, Skims_PA_cff::name, edm::pointerToBase(), and edm::Exception::throwThis().
Referenced by edm::fillPtrVector(), edm::OwnArray< T, MAX_SIZE, P >::fillPtrVector(), edm::SortedCollection< EcalRecHit >::fillPtrVector(), and edm::OwnVector< TrackingRegion >::fillPtrVector().
ParameterSetID edm::detail::registerProperSelectionInfo |
( |
edm::ParameterSet const & |
iInitial, |
|
|
std::string const & |
iLabel, |
|
|
std::map< std::string, std::vector< std::pair< std::string, int > > > const & |
outputModulePathPositions, |
|
|
bool |
anyProductProduced |
|
) |
| |
Takes the user specified SelectEvents PSet and creates a new one which conforms to the canonical format required for provenance
Definition at line 163 of file TriggerResultsBasedEventSelector.cc.
169 selectEventsInfo.copyForModify(iInitial);
170 selectEventsInfo.addParameter<
bool>(
"InProcessHistory", anyProductProduced);
171 std::vector<std::string> endPaths;
172 std::vector<int> endPathPositions;
176 if (!iLabel.empty()) {
177 std::map<std::string, std::vector<std::pair<std::string, int> > >::const_iterator iter =
178 outputModulePathPositions.find(iLabel);
179 assert(iter != outputModulePathPositions.end());
180 for (
auto const&
item : iter->second) {
181 endPaths.push_back(
item.first);
182 endPathPositions.push_back(
item.second);
185 selectEventsInfo.addParameter<std::vector<std::string> >(
"EndPaths", endPaths);
186 selectEventsInfo.addParameter<std::vector<int> >(
"EndPathPositions", endPathPositions);
187 if (!selectEventsInfo.exists(
"SelectEvents")) {
188 selectEventsInfo.addParameter<std::vector<std::string> >(
"SelectEvents", std::vector<std::string>());
190 selectEventsInfo.registerIt();
192 return selectEventsInfo.id();
References edm::ParameterSet::addParameter(), cms::cuda::assert(), edm::ParameterSet::copyForModify(), edm::ParameterSet::exists(), edm::ParameterSet::id(), B2GTnPMonitor_cfi::item, and edm::ParameterSet::registerIt().
Referenced by edm::one::OutputModuleBase::setEventSelectionInfo(), and edm::SubProcess::SubProcess().