CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GEMRecHitBaseAlgo.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 
18 
19 
21  // theSync = GEMTTrigSyncFactory::get()->create(config.getParameter<string>("tTrigMode"),
22  //config.getParameter<ParameterSet>("tTrigModeConfig"));
23 }
24 
26 
27 
28 // Build all hits in the range associated to the layerId, at the 1st step.
30  const GEMDetId& gemId,
31  const GEMDigiCollection::Range& digiRange,
32  const EtaPartitionMask& mask) {
34 
35 
36  GEMClusterizer clizer;
37  GEMClusterContainer tcls = clizer.doAction(digiRange);
38  GEMMaskReClusterizer mrclizer;
39  GEMClusterContainer cls = mrclizer.doAction(gemId,tcls,mask);
40 
41 
42  for (GEMClusterContainer::const_iterator cl = cls.begin();
43  cl != cls.end(); cl++){
44 
45  LocalError tmpErr;
47  // Call the compute method
48  bool OK = this->compute(roll, *cl, point, tmpErr);
49  if (!OK) continue;
50 
51  // Build a new pair of 1D rechit
52  int firstClustStrip= cl->firstStrip();
53  int clusterSize=cl->clusterSize();
54  GEMRecHit* recHit = new GEMRecHit(gemId,cl->bx(),firstClustStrip,clusterSize,point,tmpErr);
55 
56 
57  result.push_back(recHit);
58  }
59  return result;
60 }
virtual bool compute(const GEMEtaPartition &roll, const GEMCluster &cl, LocalPoint &Point, LocalError &error) const =0
standard local recHit computation
pair< int, edm::FunctionWithDict > OK
Definition: findMethod.cc:72
GEMClusterContainer doAction(const GEMDetId &, GEMClusterContainer &, const EtaPartitionMask &)
std::set< GEMCluster > GEMClusterContainer
virtual edm::OwnVector< GEMRecHit > reconstruct(const GEMEtaPartition &roll, const GEMDetId &gemId, const GEMDigiCollection::Range &digiRange, const EtaPartitionMask &mask)
Build all hits in the range associated to the gemId, at the 1st step.
void push_back(D *&d)
Definition: OwnVector.h:274
virtual ~GEMRecHitBaseAlgo()
Destructor.
GEMClusterContainer doAction(const GEMDigiCollection::Range &digiRange)
tuple result
Definition: query.py:137
std::bitset< maskSIZE > EtaPartitionMask
GEMRecHitBaseAlgo(const edm::ParameterSet &config)
Constructor.
std::pair< const_iterator, const_iterator > Range
*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