Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a StreamContext to the Pre/PostSource signals #1575

Merged
merged 1 commit into from Nov 27, 2013

Conversation

fwyzard
Copy link
Contributor

@fwyzard fwyzard commented Nov 24, 2013

  • fill the StreamContext in the Eventprocessor before reading the Event
  • pass the StreamContext to the Pre/PostSource signals
  • drop the EventSourceProxy, and call the Pre/PostSource signals explicitly from the InputSource
  • adapt all services to the change in the signals

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @fwyzard (Andrea Bocci) for CMSSW_7_0_X.

add a StreamContext to the Pre/PostSource signals

It involves the following packages:

IOPool/Input
FWCore/Sources
FWCore/MessageService
FWCore/ServiceRegistry
FWCore/Framework
EventFilter/Utilities
FWCore/Integration
GeneratorInterface/LHEInterface
HLTrigger/Timer
IOPool/Streamer
FWCore/Services

@vciulli, @perrotta, @Dr15Jones, @emeschi, @Martin-Grunewald, @cmsbuild, @nclopezo, @fwyzard, @mommsen, @ktf can you please review it and eventually sign? Thanks.
@wmtan this is something you requested to watch as well.
You can sign-off by replying to this message having '+1' in the first line of your reply.
You can reject by replying to this message having '-1' in the first line of your reply.
@ktf you are the release manager for this.

@fwyzard
Copy link
Contributor Author

fwyzard commented Nov 24, 2013

@cmsbuild
Copy link
Contributor

Pull request #1575 was updated. @vciulli, @perrotta, @Dr15Jones, @emeschi, @Martin-Grunewald, @cmsbuild, @nclopezo, @fwyzard, @mommsen, @ktf can you please check and sign again.

@perrotta
Copy link
Contributor

-1

It does not build in CMSSW_7_0_X_2013-11-25-0200

cmsrel CMSSW_7_0_X_2013-11-25-0200
cd CMSSW_7_0_X_2013-11-25-0200/src
cmsenv
git cms-merge-topic 1575
git cms-checkdeps
scram b

Error messages are different when trying to build in a plain CMSSW_7_0_X_2013-11-25-0200 IB [1], or when trying to build on top of PR 1566 [2]

Andrea

[1]

