CMS 3D CMS Logo

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

#include <c++11.h>

Inheritance diagram for __class__< T >:
TFWLiteSelector< __class__Worker > edm::eventsetup::EventSetupRecordImplementation< __class__ > edm::ESProducer edm::EDProducer edm::ESProducerLooper edm::EDFilter edm::EDAnalyzer edm::EDConsumerBase edm::EDConsumerBase edm::ProducerBase edm::EDLooper edm::EventSetupRecordIntervalFinder edm::ESProducer edm::EDConsumerBase edm::ProducerBase edm::ESProxyFactoryProducer edm::eventsetup::EventSetupRecord TFWLiteSelectorBasic

Public Member Functions

 __class__ ()
 
 __class__ ()
 
 __class__ ()
 
 __class__ ()
 
 __class__ (const edm::ParameterSet &)
 
 __class__ (const edm::ParameterSet &)
 
 __class__ (const edm::ParameterSet &)
 
 __class__ (const edm::ParameterSet &)
 
 __class__ (const edm::ParameterSet &)
 
void begin (TList *&)
 
if virtual len(__datatypes__) >
1 void 
beginOfJob ()
 
virtual Status duringLoop (const edm::Event &, const edm::EventSetup &)
 
virtual void endOfJob ()
 
virtual Status endOfLoop (const edm::EventSetup &)
 
virtual void startingNewLoop (unsigned int)
 
void terminate (TList &)
 
virtual ~__class__ ()
 
virtual ~__class__ ()
 
virtual ~__class__ ()
 
 ~__class__ ()
 
 ~__class__ ()
 
 ~__class__ ()
 
 ~__class__ ()
 
 ~__class__ ()
 
 ~__class__ ()
 
- Public Member Functions inherited from TFWLiteSelector< __class__Worker >
 TFWLiteSelector ()
 
virtual ~TFWLiteSelector ()
 
- Public Member Functions inherited from TFWLiteSelectorBasic
 TFWLiteSelectorBasic ()
 
virtual ~TFWLiteSelectorBasic ()
 
- Public Member Functions inherited from edm::eventsetup::EventSetupRecordImplementation< __class__ >
virtual EventSetupRecordKey key () const
 
- Public Member Functions inherited from edm::eventsetup::EventSetupRecord
bool add (DataKey const &iKey, DataProxy const *iProxy)
 
unsigned long long cacheIdentifier () const
 
void cacheReset ()
 
void clearProxies ()
 
bool doGet (DataKey const &aKey, bool aGetTransiently=false) const
 returns false if no data available for key More...
 
 EventSetupRecord ()
 
void fillReferencedDataKeys (std::map< DataKey, ComponentDescription const * > &referencedDataKeys)
 
void fillRegisteredDataKeys (std::vector< DataKey > &oToFill) const
 clears the oToFill vector and then fills it with the keys for all registered data keys More...
 
template<typename HolderT >
void get (HolderT &iHolder) const
 
template<typename HolderT >
void get (char const *iName, HolderT &iHolder) const
 
template<typename HolderT >
void get (std::string const &iName, HolderT &iHolder) const
 
template<typename HolderT >
void get (ESInputTag const &iTag, HolderT &iHolder) const
 
void getESProducers (std::vector< ComponentDescription const * > &esproducers)
 
ComponentDescription const * providerDescription (DataKey const &aKey) const
 
void set (ValidityInterval const &)
 
void setEventSetup (EventSetup const *iEventSetup)
 
bool transientReset ()
 returns 'true' if a transient request has occurred since the last call to transientReset. More...
 
ValidityInterval const & validityInterval () const
 
bool wasGotten (DataKey const &aKey) const
 
virtual ~EventSetupRecord ()
 
- Public Member Functions inherited from edm::ESProducer
 ESProducer ()
 
virtual ~ESProducer ()
 
- Public Member Functions inherited from edm::ESProxyFactoryProducer
 ESProxyFactoryProducer ()
 
virtual void newInterval (const eventsetup::EventSetupRecordKey &iRecordType, const ValidityInterval &iInterval)
 overrides DataProxyProvider method More...
 
virtual ~ESProxyFactoryProducer ()
 
- Public Member Functions inherited from edm::eventsetup::DataProxyProvider
 DataProxyProvider ()
 
const ComponentDescriptiondescription () const
 
bool isUsingRecord (const EventSetupRecordKey &) const
 
