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
TrackClusterRemover Class Reference
Inheritance diagram for TrackClusterRemover:
edm::EDProducer edm::ProducerBase 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)
 
void produce (edm::Event &iEvent, const edm::EventSetup &iSetup)
 
 TrackClusterRemover (const edm::ParameterSet &iConfig)
 
 ~TrackClusterRemover ()
 
- Public Member Functions inherited from edm::EDProducer
 EDProducer ()
 
virtual ~EDProducer ()
 
- Public Member Functions inherited from edm::ProducerBase
 ProducerBase ()
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
boost::function< void(const
BranchDescription &)> 
registrationCallback () const
 used by the fwk to register list of products More...
 
virtual ~ProducerBase ()
 

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 SiStripRecHit2D *hit2D, uint32_t subdet)
 
void process (const SiStripRecHit1D *hit1D, 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

bool doPixel_
 
bool doStrip_
 
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)
 
- Protected Member Functions inherited from edm::EDProducer
CurrentProcessingContext const * currentContext () const
 
- Protected Member Functions inherited from edm::ProducerBase
template<class TProducer , class TMethod >
void callWhenNewProductsRegistered (TProducer *iProd, TMethod iMethod)
 

Detailed Description

Definition at line 33 of file TrackClusterRemover.cc.

Constructor & Destructor Documentation

TrackClusterRemover::TrackClusterRemover ( const edm::ParameterSet iConfig)

Definition at line 104 of file TrackClusterRemover.cc.

References doPixel_, doStrip_, edm::hlt::Exception, i, NumberOfParamBlocks, pblocks_, and readPSet().

104  :
105  trajectories_(iConfig.getParameter<InputTag>("trajectories")),
106  doStrip_(iConfig.existsAs<bool>("doStrip") ? iConfig.getParameter<bool>("doStrip") : true),
107  doPixel_(iConfig.existsAs<bool>("doPixel") ? iConfig.getParameter<bool>("doPixel") : true),
108  stripClusters_(doStrip_ ? iConfig.getParameter<InputTag>("stripClusters") : InputTag("NONE")),
109  pixelClusters_(doPixel_ ? iConfig.getParameter<InputTag>("pixelClusters") : InputTag("NONE")),
110  mergeOld_(iConfig.exists("oldClusterRemovalInfo")),
111  oldRemovalInfo_(mergeOld_ ? iConfig.getParameter<InputTag>("oldClusterRemovalInfo") : InputTag("NONE"))
112 {
113  if (doPixel_) produces< edmNew::DetSetVector<SiPixelCluster> >();
114  if (doStrip_) produces< edmNew::DetSetVector<SiStripCluster> >();
115  produces< ClusterRemovalInfo >();
116 
117  fill(pblocks_, pblocks_+NumberOfParamBlocks, ParamBlock());
118  readPSet(iConfig, "Common",-1);
119  if (doPixel_) {
120  readPSet(iConfig, "Pixel" ,0,1);
121  readPSet(iConfig, "PXB" ,0);
122  readPSet(iConfig, "PXE" ,1);
123  }
124  if (doStrip_) {
125  readPSet(iConfig, "Strip" ,2,3,4,5);
126  readPSet(iConfig, "StripInner" ,2,3);
127  readPSet(iConfig, "StripOuter" ,4,5);
128  readPSet(iConfig, "TIB" ,2);
129  readPSet(iConfig, "TID" ,3);
130  readPSet(iConfig, "TOB" ,4);
131  readPSet(iConfig, "TEC" ,5);
132  }
133 
134  bool usingCharge = false;
135  for (size_t i = 0; i < NumberOfParamBlocks; ++i) {
136  if (!pblocks_[i].isSet_) throw cms::Exception("Configuration Error") << "TrackClusterRemover: Missing configuration for detector with subDetID = " << (i+1);
137  if (pblocks_[i].usesCharge_ && !usingCharge) {
138  throw cms::Exception("Configuration Error") << "TrackClusterRemover: Configuration for subDetID = " << (i+1) << " uses cluster charge, which is not enabled.";
139  }
140  }
141 }
T getParameter(std::string const &) const
int i
Definition: DBlmapReader.cc:9
edm::InputTag stripClusters_
bool existsAs(std::string const &parameterName, bool trackiness=true) const
checks if a parameter exists as a given type
Definition: ParameterSet.h:180
static const unsigned int NumberOfParamBlocks
ParamBlock pblocks_[NumberOfParamBlocks]
edm::InputTag pixelClusters_
bool exists(std::string const &parameterName) const
checks if a parameter exists
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)
edm::InputTag oldRemovalInfo_
TrackClusterRemover::~TrackClusterRemover ( )