Compiling edm plugin /tmp/aperrott/CMSSW_7_0_X_2013-11-25-0200/src/DataFormats/Math/test/WriteMath.cc
In file included from /tmp/aperrott/CMSSW_7_0_X_2013-11-25-0200/src/DataFormats/Math/interface/SIMDVec.h:51:0,
from /tmp/aperrott/CMSSW_7_0_X_2013-11-25-0200/src/DataFormats/GeometrySurface/interface/TkRotation.h:5,
from /tmp/aperrott/CMSSW_7_0_X_2013-11-25-0200/src/DataFormats/GeometrySurface/test/FrameTransformTest.cpp:2:
/tmp/aperrott/CMSSW_7_0_X_2013-11-25-0200/src/DataFormats/Math/interface/ExtVec.h: In function 'typename std::remove_reference<decltype (x[0])>::type dot(V, V) [with V = __vector(4) double; typename std::remove_reference<decltype (x[0])>::type = double]':
/tmp/aperrott/CMSSW_7_0_X_2013-11-25-0200/src/DataFormats/Math/interface/ExtVec.h:101:6: note: The ABI for passing parameters with 32-byte alignment has changed in GCC 4.6
auto dot(V x, V y) ->typename std::remove_reference<decltype(x[0])>::type {
^
Compiling edm plugin /tmp/aperrott/CMSSW_7_0_X_2013-11-25-0200/src/DataFormats/Math/test/SealModule.cc
In file included from /tmp/aperrott/CMSSW_7_0_X_2013-11-25-0200/src/DataFormats/Math/test/ExtVec_t.cpp:4:0:
/tmp/aperrott/CMSSW_7_0_X_2013-11-25-0200/src/DataFormats/Math/interface/ExtVec.h: In function 'Vec apply(Vec, F) [with Vec = __vector(4) double; F = go() [with T = double]::__lambda1]':
/tmp/aperrott/CMSSW_7_0_X_2013-11-25-0200/src/DataFormats/Math/interface/ExtVec.h:44:5: note: The ABI for passing parameters with 32-byte alignment has changed in GCC 4.6
Vec apply(Vec v, F f) {
^
Entering library rule at src/DataFormats/FEDRawData/test
Entering library rule at src/DataFormats/HcalDigi/test
Entering library rule at IOMC/RandomEngine
Compiling /tmp/aperrott/CMSSW_7_0_X_2013-11-25-0200/src/IOMC/RandomEngine/bin/testRandomNumberGenerators.cpp
Entering library rule at IOMC/ParticleGuns
Entering library rule at src/IOMC/RandomEngine/test
Entering library rule at src/IOMC/EventVertexGenerators/test
Entering library rule at src/IOMC/EventVertexGenerators/test
Entering library rule at IOMC/Input
In file included from /afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/external/boost/1.51.0-cms/include/boost/bind.hpp:22:0,
from /afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/cms/cmssw/CMSSW_7_0_X_2013-11-25-0200/src/FWCore/ParameterSet/interface/ParameterSwitch.h:13,
from /afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/cms/cmssw/CMSSW_7_0_X_2013-11-25-0200/src/FWCore/ParameterSet/interface/ParameterSetDescription.h:412,
from /afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/cms/cmssw/CMSSW_7_0_X_2013-11-25-0200/src/FWCore/ParameterSet/interface/ParameterSetDescriptionFiller.h:26,
from /afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/cms/cmssw/CMSSW_7_0_X_2013-11-25-0200/src/FWCore/ParameterSet/interface/ParameterSetDescriptionFillerPluginFactory.h:25,
from /tmp/aperrott/CMSSW_7_0_X_2013-11-25-0200/src/FWCore/ServiceRegistry/interface/ServiceMaker.h:22,
from /tmp/aperrott/CMSSW_7_0_X_2013-11-25-0200/src/DataFormats/GeometrySurface/plugins/BlockWipedAllocatorService.cc:2:
/afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/external/boost/1.51.0-cms/include/boost/bind/bind.hpp: In instantiation of 'void boost::_bi::list2<A1, A2>::operator()(boost::_bi::type, F&, A&, int) [with F = boost::_mfi::mf0<void, BlockWipedAllocatorService>; A = boost::_bi::list1<const edm::StreamContext&>; A1 = boost::_bi::value<BlockWipedAllocatorService*>; A2 = boost::arg<1>]':
/afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/external/boost/1.51.0-cms/include/boost/bind/bind_template.hpp:47:59: required from 'boost::_bi::bind_t<R, F, L>::result_type boost::_bi::bind_t<R, F, L>::operator()(const A1&) [with A1 = edm::StreamContext; R = boost::_bi::unspecified; F = boost::_mfi::mf0<void, BlockWipedAllocatorService>; L = boost::_bi::list2boost::_bi::value<BlockWipedAllocatorService*, boost::arg<1> >; boost::_bi::bind_t<R, F, L>::result_type = void]'
/afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/external/gcc/4.8.1/include/c++/4.8.1/functional:2071:3: required from 'static void std::_Function_handler<void(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes ...) [with _Functor = boost::_bi::bind_t<boost::_bi::unspecified, boost::_mfi::mf0<void, BlockWipedAllocatorService>, boost::_bi::list2boost::_bi::value<BlockWipedAllocatorService*, boost::arg<1> > >; _ArgTypes = {const edm::StreamContext&}]'
/afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/external/gcc/4.8.1/include/c++/4.8.1/functional:2456:19: required from 'std::function<_Res(_ArgTypes ...)>::function(_Functor) [with _Functor = boost::_bi::bind_t<boost::_bi::unspecified, boost::_mfi::mf0<void, BlockWipedAllocatorService>, boost::bi::list2boost::bi::value<BlockWipedAllocatorService*, boost::arg<1> > >; = void; Res = void; ArgTypes = {const edm::StreamContext&}]'
/tmp/aperrott/CMSSW_7_0_X_2013-11-25-0200/src/FWCore/ServiceRegistry/interface/ActivityRegistry.h:110:7: required from 'void edm::ActivityRegistry::watchPreSource(TClass
, TMethod) [with TClass = BlockWipedAllocatorService; TMethod = void (BlockWipedAllocatorService::
)()]'
/tmp/aperrott/CMSSW_7_0_X_2013-11-25-0200/src/DataFormats/GeometrySurface/plugins/BlockWipedAllocatorService.cc:53:67: required from here
/afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/external/boost/1.51.0-cms/include/boost/bind/bind.hpp:313:34: error: no match for call to '(boost::mfi::mf0<void, BlockWipedAllocatorService>) (BlockWipedAllocatorService*&, const edm::StreamContext&)'
unwrapper::unwrap(f, 0)(a[base_type::a1
], a[base_type::a2
]);
^
In file included from /afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/external/boost/1.51.0-cms/include/boost/mem_fn.hpp:22:0,
from /afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/external/boost/1.51.0-cms/include/boost/bind/bind.hpp:26,
from /afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/external/boost/1.51.0-cms/include/boost/bind.hpp:22,
from /afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/cms/cmssw/CMSSW_7_0_X_2013-11-25-0200/src/FWCore/ParameterSet/interface/ParameterSwitch.h:13,
from /afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/cms/cmssw/CMSSW_7_0_X_2013-11-25-0200/src/FWCore/ParameterSet/interface/ParameterSetDescription.h:412,
from /afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/cms/cmssw/CMSSW_7_0_X_2013-11-25-0200/src/FWCore/ParameterSet/interface/ParameterSetDescriptionFiller.h:26,
from /afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/cms/cmssw/CMSSW_7_0_X_2013-11-25-0200/src/FWCore/ParameterSet/interface/ParameterSetDescriptionFillerPluginFactory.h:25,
from /tmp/aperrott/CMSSW_7_0_X_2013-11-25-0200/src/FWCore/ServiceRegistry/interface/ServiceMaker.h:22,
from /tmp/aperrott/CMSSW_7_0_X_2013-11-25-0200/src/DataFormats/GeometrySurface/plugins/BlockWipedAllocatorService.cc:2:
/afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/external/boost/1.51.0-cms/include/boost/bind/mem_fn_template.hpp:21:73: note: candidates are:
template<class R, class T BOOST_MEM_FN_CLASS_F> class BOOST_MEM_FN_NAME(mf0)
^
/afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/external/boost/1.51.0-cms/include/boost/bind/mem_fn.hpp:212:30: note: in definition of macro 'BOOST_MEM_FN_NAME'
#define BOOST_MEM_FN_NAME(X) X
^
In file included from /afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/external/boost/1.51.0-cms/include/boost/bind/mem_fn.hpp:215:0,
from /afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/external/boost/1.51.0-cms/include/boost/mem_fn.hpp:22,
from /afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/external/boost/1.51.0-cms/include/boost/bind/bind.hpp:26,
from /afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/external/boost/1.51.0-cms/include/boost/bind.hpp:22,
from /afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/cms/cmssw/CMSSW_7_0_X_2013-11-25-0200/src/FWCore/ParameterSet/interface/ParameterSwitch.h:13,
from /afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/cms/cmssw/CMSSW_7_0_X_2013-11-25-0200/src/FWCore/ParameterSet/interface/ParameterSetDescription.h:412,
from /afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/cms/cmssw/CMSSW_7_0_X_2013-11-25-0200/src/FWCore/ParameterSet/interface/ParameterSetDescriptionFiller.h:26,
from /afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/cms/cmssw/CMSSW_7_0_X_2013-11-25-0200/src/FWCore/ParameterSet/interface/ParameterSetDescriptionFillerPluginFactory.h:25,
from /tmp/aperrott/CMSSW_7_0_X_2013-11-25-0200/src/FWCore/ServiceRegistry/interface/ServiceMaker.h:22,
from /tmp/aperrott/CMSSW_7_0_X_2013-11-25-0200/src/DataFormats/GeometrySurface/plugins/BlockWipedAllocatorService.cc:2:
/afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/external/boost/1.51.0-cms/include/boost/bind/mem_fn_template.hpp:47:7: note: R boost::mfi::mf0<R, T>::operator()(T*) const [with R = void; T = BlockWipedAllocatorService]
R operator()(T * p) const
^
/afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/external/boost/1.51.0-cms/include/boost/bind/mem_fn_template.hpp:47:7: note: candidate expects 1 argument, 2 provided
/afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/external/boost/1.51.0-cms/include/boost/bind/mem_fn_template.hpp:52:25: note: template R boost::mfi::mf0<R, T>::operator()(U&) const [with U = U; R = void; T = BlockWipedAllocatorService]
template R operator()(U & u) const
^
/afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/external/boost/1.51.0-cms/include/boost/bind/mem_fn_template.hpp:52:25: note: template argument deduction/substitution failed:
In file included from /afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/external/boost/1.51.0-cms/include/boost/bind.hpp:22:0,
from /afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/cms/cmssw/CMSSW_7_0_X_2013-11-25-0200/src/FWCore/ParameterSet/interface/ParameterSwitch.h:13,
from /afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/cms/cmssw/CMSSW_7_0_X_2013-11-25-0200/src/FWCore/ParameterSet/interface/ParameterSetDescription.h:412,
from /afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/cms/cmssw/CMSSW_7_0_X_2013-11-25-0200/src/FWCore/ParameterSet/interface/ParameterSetDescriptionFiller.h:26,
from /afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/cms/cmssw/CMSSW_7_0_X_2013-11-25-0200/src/FWCore/ParameterSet/interface/ParameterSetDescriptionFillerPluginFactory.h:25,
from /tmp/aperrott/CMSSW_7_0_X_2013-11-25-0200/src/FWCore/ServiceRegistry/interface/ServiceMaker.h:22,
from /tmp/aperrott/CMSSW_7_0_X_2013-11-25-0200/src/DataFormats/GeometrySurface/plugins/BlockWipedAllocatorService.cc:2:
/afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/external/boost/1.51.0-cms/include/boost/bind/bind.hpp:313:34: note: candidate expects 1 argument, 2 provided
unwrapper::unwrap(f, 0)(a[base_type::a1
], a[base_type::a2
]);
^
In file included from /afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/external/boost/1.51.0-cms/include/boost/bind/mem_fn.hpp:215:0,
from /afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/external/boost/1.51.0-cms/include/boost/mem_fn.hpp:22,
from /afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/external/boost/1.51.0-cms/include/boost/bind/bind.hpp:26,
from /afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/external/boost/1.51.0-cms/include/boost/bind.hpp:22,
from /afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/cms/cmssw/CMSSW_7_0_X_2013-11-25-0200/src/FWCore/ParameterSet/interface/ParameterSwitch.h:13,
from /afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/cms/cmssw/CMSSW_7_0_X_2013-11-25-0200/src/FWCore/ParameterSet/interface/ParameterSetDescription.h:412,
from /afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/cms/cmssw/CMSSW_7_0_X_2013-11-25-0200/src/FWCore/ParameterSet/interface/ParameterSetDescriptionFiller.h:26,
from /afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/cms/cmssw/CMSSW_7_0_X_2013-11-25-0200/src/FWCore/ParameterSet/interface/ParameterSetDescriptionFillerPluginFactory.h:25,
from /tmp/aperrott/CMSSW_7_0_X_2013-11-25-0200/src/FWCore/ServiceRegistry/interface/ServiceMaker.h:22,
from /tmp/aperrott/CMSSW_7_0_X_2013-11-25-0200/src/DataFormats/GeometrySurface/plugins/BlockWipedAllocatorService.cc:2:
/afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/external/boost/1.51.0-cms/include/boost/bind/mem_fn_template.hpp:60:25: note: template R boost::mfi::mf0<R, T>::operator()(const U&) const [with U = U; R = void; T = BlockWipedAllocatorService]
template R operator()(U const & u) const
^
/afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/external/boost/1.51.0-cms/include/boost/bind/mem_fn_template.hpp:60:25: note: template argument deduction/substitution failed:
In file included from /afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/external/boost/1.51.0-cms/include/boost/bind.hpp:22:0,
from /afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/cms/cmssw/CMSSW_7_0_X_2013-11-25-0200/src/FWCore/ParameterSet/interface/ParameterSwitch.h:13,
from /afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/cms/cmssw/CMSSW_7_0_X_2013-11-25-0200/src/FWCore/ParameterSet/interface/ParameterSetDescription.h:412,
from /afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/cms/cmssw/CMSSW_7_0_X_2013-11-25-0200/src/FWCore/ParameterSet/interface/ParameterSetDescriptionFiller.h:26,
from /afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/cms/cmssw/CMSSW_7_0_X_2013-11-25-0200/src/FWCore/ParameterSet/interface/ParameterSetDescriptionFillerPluginFactory.h:25,
from /tmp/aperrott/CMSSW_7_0_X_2013-11-25-0200/src/FWCore/ServiceRegistry/interface/ServiceMaker.h:22,
from /tmp/aperrott/CMSSW_7_0_X_2013-11-25-0200/src/DataFormats/GeometrySurface/plugins/BlockWipedAllocatorService.cc:2:
/afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/external/boost/1.51.0-cms/include/boost/bind/bind.hpp:313:34: note: candidate expects 1 argument, 2 provided
unwrapper::unwrap(f, 0)(a[base_type::a1
], a[base_type::a2]);
^
In file included from /afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/external/boost/1.51.0-cms/include/boost/bind/mem_fn.hpp:215:0,
from /afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/external/boost/1.51.0-cms/include/boost/mem_fn.hpp:22,
from /afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/external/boost/1.51.0-cms/include/boost/bind/bind.hpp:26,
from /afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/external/boost/1.51.0-cms/include/boost/bind.hpp:22,
from /afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/cms/cmssw/CMSSW_7_0_X_2013-11-25-0200/src/FWCore/ParameterSet/interface/ParameterSwitch.h:13,
from /afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/cms/cmssw/CMSSW_7_0_X_2013-11-25-0200/src/FWCore/ParameterSet/interface/ParameterSetDescription.h:412,
from /afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/cms/cmssw/CMSSW_7_0_X_2013-11-25-0200/src/FWCore/ParameterSet/interface/ParameterSetDescriptionFiller.h:26,
from /afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/cms/cmssw/CMSSW_7_0_X_2013-11-25-0200/src/FWCore/ParameterSet/interface/ParameterSetDescriptionFillerPluginFactory.h:25,
from /tmp/aperrott/CMSSW_7_0_X_2013-11-25-0200/src/FWCore/ServiceRegistry/interface/ServiceMaker.h:22,
from /tmp/aperrott/CMSSW_7_0_X_2013-11-25-0200/src/DataFormats/GeometrySurface/plugins/BlockWipedAllocatorService.cc:2:
/afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/external/boost/1.51.0-cms/include/boost/bind/mem_fn_template.hpp:68:7: note: R boost::_mfi::mf0<R, T>::operator()(T&) const [with R = void; T = BlockWipedAllocatorService]
R operator()(T & t) const
^
/afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/external/boost/1.51.0-cms/include/boost/bind/mem_fn_template.hpp:68:7: note: candidate expects 1 argument, 2 provided

[2]

Compiling /tmp/aperrott/CMSSW_7_0_X_2013-11-24-0200/src/L1Trigger/GlobalTriggerAnalyzer/src/L1RetrieveL1Extra.cc
/tmp/aperrott/CMSSW_7_0_X_2013-11-24-0200/src/DQMServices/Core/src/DQMService.cc: In constructor 'DQMService::DQMService(const edm::ParameterSet&, edm::ActivityRegistry&)':
/tmp/aperrott/CMSSW_7_0_X_2013-11-24-0200/src/DQMServices/Core/src/DQMService.cc:56:39: error: no matching function for call to 'edm::ActivityRegistry::watchPreSource(void ()())'
ar.watchPreSource(&restrictDQMAccess);
^
/tmp/aperrott/CMSSW_7_0_X_2013-11-24-0200/src/DQMServices/Core/src/DQMService.cc:56:39: note: candidates are:
In file included from /tmp/aperrott/CMSSW_7_0_X_2013-11-24-0200/src/DQMServices/Core/src/DQMService.h:6:0,
from /tmp/aperrott/CMSSW_7_0_X_2013-11-24-0200/src/DQMServices/Core/src/DQMService.cc:2:
/tmp/aperrott/CMSSW_7_0_X_2013-11-24-0200/src/FWCore/ServiceRegistry/interface/ActivityRegistry.h:107:12: note: void edm::ActivityRegistry::watchPreSource(const slot_type&)
void watchPreSource(PreSource::slot_type const& iSlot) {
^
/tmp/aperrott/CMSSW_7_0_X_2013-11-24-0200/src/FWCore/ServiceRegistry/interface/ActivityRegistry.h:107:12: note: no known conversion for argument 1 from 'void (
)()' to 'const slot_type& {aka const std::function<void(const edm::StreamContext&)>&}'
/tmp/aperrott/CMSSW_7_0_X_2013-11-24-0200/src/FWCore/ServiceRegistry/interface/ActivityRegistry.h:110:31: note: template<class TClass, class TMethod> void edm::ActivityRegistry::watchPreSource(TClass_, TMethod)
AR_WATCH_USING_METHOD_1(watchPreSource)
^
/tmp/aperrott/CMSSW_7_0_X_2013-11-24-0200/src/FWCore/ServiceRegistry/interface/ActivityRegistry.h:41:84: note: in definition of macro 'AR_WATCH_USING_METHOD_1'
#define AR_WATCH_USING_METHOD_1(method) template<class TClass, class TMethod> void method (TClass_ iObject, TMethod iMethod) { method (boost::bind(boost::mem_fn(iMethod), iObject, 1)); }
^
/tmp/aperrott/CMSSW_7_0_X_2013-11-24-0200/src/FWCore/ServiceRegistry/interface/ActivityRegistry.h:110:31: note: template argument deduction/substitution failed:
AR_WATCH_USING_METHOD_1(watchPreSource)
^
/tmp/aperrott/CMSSW_7_0_X_2013-11-24-0200/src/FWCore/ServiceRegistry/interface/ActivityRegistry.h:41:84: note: in definition of macro 'AR_WATCH_USING_METHOD_1'
#define AR_WATCH_USING_METHOD_1(method) template<class TClass, class TMethod> void method (TClass* iObject, TMethod iMethod) { method (boost::bind(boost::mem_fn(iMethod), iObject, 1)); }
^
/tmp/aperrott/CMSSW_7_0_X_2013-11-24-0200/src/DQMServices/Core/src/DQMService.cc:56:39: note: candidate expects 2 arguments, 1 provided
ar.watchPreSource(&restrictDQMAccess);
^
/tmp/aperrott/CMSSW_7_0_X_2013-11-24-0200/src/DQMServices/Core/src/DQMService.cc:57:39: error: no matching function for call to 'edm::ActivityRegistry::watchPostSource(void (
)())'
ar.watchPostSource(&releaseDQMAccess);
^
/tmp/aperrott/CMSSW_7_0_X_2013-11-24-0200/src/DQMServices/Core/src/DQMService.cc:57:39: note: candidates are:
In file included from /tmp/aperrott/CMSSW_7_0_X_2013-11-24-0200/src/DQMServices/Core/src/DQMService.h:6:0,
from /tmp/aperrott/CMSSW_7_0_X_2013-11-24-0200/src/DQMServices/Core/src/DQMService.cc:2:
/tmp/aperrott/CMSSW_7_0_X_2013-11-24-0200/src/FWCore/ServiceRegistry/interface/ActivityRegistry.h:115:12: note: void edm::ActivityRegistry::watchPostSource(const slot_type&)
void watchPostSource(PostSource::slot_type const& iSlot) {
^
/tmp/aperrott/CMSSW_7_0_X_2013-11-24-0200/src/FWCore/ServiceRegistry/interface/ActivityRegistry.h:115:12: note: no known conversion for argument 1 from 'void (
)()' to 'const slot_type& {aka const std::function<void(const edm::StreamContext&)>&}'
/tmp/aperrott/CMSSW_7_0_X_2013-11-24-0200/src/FWCore/ServiceRegistry/interface/ActivityRegistry.h:118:31: note: template<class TClass, class TMethod> void edm::ActivityRegistry::watchPostSource(TClass_, TMethod)
AR_WATCH_USING_METHOD_1(watchPostSource)
^
/tmp/aperrott/CMSSW_7_0_X_2013-11-24-0200/src/FWCore/ServiceRegistry/interface/ActivityRegistry.h:41:84: note: in definition of macro 'AR_WATCH_USING_METHOD_1'
#define AR_WATCH_USING_METHOD_1(method) template<class TClass, class TMethod> void method (TClass_ iObject, TMethod iMethod) { method (boost::bind(boost::mem_fn(iMethod), iObject, _1)); }
^
/tmp/aperrott/CMSSW_7_0_X_2013-11-24-0200/src/FWCore/ServiceRegistry/interface/ActivityRegistry.h:118:31: note: template argument deduction/substitution failed:
AR_WATCH_USING_METHOD_1(watchPostSource)
^
/tmp/aperrott/CMSSW_7_0_X_2013-11-24-0200/src/FWCore/ServiceRegistry/interface/ActivityRegistry.h:41:84: note: in definition of macro 'AR_WATCH_USING_METHOD_1'
#define AR_WATCH_USING_METHOD_1(method) template<class TClass, class TMethod> void method (TClass* iObject, TMethod iMethod) { method (boost::bind(boost::mem_fn(iMethod), iObject, _1)); }
^
/tmp/aperrott/CMSSW_7_0_X_2013-11-24-0200/src/DQMServices/Core/src/DQMService.cc:57:39: note: candidate expects 2 arguments, 1 provided
ar.watchPostSource(&releaseDQMAccess);
^
Compiling edm plugin /tmp/aperrott/CMSSW_7_0_X_2013-11-24-0200/src/DQMServices/ClientConfig/plugins/DQMGenericClient.cc
Compiling edm plugin /tmp/aperrott/CMSSW_7_0_X_2013-11-24-0200/src/DQMServices/ClientConfig/plugins/SealModule.cc
Compiling edm plugin /tmp/aperrott/CMSSW_7_0_X_2013-11-24-0200/src/MagneticField/ParametrizedEngine/test/MagneticFieldPlotter.cc
Compiling edm plugin /tmp/aperrott/CMSSW_7_0_X_2013-11-24-0200/src/HLTrigger/special/test/ArbitraryLogError.cc
Compiling edm plugin /tmp/aperrott/CMSSW_7_0_X_2013-11-24-0200/src/HLTrigger/Timer/plugins/FastTimerFilter.cc
Compiling edm plugin /tmp/aperrott/CMSSW_7_0_X_2013-11-24-0200/src/HLTrigger/Timer/plugins/FastTimerServiceClient.cc
Compiling edm plugin /tmp/aperrott/CMSSW_7_0_X_2013-11-24-0200/src/HLTrigger/Timer/plugins/plugins.cc
Compiling /tmp/aperrott/CMSSW_7_0_X_2013-11-24-0200/src/HLTrigger/Timer/src/FastTimerService.cc
Compiling /tmp/aperrott/CMSSW_7_0_X_2013-11-24-0200/src/HLTrigger/Timer/src/Timer.cc
gmake: *** [tmp/slc5_amd64_gcc481/src/DQMServices/Core/src/DQMServicesCore/DQMService.o] Error 1
gmake: *** Waiting for unfinished jobs....
Compiling /tmp/aperrott/CMSSW_7_0_X_2013-11-24-0200/src/HLTrigger/Timer/src/TimerService.cc
1265.900u 166.150s 5:43.39 417.0% 0+0k 0+0io 26151pf+0w