const KeyedProxieskeyedProxies (const EventSetupRecordKey &iRecordKey) const
 
void resetProxies (const EventSetupRecordKey &iRecordType)
 
void resetProxiesIfTransient (const EventSetupRecordKey &iRecordType)
 
void setAppendToDataLabel (const edm::ParameterSet &)
 
void setDescription (const ComponentDescription &iDescription)
 
std::set< EventSetupRecordKeyusingRecords () const
 
virtual ~DataProxyProvider ()
 
- Public Member Functions inherited from edm::EDProducer
 EDProducer ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDProducer ()
 
- Public Member Functions inherited from edm::ProducerBase
 ProducerBase ()
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription
const &)> 
registrationCallback () const
 used by the fwk to register list of products More...
 
virtual ~ProducerBase ()
 
- Public Member Functions inherited from edm::EDConsumerBase
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 
- Public Member Functions inherited from edm::ESProducerLooper
 ESProducerLooper ()
 
virtual std::set
< eventsetup::EventSetupRecordKey
modifyingRecords () const
 
- Public Member Functions inherited from edm::EventSetupRecordIntervalFinder
const
eventsetup::ComponentDescription
descriptionForFinder () const
 
 EventSetupRecordIntervalFinder ()
 
std::set
< eventsetup::EventSetupRecordKey
findingForRecords () const
 
const ValidityIntervalfindIntervalFor (const eventsetup::EventSetupRecordKey &, const IOVSyncValue &)
 
void setDescriptionForFinder (const eventsetup::ComponentDescription &iDescription)
 
virtual ~EventSetupRecordIntervalFinder ()
 
- Public Member Functions inherited from edm::EDLooper
 EDLooper ()
 
 EDLooper (EDLooper const &)=delete
 
EDLooperoperator= (EDLooper const &)=delete
 
virtual ~EDLooper ()
 
- Public Member Functions inherited from edm::EDLooperBase
virtual void attachTo (ActivityRegistry &)
 Override this method if you need to monitor the state of the processing. More...
 
virtual void beginOfJob (EventSetup const &)
 
void copyInfo (ScheduleInfo const &)
 
void doBeginLuminosityBlock (LuminosityBlockPrincipal &, EventSetup const &, ProcessContext *)
 
void doBeginRun (RunPrincipal &, EventSetup const &, ProcessContext *)
 
Status doDuringLoop (EventPrincipal &eventPrincipal, EventSetup const &es, ProcessingController &, StreamContext *)
 
void doEndLuminosityBlock (LuminosityBlockPrincipal &, EventSetup const &, ProcessContext *)
 
Status doEndOfLoop (EventSetup const &es)
 
void doEndRun (RunPrincipal &, EventSetup const &, ProcessContext *)
 
void doStartingNewLoop ()
 
 EDLooperBase ()
 
 EDLooperBase (EDLooperBase const &)=delete
 
EDLooperBaseoperator= (EDLooperBase const &)=delete
 
void prepareForNextLoop (eventsetup::EventSetupProvider *esp)
 
void setActionTable (ExceptionToActionTable const *actionTable)
 
void setModuleChanger (ModuleChanger const *)
 
virtual ~EDLooperBase ()
 
- Public Member Functions inherited from edm::EDFilter
 EDFilter ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDFilter ()
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
- Static Public Member Functions inherited from edm::eventsetup::EventSetupRecordImplementation< __class__ >
static EventSetupRecordKey keyForClass ()
 
- Static Public Member Functions inherited from edm::eventsetup::DataProxyProvider
static void prevalidate (ConfigurationDescriptions &)
 
- Static Public Member Functions inherited from edm::EDProducer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Static Public Member Functions inherited from edm::EDFilter
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 

Private Member Functions

 __class__ (const __class__ &src)
 
 __class__ (const __class__< T > &src)
 
 __class__ (__class__ &&src)
 
 __class__ (__class__< T > &&src)
 
 __class__ (const __class__ &)
 
 __class__ (__class__ const &)
 
virtual void analyze (const edm::Event &, const edm::EventSetup &) override
 
virtual void beginJob () override
 
virtual void beginJob () override
 
virtual void beginJob () override
 
virtual void endJob () override
 
virtual void endJob () override
 
virtual void endJob () override
 
virtual bool filter (edm::Event &, const edm::EventSetup &) override
 
