CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
HLTTrackClusterRemover Class Reference
Inheritance diagram for HLTTrackClusterRemover:
edm::EDProducer edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Classes

struct  ParamBlock
 

Public Member Functions

template<typename T >
auto_ptr< edmNew::DetSetVector
< T > > 
cleanup (const edmNew::DetSetVector< T > &oldClusters, const std::vector< uint8_t > &isGood, reco::ClusterRemovalInfo::Indices &refs, const reco::ClusterRemovalInfo::Indices *oldRefs)
 
 HLTTrackClusterRemover (const edm::ParameterSet &iConfig)
 
void produce (edm::Event &iEvent, const edm::EventSetup &iSetup)
 
 ~HLTTrackClusterRemover ()
 
- Public Member Functions inherited from edm::EDProducer
 EDProducer ()
 
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 ()
 
ProductHolderIndex indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndex > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndex > &) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Private Member Functions

template<typename T >
std::auto_ptr
< edmNew::DetSetVector< T > > 
cleanup (const edmNew::DetSetVector< T > &oldClusters, const std::vector< uint8_t > &isGood, reco::ClusterRemovalInfo::Indices &refs, const reco::ClusterRemovalInfo::Indices *oldRefs)
 
void mergeOld (reco::ClusterRemovalInfo::Indices &refs, const reco::ClusterRemovalInfo::Indices &oldRefs)
 
void process (const TrackingRecHit *hit, float chi2)
 
void process (const OmniClusterRef &cluRef, uint32_t subdet)
 
void readPSet (const edm::ParameterSet &iConfig, const std::string &name, int id1=-1, int id2=-1, int id3=-1, int id4=-1, int id5=-1, int id6=-1)
 

Private Attributes

std::vector< bool > collectedPixels_
 
std::vector< bool > collectedRegStrips_
 
bool doPixel_
 
bool doStrip_
 
bool makeProducts_
 
bool mergeOld_
 
edm::InputTag oldRemovalInfo_
 
ParamBlock pblocks_ [NumberOfParamBlocks]
 
edm::InputTag pixelClusters_
 
std::vector< uint8_t > pixels
 
edm::ProductID pixelSourceProdID
 
edm::InputTag stripClusters_
 
std::vector< uint8_t > strips
 
edm::ProductID stripSourceProdID
 
edm::InputTag trajectories_
 

Static Private Attributes

static const unsigned int NumberOfParamBlocks = 6
 

Additional Inherited Members

- Public Types inherited from edm::EDProducer
typedef EDProducer ModuleType
 
typedef WorkerT< EDProducerWorkerType
 
- Public Types inherited from edm::ProducerBase
typedef
ProductRegistryHelper::TypeLabelList 
TypeLabelList
 
- Static Public Member Functions inherited from edm::EDProducer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::EDProducer
CurrentProcessingContext const * currentContext () const
 
- 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)
 

Detailed Description

Definition at line 34 of file HLTTrackClusterRemover.cc.

Constructor & Destructor Documentation

HLTTrackClusterRemover::HLTTrackClusterRemover ( const edm::ParameterSet iConfig)

Definition at line 108 of file HLTTrackClusterRemover.cc.

References doPixel_, doStrip_, edm::hlt::Exception, edm::ParameterSet::exists(), lumiContext::fill, edm::ParameterSet::getParameter(), i, mergeOld_, NumberOfParamBlocks, oldRemovalInfo_, pblocks_, and readPSet().