Definition at line 144 of file TrackClusterRemover.cc.

145 {
146 }

Member Function Documentation

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

Referenced by produce().

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

Definition at line 159 of file TrackClusterRemover.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().

160  {
161  typedef typename edmNew::DetSetVector<T> DSV;
162  typedef typename edmNew::DetSetVector<T>::FastFiller DSF;
163  typedef typename edmNew::DetSet<T> DS;
164  auto_ptr<DSV> output(new DSV());
165  output->reserve(oldClusters.size(), oldClusters.dataSize());
166 
167  // cluster removal loop
168  const T * firstOffset = & oldClusters.data().front();
169  for (typename DSV::const_iterator itdet = oldClusters.begin(), enddet = oldClusters.end(); itdet != enddet; ++itdet) {
170  DS oldDS = *itdet;
171 
172  if (oldDS.empty()) continue; // skip empty detsets
173 
174  uint32_t id = oldDS.detId();
175  DSF outds(*output, id);
176 
177  for (typename DS::const_iterator it = oldDS.begin(), ed = oldDS.end(); it != ed; ++it) {
178  uint32_t index = ((&*it) - firstOffset);
179  if (isGood[index]) {
180  outds.push_back(*it);
181  refs.push_back(index);
182  //std::cout << "TrackClusterRemover::cleanup " << typeid(T).name() << " reference " << index << " to " << (refs.size() - 1) << std::endl;
183  }
184  }
185  if (outds.empty()) outds.abort(); // not write in an empty DSV
186  }
187  if (oldRefs != 0) mergeOld(refs, *oldRefs);
188  return output;
189 }
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
void TrackClusterRemover::mergeOld ( reco::ClusterRemovalInfo::Indices refs,
const reco::ClusterRemovalInfo::Indices oldRefs 
)
private

Definition at line 148 of file TrackClusterRemover.cc.

References i, and n.

Referenced by cleanup().

150 {
151  for (size_t i = 0, n = refs.size(); i < n; ++i) {
152  refs[i] = oldRefs[refs[i]];
153  }
154 }
int i
Definition: DBlmapReader.cc:9
void TrackClusterRemover::process ( const TrackingRecHit hit,
float  chi2 
)
inlineprivate

Definition at line 221 of file TrackClusterRemover.cc.

References SiPixelRecHit::cluster(), cond::rpcobgas::detid, doPixel_, doStrip_, edm::hlt::Exception, TrackingRecHit::geographicalId(), edm::Ref< C, T, F >::id(), edm::Ref< C, T, F >::key(), TrackClusterRemover::ParamBlock::maxSize_, SiStripMatchedRecHit2D::monoHit(), NumberOfParamBlocks, ProjectedSiStripRecHit2D::originalHit(), pblocks_, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, pixels, pixelSourceProdID, DetId::rawId(), SiStripMatchedRecHit2D::stereoHit(), and DetId::subdetId().

Referenced by produce().

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

Definition at line 191 of file TrackClusterRemover.cc.

References SiStripRecHit2D::cluster(), edm::Ref< C, T, F >::id(), edm::Ref< C, T, F >::key(), TrackClusterRemover::ParamBlock::maxSize_, pblocks_, strips, and stripSourceProdID.