@cmsbuild
Copy link
Contributor

-1
I found an error when building:

/afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/external/boost/1.51.0-cms/include/boost/bind/bind_template.hpp:47:59:   required from 'boost::_bi::bind_t::result_type boost::_bi::bind_t::operator()(const A1&) [with A1 = edm::StreamContext; R = boost::_bi::unspecified; F = boost::_mfi::mf0; L = boost::_bi::list2boost::_bi::value >; boost::_bi::bind_t::result_type = void]'
/afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/external/gcc/4.8.1/include/c++/4.8.1/functional:2071:3:   required from 'static void std::_Function_handler::_M_invoke(const std::_Any_data&, _ArgTypes ...) [with _Functor = boost::_bi::bind_t, boost::_bi::list2boost::_bi::value > >; _ArgTypes = {const edm::StreamContext&}]'
/afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/external/gcc/4.8.1/include/c++/4.8.1/functional:2456:19:   required from 'std::function<_Res(_ArgTypes ...)>::function(_Functor) [with _Functor = boost::_bi::bind_t, boost::_bi::list2boost::_bi::value > >;  = void; _Res = void; _ArgTypes = {const edm::StreamContext&}]'
/build/cmsbuild/jenkins-workarea/workspace/Pull-Request-Integration/ARCHITECTURE/slc5_amd64_gcc481/CMSSW_7_0_X_2013-11-25-0200/src/FWCore/ServiceRegistry/interface/ActivityRegistry.h:118:7:   required from 'void edm::ActivityRegistry::watchPostSource(TClass_, TMethod) [with TClass = ProfilerService; TMethod = void (ProfilerService::_)()]'
/build/cmsbuild/jenkins-workarea/workspace/Pull-Request-Integration/ARCHITECTURE/slc5_amd64_gcc481/CMSSW_7_0_X_2013-11-25-0200/src/PerfTools/Callgrind/src/ProfilerService.cc:32:63:   required from here
/afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/external/boost/1.51.0-cms/include/boost/bind/bind.hpp:313:34: error: no match for call to '(boost::_mfi::mf0) (ProfilerService*&, const edm::StreamContext&)'
         unwrapper::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_]);
                                  ^