const __class__operator= (const __class__ &rhs)
 
const __class__< T > & operator= (const __class__< T > &rhs)
 
__class__operator= (__class__ &&rhs)
 
__class__< T > & operator= (__class__< T > &&rhs)
 
const __class__operator= (const __class__ &)
 
__class__ operator= (__class__ const &)
 
virtual void produce (edm::Event &, const edm::EventSetup &) override
 

Private Attributes

example_myparticle edm::InputTag electronTags_
 
example_histo TH1D * histo
 
example_myparticle edm::InputTag muonTags_
 
example_track edm::InputTag trackTags_
 

Additional Inherited Members

- Public Types inherited from edm::eventsetup::DataProxyProvider
typedef std::vector< std::pair
< DataKey, boost::shared_ptr
< DataProxy > > > 
KeyedProxies
 
typedef std::vector
< EventSetupRecordKey
Keys
 
typedef std::map
< EventSetupRecordKey,
KeyedProxies
RecordProxies
 
- Public Types inherited from edm::EDProducer
typedef EDProducer ModuleType
 
- Public Types inherited from edm::ProducerBase
typedef
ProductRegistryHelper::TypeLabelList 
TypeLabelList
 
- Public Types inherited from edm::EDLooperBase
enum  Status { kContinue, kStop }
 
- Public Types inherited from edm::EDFilter
typedef EDFilter ModuleType
 
- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- Protected Member Functions inherited from edm::eventsetup::EventSetupRecordImplementation< __class__ >
 EventSetupRecordImplementation ()
 
- Protected Member Functions inherited from edm::eventsetup::EventSetupRecord
void addTraceInfoToCmsException (cms::Exception &iException, char const *iName, ComponentDescription const *, DataKey const &) const
 
void changeStdExceptionToCmsException (char const *iExceptionWhatMessage, char const *iName, ComponentDescription const *, DataKey const &) const
 
EventSetup const & eventSetup () const
 
DataProxy const * find (DataKey const &aKey) const
 
void transientAccessRequested () const
 
void validate (ComponentDescription const *, ESInputTag const &) const
 
- Protected Member Functions inherited from edm::ESProducer
template<typename T >
void setWhatProduced (T *iThis, const es::Label &iLabel=es::Label())
 
template<typename T >
void setWhatProduced (T *iThis, const char *iLabel)
 
template<typename T >
void setWhatProduced (T *iThis, const std::string &iLabel)
 
template<typename T , typename TDecorator >
void setWhatProduced (T *iThis, const TDecorator &iDec, const es::Label &iLabel=es::Label())
 
template<typename T , typename TReturn , typename TRecord >
void setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const es::Label &iLabel=es::Label())
 
template<typename T , typename TReturn , typename TRecord , typename TArg >
void setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const TArg &iDec, const es::Label &iLabel=es::Label())
 
- Protected Member Functions inherited from edm::ESProxyFactoryProducer
template<class TFactory >
void registerFactory (std::auto_ptr< TFactory > iFactory, const std::string &iLabel=std::string())
 
virtual void registerProxies (const eventsetup::EventSetupRecordKey &iRecord, KeyedProxies &aProxyList)
 override DataProxyProvider method More...
 
- Protected Member Functions inherited from edm::eventsetup::DataProxyProvider
void eraseAll (const EventSetupRecordKey &iRecordKey)
 deletes all the Proxies in aStream More...
 
void invalidateProxies (const EventSetupRecordKey &iRecordKey)
 
template<class T >
void usingRecord ()
 
void usingRecordWithKey (const EventSetupRecordKey &)
 
- Protected Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
- Protected Member Functions inherited from edm::ESProducerLooper
virtual void registerFactoryWithKey (const eventsetup::EventSetupRecordKey &iRecord, std::auto_ptr< eventsetup::ProxyFactoryBase > &iFactory, const std::string &iLabel=std::string())
 
void setIntervalFor (const eventsetup::EventSetupRecordKey &iKey, const IOVSyncValue &iTime, ValidityInterval &oInterval)
 
- Protected Member Functions inherited from edm::EventSetupRecordIntervalFinder
template<class T >
void findingRecord ()
 
void findingRecordWithKey (const eventsetup::EventSetupRecordKey &)
 
- Protected Member Functions inherited from edm::EDLooperBase
ModuleChanger const * moduleChanger () const
 This only returns a non-zero value during the call to endOfLoop. More...
 