191  {
192  SiStripRecHit2D::ClusterRef cluster = hit->cluster();
193 
194  if (cluster.id() != stripSourceProdID) throw cms::Exception("Inconsistent Data") <<
195  "TrackClusterRemover: strip cluster ref from Product ID = " << cluster.id() <<
196  " does not match with source cluster collection (ID = " << stripSourceProdID << ")\n.";
197 
198  assert(cluster.id() == stripSourceProdID);
199  if (pblocks_[subdet-1].usesSize_ && (cluster->amplitudes().size() > pblocks_[subdet-1].maxSize_)) return;
200 
201 //DBG// cout << "Individual HIT " << cluster.key().first << ", INDEX = " << cluster.key().second << endl;
202  strips[cluster.key()] = false;
203 }
ParamBlock pblocks_[NumberOfParamBlocks]
edm::ProductID stripSourceProdID
std::vector< uint8_t > strips
key_type key() const
Accessor for product key.
Definition: Ref.h:264
ProductID id() const
Accessor for product ID.
Definition: Ref.h:254
void TrackClusterRemover::process ( const SiStripRecHit1D hit1D,
uint32_t  subdet 
)
inlineprivate

Definition at line 205 of file TrackClusterRemover.cc.

References SiStripRecHit1D::cluster(), edm::Ref< C, T, F >::id(), edm::Ref< C, T, F >::key(), TrackClusterRemover::ParamBlock::maxSize_, pblocks_, strips, and stripSourceProdID.

205  {
206  SiStripRecHit1D::ClusterRef cluster = hit->cluster();
207 
208  if (cluster.id() != stripSourceProdID) throw cms::Exception("Inconsistent Data") <<
209  "TrackClusterRemover: strip cluster ref from Product ID = " << cluster.id() <<
210  " does not match with source cluster collection (ID = " << stripSourceProdID << ")\n.";
211 
212  assert(cluster.id() == stripSourceProdID);
213  if (pblocks_[subdet-1].usesSize_ && (cluster->amplitudes().size() > pblocks_[subdet-1].maxSize_)) return;
214 
215 //DBG// cout << "Individual HIT " << cluster.key().first << ", INDEX = " << cluster.key().second << endl;
216  strips[cluster.key()] = false;
217 }
ParamBlock pblocks_[NumberOfParamBlocks]
edm::ProductID stripSourceProdID
std::vector< uint8_t > strips
key_type key() const
Accessor for product key.
Definition: Ref.h:264
ProductID id() const
Accessor for product ID.
Definition: Ref.h:254
void TrackClusterRemover::produce ( edm::Event iEvent,
const edm::EventSetup iSetup 
)
virtual

Implements edm::EDProducer.

Definition at line 284 of file TrackClusterRemover.cc.

References cleanup(), doPixel_, doStrip_, edm::InputTag::encode(), edm::hlt::Exception, edm::Event::getByLabel(), edm::HandleBase::id(), TrackingRecHit::isValid(), Trajectory::measurements(), mergeOld_, oldRemovalInfo_, pixelClusters_, pixels, pixelSourceProdID, process(), edm::Event::put(), edm::ProductID::reset(), stripClusters_, strips, stripSourceProdID, and trajectories_.

