DQMOffline/EGamma Implement updates for multithreading in offline clients 

Ciao Marco,
Se faccio return by ref, mi si incazza perch' ho una variabile locale che cerco di ritornare. Come lo fisso ?
Scusa la domanda banale ….

 Nancy
______________________________________

Nancy Marinelli

Research Associate Professor
University of Notre Dame, IN, US

CERN, Bdg 40/3-A01, 1211 Geneva,

SWITZERLAND

Phone +41-22-76-70809, fax +41-22-76-78940

From: Marco Rovere <notifications@github.com<mailto:notifications@github.com>>
Reply-To: cms-sw/cmssw <reply@reply.github.com<mailto:reply@reply.github.com>>
Date: Thu, 4 Sep 2014 02:56:37 -0700
To: cms-sw/cmssw <cmssw@noreply.github.com<mailto:cmssw@noreply.github.com>>
Cc: Nancy Marinelli <nancy.marinelli@cern.ch<mailto:nancy.marinelli@cern.ch>>
Subject: Re: [cmssw] DQMOffline/EGamma Implement updates for multithreading in offline clients (#5161)


In DQMOffline/EGamma/plugins/PhotonOfflineClient.h:

> -                                                            int xbin, double xmin, double xmax,
> -                                                            int ybin=1,double ymin=1, double ymax=2);
> +  //  virtual void analyze(const edm::Event&, const edm::EventSetup&  ) ;
> +  // virtual void beginJob() ;
> +  //virtual void endJob() ;
> +  void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override;
> +
> +  //  virtual void endLuminosityBlock( const edm::LuminosityBlock& , const edm::EventSetup& ) ;
> +  //virtual void endRun(const edm::Run& , const edm::EventSetup& ) ;
> +  //virtual void runClient();
> +
> +  virtual void runClient(DQMStore::IBooker& iBooker, DQMStore::IGetter& iGetter );
> +  MonitorElement* bookHisto(DQMStore::IBooker& iBooker,std::string histoName, std::string title, int bin, double min, double max);
> +
> +
> +  std::vector<std::vector<MonitorElement*> > book2DHistoVector(DQMStore::IBooker& iBooker,std::string histoType, std::string histoName, std::string title,


please avoid returning huge collection by value.

—
Reply to this email directly or view it on GitHub<https://github.com/cms-sw/cmssw/pull/5161/files#r17104616>.