108  :
109  trajectories_(iConfig.getParameter<InputTag>("trajectories")),
110  doStrip_(iConfig.existsAs<bool>("doStrip") ? iConfig.getParameter<bool>("doStrip") : true),
111  doPixel_(iConfig.existsAs<bool>("doPixel") ? iConfig.getParameter<bool>("doPixel") : true),
112  stripClusters_(doStrip_ ? iConfig.getParameter<InputTag>("stripClusters") : InputTag("NONE")),
113  pixelClusters_(doPixel_ ? iConfig.getParameter<InputTag>("pixelClusters") : InputTag("NONE")),
114  mergeOld_(false),
116  makeProducts_(true)
117 {
118 
119  if (iConfig.exists("oldClusterRemovalInfo"))
120  {
121  oldRemovalInfo_=iConfig.getParameter<InputTag>("oldClusterRemovalInfo");
122  if (not (oldRemovalInfo_== edm::InputTag())) mergeOld_=true;
123  }
124 
125  fill(pblocks_, pblocks_+NumberOfParamBlocks, ParamBlock());
126  readPSet(iConfig, "Common",-1);
127  if (doPixel_) {
128  readPSet(iConfig, "Pixel" ,0,1);
129  readPSet(iConfig, "PXB" ,0);
130  readPSet(iConfig, "PXE" ,1);
131  }
132  if (doStrip_) {
133  readPSet(iConfig, "Strip" ,2,3,4,5);
134  readPSet(iConfig, "StripInner" ,2,3);
135  readPSet(iConfig, "StripOuter" ,4,5);
136  readPSet(iConfig, "TIB" ,2);
137  readPSet(iConfig, "TID" ,3);
138  readPSet(iConfig, "TOB" ,4);
139  readPSet(iConfig, "TEC" ,5);
140  }
141 
142  bool usingCharge = false;
143  for (size_t i = 0; i < NumberOfParamBlocks; ++i) {
144  if (!pblocks_[i].isSet_) throw cms::Exception("Configuration Error") << "HLTTrackClusterRemover: Missing configuration for detector with subDetID = " << (i+1);
145  if (pblocks_[i].usesCharge_ && !usingCharge) {
146  throw cms::Exception("Configuration Error") << "HLTTrackClusterRemover: Configuration for subDetID = " << (i+1) << " uses cluster charge, which is not enabled.";
147  }
148  }
149 
150  //produces<edmNew::DetSetVector<SiPixelClusterRefNew> >();
151  //produces<edmNew::DetSetVector<SiStripRecHit1D::ClusterRegionalRef> >();
152 
153  produces< edm::ContainerMask<edmNew::DetSetVector<SiPixelCluster> > >();
154  produces< edm::ContainerMask<edm::LazyGetter<SiStripCluster> > >();
155 
156 }
T getParameter(std::string const &) const
int i
Definition: DBlmapReader.cc:9
string fill
Definition: lumiContext.py:319
bool existsAs(std::string const &parameterName, bool trackiness=true) const
checks if a parameter exists as a given type
Definition: ParameterSet.h:187
void readPSet(const edm::ParameterSet &iConfig, const std::string &name, int id1=-1, int id2=-1, int id3=-1, int id4=-1, int id5=-1, int id6=-1)
bool exists(std::string const &parameterName) const
checks if a parameter exists
static const unsigned int NumberOfParamBlocks
ParamBlock pblocks_[NumberOfParamBlocks]
HLTTrackClusterRemover::~HLTTrackClusterRemover ( )

Definition at line 159 of file HLTTrackClusterRemover.cc.

160 {
161 }

Member Function Documentation

template<typename T >
std::auto_ptr<edmNew::DetSetVector<T> > HLTTrackClusterRemover::cleanup ( const edmNew::DetSetVector< T > &  oldClusters,
const std::vector< uint8_t > &  isGood,
reco::ClusterRemovalInfo::Indices refs,
const reco::ClusterRemovalInfo::Indices oldRefs 
)
private
template<typename T >
auto_ptr<edmNew::DetSetVector<T> > HLTTrackClusterRemover::cleanup ( const edmNew::DetSetVector< T > &  oldClusters,
const std::vector< uint8_t > &  isGood,
reco::ClusterRemovalInfo::Indices refs,
const reco::ClusterRemovalInfo::Indices oldRefs 
)

Definition at line 174 of file HLTTrackClusterRemover.cc.

References edmNew::DetSetVector< T >::begin(), edmNew::DetSetVector< T >::data(), edmNew::DetSetVector< T >::dataSize(), edmNew::DetSetVector< T >::end(), getHLTprescales::index, mergeOld(), convertSQLitetoXML_cfg::output, and edmNew::DetSetVector< T >::size().