In file included from /afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/external/boost/1.51.0-cms/include/boost/mem_fn.hpp:22:0,
                 from /afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/external/boost/1.51.0-cms/include/boost/bind/bind.hpp:26,
                 from /afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc481/external/boost/1.51.0-cms/include/boost/bind.hpp:22,


you can see the results of the tests here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/1453/summary.html

@cmsbuild
Copy link
Contributor

Pull request #1575 was updated. @vciulli, @perrotta, @civanch, @Dr15Jones, @giamman, @danduggan, @emeschi, @mdhildreth, @Martin-Grunewald, @cmsbuild, @nclopezo, @rovere, @deguio, @fwyzard, @mommsen, @eliasron, @ktf can you please check and sign again.

@fwyzard
Copy link
Contributor Author

fwyzard commented Nov 25, 2013

Hi,
well, I did not mean to have this integrated until the framework people had had a look - anyway, I've fixed the errors, adapting the interface to the services in
DQMServices/Core/src/DQMService.cc
DataFormats/GeometrySurface/plugins/BlockWipedAllocatorService.cc
PerfTools/Callgrind/interface/ProfilerService.h

By the way, WHY do we have a Service under DataFormats ?

@fwyzard
Copy link
Contributor Author

fwyzard commented Nov 25, 2013

