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  * $Date: 2013/04/24 17:16:35 $
5  * $Revision: 1.1 $
6  * \author M. Maggi -- INFN Bari
7  */
8 
9 
10 
16 
20 
21 
23  // theSync = GEMTTrigSyncFactory::get()->create(config.getParameter<string>("tTrigMode"),
24  //config.getParameter<ParameterSet>("tTrigModeConfig"));
25 }
26 
28 
29 
30 // Build all hits in the range associated to the layerId, at the 1st step.
32  const GEMDetId& gemId,
33  const GEMDigiCollection::Range& digiRange,
34  const EtaPartitionMask& mask) {
36 
37 
38  GEMClusterizer clizer;
39  GEMClusterContainer tcls = clizer.doAction(digiRange);
40  GEMMaskReClusterizer mrclizer;
41  GEMClusterContainer cls = mrclizer.doAction(gemId,tcls,mask);
42 
43 
44  for (GEMClusterContainer::const_iterator cl = cls.begin();
45  cl != cls.end(); cl++){
46 
47  LocalError tmpErr;
49  // Call the compute method
50  bool OK = this->compute(roll, *cl, point, tmpErr);
51  if (!OK) continue;
52 
53  // Build a new pair of 1D rechit
54  int firstClustStrip= cl->firstStrip();
55  int clusterSize=cl->clusterSize();
56  GEMRecHit* recHit = new GEMRecHit(gemId,cl->bx(),firstClustStrip,clusterSize,point,tmpErr);
57 
58 
59  result.push_back(recHit);
60  }
61  return result;
62 }
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:70
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:273
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