test
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, edm::ConsumesCollector &&iC)
 
virtual bool checkSignal (edm::Event const &event)
 
virtual void doOffset (int bunchspace, int bcr, const edm::EventPrincipal &, ModuleCallingContext const *, unsigned int EventNr, int vertexOffset)
 
virtual ~Adjuster ()
 
- Public Member Functions inherited from edm::AdjusterBase
virtual ~AdjusterBase ()
 

Private Attributes

InputTag tag_
 
EDGetTokenT< Ttoken_
 

Detailed Description

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

Definition at line 32 of file Adjuster.h.

Constructor & Destructor Documentation

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

Definition at line 75 of file Adjuster.h.

75  : tag_(tag), token_(iC.consumes<T>(tag)) {
76  }
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
EDGetTokenT< T > token_
Definition: Adjuster.h:50
long double T
InputTag tag_
Definition: Adjuster.h:49
template<typename T >
virtual edm::Adjuster< T >::~Adjuster ( )
inlinevirtual

Definition at line 37 of file Adjuster.h.

37 {}

Member Function Documentation

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

Implements edm::AdjusterBase.

Definition at line 41 of file Adjuster.h.

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

41  {
42  bool got = false;
43  edm::Handle<T> result_t;
44  got = event.getByToken(token_, result_t);
45  return got;
46  }
EDGetTokenT< T > token_
Definition: Adjuster.h:50
template<typename T >
void edm::Adjuster< T >::doOffset ( int  bunchspace,
int  bcr,
const edm::EventPrincipal ep,
ModuleCallingContext const *  mcc,
unsigned int  EventNr,
int  vertexOffset 
)
virtual

Implements edm::AdjusterBase.

Definition at line 66 of file Adjuster.h.

References edm::detail::doTheOffset().

66  {
67  std::shared_ptr<Wrapper<T> const> shPtr = getProductByTag<T>(ep, tag_, mcc);
68  if (shPtr) {
69  T& product = const_cast<T&>(*shPtr->product());
70  detail::doTheOffset(bunchspace, bcr, product, eventNr, vertexOffset);
71  }
72  }
void doTheOffset(int bunchSpace, int bcr, std::vector< SimTrack > &simtracks, unsigned int evtNr, int vertexOffset)
Definition: Adjuster.cc:7
long double T
InputTag tag_
Definition: Adjuster.h:49

Member Data Documentation

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

Definition at line 49 of file Adjuster.h.

template<typename T >
EDGetTokenT<T> edm::Adjuster< T >::token_
private

Definition at line 50 of file Adjuster.h.

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