CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SensitiveDetectorMakerBase.h
Go to the documentation of this file.
1 #ifndef SensitiveDetector_SensitiveDetectorMakerBase_h
2 #define SensitiveDetector_SensitiveDetectorMakerBase_h
3 // -*- C++ -*-
4 //
5 // Package: SensitiveDetector
6 // Class : SensitiveDetectorMakerBase
7 //
16 //
17 // Original Author:
18 // Created: Mon Nov 14 11:50:24 EST 2005
19 // $Id: SensitiveDetectorMakerBase.h,v 1.3 2007/05/08 23:11:53 sunanda Exp $
20 //
21 
22 // system include files
23 #include <string>
24 
25 // user include files
28 // forward declarations
30 class DDCompactView;
31 class SimTrackManager;
32 
33 namespace edm{
34  class ParameterSet;
35 }
36 
38 {
39 
40  public:
43 
44  // ---------- const member functions ---------------------
45  virtual void make(const std::string& iname,
46  const DDCompactView& cpv,
48  const edm::ParameterSet& p,
49  const SimTrackManager* m,
51  std::auto_ptr<SensitiveTkDetector>& oTK,
52  std::auto_ptr<SensitiveCaloDetector>& oCalo) const =0;
53 
54  // ---------- static member functions --------------------
55 
56  // ---------- member functions ---------------------------
57 
58  protected:
59  //used to identify which type of Sensitive Detector we have
61  std::auto_ptr<SensitiveTkDetector>& oTo,
62  std::auto_ptr<SensitiveCaloDetector>&) const{
63  oTo= std::auto_ptr<SensitiveTkDetector>(iFrom);
64  }
66  std::auto_ptr<SensitiveTkDetector>&,
67  std::auto_ptr<SensitiveCaloDetector>& oTo) const{
68  oTo=std::auto_ptr<SensitiveCaloDetector>(iFrom);
69  }
70 
71  private:
73 
75 
76  // ---------- member data --------------------------------
77 
78 };
79 
80 
81 #endif
void convertTo(SensitiveCaloDetector *iFrom, std::auto_ptr< SensitiveTkDetector > &, std::auto_ptr< SensitiveCaloDetector > &oTo) const
void convertTo(SensitiveTkDetector *iFrom, std::auto_ptr< SensitiveTkDetector > &oTo, std::auto_ptr< SensitiveCaloDetector > &) const
type of data representation of DDCompactView
Definition: DDCompactView.h:77
virtual void make(const std::string &iname, const DDCompactView &cpv, SensitiveDetectorCatalog &clg, const edm::ParameterSet &p, const SimTrackManager *m, SimActivityRegistry &reg, std::auto_ptr< SensitiveTkDetector > &oTK, std::auto_ptr< SensitiveCaloDetector > &oCalo) const =0
const SensitiveDetectorMakerBase & operator=(const SensitiveDetectorMakerBase &)