CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Types | Public Member Functions | Public Attributes
TrackCollectionCloner Class Reference

#include <TrackCollectionCloner.h>

Classes

struct  Producer
 

Public Types

using Tokens = TrackCollectionTokens
 

Public Member Functions

template<typename Producer >
 TrackCollectionCloner (Producer &producer, const edm::ParameterSet &cfg, bool copyDefault)
 

Public Attributes

bool copyExtras_
 copy only the tracks, not extras and rechits (for AOD) More...
 
bool copyTrajectories_
 copy also trajectories and trajectory->track associations More...
 

Detailed Description

Definition at line 25 of file TrackCollectionCloner.h.

Member Typedef Documentation

Definition at line 34 of file TrackCollectionCloner.h.

Constructor & Destructor Documentation

template<typename Producer >
TrackCollectionCloner::TrackCollectionCloner ( Producer producer,
const edm::ParameterSet cfg,
bool  copyDefault 
)
inline

Definition at line 38 of file TrackCollectionCloner.h.

References HLT_25ns14e33_v1_cff::alias, copyExtras_, copyTrajectories_, edm::ParameterSet::getParameter(), and AlCaHLTBitMon_QueryRunRegistry::string.

38  :
39  copyExtras_(cfg.template getUntrackedParameter<bool>("copyExtras", copyDefault)),
40  copyTrajectories_(cfg.template getUntrackedParameter<bool>("copyTrajectories", copyDefault)) {
41  std::string alias( cfg.getParameter<std::string>( "@module_label" ) );
42  producer.template produces<reco::TrackCollection>().setBranchAlias( alias + "Tracks" );
43  if (copyExtras_) {
44  producer.template produces<reco::TrackExtraCollection>().setBranchAlias( alias + "TrackExtras" );
45  producer.template produces<TrackingRecHitCollection>().setBranchAlias( alias + "RecHits" );
46  }
47  if (copyTrajectories_) {
48  producer.template produces< std::vector<Trajectory> >().setBranchAlias( alias + "Trajectories" );
49  producer.template produces< TrajTrackAssociationCollection >().setBranchAlias( alias + "TrajectoryTrackAssociations" );
50  }
51  }
T getParameter(std::string const &) const
bool copyExtras_
copy only the tracks, not extras and rechits (for AOD)
bool copyTrajectories_
copy also trajectories and trajectory-&gt;track associations

Member Data Documentation

bool TrackCollectionCloner::copyExtras_

copy only the tracks, not extras and rechits (for AOD)

Definition at line 29 of file TrackCollectionCloner.h.

Referenced by TrackCollectionCloner::Producer::operator()(), TrackCollectionCloner(), and TrackCollectionCloner::Producer::~Producer().

bool TrackCollectionCloner::copyTrajectories_

copy also trajectories and trajectory->track associations

Definition at line 31 of file TrackCollectionCloner.h.

Referenced by TrackCollectionCloner::Producer::operator()(), TrackCollectionCloner(), and TrackCollectionCloner::Producer::~Producer().