26 void checkHistoryConsistency(Principal
const& primary, Principal
const& secondary) {
27 ProcessHistory
const& ph1 = primary.processHistory();
28 ProcessHistory
const& ph2 = secondary.processHistory();
31 "The secondary file is not an ancestor of the primary file\n";
34 void checkConsistency(EventPrincipal
const& primary, EventPrincipal
const& secondary) {
37 primary.id() <<
" has inconsistent EventAuxiliary data in the primary and secondary file\n";
40 void checkConsistency(LuminosityBlockAuxiliary
const& primary, LuminosityBlockAuxiliary
const& secondary) {
41 if(primary.id() != secondary.id()) {
43 primary.id() <<
" has inconsistent LuminosityBlockAuxiliary data in the primary and secondary file\n";
46 void checkConsistency(RunAuxiliary
const& primary, RunAuxiliary
const& secondary) {
47 if(primary.id() != secondary.id()) {
49 primary.id() <<
" has inconsistent RunAuxiliary data in the primary and secondary file\n";
56 rootServiceChecker_(),
61 secondaryRunPrincipal_(),
62 secondaryLumiPrincipal_(),
63 secondaryEventPrincipal_(secondaryFileSequence_ ? new
EventPrincipal(secondaryFileSequence_->fileProductRegistry(), processConfiguration()) : 0),
64 branchIDsToReplace_(),
65 numberOfEventsBeforeBigSkip_(0) {
71 typedef ProductRegistry::ProductList::const_iterator const_iterator;
72 typedef ProductRegistry::ProductList::iterator iterator;
75 for(const_iterator it = secondary.begin(), itEnd = secondary.end(); it != itEnd; ++it) {
76 if(it->second.present()) {
77 idsToReplace[it->second.branchType()].insert(it->second.branchID());
79 iterator itFound = fullList.find(it->first);
80 if(itFound != fullList.end()) {
81 itFound->second.dropped()=
false;
85 for(const_iterator it = primary.begin(), itEnd = primary.end(); it != itEnd; ++it) {
86 if(it->second.present()) idsToReplace[it->second.branchType()].erase(it->second.branchID());
93 for(std::set<BranchID>::const_iterator it = idsToReplace[
i].
begin(), itEnd = idsToReplace[
i].
end();
111 boost::shared_ptr<FileBlock>
124 boost::shared_ptr<RunAuxiliary>
129 boost::shared_ptr<LuminosityBlockAuxiliary>
134 boost::shared_ptr<RunPrincipal>
141 checkConsistency(primaryPrincipal->aux(), *secondaryAuxiliary);
148 <<
" Run " << primaryPrincipal->run()
149 <<
" is not found in the secondary input files\n";
151 return primaryPrincipal;
156 boost::shared_ptr<LuminosityBlockPrincipal>
159 boost::shared_ptr<LuminosityBlockPrincipal> primaryPrincipal =
primaryFileSequence_->readLuminosityBlock_(lbCache);
162 boost::shared_ptr<LuminosityBlockAuxiliary> secondaryAuxiliary =
secondaryFileSequence_->readLuminosityBlockAuxiliary_();
163 checkConsistency(primaryPrincipal->aux(), *secondaryAuxiliary);
170 <<
" Run " << primaryPrincipal->run()
171 <<
" LuminosityBlock " << primaryPrincipal->luminosityBlock()
172 <<
" is not found in the secondary input files\n";
174 return primaryPrincipal;
186 primaryPrincipal->
id().
event());
189 checkConsistency(*primaryPrincipal, *secondaryPrincipal);
190 checkHistoryConsistency(*primaryPrincipal, *secondaryPrincipal);
196 primaryPrincipal->
id() <<
" is not found in the secondary input files\n";
202 return primaryPrincipal;
217 unsigned long toSkip =
receiver_->numberToSkip();
249 unsigned int numberToSkip =
receiver_->numberToSkip();
250 if(0 != numberToSkip) {
314 descriptions.
add(
"source", desc);
virtual boost::shared_ptr< RunAuxiliary > readRunAuxiliary_()
PoolSource(ParameterSet const &pset, InputSourceDescription const &desc)
EventNumber_t event() const
bool isSameEvent(EventAuxiliary const &a, EventAuxiliary const &b)
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventIDconst &, edm::Timestampconst & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
virtual ProcessingController::ForwardState forwardState_() const
virtual boost::shared_ptr< LuminosityBlockPrincipal > readLuminosityBlock_(boost::shared_ptr< LuminosityBlockPrincipal > lbCache)
virtual bool goToEvent_(EventID const &eventID)
virtual boost::shared_ptr< RunPrincipal > readRun_(boost::shared_ptr< RunPrincipal > rpCache)
std::map< BranchKey, BranchDescription > ProductList
EventID const & id() const
std::unique_ptr< RootInputFileSequence > secondaryFileSequence_
LuminosityBlockNumber_t luminosityBlock() const
virtual EventPrincipal * readOneRandomWithID(LuminosityBlockID const &lumiID)
virtual void dropUnwantedBranches_(std::vector< std::string > const &wantedBranches)
void setComment(std::string const &value)
bool isAncestor(ProcessHistory const &a, ProcessHistory const &b)
virtual bool randomAccess_() const
virtual ProcessingController::ReverseState reverseState_() const
virtual EventPrincipal * readOneRandom()
boost::shared_ptr< RunPrincipal > secondaryRunPrincipal_
virtual EventPrincipal * readOneSequential()
unsigned int numberOfEventsBeforeBigSkip_
virtual EventPrincipal * readEvent_()
std::unique_ptr< EventPrincipal > secondaryEventPrincipal_
void mergeMappers(EventPrincipal const &other)
unsigned int offset(bool)
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
static void fillDescriptions(ConfigurationDescriptions &descriptions)
virtual void postForkReacquireResources(boost::shared_ptr< edm::multicore::MessageReceiverForSource >)
std::array< std::vector< BranchID >, NumBranchTypes > branchIDsToReplace_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
ProductList & productListUpdator()
virtual EventPrincipal * readOneSequentialWithID(LuminosityBlockID const &lumiID)
virtual void closeFile_()
std::unique_ptr< RootInputFileSequence > primaryFileSequence_
virtual EventPrincipal * readOneSpecified(EventID const &id)
boost::shared_ptr< edm::multicore::MessageReceiverForSource > receiver_
virtual ItemType getNextItemType()
virtual void skip(int offset)
boost::shared_ptr< LuminosityBlockPrincipal > secondaryLumiPrincipal_
virtual void preForkReleaseResources()
virtual boost::shared_ptr< FileBlock > readFile_()
virtual EventPrincipal * readIt(EventID const &id)
void recombine(Principal &other, std::vector< BranchID > const &bids)
tuple size
Write out results.
virtual boost::shared_ptr< LuminosityBlockAuxiliary > readLuminosityBlockAuxiliary_()