CMS 3D CMS Logo

Public Member Functions | Private Attributes

RecoTrackAccumulator Class Reference

#include <RecoTrackAccumulator.h>

Inheritance diagram for RecoTrackAccumulator:
DigiAccumulatorMixMod

List of all members.

Public Member Functions

virtual void accumulate (edm::Event const &e, edm::EventSetup const &c)
virtual void accumulate (PileUpEventPrincipal const &e, edm::EventSetup const &c)
virtual void finalizeEvent (edm::Event &e, edm::EventSetup const &c)
virtual void initializeEvent (edm::Event const &e, edm::EventSetup const &c)
 RecoTrackAccumulator (const edm::ParameterSet &conf, edm::EDProducer &mixMod)
virtual ~RecoTrackAccumulator ()

Private Attributes

edm::InputTag GeneralTrackInput_
std::string GeneralTrackOutput_
std::auto_ptr
< reco::TrackCollection
NewTrackList_

Detailed Description

RecoTrackAccumulator accumulates generalTracks from the hard and the pileup events

Author:
Andrea Giammanco
Version:
Mar 11 2013

Definition at line 40 of file RecoTrackAccumulator.h.


Constructor & Destructor Documentation

RecoTrackAccumulator::RecoTrackAccumulator ( const edm::ParameterSet conf,
edm::EDProducer mixMod 
) [explicit]
RecoTrackAccumulator::~RecoTrackAccumulator ( ) [virtual]

Definition at line 12 of file RecoTrackAccumulator.cc.

                                            {
    
}

Member Function Documentation

void RecoTrackAccumulator::accumulate ( edm::Event const &  e,
edm::EventSetup const &  c 
) [virtual]

Implements DigiAccumulatorMixMod.

Definition at line 22 of file RecoTrackAccumulator.cc.

References GeneralTrackInput_, edm::Event::getByLabel(), edm::HandleBase::isValid(), NewTrackList_, and testEve_cfg::tracks.

                                                                                    {
  

  edm::Handle<reco::TrackCollection> tracks;
  e.getByLabel(GeneralTrackInput_, tracks);
  
  if (tracks.isValid()) {
    for (reco::TrackCollection::const_iterator track = tracks->begin();  track != tracks->end();  ++track) {
      NewTrackList_->push_back(*track);
    }
  }

}
void RecoTrackAccumulator::accumulate ( PileUpEventPrincipal const &  e,
edm::EventSetup const &  c 
) [virtual]

Implements DigiAccumulatorMixMod.

Definition at line 36 of file RecoTrackAccumulator.cc.

References GeneralTrackInput_, PileUpEventPrincipal::getByLabel(), edm::HandleBase::isValid(), NewTrackList_, and testEve_cfg::tracks.

                                                                                                {

  
  edm::Handle<reco::TrackCollection> tracks;
  e.getByLabel(GeneralTrackInput_, tracks);
  
  if (tracks.isValid()) {
    for (reco::TrackCollection::const_iterator track = tracks->begin();  track != tracks->end();  ++track) {
      NewTrackList_->push_back(*track);
    }
  }

}
void RecoTrackAccumulator::finalizeEvent ( edm::Event e,
edm::EventSetup const &  c 
) [virtual]
void RecoTrackAccumulator::initializeEvent ( edm::Event const &  e,
edm::EventSetup const &  c 
) [virtual]

Implements DigiAccumulatorMixMod.

Definition at line 16 of file RecoTrackAccumulator.cc.

References NewTrackList_.

                                                                                         {
    
  NewTrackList_ = std::auto_ptr<reco::TrackCollection>(new reco::TrackCollection());

}

Member Data Documentation

Definition at line 53 of file RecoTrackAccumulator.h.

Referenced by accumulate(), and RecoTrackAccumulator().

Definition at line 54 of file RecoTrackAccumulator.h.

Referenced by finalizeEvent(), and RecoTrackAccumulator().

Definition at line 52 of file RecoTrackAccumulator.h.

Referenced by accumulate(), finalizeEvent(), and initializeEvent().