285 {
286  ProductID pixelOldProdID, stripOldProdID;
287 
289  if (doPixel_) {
290  iEvent.getByLabel(pixelClusters_, pixelClusters);
291  pixelSourceProdID = pixelClusters.id();
292  }
293 //DBG// std::cout << "TrackClusterRemover: Read pixel " << pixelClusters_.encode() << " = ID " << pixelSourceProdID << std::endl;
294 
296  if (doStrip_) {
297  iEvent.getByLabel(stripClusters_, stripClusters);
298  stripSourceProdID = stripClusters.id();
299  }
300 //DBG// std::cout << "TrackClusterRemover: Read strip " << stripClusters_.encode() << " = ID " << stripSourceProdID << std::endl;
301 
302  auto_ptr<ClusterRemovalInfo> cri;
303  if (doStrip_ && doPixel_) cri.reset(new ClusterRemovalInfo(pixelClusters, stripClusters));
304  else if (doStrip_) cri.reset(new ClusterRemovalInfo(stripClusters));
305  else if (doPixel_) cri.reset(new ClusterRemovalInfo(pixelClusters));
306 
307  Handle<ClusterRemovalInfo> oldRemovalInfo;
308  if (mergeOld_) {
309  iEvent.getByLabel(oldRemovalInfo_, oldRemovalInfo);
310  // Check ProductIDs
311  if ( (oldRemovalInfo->stripNewRefProd().id() == stripClusters.id()) &&
312  (oldRemovalInfo->pixelNewRefProd().id() == pixelClusters.id()) ) {
313 
314  cri->getOldClustersFrom(*oldRemovalInfo);
315 
316  pixelOldProdID = oldRemovalInfo->pixelRefProd().id();
317  stripOldProdID = oldRemovalInfo->stripRefProd().id();
318 
319  } else {
320  throw cms::Exception("Inconsistent Data") << "TrackClusterRemover: " <<
321  "Input collection product IDs are [pixel: " << pixelClusters.id() << ", strip: " << stripClusters.id() << "] \n" <<
322  "\t but the *old* ClusterRemovalInfo " << oldRemovalInfo_.encode() << " refers as 'new product ids' to " <<
323  "[pixel: " << oldRemovalInfo->pixelNewRefProd().id() << ", strip: " << oldRemovalInfo->stripNewRefProd().id() << "]\n" <<
324  "NOTA BENE: when running TrackClusterRemover with an old ClusterRemovalInfo the hits in the trajectory MUST be already re-keyed.\n";
325  }
326  } else { // then Old == Source
327  pixelOldProdID = pixelSourceProdID;
328  stripOldProdID = stripSourceProdID;
329  }
330 
331  //Handle<TrajTrackAssociationCollection> trajectories;
332  Handle<vector<Trajectory> > trajectories;
333  iEvent.getByLabel(trajectories_, trajectories);
334 
335  if (doStrip_) {
336  strips.resize(stripClusters->dataSize()); fill(strips.begin(), strips.end(), true);
337  }
338  if (doPixel_) {
339  pixels.resize(pixelClusters->dataSize()); fill(pixels.begin(), pixels.end(), true);
340  }
341 
342  //for (TrajTrackAssociationCollection::const_iterator it = trajectories->begin(), ed = trajectories->end(); it != ed; ++it) {
343  // const Trajectory &tj = * it->key;
344  for (vector<Trajectory>::const_iterator it = trajectories->begin(), ed = trajectories->end(); it != ed; ++it) {
345  const Trajectory &tj = * it;
346  const vector<TrajectoryMeasurement> &tms = tj.measurements();
347  vector<TrajectoryMeasurement>::const_iterator itm, endtm;
348  for (itm = tms.begin(), endtm = tms.end(); itm != endtm; ++itm) {
349  const TrackingRecHit *hit = itm->recHit()->hit();
350  if (!hit->isValid()) continue;
351  process( hit, itm->estimate() );
352  }
353  }
354 
355  if (doPixel_) {
356  auto_ptr<edmNew::DetSetVector<SiPixelCluster> > newPixelClusters = cleanup(*pixelClusters, pixels,
357  cri->pixelIndices(), mergeOld_ ? &oldRemovalInfo->pixelIndices() : 0);
358  OrphanHandle<edmNew::DetSetVector<SiPixelCluster> > newPixels = iEvent.put(newPixelClusters);
359 //DBG// std::cout << "TrackClusterRemover: Wrote pixel " << newPixels.id() << " from " << pixelSourceProdID << std::endl;
360  cri->setNewPixelClusters(newPixels);
361  }
362  if (doStrip_) {
363  auto_ptr<edmNew::DetSetVector<SiStripCluster> > newStripClusters = cleanup(*stripClusters, strips,
364  cri->stripIndices(), mergeOld_ ? &oldRemovalInfo->stripIndices() : 0);
365  OrphanHandle<edmNew::DetSetVector<SiStripCluster> > newStrips = iEvent.put(newStripClusters);
366 //DBG// std::cout << "TrackClusterRemover: Wrote strip " << newStrips.id() << " from " << stripSourceProdID << std::endl;
367  cri->setNewStripClusters(newStrips);
368  }
369 
370 
371  iEvent.put(cri);
372 
373  pixels.clear(); strips.clear();
374 }
edm::InputTag stripClusters_
edm::InputTag pixelClusters_
ProductID id() const
Definition: HandleBase.cc:15
void process(const TrackingRecHit *hit, float chi2)
std::string encode() const
Definition: InputTag.cc:72
edm::InputTag oldRemovalInfo_
DataContainer const & measurements() const
Definition: Trajectory.h:169
edm::ProductID stripSourceProdID
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Definition: Event.h:84
std::vector< uint8_t > pixels
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:359
void reset()
Definition: ProductID.h:40
std::vector< uint8_t > strips
bool isValid() const
edm::ProductID pixelSourceProdID
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 TrackClusterRemover::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 86 of file TrackClusterRemover.cc.

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

