CMS 3D CMS Logo

CaloSlaveSD.h
Go to the documentation of this file.
1 // File: CaloSlaveSD.h
3 // Date: 10.02
4 // Description: Interfaces CaloHit to appropriate container for ORCA usage
6 #ifndef CaloSlaveSD_h
7 #define CaloSlaveSD_h
8 
12 
13 #include <string>
14 #include <vector>
15 
16 class CaloSlaveSD {
17 
18 public:
19  typedef std::vector<PCaloHit> Collection;
20  typedef Collection::iterator iterator;
21  typedef Collection::const_iterator const_iterator;
22 
24  virtual ~CaloSlaveSD();
25  virtual void Initialize();
26  std::string name() const { return name_; }
27  virtual bool processHits(uint32_t, double, double, double, int, uint16_t depth=0);
28  virtual bool format();
29  Collection& hits() { return hits_; }
30  std::string type() { return "calo"; }
31  virtual const_iterator begin() { return hits_.begin();}
32  virtual const_iterator end() { return hits_.end();}
33  virtual void Clean();
34  virtual void ReserveMemory(unsigned int size);
35 
36 protected:
37  Collection hits_;
38 
39 private:
41 };
42 
43 #endif // CaloSlaveSD_h
size
Write out results.
virtual bool processHits(uint32_t, double, double, double, int, uint16_t depth=0)
Definition: CaloSlaveSD.cc:34
virtual void Initialize()
Definition: CaloSlaveSD.cc:21
Collection & hits()
Definition: CaloSlaveSD.h:29
virtual const_iterator end()
Definition: CaloSlaveSD.h:32
virtual ~CaloSlaveSD()
Definition: CaloSlaveSD.cc:19
virtual void Clean()
Definition: CaloSlaveSD.cc:43
std::string name() const
Definition: CaloSlaveSD.h:26
virtual void ReserveMemory(unsigned int size)
Definition: CaloSlaveSD.cc:50
Collection::iterator iterator
Definition: CaloSlaveSD.h:20
Collection hits_
Definition: CaloSlaveSD.h:37
CaloSlaveSD(std::string)
Definition: CaloSlaveSD.cc:13
std::string type()
Definition: CaloSlaveSD.h:30
std::string name_
Definition: CaloSlaveSD.h:40
Collection::const_iterator const_iterator
Definition: CaloSlaveSD.h:21
virtual bool format()
Definition: CaloSlaveSD.cc:27
virtual const_iterator begin()
Definition: CaloSlaveSD.h:31
std::vector< PCaloHit > Collection
Definition: CaloSlaveSD.h:19