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 17 of file ME0RecHitBaseAlgo.cc.

17  {
18 }
ME0RecHitBaseAlgo::~ME0RecHitBaseAlgo ( )
virtual

Destructor.

Definition at line 20 of file ME0RecHitBaseAlgo.cc.

20 {}

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 24 of file ME0RecHitBaseAlgo.cc.

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

Referenced by ME0RecHitProducer::produce().

25  {
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 }
void push_back(D *&d)
Definition: OwnVector.h:280
tuple result
Definition: query.py:137
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
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().