ATLAS Offline Software
CscDigitContainer.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // CscDigitContainer.h
6 
7 #ifndef MUONDIGITCONTAINER_CSCDIGITCONAINTER_H
8 #define MUONDIGITCONTAINER_CSCDIGITCONAINTER_H
9 
10 // Ketevi A. Assamagan
11 // September 30 2002
12 
13 //
14 // Muon digit container.
15 //
16 // This container provides access to muon digits and provides
17 // a mechanism for recording them.
18 //
19 // Converters will enable reading from raw data, zebra and
20 // conventional StoreGate technologies (Objectivty, root).
21 // They will also enable writing to all but zebra.
22 //
23 // Usage:
24 //
25 // // Create module ID's.
26 // CscModuleId css(CSS,1,1);
27 // CscModuleId csl(CSL,1,1);
28 // // Insert some digits.
29 // digs.push_back(CscDigit(CscChannelId(css, 2, 3, 0, 30)));
30 // digs.push_back(CscDigit(CscChannelId(csl, 1, 1, 1, 10)));
31 // digs.push_back(CscDigit(CscChannelId(csl, 1, 2, 0, 10)));
32 // // Check subcontainers.
33 // assert( digs.digits(css).size() == 1 );
34 // assert( digs.digits(csl).size() == 2 );
35 // assert( digs.digits(bol11).size() == 0 );
36 
41 #include <vector>
42 #include <string>
44 #include "AthenaKernel/CLASS_DEF.h"
46 
47 
49  :public IdentifiableContainer<CscDigitCollection>
50 {
51 public:
52  CscDigitContainer(unsigned int hash_max) ;
54 
57 
58  size_type digit_size() const ;
59 
60  // IdentifiableContainer is still a DataObject
61  // Put CLID here.
62  static const CLID& classID();
63 
65  virtual const CLID& clID() const
66  {
67  return classID();
68  }
69 
70  private:
71 
72 
73 };
74 
76 
77 // Output stream.
78 std::ostream& operator<<(std::ostream& lhs, const CscDigitContainer& rhs);
79 
80 #endif
81 
82 
CscDigitContainer
Use IdentifiableContainer with CscDigitCollection.
Definition: CscDigitContainer.h:50
IdentifiableContainerMT::size_type
std::vector< std::atomic< const void * > >::size_type size_type
Definition: IdentifiableContainerMT.h:69
CscDigitContainer::clID
virtual const CLID & clID() const
return class ID
Definition: CscDigitContainer.h:65
CscDigitContainer::~CscDigitContainer
~CscDigitContainer()
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
CscDigitContainer::classID
static const CLID & classID()
Definition: CscDigitContainer.cxx:42
CscDigitContainer::digit_size
size_type digit_size() const
Definition: CscDigitContainer.cxx:53
CscDigitContainer::CscDigitContainer
CscDigitContainer(unsigned int hash_max)
Definition: CscDigitContainer.cxx:26
CLID
uint32_t CLID
The Class ID type.
Definition: Event/xAOD/xAODCore/xAODCore/ClassID_traits.h:47
CscDigitCollection.h
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:64
CscDigitContainer::size_type
CscDigitCollection::size_type size_type
Definition: CscDigitContainer.h:55
IdentifiableContainerMT
Definition: IdentifiableContainerMT.h:30
DataVector< CscDigit >::size_type
BASE::size_type size_type
Definition: DataVector.h:813
CscDigitContainer::MyBase
IdentifiableContainer< CscDigitCollection > MyBase
Definition: CscDigitContainer.h:56
CLASS_DEF.h
macros to associate a CLID to a type
IdentifiableContainer.h
This class is a general container which can hold objects of accessed by an IdentifierHash For more in...