CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
RPCRecHitBaseAlgo Class Referenceabstract

#include <RPCRecHitBaseAlgo.h>

Inheritance diagram for RPCRecHitBaseAlgo:
RPCRecHitStandardAlgo

Public Member Functions

virtual bool compute (const RPCRoll &roll, const RPCCluster &cl, LocalPoint &Point, LocalError &error) const =0
 standard local recHit computation More...
 
virtual bool compute (const RPCRoll &roll, const RPCCluster &cl, const float &angle, const GlobalPoint &globPos, LocalPoint &Point, LocalError &error) const =0
 
virtual edm::OwnVector< RPCRecHitreconstruct (const RPCRoll &roll, const RPCDetId &rpcId, const RPCDigiCollection::Range &digiRange, const RollMask &mask)
 Build all hits in the range associated to the rpcId, at the 1st step. More...
 
 RPCRecHitBaseAlgo (const edm::ParameterSet &config)
 Constructor. More...
 
virtual void setES (const edm::EventSetup &setup)=0
 Pass the Event Setup to the algo at each event. More...
 
virtual ~RPCRecHitBaseAlgo ()
 Destructor. More...
 

Detailed Description

Abstract algorithmic class to compute Rec Hit form a RPC digi

Author
M. Maggi – INFN Bari

Definition at line 32 of file RPCRecHitBaseAlgo.h.

Constructor & Destructor Documentation

RPCRecHitBaseAlgo::RPCRecHitBaseAlgo ( const edm::ParameterSet config)

Constructor.

Definition at line 21 of file RPCRecHitBaseAlgo.cc.

21  {
22  // theSync = RPCTTrigSyncFactory::get()->create(config.getParameter<string>("tTrigMode"),
23  //config.getParameter<ParameterSet>("tTrigModeConfig"));
24 }
RPCRecHitBaseAlgo::~RPCRecHitBaseAlgo ( )
virtual

Destructor.

Definition at line 26 of file RPCRecHitBaseAlgo.cc.

26 {}

Member Function Documentation

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().

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.

edm::OwnVector< RPCRecHit > RPCRecHitBaseAlgo::reconstruct ( const RPCRoll roll,
const RPCDetId rpcId,
const RPCDigiCollection::Range digiRange,
const RollMask mask 
)
virtual

Build all hits in the range associated to the rpcId, at the 1st step.

Definition at line 30 of file RPCRecHitBaseAlgo.cc.

References GetRecoTauVFromDQM_MC_cff::cl, compute(), RPCClusterizer::doAction(), RPCMaskReClusterizer::doAction(), point, edm::OwnVector< T, P >::push_back(), and query::result.

33  {
35 
36 
37  RPCClusterizer clizer;
38  RPCClusterContainer tcls = clizer.doAction(digiRange);
39  RPCMaskReClusterizer mrclizer;
40  RPCClusterContainer cls = mrclizer.doAction(rpcId,tcls,mask);
41 
42 
43  for (RPCClusterContainer::const_iterator cl = cls.begin();
44  cl != cls.end(); cl++){
45 
46  LocalError tmpErr;
48  // Call the compute method
49  bool OK = this->compute(roll, *cl, point, tmpErr);
50  if (!OK) continue;
51 
52  // Build a new pair of 1D rechit
53  int firstClustStrip= cl->firstStrip();
54  int clusterSize=cl->clusterSize();
55  RPCRecHit* recHit = new RPCRecHit(rpcId,cl->bx(),firstClustStrip,clusterSize,point,tmpErr);
56 
57 
58  result.push_back(recHit);
59  }
60  return result;
61 }
pair< int, edm::FunctionWithDict > OK
Definition: findMethod.cc:72
RPCClusterContainer doAction(const RPCDigiCollection::Range &digiRange)
void push_back(D *&d)
Definition: OwnVector.h:274
tuple result
Definition: query.py:137
virtual bool compute(const RPCRoll &roll, const RPCCluster &cl, LocalPoint &Point, LocalError &error) const =0
standard local recHit computation
RPCClusterContainer doAction(const RPCDetId &, RPCClusterContainer &, const RollMask &)
std::set< RPCCluster > RPCClusterContainer
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point
Definition: invegas.h:5
virtual void RPCRecHitBaseAlgo::setES ( const edm::EventSetup setup)
pure virtual

Pass the Event Setup to the algo at each event.

Implemented in RPCRecHitStandardAlgo.