Referenced by TrackClusterRemover().

88 {
89  if (iConfig.exists(name)) {
90  ParamBlock pblock(iConfig.getParameter<ParameterSet>(name));
91  if (id1 == -1) {
92  fill(pblocks_, pblocks_+NumberOfParamBlocks, pblock);
93  } else {
94  pblocks_[id1] = pblock;
95  if (id2 != -1) pblocks_[id2] = pblock;
96  if (id3 != -1) pblocks_[id3] = pblock;
97  if (id4 != -1) pblocks_[id4] = pblock;
98  if (id5 != -1) pblocks_[id5] = pblock;
99  if (id6 != -1) pblocks_[id6] = pblock;
100  }
101  }
102 }
T getParameter(std::string const &) const
static const unsigned int NumberOfParamBlocks
ParamBlock pblocks_[NumberOfParamBlocks]
bool exists(std::string const &parameterName) const
checks if a parameter exists

Member Data Documentation

bool TrackClusterRemover::doPixel_
private

Definition at line 55 of file TrackClusterRemover.cc.

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

bool TrackClusterRemover::doStrip_
private

Definition at line 55 of file TrackClusterRemover.cc.

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

bool TrackClusterRemover::mergeOld_
private

Definition at line 57 of file TrackClusterRemover.cc.

Referenced by produce().

const unsigned int TrackClusterRemover::NumberOfParamBlocks = 6
staticprivate

Definition at line 52 of file TrackClusterRemover.cc.

Referenced by process(), and TrackClusterRemover().

edm::InputTag TrackClusterRemover::oldRemovalInfo_
private

Definition at line 58 of file TrackClusterRemover.cc.

Referenced by produce().

ParamBlock TrackClusterRemover::pblocks_[NumberOfParamBlocks]
private

Definition at line 60 of file TrackClusterRemover.cc.

Referenced by process(), and TrackClusterRemover().

edm::InputTag TrackClusterRemover::pixelClusters_
private

Definition at line 56 of file TrackClusterRemover.cc.

Referenced by produce().

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

Definition at line 64 of file TrackClusterRemover.cc.

Referenced by process(), and produce().

edm::ProductID TrackClusterRemover::pixelSourceProdID
private

Definition at line 65 of file TrackClusterRemover.cc.

Referenced by process(), and produce().

edm::InputTag TrackClusterRemover::stripClusters_
private

Definition at line 56 of file TrackClusterRemover.cc.

Referenced by produce().

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

Definition at line 64 of file TrackClusterRemover.cc.

Referenced by process(), and produce().

edm::ProductID TrackClusterRemover::stripSourceProdID
private

Definition at line 65 of file TrackClusterRemover.cc.

Referenced by process(), and produce().

edm::InputTag TrackClusterRemover::trajectories_
private

Definition at line 54 of file TrackClusterRemover.cc.

Referenced by produce().