175  {
176  typedef typename edmNew::DetSetVector<T> DSV;
177  typedef typename edmNew::DetSetVector<T>::FastFiller DSF;
178  typedef typename edmNew::DetSet<T> DS;
179  auto_ptr<DSV> output(new DSV());
180  output->reserve(oldClusters.size(), oldClusters.dataSize());
181 
182  unsigned int countOld=0;
183  unsigned int countNew=0;
184 
185  // cluster removal loop
186  const T * firstOffset = & oldClusters.data().front();
187  for (typename DSV::const_iterator itdet = oldClusters.begin(), enddet = oldClusters.end(); itdet != enddet; ++itdet) {
188  DS oldDS = *itdet;
189 
190  if (oldDS.empty()) continue; // skip empty detsets
191 
192  uint32_t id = oldDS.detId();
193  DSF outds(*output, id);
194 
195  for (typename DS::const_iterator it = oldDS.begin(), ed = oldDS.end(); it != ed; ++it) {
196  uint32_t index = ((&*it) - firstOffset);
197  countOld++;
198  if (isGood[index]) {
199  outds.push_back(*it);
200  countNew++;
201  refs.push_back(index);
202  //std::cout << "HLTTrackClusterRemover::cleanup " << typeid(T).name() << " reference " << index << " to " << (refs.size() - 1) << std::endl;
203  }
204 
205  }
206  if (outds.empty()) outds.abort(); // not write in an empty DSV
207  }
208  // double fraction = countNew / (double) countOld;
209  // std::cout<<"fraction: "<<fraction<<std::endl;
210  if (oldRefs != 0) mergeOld(refs, *oldRefs);
211  return output;
212 }
const_iterator begin() const
size_type dataSize() const
data_type const * data(size_t cell) const
const_iterator end() const
void mergeOld(reco::ClusterRemovalInfo::Indices &refs, const reco::ClusterRemovalInfo::Indices &oldRefs)
size_type size() const
long double T
void HLTTrackClusterRemover::mergeOld ( reco::ClusterRemovalInfo::Indices refs,
const reco::ClusterRemovalInfo::Indices oldRefs 
)
private

Definition at line 163 of file HLTTrackClusterRemover.cc.

References i, and n.

Referenced by cleanup().

165 {
166  for (size_t i = 0, n = refs.size(); i < n; ++i) {
167  refs[i] = oldRefs[refs[i]];
168  }
169 }
int i
Definition: DBlmapReader.cc:9
void HLTTrackClusterRemover::process ( const TrackingRecHit hit,
float  chi2 
)
inlineprivate

Definition at line 227 of file HLTTrackClusterRemover.cc.

References collectedPixels_, cond::rpcobgas::detid, doPixel_, doStrip_, edm::hlt::Exception, TrackingRecHit::geographicalId(), HLTTrackClusterRemover::ParamBlock::maxSize_, NumberOfParamBlocks, ProjectedSiStripRecHit2D::originalHit(), pblocks_, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, pixelSourceProdID, DetId::rawId(), and DetId::subdetId().

Referenced by ConfigBuilder.ConfigBuilder::addExtraStream(), ConfigBuilder.ConfigBuilder::completeInputCommand(), ConfigBuilder.ConfigBuilder::doNotInlineEventContent(), ConfigBuilder.ConfigBuilder.PrintAllModules::leave(), ConfigBuilder.ConfigBuilder::prepare_FASTSIM(), ConfigBuilder.ConfigBuilder::prepare_HLT(), ConfigBuilder.ConfigBuilder::prepare_LHE(), ConfigBuilder.ConfigBuilder::prepare_VALIDATION(), produce(), ConfigBuilder.ConfigBuilder::renameHLTprocessInSequence(), ConfigBuilder.ConfigBuilder::renameInputTagsInSequence(), and ConfigBuilder.ConfigBuilder::scheduleSequence().