-1

/me should study C++ a bit better, calling a destructor explicitly is a Bad™ idea.

@fwyzard fwyzard closed this Nov 25, 2013
@ktf ktf reopened this Nov 25, 2013
@fwyzard
Copy link
Contributor Author

fwyzard commented Nov 25, 2013

OK, I've fixed the call-the-destructor-twice bug, and rebased the pull request to clean up the git history

@cmsbuild
Copy link
Contributor

Pull request #1575 was updated. @vciulli, @perrotta, @civanch, @Dr15Jones, @giamman, @danduggan, @emeschi, @mdhildreth, @Martin-Grunewald, @cmsbuild, @nclopezo, @rovere, @deguio, @fwyzard, @mommsen, @eliasron, @ktf can you please check and sign again.

@fwyzard
Copy link
Contributor Author

fwyzard commented Nov 25, 2013

+1

@@ -102,20 +102,20 @@
AR_WATCH_USING_METHOD_0(watchJobFailure)

/// signal is emitted before the source starts creating an Event
typedef signalslot::Signal<void()> PreSource;
typedef signalslot::Signal<void(StreamContext const&)> PreSource;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PreSourceEvent better matches the naming convention for the new signals

@cmsbuild
Copy link
Contributor

Pull request #1575 was updated. @vciulli, @perrotta, @civanch, @Dr15Jones, @giamman, @danduggan, @emeschi, @mdhildreth, @Martin-Grunewald, @cmsbuild, @nclopezo, @rovere, @deguio, @fwyzard, @mommsen, @eliasron, @ktf can you please check and sign again.

