#include <RecoLocalMuon/RPCRecHit/interface/RPCRecHitBaseAlgo.h>
Public Member Functions | |
virtual bool | compute (const RPCRoll &roll, const RPCCluster &cl, const float &angle, const GlobalPoint &globPos, LocalPoint &Point, LocalError &error) const =0 |
local recHit computation accounting for track direction and absolute position | |
virtual bool | compute (const RPCRoll &roll, const RPCCluster &cl, LocalPoint &Point, LocalError &error) const =0 |
standard local recHit computation | |
virtual edm::OwnVector< RPCRecHit > | reconstruct (const RPCRoll &roll, const RPCDetId &rpcId, const RPCDigiCollection::Range &digiRange) |
Build all hits in the range associated to the rpcId, at the 1st step. | |
RPCRecHitBaseAlgo (const edm::ParameterSet &config) | |
Constructor. | |
virtual void | setES (const edm::EventSetup &setup)=0 |
Pass the Event Setup to the algo at each event. | |
virtual | ~RPCRecHitBaseAlgo () |
Destructor. |
Definition at line 30 of file RPCRecHitBaseAlgo.h.
RPCRecHitBaseAlgo::RPCRecHitBaseAlgo | ( | const edm::ParameterSet & | config | ) |
Constructor.
Definition at line 21 of file RPCRecHitBaseAlgo.cc.
00021 { 00022 // theSync = RPCTTrigSyncFactory::get()->create(config.getParameter<string>("tTrigMode"), 00023 //config.getParameter<ParameterSet>("tTrigModeConfig")); 00024 }
RPCRecHitBaseAlgo::~RPCRecHitBaseAlgo | ( | ) | [virtual] |
virtual bool RPCRecHitBaseAlgo::compute | ( | const RPCRoll & | roll, | |
const RPCCluster & | cl, | |||
const float & | angle, | |||
const GlobalPoint & | globPos, | |||
LocalPoint & | Point, | |||
LocalError & | error | |||
) | const [pure virtual] |
local recHit computation accounting for track direction and absolute position
Implemented in RPCRecHitStandardAlgo.
virtual bool RPCRecHitBaseAlgo::compute | ( | const RPCRoll & | roll, | |
const RPCCluster & | cl, | |||
LocalPoint & | Point, | |||
LocalError & | error | |||
) | const [pure virtual] |
standard local recHit computation
Implemented in RPCRecHitStandardAlgo.
Referenced by reconstruct().
edm::OwnVector< RPCRecHit > RPCRecHitBaseAlgo::reconstruct | ( | const RPCRoll & | roll, | |
const RPCDetId & | rpcId, | |||
const RPCDigiCollection::Range & | digiRange | |||
) | [virtual] |
Build all hits in the range associated to the rpcId, at the 1st step.
Definition at line 30 of file RPCRecHitBaseAlgo.cc.
References compute(), RPCClusterizer::doAction(), edm::OwnVector< T, P >::push_back(), and HLT_VtxMuL3::result.
Referenced by RPCRecHitProducer::produce().
00032 { 00033 edm::OwnVector<RPCRecHit> result; 00034 00035 00036 RPCClusterizer clizer; 00037 RPCClusterContainer cls = clizer.doAction(digiRange); 00038 00039 for (RPCClusterContainer::const_iterator cl = cls.begin(); 00040 cl != cls.end(); cl++){ 00041 00042 LocalError tmpErr; 00043 LocalPoint point; 00044 // Call the compute method 00045 bool OK = this->compute(roll, *cl, point, tmpErr); 00046 if (!OK) continue; 00047 00048 // Build a new pair of 1D rechit 00049 int firstClustStrip= cl->firstStrip(); 00050 int clusterSize=cl->clusterSize(); 00051 RPCRecHit* recHit = new RPCRecHit(rpcId,cl->bx(),firstClustStrip,clusterSize,point,tmpErr); 00052 00053 00054 result.push_back(recHit); 00055 } 00056 return result; 00057 }
virtual void RPCRecHitBaseAlgo::setES | ( | const edm::EventSetup & | setup | ) | [pure virtual] |
Pass the Event Setup to the algo at each event.
Implemented in RPCRecHitStandardAlgo.
Referenced by RPCRecHitProducer::produce().