227  {
228  DetId detid = hit->geographicalId();
229  uint32_t subdet = detid.subdetId();
230 
231  assert ((subdet > 0) && (subdet <= NumberOfParamBlocks));
232 
233  // chi2 cut
234  if (chi2 > pblocks_[subdet-1].maxChi2_) return;
235 
236  if ((subdet == PixelSubdetector::PixelBarrel) || (subdet == PixelSubdetector::PixelEndcap)) {
237  // std::cout<<"process pxl hit"<<std::endl;
238  if (!doPixel_) return;
239  // this is a pixel, and i *know* it is
240  const SiPixelRecHit *pixelHit = static_cast<const SiPixelRecHit *>(hit);
241 
242  SiPixelRecHit::ClusterRef cluster = pixelHit->cluster();
243 
244  if (cluster.id() != pixelSourceProdID) throw cms::Exception("Inconsistent Data") <<
245  "HLTTrackClusterRemover: pixel cluster ref from Product ID = " << cluster.id() <<
246  " does not match with source cluster collection (ID = " << pixelSourceProdID << ")\n.";
247 
248  assert(cluster.id() == pixelSourceProdID);
249 //DBG// cout << "HIT NEW PIXEL DETID = " << detid.rawId() << ", Cluster [ " << cluster.key().first << " / " << cluster.key().second << " ] " << endl;
250 
251  // if requested, cut on cluster size
252  if (pblocks_[subdet-1].usesSize_ && (cluster->pixels().size() > pblocks_[subdet-1].maxSize_)) return;
253 
254  // mark as used
255  //pixels[cluster.key()] = false;
256  assert(collectedPixels_.size() > cluster.key());
257  collectedPixels_[cluster.key()]=true;
258  } else { // aka Strip
259  if (!doStrip_) return;
260  const type_info &hitType = typeid(*hit);
261  if (hitType == typeid(SiStripRecHit2D)) {
262  const SiStripRecHit2D *stripHit = static_cast<const SiStripRecHit2D *>(hit);
263 //DBG// cout << "Plain RecHit 2D: " << endl;
264  process(stripHit->omniClusterRef(),subdet);}
265  else if (hitType == typeid(SiStripRecHit1D)) {
266  const SiStripRecHit1D *hit1D = static_cast<const SiStripRecHit1D *>(hit);
267  process(hit1D->omniClusterRef(),subdet);
268  } else if (hitType == typeid(SiStripMatchedRecHit2D)) {
269  const SiStripMatchedRecHit2D *matchHit = static_cast<const SiStripMatchedRecHit2D *>(hit);
270 //DBG// cout << "Matched RecHit 2D: " << endl;
271  process(matchHit->monoClusterRef(),subdet);
272  process(matchHit->stereoClusterRef(),subdet);
273  } else if (hitType == typeid(ProjectedSiStripRecHit2D)) {
274  const ProjectedSiStripRecHit2D *projHit = static_cast<const ProjectedSiStripRecHit2D *>(hit);
275 //DBG// cout << "Projected RecHit 2D: " << endl;
276  process(projHit->originalHit().omniClusterRef(),subdet);
277  } else throw cms::Exception("NOT IMPLEMENTED") << "Don't know how to handle " << hitType.name() << " on detid " << detid.rawId() << "\n";
278  }
279 }
uint32_t rawId() const
get the raw id
Definition: DetId.h:45
static const unsigned int NumberOfParamBlocks
int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:39
ParamBlock pblocks_[NumberOfParamBlocks]
Definition: DetId.h:20
std::vector< bool > collectedPixels_
void process(const TrackingRecHit *hit, float chi2)
DetId geographicalId() const
const SiStripRecHit2D & originalHit() const
Pixel Reconstructed Hit.
void HLTTrackClusterRemover::process ( const OmniClusterRef cluRef,
uint32_t  subdet 
)
inlineprivate

Definition at line 214 of file HLTTrackClusterRemover.cc.

References collectedRegStrips_, OmniClusterRef::id(), OmniClusterRef::key(), and stripSourceProdID.

Referenced by ConfigBuilder.ConfigBuilder::addExtraStream(), ConfigBuilder.ConfigBuilder::completeInputCommand(), ConfigBuilder.ConfigBuilder::doNotInlineEventContent(), ConfigBuilder.ConfigBuilder.PrintAllModules::leave(), ConfigBuilder.ConfigBuilder::prepare_FASTSIM(), ConfigBuilder.ConfigBuilder::prepare_HLT(), ConfigBuilder.ConfigBuilder::prepare_LHE(), ConfigBuilder.ConfigBuilder::prepare_VALIDATION(), ConfigBuilder.ConfigBuilder::renameHLTprocessInSequence(), ConfigBuilder.ConfigBuilder::renameInputTagsInSequence(), and ConfigBuilder.ConfigBuilder::scheduleSequence().

214  {
215  if (clusterReg.id() != stripSourceProdID) throw cms::Exception("Inconsistent Data") <<
216  "HLTTrackClusterRemover: strip cluster ref from Product ID = " << clusterReg.id() <<
217  " does not match with source cluster collection (ID = " << stripSourceProdID << ")\n.";
218  if (collectedRegStrips_.size()<=clusterReg.key()){
219  edm::LogError("BadCollectionSize")<<collectedRegStrips_.size()<<" is smaller than "<<clusterReg.key();
220  assert(collectedRegStrips_.size()>clusterReg.key());
221  }
222  collectedRegStrips_[clusterReg.key()]=true;
223 }
std::vector< bool > collectedRegStrips_
void HLTTrackClusterRemover::produce ( edm::Event iEvent,
const edm::EventSetup iSetup 
)
virtual