1 similar comment
@cmsbuild
Copy link
Contributor

Pull request #1575 was updated. @vciulli, @perrotta, @civanch, @Dr15Jones, @giamman, @danduggan, @emeschi, @mdhildreth, @Martin-Grunewald, @cmsbuild, @nclopezo, @rovere, @deguio, @fwyzard, @mommsen, @eliasron, @ktf can you please check and sign again.

…PostSourceEvent

 - modify the EventSourceProxy to pass the StreamID to the Pre/PostSource signals
 - rename the signals to Pre/PostSourceEvent (to be consistent with Pre/PostModuleEvent, etc.)
 - adapt all services to the change in the signals
@fwyzard
Copy link
Contributor Author

fwyzard commented Nov 26, 2013

rebased after some exchanges with Chris:

  • the signals now pass only a StreamID, not a full StreamContext, as it is not clear if the content of the SC would be correct
  • if readEvent asks for a specific event id, the signals are emitted only if the event is found
  • the signals have been renamed to Pre/PostSourceEvent
  • all Services have been updated to use the modified signals

@cmsbuild
Copy link
Contributor

Pull request #1575 was updated. @vciulli, @perrotta, @civanch, @Dr15Jones, @giamman, @danduggan, @emeschi, @mdhildreth, @Martin-Grunewald, @cmsbuild, @nclopezo, @rovere, @deguio, @fwyzard, @mommsen, @eliasron, @ktf can you please check and sign again.

