-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10935 from fwyzard/migrate_to_multithreading_75x_…
…part2 migrate RPCPointProducer to a global::EDProducer (75x)
- Loading branch information
Showing
23 changed files
with
468 additions
and
532 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,66 +1,25 @@ | ||
#ifndef CSCSEGTORPC_H | ||
#define CSCSEGTORPC_H | ||
|
||
|
||
#include "FWCore/Framework/interface/EDAnalyzer.h" | ||
#include "FWCore/Framework/interface/Event.h" | ||
#include "FWCore/Framework/interface/EventSetup.h" | ||
#include "FWCore/Framework/interface/ESHandle.h" | ||
#include "DataFormats/RPCRecHit/interface/RPCRecHit.h" | ||
#include "DataFormats/RPCRecHit/interface/RPCRecHitCollection.h" | ||
|
||
#include <memory> | ||
|
||
class CSCSegtoRPC { | ||
public: | ||
explicit CSCSegtoRPC(edm::Handle<CSCSegmentCollection> allCSCSegments,const edm::EventSetup& iSetup, const edm::Event& iEvent, bool debug, double eyr); | ||
CSCSegtoRPC(CSCSegmentCollection const* allCSCSegments, edm::EventSetup const& iSetup, bool debug, double eyr); | ||
~CSCSegtoRPC(); | ||
RPCRecHitCollection* thePoints(){return _ThePoints;} | ||
std::unique_ptr<RPCRecHitCollection> && thePoints(){ return std::move(_ThePoints); } | ||
|
||
private: | ||
RPCRecHitCollection* _ThePoints; | ||
std::unique_ptr<RPCRecHitCollection> _ThePoints; | ||
edm::OwnVector<RPCRecHit> RPCPointVector; | ||
bool inclcsc; | ||
double MaxD; | ||
}; | ||
|
||
class CSCStationIndex{ | ||
public: | ||
CSCStationIndex():_region(0),_station(0),_ring(0),_chamber(0){} | ||
CSCStationIndex(int region, int station, int ring, int chamber): | ||
_region(region), | ||
_station(station), | ||
_ring(ring), | ||
_chamber(chamber){} | ||
~CSCStationIndex(){} | ||
int region() const {return _region;} | ||
int station() const {return _station;} | ||
int ring() const {return _ring;} | ||
int chamber() const {return _chamber;} | ||
bool operator<(const CSCStationIndex& cscind) const{ | ||
if(cscind.region()!=this->region()) | ||
return cscind.region()<this->region(); | ||
else if(cscind.station()!=this->station()) | ||
return cscind.station()<this->station(); | ||
else if(cscind.ring()!=this->ring()) | ||
return cscind.ring()<this->ring(); | ||
else if(cscind.chamber()!=this->chamber()) | ||
return cscind.chamber()<this->chamber(); | ||
return false; | ||
} | ||
|
||
private: | ||
int _region; | ||
int _station; | ||
int _ring; | ||
int _chamber; | ||
}; | ||
|
||
class ObjectMapCSC{ | ||
public: | ||
static ObjectMapCSC* GetInstance(const edm::EventSetup& iSetup); | ||
std::set<RPCDetId> GetRolls(CSCStationIndex cscstationindex){return mapInstance->rollstoreCSC[cscstationindex];} | ||
//protected: | ||
std::map<CSCStationIndex,std::set<RPCDetId> > rollstoreCSC; | ||
ObjectMapCSC(const edm::EventSetup& iSetup); | ||
private: | ||
static ObjectMapCSC* mapInstance; | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.