Implements edm::EDProducer.

Definition at line 293 of file HLTTrackClusterRemover.cc.

References collectedPixels_, collectedRegStrips_, prof2calltree::count, doPixel_, doStrip_, lumiContext::fill, edm::Event::getByLabel(), edm::HandleBase::id(), TrackingRecHit::isValid(), LogDebug, Trajectory::measurements(), mergeOld_, oldRemovalInfo_, clustersummaryproducer_cfg::pixelClusters, pixelClusters_, pixelSourceProdID, process(), edm::Event::put(), clustersummaryproducer_cfg::stripClusters, stripClusters_, stripSourceProdID, and trajectories_.

294 {
295  ProductID pixelOldProdID, stripOldProdID;
296 
298  if (doPixel_) {
299  iEvent.getByLabel(pixelClusters_, pixelClusters);
300  pixelSourceProdID = pixelClusters.id();
301  }
302 
304  if (doStrip_) {
305  iEvent.getByLabel(stripClusters_, stripClusters);
306  stripSourceProdID = stripClusters.id();
307  }
308 
309  //Handle<TrajTrackAssociationCollection> trajectories;
310  Handle<vector<Trajectory> > trajectories;
311  iEvent.getByLabel(trajectories_, trajectories);
312 
313  typedef edm::ContainerMask<edmNew::DetSetVector<SiPixelCluster> > PixelMaskContainer;
314  typedef edm::ContainerMask<edm::LazyGetter<SiStripCluster> > StripMaskContainer;
315  if(mergeOld_) {
318  iEvent.getByLabel(oldRemovalInfo_,oldPxlMask);
319  iEvent.getByLabel(oldRemovalInfo_,oldStrMask);
320  LogDebug("TrackClusterRemover")<<"to merge in, "<<oldStrMask->size()<<" strp and "<<oldPxlMask->size()<<" pxl";
321  oldStrMask->copyMaskTo(collectedRegStrips_);
322  oldPxlMask->copyMaskTo(collectedPixels_);
323  collectedRegStrips_.resize(stripClusters->size());
324  }else {
325  collectedRegStrips_.resize(stripClusters->size()); fill(collectedRegStrips_.begin(), collectedRegStrips_.end(), false);
326  collectedPixels_.resize(pixelClusters->dataSize()); fill(collectedPixels_.begin(), collectedPixels_.end(), false);
327  }
328 
329 
330  //for (TrajTrackAssociationCollection::const_iterator it = trajectories->begin(), ed = trajectories->end(); it != ed; ++it) {
331  // const Trajectory &tj = * it->key;
332  for (vector<Trajectory>::const_iterator it = trajectories->begin(), ed = trajectories->end(); it != ed; ++it) {
333  const Trajectory &tj = * it;
334  const vector<TrajectoryMeasurement> &tms = tj.measurements();
335  vector<TrajectoryMeasurement>::const_iterator itm, endtm;
336  for (itm = tms.begin(), endtm = tms.end(); itm != endtm; ++itm) {
337  const TrackingRecHit *hit = itm->recHit()->hit();
338  if (!hit->isValid()) continue;
339  // std::cout<<"process hit"<<std::endl;
340  process( hit, itm->estimate() );
341  }
342  }
343 
344  std::auto_ptr<StripMaskContainer> removedStripClusterMask(
345  new StripMaskContainer(edm::RefProd<edm::LazyGetter<SiStripCluster> >(stripClusters),collectedRegStrips_));
346  LogDebug("TrackClusterRemover")<<"total strip to skip: "<<std::count(collectedRegStrips_.begin(),collectedRegStrips_.end(),true);
347  iEvent.put( removedStripClusterMask );
348 
349  std::auto_ptr<PixelMaskContainer> removedPixelClusterMask(
350  new PixelMaskContainer(edm::RefProd<edmNew::DetSetVector<SiPixelCluster> >(pixelClusters),collectedPixels_));
351  LogDebug("TrackClusterRemover")<<"total pxl to skip: "<<std::count(collectedPixels_.begin(),collectedPixels_.end(),true);
352  iEvent.put( removedPixelClusterMask );
353 
354 }
#define LogDebug(id)
string fill
Definition: lumiContext.py:319
ProductID id() const
Definition: HandleBase.cc:15
std::vector< bool > collectedRegStrips_
DataContainer const & measurements() const
Definition: Trajectory.h:215
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Definition: Event.h:94
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:361
bool isValid() const
std::vector< bool > collectedPixels_
void process(const TrackingRecHit *hit, float chi2)
void HLTTrackClusterRemover::readPSet ( const edm::ParameterSet iConfig,
const std::string &  name,
int  id1 = -1,
int  id2 = -1,
int  id3 = -1,
int  id4 = -1,
int  id5 = -1,
int  id6 = -1 
)
private

