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 public:
18  typedef std::vector<PCaloHit> Collection;
19  typedef Collection::iterator iterator;
20  typedef Collection::const_iterator const_iterator;
21 
23  virtual ~CaloSlaveSD();
24  virtual void Initialize();
25  std::string name() const { return name_; }
26  virtual bool processHits(uint32_t, double, double, double, int, uint16_t depth = 0);
27  virtual bool format();
28  Collection &hits() { return hits_; }
29  std::string type() { return "calo"; }
30  virtual const_iterator begin() { return hits_.begin(); }
31  virtual const_iterator end() { return hits_.end(); }
32  virtual void Clean();
33  virtual void ReserveMemory(unsigned int size);
34 
35 protected:
36  Collection hits_;
37 
38 private:
40 };
41 
42 #endif // CaloSlaveSD_h
size
Write out results.
virtual bool processHits(uint32_t, double, double, double, int, uint16_t depth=0)
Definition: CaloSlaveSD.cc:29
virtual void Initialize()
Definition: CaloSlaveSD.cc:19
Collection & hits()
Definition: CaloSlaveSD.h:28
virtual const_iterator end()
Definition: CaloSlaveSD.h:31
virtual ~CaloSlaveSD()
Definition: CaloSlaveSD.cc:17
virtual void Clean()
Definition: CaloSlaveSD.cc:36
std::string name() const
Definition: CaloSlaveSD.h:25
virtual void ReserveMemory(unsigned int size)
Definition: CaloSlaveSD.cc:41
Collection::iterator iterator
Definition: CaloSlaveSD.h:19
Collection hits_
Definition: CaloSlaveSD.h:36
CaloSlaveSD(std::string)
Definition: CaloSlaveSD.cc:13
std::string type()
Definition: CaloSlaveSD.h:29
std::string name_
Definition: CaloSlaveSD.h:39
Collection::const_iterator const_iterator
Definition: CaloSlaveSD.h:20
virtual bool format()
Definition: CaloSlaveSD.cc:24
virtual const_iterator begin()
Definition: CaloSlaveSD.h:30
std::vector< PCaloHit > Collection
Definition: CaloSlaveSD.h:18