test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RPCRecHitBaseAlgo.cc
Go to the documentation of this file.
1 /*
2  * See header file for a description of this class.
3  *
4  * \author M. Maggi -- INFN Bari
5  */
6 
7 
8 
14 
19 
20 
22  // theSync = RPCTTrigSyncFactory::get()->create(config.getParameter<string>("tTrigMode"),
23  //config.getParameter<ParameterSet>("tTrigModeConfig"));
24 }
25 
27 
28 
29 // Build all hits in the range associated to the layerId, at the 1st step.
31  const RPCDetId& rpcId,
32  const RPCDigiCollection::Range& digiRange,
33  const RollMask& mask) {
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 }
RPCClusterContainer doAction(const RPCDigiCollection::Range &digiRange)
virtual ~RPCRecHitBaseAlgo()
Destructor.
tuple result
Definition: mps_fire.py:84
void push_back(D *&d)
Definition: OwnVector.h:290
std::bitset< maskSIZE > RollMask
Definition: RPCRollMask.h:8
RPCRecHitBaseAlgo(const edm::ParameterSet &config)
Constructor.
std::pair< int, edm::FunctionWithDict > OK
Definition: findMethod.cc:136
virtual bool compute(const RPCRoll &roll, const RPCCluster &cl, LocalPoint &Point, LocalError &error) const =0
standard local recHit computation
std::pair< const_iterator, const_iterator > Range
RPCClusterContainer doAction(const RPCDetId &, RPCClusterContainer &, const RollMask &)
virtual edm::OwnVector< RPCRecHit > reconstruct(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.
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