@Dr15Jones
Copy link
Contributor

+1

1 similar comment
@fwyzard
Copy link
Contributor Author

fwyzard commented Nov 26, 2013

+1

@cmsbuild
Copy link
Contributor

-1
I ran the usual tests and I found errors in the following unit tests:

---> test testUtilitiesRFIOAdaptor had ERRORS
---> test testUtilitiesStorageFactory had ERRORS
---> test runtestTqafTopEventSelection had ERRORS

you can see the results of the tests here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/1474/summary.html

@fwyzard
Copy link
Contributor Author

fwyzard commented Nov 26, 2013

I'm not fully sure, but I think the errors are unrelated ?

.A

On 26 November 2013 12:19, cmsbuild notifications@github.com wrote:

-1
I ran the usual tests and I found errors in the following unit tests:

---> test testUtilitiesRFIOAdaptor had ERRORS
---> test testUtilitiesStorageFactory had ERRORS
---> test runtestTqafTopEventSelection had ERRORS

you can see the results of the tests here:

https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/1474/summary.html


Reply to this email directly or view it on GitHubhttps://github.com//pull/1575#issuecomment-29284542
.

@ktf
Copy link
Contributor

ktf commented Nov 26, 2013

runtestTqafTopEventSelection, yes. The others I'm not sure.