Definition at line 90 of file HLTTrackClusterRemover.cc.

References edm::ParameterSet::exists(), lumiContext::fill, and edm::ParameterSet::getParameter().

Referenced by HLTTrackClusterRemover().

92 {
93  if (iConfig.exists(name)) {
94  ParamBlock pblock(iConfig.getParameter<ParameterSet>(name));
95  if (id1 == -1) {
97  } else {
98  pblocks_[id1] = pblock;
99  if (id2 != -1) pblocks_[id2] = pblock;
100  if (id3 != -1) pblocks_[id3] = pblock;
101  if (id4 != -1) pblocks_[id4] = pblock;
102  if (id5 != -1) pblocks_[id5] = pblock;
103  if (id6 != -1) pblocks_[id6] = pblock;
104  }
105  }
106 }
T getParameter(std::string const &) const
string fill
Definition: lumiContext.py:319
bool exists(std::string const &parameterName) const
checks if a parameter exists
static const unsigned int NumberOfParamBlocks
ParamBlock pblocks_[NumberOfParamBlocks]

Member Data Documentation

std::vector<bool> HLTTrackClusterRemover::collectedPixels_
private

Definition at line 81 of file HLTTrackClusterRemover.cc.

Referenced by process(), and produce().

std::vector<bool> HLTTrackClusterRemover::collectedRegStrips_
private

Definition at line 80 of file HLTTrackClusterRemover.cc.

Referenced by process(), and produce().

bool HLTTrackClusterRemover::doPixel_
private

Definition at line 56 of file HLTTrackClusterRemover.cc.

Referenced by HLTTrackClusterRemover(), process(), and produce().

bool HLTTrackClusterRemover::doStrip_
private

Definition at line 56 of file HLTTrackClusterRemover.cc.

Referenced by HLTTrackClusterRemover(), process(), and produce().

bool HLTTrackClusterRemover::makeProducts_
private

Definition at line 79 of file HLTTrackClusterRemover.cc.

bool HLTTrackClusterRemover::mergeOld_
private

Definition at line 58 of file HLTTrackClusterRemover.cc.

Referenced by HLTTrackClusterRemover(), and produce().

const unsigned int HLTTrackClusterRemover::NumberOfParamBlocks = 6
staticprivate

Definition at line 53 of file HLTTrackClusterRemover.cc.

Referenced by HLTTrackClusterRemover(), and process().

edm::InputTag HLTTrackClusterRemover::oldRemovalInfo_
private

Definition at line 59 of file HLTTrackClusterRemover.cc.

Referenced by HLTTrackClusterRemover(), and produce().

ParamBlock HLTTrackClusterRemover::pblocks_[NumberOfParamBlocks]
private

Definition at line 61 of file HLTTrackClusterRemover.cc.

Referenced by HLTTrackClusterRemover(), and process().

edm::InputTag HLTTrackClusterRemover::pixelClusters_
private

Definition at line 57 of file HLTTrackClusterRemover.cc.

Referenced by produce().

std::vector<uint8_t> HLTTrackClusterRemover::pixels
private

Definition at line 65 of file HLTTrackClusterRemover.cc.

edm::ProductID HLTTrackClusterRemover::pixelSourceProdID
private

Definition at line 66 of file HLTTrackClusterRemover.cc.

Referenced by process(), and produce().

edm::InputTag HLTTrackClusterRemover::stripClusters_
private

Definition at line 57 of file HLTTrackClusterRemover.cc.

Referenced by produce().

std::vector<uint8_t> HLTTrackClusterRemover::strips
private

Definition at line 65 of file HLTTrackClusterRemover.cc.

edm::ProductID HLTTrackClusterRemover::stripSourceProdID
private

Definition at line 66 of file HLTTrackClusterRemover.cc.

Referenced by process(), and produce().

edm::InputTag HLTTrackClusterRemover::trajectories_
private

Definition at line 55 of file HLTTrackClusterRemover.cc.

Referenced by produce().