User Tools

Site Tools


davinci:removetthits

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
davinci:removetthits [2011/02/10 10:24] decianmdavinci:removetthits [2011/02/11 22:28] (current) – [Idea] decianm
Line 2: Line 2:
 ===== Idea ===== ===== Idea =====
 Removing TT hits from long tracks can be a good check to see effects which are caused by the TT. Removing TT hits from long tracks can be a good check to see effects which are caused by the TT.
 +TO BE FINISHED WHEN IT WORKED AS I THOUGHT
 ===== How to ===== ===== How to =====
 Add the following two source files f.ex. to Tr/TrackTools. Add the following two source files f.ex. to Tr/TrackTools.
 +**TrackRemoveSTIDs.cpp**
 <code c> <code c>
 // Gaudi // Gaudi
Line 64: Line 65:
   }   }
 } }
 +</code>
 +and **TrackRemoveSTIDs.h**
 +<code c>
 +// $Id:  $
 +#ifndef _TrackRemoveSTIDs_H_
 +#define _TrackRemoveSTIDs_H_
 +/** @class TrackRemoveSTIDs TrackRemoveSTIDs.h
 + *
 +  Clean out tracks with some criteria from the container
 + *
 +  @author M.Needham
 +  @date   30/05/2006
 + */
 +#include "GaudiAlg/GaudiAlgorithm.h"
 +#include <string>
 +#include <vector>
 +class ISTChannelIDSelector;
 +namespace LHCb{
 +  class Track;
 +}
 +class TrackRemoveSTIDs: public GaudiAlgorithm {
 +public:
 +  // Constructors and destructor
 +  TrackRemoveSTIDs(const std::string& name,
 +              ISvcLocator* pSvcLocator);
 +  virtual ~TrackRemoveSTIDs();
 +  virtual StatusCode initialize();
 +  virtual StatusCode execute();
 +  
 +private:
 +  std::string m_inputLocation;
 +  ISTChannelIDSelector* m_selector;
 +  std::string m_selectorType;
 +  void removeHits(LHCb::Track* aTrack) const; 
 +};
 +#endif
 </code> </code>
  
 +In your options file, do something like: 
 +<code python> 
 +from Configurables import  TrackRemoveSTIDs 
 +hitRemover = TrackRemoveSTIDs('hitRemover'
 +selector = STSelectChannelIDByElement("ToolSvc.RemovalSelector"
 +selector.elementNames = ["TTa", "TTb"
 +selector.DetType = "TT" 
 +GaudiSequencer("myMC09SelJpsi2MuMuFilterSequence").Members += [myveloClusters, 
 +RawBankToSTClusterAlg("CreateTTClusters"), 
 +createITClusters, createITLiteClusters, hitRemover] 
 +</code>
davinci/removetthits.1297329882.txt.gz · Last modified: 2011/02/10 10:24 by decianm