CMS 3D CMS Logo

TotemAnalysisMask.cc
Go to the documentation of this file.
1 /****************************************************************************
2 *
3 * This is a part of TOTEM offline software.
4 * Authors:
5 * Maciej Wróbel (wroblisko@gmail.com)
6 * Jan Kašpar (jan.kaspar@cern.ch)
7 *
8 ****************************************************************************/
9 
11 
13 
14 //----------------------------------------------------------------------------------------------------
15 
16 void TotemAnalysisMask::insert(const TotemSymbID& sid, const TotemVFATAnalysisMask& vam) { analysisMask[sid] = vam; }
17 
18 //----------------------------------------------------------------------------------------------------
19 
20 void TotemAnalysisMask::print(std::ostream& os) const {
21  os << "TotemAnalysisMask mask" << std::endl;
22 
23  for (const auto& p : analysisMask) {
24  os << " " << p.first << ": fullMask=" << p.second.fullMask << ", number of masked channels "
25  << p.second.maskedChannels.size() << std::endl;
26  }
27 }
28 
29 std::ostream& operator<<(std::ostream& os, TotemAnalysisMask mask) {
30  mask.print(os);
31  return os;
32 }
33 
34 //----------------------------------------------------------------------------------------------------
35 
std::ostream & operator<<(std::ostream &os, TotemAnalysisMask mask)
Contains data on masked channels of a VFAT.
Channel-mask mapping.
void print(std::ostream &os) const
std::map< TotemSymbID, TotemVFATAnalysisMask > analysisMask
void insert(const TotemSymbID &sid, const TotemVFATAnalysisMask &vam)
Symbolic ID describing an entity of a TOTEM subdetector.
Definition: TotemSymbId.h:18
#define TYPELOOKUP_DATA_REG(_dataclass_)
Definition: typelookup.h:102