CMS 3D CMS Logo

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

#include <ME0RecHitBaseAlgo.h>

Inheritance diagram for ME0RecHitBaseAlgo:
ME0RecHitStandardAlgo

Public Member Functions

virtual bool compute (const ME0DigiPreReco &digi, LocalPoint &Point, LocalError &error) const =0
 standard local recHit computation More...
 
 ME0RecHitBaseAlgo (const edm::ParameterSet &config)
 Constructor. More...
 
virtual edm::OwnVector< ME0RecHitreconstruct (const ME0DetId &me0Id, const ME0DigiPreRecoCollection::Range &digiRange)
 Build all hits in the range associated to the me0Id, at the 1st step. More...
 
virtual void setES (const edm::EventSetup &setup)=0
 Pass the Event Setup to the algo at each event. More...
 
virtual ~ME0RecHitBaseAlgo ()
 Destructor. More...
 

Detailed Description

Abstract algorithmic class to compute Rec Hit form a ME0 digi

Date:
2014/02/04 10:16:32
Revision:
1.1
Author
M. Maggi – INFN Bari

Definition at line 29 of file ME0RecHitBaseAlgo.h.

Constructor & Destructor Documentation

ME0RecHitBaseAlgo::ME0RecHitBaseAlgo ( const edm::ParameterSet config)

Constructor.

Definition at line 16 of file ME0RecHitBaseAlgo.cc.

16 {}
ME0RecHitBaseAlgo::~ME0RecHitBaseAlgo ( )
virtual

Destructor.

Definition at line 18 of file ME0RecHitBaseAlgo.cc.

18 {}

Member Function Documentation

virtual bool ME0RecHitBaseAlgo::compute ( const ME0DigiPreReco digi,
LocalPoint Point,
LocalError error 
) const
pure virtual

standard local recHit computation

Implemented in ME0RecHitStandardAlgo.

Referenced by reconstruct().

edm::OwnVector< ME0RecHit > ME0RecHitBaseAlgo::reconstruct ( const ME0DetId me0Id,
const ME0DigiPreRecoCollection::Range digiRange 
)
virtual

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

Definition at line 22 of file ME0RecHitBaseAlgo.cc.

References compute(), point, edm::OwnVector< T, P >::push_back(), and mps_fire::result.

Referenced by ME0RecHitProducer::produce().

23  {
25 
26  for (ME0DigiPreRecoCollection::const_iterator digi = digiRange.first;
27  digi != digiRange.second;digi++) {
28 
29  LocalError tmpErr;
31  // Call the compute method
32  bool OK = this->compute(*digi, point, tmpErr);
33  if (!OK) continue;
34  ME0RecHit* recHit = new ME0RecHit(me0Id,digi->tof(),point,tmpErr);
35  result.push_back(recHit);
36  }
37  return result;
38 }
tuple result
Definition: mps_fire.py:83
void push_back(D *&d)
Definition: OwnVector.h:290
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
*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 ME0RecHitBaseAlgo::setES ( const edm::EventSetup setup)
pure virtual

Pass the Event Setup to the algo at each event.

Implemented in ME0RecHitStandardAlgo.

Referenced by ME0RecHitProducer::produce().