CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
edm::Adjuster< T > Class Template Reference

#include <Adjuster.h>

Inheritance diagram for edm::Adjuster< T >:
edm::AdjusterBase

Public Member Functions

 Adjuster (InputTag const &tag)
 
virtual bool checkSignal (edm::Event const &event)
 
virtual void doOffset (int bunchspace, int bcr, const edm::EventPrincipal &, unsigned int EventNr, int vertexOffset)
 
virtual ~Adjuster ()
 
- Public Member Functions inherited from edm::AdjusterBase
virtual ~AdjusterBase ()
 

Private Attributes

InputTag tag_
 

Detailed Description

template<typename T>
class edm::Adjuster< T >

Definition at line 26 of file Adjuster.h.

Constructor & Destructor Documentation

template<typename T >
edm::Adjuster< T >::Adjuster ( InputTag const &  tag)

Definition at line 67 of file Adjuster.h.

template<typename T >
virtual edm::Adjuster< T >::~Adjuster ( )
inlinevirtual

Definition at line 31 of file Adjuster.h.

31 {}

Member Function Documentation

template<typename T >
virtual bool edm::Adjuster< T >::checkSignal ( edm::Event const &  event)
inlinevirtual

Implements edm::AdjusterBase.

Definition at line 35 of file Adjuster.h.

References edm::Adjuster< T >::tag_.

35  {
36  bool got = false;
37  edm::Handle<std::vector<T> > result_t;
38  got = event.getByLabel(tag_, result_t);
39  return got;
40  }
InputTag tag_
Definition: Adjuster.h:43
template<typename T >
void edm::Adjuster< T >::doOffset ( int  bunchspace,
int  bcr,
const edm::EventPrincipal ep,
unsigned int  EventNr,
int  vertexOffset 
)
virtual

Implements edm::AdjusterBase.

Definition at line 58 of file Adjuster.h.

References edm::detail::doTheOffset().

58  {
59  boost::shared_ptr<Wrapper<std::vector<T> > const> shPtr = getProductByTag<std::vector<T> >(ep, tag_);
60  if (shPtr) {
61  std::vector<T>& product = const_cast<std::vector<T>&>(*shPtr->product());
62  detail::doTheOffset(bunchspace, bcr, product, eventNr, vertexOffset);
63  }
64  }
void doTheOffset(int bunchSpace, int bcr, std::vector< SimTrack > &simtracks, unsigned int evtNr, int vertexOffset)
Definition: Adjuster.cc:6
InputTag tag_
Definition: Adjuster.h:43

Member Data Documentation

template<typename T >
InputTag edm::Adjuster< T >::tag_
private

Definition at line 43 of file Adjuster.h.

Referenced by edm::Adjuster< T >::checkSignal().