CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ME0RecHitBaseAlgo.cc
Go to the documentation of this file.
1 /*
2 * See header file for a description of this class.
3 *
4 * $Date: 2014/02/04 10:16:35 $
5 * $Revision: 1.1 $
6 * \author M. Maggi -- INFN Bari
7 */
8 
9 
10 
15 
16 
18 }
19 
21 
22 
23 // Build all hits in the range associated to the layerId, at the 1st step.
25 const ME0DigiPreRecoCollection::Range& digiRange){
27 
28  for (ME0DigiPreRecoCollection::const_iterator digi = digiRange.first;
29  digi != digiRange.second;digi++) {
30 
31  LocalError tmpErr;
33  // Call the compute method
34  bool OK = this->compute(*digi, point, tmpErr);
35  if (!OK) continue;
36 
37  if (std::abs(digi->pdgid()) == 13) {
38  ME0RecHit* recHit = new ME0RecHit(me0Id,digi->tof(),point,tmpErr);
39  result.push_back(recHit);
40  }
41 
42  }
43  return result;
44 }
ME0RecHitBaseAlgo(const edm::ParameterSet &config)
Constructor.
void push_back(D *&d)
Definition: OwnVector.h:280
tuple result
Definition: query.py:137
virtual ~ME0RecHitBaseAlgo()
Destructor.
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
virtual edm::OwnVector< ME0RecHit > reconstruct(const ME0DetId &me0Id, const ME0DigiPreRecoCollection::Range &digiRange)
Build all hits in the range associated to the me0Id, at the 1st step.
std::pair< int, edm::FunctionWithDict > OK
Definition: findMethod.cc:136
std::vector< ME0DigiPreReco >::const_iterator const_iterator
virtual bool compute(const ME0DigiPreReco &digi, LocalPoint &Point, LocalError &error) const =0
standard local recHit computation
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