ScheduleInfo const * scheduleInfo () const
 This returns a non-zero value after the constructor has been called. More...
 

Detailed Description

template<typename T>
class __class__< T >

Description: [one line class summary]

Implementation: [Notes on implementation]

Description: [one line class summary]

Usage: <usage>

Definition at line 13 of file c++11.h.

Constructor & Destructor Documentation

template<typename T>
__class__< T >::__class__ ( )
template<typename T>
__class__< T >::~__class__ ( )
virtual

Definition at line 87 of file EDAnalyzer.cc.

88 {
89 
90  // do anything here that needs to be done at desctruction time
91  // (e.g. close files, deallocate resources etc.)
92 
93 }
template<typename T>
__class__< T >::__class__ ( const __class__< T > &  src)
private
template<typename T>
__class__< T >::__class__ ( __class__< T > &&  src)
private
template<typename T>
__class__< T >::__class__ ( )
template<typename T>
virtual __class__< T >::~__class__ ( )
virtual
template<typename T>
__class__< T >::__class__ ( const __class__< T > &  src)
private
template<typename T>
__class__< T >::__class__ ( __class__< T > &&  src)
private
template<typename T>
__class__< T >::__class__ ( const edm::ParameterSet iConfig)
explicit

Definition at line 75 of file EDAnalyzer.cc.

References timingPdfMaker::histo.

Referenced by python.seqvaluedict.seqdict::__add__(), BeautifulSoup.Tag::__getattr__(), python.seqvaluedict.seqdict::__getitem__(), python.seqvaluedict.seqdict::__getslice__(), python.seqvaluedict.seqdict::__radd__(), BeautifulSoup.UnicodeDammit::_ebcdic_to_ascii(), python.seqvaluedict.seqdict::copy(), python.seqvaluedict.seqdict::filter(), python.seqvaluedict.seqdict::map(), python.seqvaluedict.seqdict::split(), and python.seqvaluedict.seqdict::swap().

76  :
77 @example_track trackTags_(iConfig.getUntrackedParameter<edm::InputTag>("tracks"))
78 
79 {
80  //now do what ever initialization is needed
81 @example_histo edm::Service<TFileService> fs;
82 @example_histo histo = fs->make<TH1D>("charge" , "Charges" , 200 , -2 , 2 );
83 
84 }
T getUntrackedParameter(std::string const &, T const &) const
example_track edm::InputTag trackTags_
Definition: EDAnalyzer.cc:60
example_histo TH1D * histo
Definition: EDAnalyzer.cc:61
template<typename T>
__class__< T >::~__class__ ( )
template<typename T>
__class__< T >::__class__ ( const edm::ParameterSet )
explicit
template<typename T>
__class__< T >::~__class__ ( )
template<typename T>
__class__< T >::__class__ ( const edm::ParameterSet )
template<typename T>
__class__< T >::~__class__ ( )
template<typename T>
__class__< T >::__class__ ( const edm::ParameterSet )
explicit
template<typename T>
__class__< T >::~__class__ ( )
template<typename T>
__class__< T >::__class__ ( const edm::ParameterSet )
template<typename T>
__class__< T >::~__class__ ( )
template<typename T>
__class__< T >::__class__ ( )
template<typename T>
virtual __class__< T >::~__class__ ( )
virtual
template<typename T>
__class__< T >::__class__ ( const __class__< T > &  )
private
template<typename T>
__class__< T >::__class__ ( )
template<typename T>
__class__< T >::~__class__ ( )
template<typename T>
__class__< T >::__class__ ( __class__< T > const &  )
private

Member Function Documentation

template<typename T>
void __class__< T >::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
overrideprivatevirtual

Implements edm::EDAnalyzer.

Definition at line 102 of file EDAnalyzer.cc.

References DeDxDiscriminatorTools::charge(), edm::EventSetup::get(), edm::Event::getByLabel(), __class__< T >::histo, testEve_cfg::tracks, and __class__< T >::trackTags_.

103 {
104  using namespace edm;
105 
106 @example_track using reco::TrackCollection;
107 
108 @example_track Handle<TrackCollection> tracks;
109 @example_track iEvent.getByLabel(trackTags_,tracks);
110 @example_track for(TrackCollection::const_iterator itTrack = tracks->begin();
111 @example_track itTrack != tracks->end();
112 @example_track ++itTrack) {
113 @example_track int charge = 0;
114 @example_track charge = itTrack->charge();
115 @example_histo histo->Fill( charge );
116 @example_track }
117 
118 #ifdef THIS_IS_AN_EVENT_EXAMPLE
120  iEvent.getByLabel("example",pIn);
121 #endif
122 
123 #ifdef THIS_IS_AN_EVENTSETUP_EXAMPLE
124  ESHandle<SetupData> pSetup;
125  iSetup.get<SetupRecord>().get(pSetup);
126 #endif
127 }
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:10
example_track edm::InputTag trackTags_
Definition: EDAnalyzer.cc:60
double charge(const std::vector< uint8_t > &Ampls)
example_histo TH1D * histo
Definition: EDAnalyzer.cc:61
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:390
tuple tracks
Definition: testEve_cfg.py:39
const T & get() const
Definition: EventSetup.h:55
template<typename T>
void __class__< T >::begin ( TList *&  in)
virtual

Called each time the 'client' begins processing (remote 'slaves' do not see this message)

Parameters
inan assignable pointer to a list of objects you want passed to 'preProcessing'. This list is used to communicate with remote slaves. NOTE: you are responsible for deleting this TList and its content once you are done with it.

Implements TFWLiteSelectorBasic.

Definition at line 100 of file TSelector.cc.

101 {
102 }
template<typename T>
virtual void __class__< T >::beginJob ( )
overrideprivatevirtual

Reimplemented from edm::EDAnalyzer.

template<typename T>
virtual void __class__< T >::beginJob ( )
overrideprivatevirtual

Reimplemented from edm::EDAnalyzer.

template<typename T>
void __class__< T >::beginJob ( void  )
overrideprivatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 132 of file EDAnalyzer.cc.

133 {
134 }
template<typename T>
void __class__< T >::beginOfJob ( )
virtual

Reimplemented from edm::EDLooperBase.

Definition at line 117 of file EDLooper.cc.

118 {
119 }
template<typename T>
__class__::Status __class__< T >::duringLoop ( const edm::Event ,
const edm::EventSetup  
)
virtual

Called after all event modules have had a chance to process the edm::Event.

Implements edm::EDLooper.

Definition at line 130 of file EDLooper.cc.

References edm::EDLooperBase::kContinue.

131 {
132  return kContinue;
133 }
template<typename T>
virtual void __class__< T >::endJob ( )
overrideprivatevirtual

Reimplemented from edm::EDAnalyzer.

template<typename T>
virtual void __class__< T >::endJob ( )
overrideprivatevirtual

Reimplemented from edm::EDAnalyzer.

template<typename T>
void __class__< T >::endJob ( void  )
overrideprivatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 138 of file EDAnalyzer.cc.

139 {
140 }
template<typename T>
void __class__< T >::endOfJob ( )
virtual

Reimplemented from edm::EDLooperBase.

Definition at line 145 of file EDLooper.cc.

146 {
147 }
template<typename T>
__class__::Status __class__< T >::endOfLoop ( const edm::EventSetup )
virtual

Definition at line 138 of file EDLooper.cc.

References edm::EDLooperBase::kStop.

139 {
140  return kStop;
141 }
template<typename T>
static void __class__< T >::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static
template<typename T>
void __class__< T >::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 176 of file EDAnalyzer.cc.

References edm::ConfigurationDescriptions::addDefault(), and edm::ParameterSetDescription::setUnknown().

176  {
177  //The following says we do not know what parameters are allowed so do no validation
178  // Please change this to state exactly what you do use, even if it is no parameters
180  desc.setUnknown();
181  descriptions.addDefault(desc);
182 @example_track
183 @example_track //Specify that only 'tracks' is allowed
184 @example_track //To use, remove the default given above and uncomment below
185 @example_track //ParameterSetDescription desc;
186 @example_track //desc.addUntracked<edm::InputTag>("tracks","ctfWithMaterialTracks");
187 @example_track //descriptions.addDefault(desc);
188 }
void addDefault(ParameterSetDescription const &psetDescription)
template<typename T>
static void __class__< T >::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static
template<typename T>
bool __class__< T >::filter ( edm::Event iEvent,
const edm::EventSetup iSetup 
)
overrideprivatevirtual

Implements edm::EDFilter.

Definition at line 89 of file EDFilter.cc.

