CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EcalSampleMask.h
Go to the documentation of this file.
1 #ifndef CondFormats_EcalObjects_EcalSampleMask_H
2 #define CondFormats_EcalObjects_EcalSampleMask_H
3 
9 #include <iostream>
10 #include <vector>
13 
15  public:
17 
18  // construct from pre-organized binary words
19  EcalSampleMask(const unsigned int ebmask, const unsigned int eemask);
20  // constructor from an ordered set of switches, one per sample
21  EcalSampleMask( const std::vector<unsigned int> &ebmask, const std::vector<unsigned int> &eemask);
22 
24 
25  void setEcalSampleMaskRecordEB( const unsigned int mask ) { sampleMaskEB_ = mask; }
26  void setEcalSampleMaskRecordEE( const unsigned int mask ) { sampleMaskEB_ = mask; }
27  void setEcalSampleMaskRecordEB( const std::vector<unsigned int> & ebmask );
28  void setEcalSampleMaskRecordEE( const std::vector<unsigned int> & eemask );
29 
30  float getEcalSampleMaskRecordEB() const { return sampleMaskEB_; }
31  float getEcalSampleMaskRecordEE() const { return sampleMaskEE_; }
32  void print(std::ostream& s) const {
33  s << "EcalSampleMask: EB " << sampleMaskEB_ << "; EE " << sampleMaskEE_ ;
34  }
35 
36  bool useSampleEB (const int sampleId) const ;
37  bool useSampleEE (const int sampleId) const ;
38  bool useSample (const int sampleId, DetId &theCrystal) const;
39 
40  private:
41  unsigned int sampleMaskEB_;
42  unsigned int sampleMaskEE_;
43 
44 };
45 
46 
47 #endif
void setEcalSampleMaskRecordEE(const unsigned int mask)
unsigned int sampleMaskEB_
bool useSample(const int sampleId, DetId &theCrystal) const
bool useSampleEB(const int sampleId) const
unsigned int sampleMaskEE_
float getEcalSampleMaskRecordEE() const
Definition: DetId.h:20
void setEcalSampleMaskRecordEB(const unsigned int mask)
float getEcalSampleMaskRecordEB() const
void print(std::ostream &s) const
bool useSampleEE(const int sampleId) const