@fwyzard
Copy link
Contributor Author

fwyzard commented Nov 27, 2013

Ciao,
I've rebuilt all dependencies and rerun the tests, they have all succeeded so far:

Package Utilities/StorageFactory: Running test testUtilitiesStorageFactory

===== Test "testUtilitiesStorageFactory" ====
argument 0: testUtilitiesStorageFactory
argument 1: /bin/bash
argument 2: Utilities/StorageFactory/test
argument 3: run_StorageFactoryTests.sh
...
status = 0

^^^^ End Test testUtilitiesStorageFactory ^^^^

Package Utilities/RFIOAdaptor: Running test testUtilitiesRFIOAdaptor

===== Test "testUtilitiesRFIOAdaptor" ====
argument 0: testUtilitiesRFIOAdaptor
argument 1: /bin/bash
argument 2: Utilities/RFIOAdaptor/test
argument 3: run_RFIOAdaptorTests.sh
...
status = 0

^^^^ End Test testUtilitiesRFIOAdaptor ^^^^

Package TopQuarkAnalysis/TopEventSelection: Running test runtestTqafTopEventSelection

===== Test "runtestTqafTopEventSelection" ====
argument 0: runtestTqafTopEventSelection
argument 1: /bin/bash
argument 2: TopQuarkAnalysis/TopEventSelection/test
argument 3: runtests.sh
...
status = 0

^^^^ End Test runtestTqafTopEventSelection ^^^^

.A

@Martin-Grunewald
Copy link
Contributor

+1

1 similar comment
@mommsen
Copy link
Contributor

mommsen commented Nov 27, 2013

+1

@fwyzard
Copy link
Contributor Author

fwyzard commented Nov 27, 2013

generators, simulation and dqm, could you have a look and sign this ?

@ktf
Copy link
Contributor

ktf commented Nov 27, 2013

Bypassing signatures. Complain if not ok.

ktf added a commit that referenced this pull request Nov 27, 2013
…urce

Multithreading fixes -- Add a StreamContext to the Pre/PostSource signals
@ktf ktf merged commit 4953851 into cms-sw:CMSSW_7_0_X Nov 27, 2013
@fwyzard fwyzard deleted the add_StreamContext_to_Pre_PostSource branch November 28, 2013 09:20
fwyzard added a commit to fwyzard/cmssw that referenced this pull request Nov 28, 2013
ktf added a commit that referenced this pull request Nov 28, 2013
Multithreaded framework -- Fix InputSource after automatic merging of #1575 in the THREADED branch
ktf pushed a commit to ktf/cmssw that referenced this pull request Apr 23, 2014
ktf pushed a commit to ktf/cmssw that referenced this pull request Apr 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants