#include <c++11.h>
Public Member Functions | |
__class__ () | |
__class__ (const edm::ParameterSet &) | |
__class__ (const edm::ParameterSet &) | |
__class__ (const edm::ParameterSet &) | |
__class__ (const edm::ParameterSet &) | |
__class__ () | |
__class__ () | |
__class__ () | |
__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__ () |
~__class__ () | |
~__class__ () | |
~__class__ () | |
~__class__ () | |
~__class__ () | |
~__class__ () | |
virtual | ~__class__ () |
virtual | ~__class__ () |
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
Private Member Functions | |
__class__ (const __class__ &src) | |
__class__ (__class__ &&src) | |
__class__ (const __class__ &) | |
__class__ (const __class__< T > &src) | |
__class__ (__class__ const &) | |
__class__ (__class__< T > &&src) | |
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__ &) |
const __class__< T > & | operator= (const __class__< T > &rhs) |
__class__< T > & | operator= (__class__< T > &&rhs) |
__class__ & | operator= (__class__ &&rhs) |
const __class__ & | operator= (const __class__ &rhs) |
__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_ |
Description: [one line class summary]
Implementation: [Notes on implementation]
Description: [one line class summary]
Usage: <usage>
Definition at line 31 of file Skeleton.cc.
{ }
Definition at line 88 of file EDAnalyzer.cc.
{ // do anything here that needs to be done at desctruction time // (e.g. close files, deallocate resources etc.) }
__class__< T >::__class__ | ( | const edm::ParameterSet & | iConfig | ) | [explicit] |
Definition at line 76 of file EDAnalyzer.cc.
References timingPdfMaker::histo.
: @example_track trackTags_(iConfig.getUntrackedParameter<edm::InputTag>("tracks")) { //now do what ever initialization is needed @example_histo edm::Service<TFileService> fs; @example_histo histo = fs->make<TH1D>("charge" , "Charges" , 200 , -2 , 2 ); }
__class__< T >::__class__ | ( | const edm::ParameterSet & | ) | [explicit] |
__class__< T >::__class__ | ( | const edm::ParameterSet & | ) |
__class__< T >::__class__ | ( | const edm::ParameterSet & | ) | [explicit] |
__class__< T >::__class__ | ( | const edm::ParameterSet & | ) |
void __class__< T >::analyze | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | iSetup | ||
) | [override, private, virtual] |
Implements edm::EDAnalyzer.
Definition at line 103 of file EDAnalyzer.cc.
References DeDxDiscriminatorTools::charge(), edm::EventSetup::get(), edm::Event::getByLabel(), __class__< T >::histo, testEve_cfg::tracks, and __class__< T >::trackTags_.
{ using namespace edm; @example_track using reco::TrackCollection; @example_track Handle<TrackCollection> tracks; @example_track iEvent.getByLabel(trackTags_,tracks); @example_track for(TrackCollection::const_iterator itTrack = tracks->begin(); @example_track itTrack != tracks->end(); @example_track ++itTrack) { @example_track int charge = 0; @example_track charge = itTrack->charge(); @example_histo histo->Fill( charge ); @example_track } #ifdef THIS_IS_AN_EVENT_EXAMPLE Handle<ExampleData> pIn; iEvent.getByLabel("example",pIn); #endif #ifdef THIS_IS_AN_EVENTSETUP_EXAMPLE ESHandle<SetupData> pSetup; iSetup.get<SetupRecord>().get(pSetup); #endif }
Called each time the 'client' begins processing (remote 'slaves' do not see this message)
in | an 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 101 of file TSelector.cc.
{ }
Reimplemented from edm::EDAnalyzer.
Reimplemented from edm::EDAnalyzer.
__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 131 of file EDLooper.cc.
References edm::EDLooperBase::kContinue.
{ return kContinue; }
Reimplemented from edm::EDAnalyzer.
Reimplemented from edm::EDAnalyzer.
virtual Status __class__< T >::endOfLoop | ( | const edm::EventSetup & | ) | [virtual] |
static void __class__< T >::fillDescriptions | ( | edm::ConfigurationDescriptions & | descriptions | ) | [static] |
Reimplemented from edm::EDAnalyzer.
static void __class__< T >::fillDescriptions | ( | edm::ConfigurationDescriptions & | descriptions | ) | [static] |
Reimplemented from edm::EDAnalyzer.
void __class__< T >::fillDescriptions | ( | edm::ConfigurationDescriptions & | descriptions | ) | [static] |
Reimplemented from edm::EDAnalyzer.
Definition at line 177 of file EDAnalyzer.cc.
References edm::ConfigurationDescriptions::addDefault(), and edm::ParameterSetDescription::setUnknown().
{ //The following says we do not know what parameters are allowed so do no validation // Please change this to state exactly what you do use, even if it is no parameters edm::ParameterSetDescription desc; desc.setUnknown(); descriptions.addDefault(desc); @example_track @example_track //Specify that only 'tracks' is allowed @example_track //To use, remove the default given above and uncomment below @example_track //ParameterSetDescription desc; @example_track //desc.addUntracked<edm::InputTag>("tracks","ctfWithMaterialTracks"); @example_track //descriptions.addDefault(desc); }
bool __class__< T >::filter | ( | edm::Event & | iEvent, |
const edm::EventSetup & | iSetup | ||
) | [override, private, virtual] |
Implements edm::EDFilter.
Definition at line 90 of file EDFilter.cc.
References edm::EventSetup::get(), and edm::Event::getByLabel().
{ using namespace edm; #ifdef THIS_IS_AN_EVENT_EXAMPLE Handle<ExampleData> pIn; iEvent.getByLabel("example",pIn); #endif #ifdef THIS_IS_AN_EVENTSETUP_EXAMPLE ESHandle<SetupData> pSetup; iSetup.get<SetupRecord>().get(pSetup); #endif return true; }
const __class__& __class__< T >::operator= | ( | const __class__< T > & | rhs | ) | [private] |
const __class__& __class__< T >::operator= | ( | const __class__< T > & | ) | [private] |
const __class__<T>& __class__< T >::operator= | ( | const __class__< T > & | rhs | ) | [private] |
void __class__< T >::produce | ( | edm::Event & | iEvent, |
const edm::EventSetup & | iSetup | ||
) | [override, private, virtual] |
Implements edm::EDProducer.
Definition at line 115 of file EDProducer.cc.
References DeDxDiscriminatorTools::charge(), metsig::electron, HI_PhotonSkim_cff::electrons, __class__< T >::electronTags_, edm::Event::getByLabel(), h, metsig::muon, patZpeak::muons, __class__< T >::muonTags_, MyParticleCollection, edm::Event::put(), and L1Trigger_dataformats::reco.
{ using namespace edm; @example_myparticle using namespace reco; @example_myparticle using namespace std; /* This is an event example //Read 'ExampleData' from the Event Handle<ExampleData> pIn; iEvent.getByLabel("example",pIn); //Use the ExampleData to create an ExampleData2 which // is put into the Event std::auto_ptr<ExampleData2> pOut(new ExampleData2(*pIn)); iEvent.put(pOut); */ /* this is an EventSetup example //Read SetupData from the SetupRecord in the EventSetup ESHandle<SetupData> pSetup; iSetup.get<SetupRecord>().get(pSetup); */ @example_myparticle Handle<MuonCollection> muons; @example_myparticle iEvent.getByLabel( muonTags_, muons ); @example_myparticle @example_myparticle Handle<PixelMatchGsfElectronCollection> electrons; @example_myparticle iEvent.getByLabel( electronTags_, electrons ); @example_myparticle @example_myparticle // create a new collection of Particle objects @example_myparticle auto_ptr<MyParticleCollection> newParticles( new MyParticleCollection ); @example_myparticle @example_myparticle // if the number of electrons or muons is 4 (or 2 and 2), costruct a new particle @example_myparticle if( muons->size() == 4 || electrons->size() == 4 || ( muons->size() == 2 && electrons->size() == 2 ) ) { @example_myparticle @example_myparticle // sums of momenta and charges will be calculated @example_myparticle Particle::LorentzVector totalP4( 0, 0, 0, 0 ); @example_myparticle Particle::Charge charge( 0 ); @example_myparticle @example_myparticle // loop over muons, sum over p4s and charges. Later same for electrons @example_myparticle for( MuonCollection::const_iterator muon = muons->begin(); muon != muons->end(); ++muon ) { @example_myparticle totalP4 += muon->p4(); @example_myparticle charge += muon->charge(); @example_myparticle } @example_myparticle @example_myparticle for( PixelMatchGsfElectronCollection::const_iterator electron = electrons->begin(); electron != electrons->end(); ++electron ) { @example_myparticle totalP4 += electron->p4(); @example_myparticle charge += electron->charge(); @example_myparticle } @example_myparticle @example_myparticle // create a particle with momentum and charge from muons and electrons @example_myparticle Particle h; @example_myparticle h.setP4(totalP4); @example_myparticle h.setCharge(charge); @example_myparticle @example_myparticle // fill the particles into the vector @example_myparticle newParticles->push_back( h ); @example_myparticle } @example_myparticle @example_myparticle // save the vector @example_myparticle iEvent.put( newParticles, "particles" ); }
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 125 of file EDLooper.cc.
{ }
Called each time the 'client' has finished processing.
out | contains the accumulated output of all slaves. |
Implements TFWLiteSelectorBasic.
Definition at line 107 of file TSelector.cc.
References svgfig::canvas(), gather_cfg::cout, estimatePileup::hist, and kPt.
{ using namespace std; std::auto_ptr<TCanvas> canvas( new TCanvas() ); // { // TObject* hist = fromWorkers.FindObject(kA); // if(0!=hist) { // hist->Draw(); // canvas->SaveAs( "a.jpg" ); // } else { // cout <<"no '"<<kA<<"' histogram"<<endl; // } // } @example_track { @example_track TObject* hist = fromWorkers.FindObject(kPt); @example_track if(0!=hist) { @example_track hist->Draw(); @example_track canvas->SaveAs( "pt.jpg" ); @example_track } else { @example_track cout <<"no '"<<kPt<<"' histogram"<<endl; @example_track } @example_track } }
example_myparticle edm::InputTag __class__< T >::electronTags_ [private] |
Definition at line 62 of file EDProducer.cc.
Referenced by __class__< T >::produce().
Definition at line 62 of file EDAnalyzer.cc.
Referenced by __class__< T >::analyze().
example_myparticle edm::InputTag __class__< T >::muonTags_ [private] |
Definition at line 61 of file EDProducer.cc.
Referenced by __class__< T >::produce().
example_track edm::InputTag __class__< T >::trackTags_ [private] |
Definition at line 61 of file EDAnalyzer.cc.
Referenced by __class__< T >::analyze().