References edm::EventSetup::get(), and edm::Event::getByLabel().

90 {
91  using namespace edm;
92 #ifdef THIS_IS_AN_EVENT_EXAMPLE
94  iEvent.getByLabel("example",pIn);
95 #endif
96 
97 #ifdef THIS_IS_AN_EVENTSETUP_EXAMPLE
98  ESHandle<SetupData> pSetup;
99  iSetup.get<SetupRecord>().get(pSetup);
100 #endif
101  return true;
102 }
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:390
const T & get() const
Definition: EventSetup.h:55
template<typename T>
const __class__& __class__< T >::operator= ( const __class__< T > &  rhs)
private
template<typename T>
const __class__<T>& __class__< T >::operator= ( const __class__< T > &  rhs)
private
template<typename T>
__class__& __class__< T >::operator= ( __class__< T > &&  rhs)
private
template<typename T>
__class__<T>& __class__< T >::operator= ( __class__< T > &&  rhs)
private
template<typename T>
const __class__& __class__< T >::operator= ( const __class__< T > &  )
private
template<typename T>
__class__ __class__< T >::operator= ( __class__< T > const &  )
private
template<typename T>
__class__::ReturnType __class__< T >::produce ( edm::Event iEvent,
const edm::EventSetup iSetup 
)
overrideprivatevirtual

Implements edm::EDProducer.

Definition at line 99 of file EDLooper.cc.

References recoMuon::in, convertSQLitetoXML_cfg::output, and reco::print().

100 {
101  using namespace edm::es;
102 #python_begin
103  out1 = []
104  out2 = []
105  for dtype in __datatypes__:
106  out1.append(" std::auto_ptr<%s> p%s;" % (dtype, dtype))
107  out2.append("p%s" % dtype)
108  output = '\n'.join(out1)
109  output += "\n return products(%s);\n" % ','.join(out2)
110  print output
111 #python_end
112 }
std::string print(const Track &, edm::Verbosity=edm::Concise)
Track print utility.
Definition: print.cc:8
template<typename T>
void __class__< T >::startingNewLoop ( unsigned  int)
virtual

Called before system starts to loop over the events. The argument is a count of how many loops have been processed. For the first time through the events the argument will be 0.

Implements edm::EDLooperBase.

Definition at line 124 of file EDLooper.cc.

125 {
126 }
template<typename T>
void __class__< T >::terminate ( TList &  out)
virtual

Called each time the 'client' has finished processing.

Parameters
outcontains the accumulated output of all slaves.

Implements TFWLiteSelectorBasic.

Definition at line 106 of file TSelector.cc.

References svgfig::canvas(), gather_cfg::cout, estimatePileup::hist, and kPt.

106  {
107  using namespace std;
108  std::auto_ptr<TCanvas> canvas( new TCanvas() );
109 // {
110 // TObject* hist = fromWorkers.FindObject(kA);
111 // if(0!=hist) {
112 // hist->Draw();
113 // canvas->SaveAs( "a.jpg" );
114 // } else {
115 // cout <<"no '"<<kA<<"' histogram"<<endl;
116 // }
117  // }
118 
119 @example_track {
120 @example_track TObject* hist = fromWorkers.FindObject(kPt);
121 @example_track if(0!=hist) {
122 @example_track hist->Draw();
123 @example_track canvas->SaveAs( "pt.jpg" );
124 @example_track } else {
125 @example_track cout <<"no '"<<kPt<<"' histogram"<<endl;
126 @example_track }
127 @example_track }
128 
129 }
example_track example_track const char *const kPt
Definition: TSelector.cc:34
def canvas
Definition: svgfig.py:481
tuple cout
Definition: gather_cfg.py:121

Member Data Documentation

template<typename T>
example_myparticle edm::InputTag __class__< T >::electronTags_
private

Definition at line 61 of file EDProducer.cc.

template<typename T>
example_histo TH1D* __class__< T >::histo
private

Definition at line 61 of file EDAnalyzer.cc.

Referenced by __class__< T >::analyze().

template<typename T>
example_myparticle edm::InputTag __class__< T >::muonTags_
private

Definition at line 60 of file EDProducer.cc.

template<typename T>
example_track edm::InputTag __class__< T >::trackTags_
private

Definition at line 60 of file EDAnalyzer.cc.

Referenced by __class__< T >::analyze().