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