CMS 3D CMS Logo

DD4hep_TrackingMaterialAnalyser.cc
Go to the documentation of this file.
1 #include <iostream> // FIXME: switch to MessagLogger & friends
2 #include <fstream>
3 #include <sstream>
4 #include <vector>
5 #include <string>
6 #include <stdexcept>
7 #include <cstring>
8 #include <cstdlib>
9 #include <fmt/printf.h>
10 
17 
20 
25 
26 //-------------------------------------------------------------------------
29  consumes<std::vector<MaterialAccountingTrack> >(iPSet.getParameter<edm::InputTag>("MaterialAccounting"));
30  m_groupNames = iPSet.getParameter<std::vector<std::string> >("Groups");
31  const std::string& splitmode = iPSet.getParameter<std::string>("SplitMode");
32  if (strcasecmp(splitmode.c_str(), "NearestLayer") == 0) {
34  } else if (strcasecmp(splitmode.c_str(), "InnerLayer") == 0) {
36  } else if (strcasecmp(splitmode.c_str(), "OuterLayer") == 0) {
38  } else {
41  << "Invalid SplitMode \"" << splitmode
42  << "\". Acceptable values are \"NearestLayer\", \"InnerLayer\", \"OuterLayer\".";
43  }
44  m_tag = iPSet.getParameter<edm::ESInputTag>("DDDetector");
45  m_skipAfterLastDetector = iPSet.getParameter<bool>("SkipAfterLastDetector");
46  m_skipBeforeFirstDetector = iPSet.getParameter<bool>("SkipBeforeFirstDetector");
47  m_saveSummaryPlot = iPSet.getParameter<bool>("SaveSummaryPlot");
48  m_saveDetailedPlots = iPSet.getParameter<bool>("SaveDetailedPlots");
49  m_saveParameters = iPSet.getParameter<bool>("SaveParameters");
50  m_saveXml = iPSet.getParameter<bool>("SaveXML");
51  m_isHGCal = iPSet.getParameter<bool>("isHGCal");
52  m_isHFNose = iPSet.getParameter<bool>("isHFNose");
53  if (m_saveSummaryPlot) {
54  if (m_isHGCal) {
55  m_plotter = std::make_unique<DD4hep_TrackingMaterialPlotter>(550., 300., 10);
56  } else if (m_isHFNose) {
57  m_plotter = std::make_unique<DD4hep_TrackingMaterialPlotter>(1200., 350., 10);
58  } else {
59  m_plotter = std::make_unique<DD4hep_TrackingMaterialPlotter>(300., 120., 10);
60  } // 10x10 points per cm2
61  } else {
62  m_plotter = nullptr;
63  }
64 }
65 
66 //-------------------------------------------------------------------------
68 
69 //-------------------------------------------------------------------------
71  std::ofstream parameters(name);
72  edm::LogVerbatim("TrackerMaterialAnalysis") << "TrackingMaterialAnalyser" << std::endl;
73  for (unsigned int i = 0; i < m_groups.size(); ++i) {
75  edm::LogVerbatim("TrackerMaterialAnalysis") << "TrackingMaterialAnalyser" << layer.name() << std::endl;
76  edm::LogVerbatim("TrackerMaterialAnalysis")
77  << "TrackingMaterialAnalyser" << fmt::sprintf("\tnumber of hits: %9d", layer.tracks())
78  << std::endl;
79  edm::LogVerbatim("TrackerMaterialAnalysis")
80  << "TrackingMaterialAnalyser"
81  << fmt::sprintf("\tnormalized segment length: %9.1f ± %9.1f cm", layer.averageLength(), layer.sigmaLength())
82  << std::endl;
83  edm::LogVerbatim("TrackerMaterialAnalysis") << "TrackingMaterialAnalyser"
84  << fmt::sprintf("\tnormalized radiation lengths: %9.3f ± %9.3f",
85  layer.averageRadiationLengths(),
86  layer.sigmaRadiationLengths())
87  << std::endl;
88  edm::LogVerbatim("TrackerMaterialAnalysis")
89  << "TrackingMaterialAnalyser"
90  << fmt::sprintf("\tnormalized energy loss: %6.5fe-03 ± %6.5fe-03 GeV",
91  layer.averageEnergyLoss(),
92  layer.sigmaEnergyLoss())
93  << std::endl;
94  parameters << fmt::sprintf("%-20s\t%7d\t%5.1f ± %5.1f cm\t%6.4f ± %6.4f \t%6.4fe-03 ± %6.4fe-03 GeV",
95  layer.name(),
96  layer.tracks(),
97  layer.averageLength(),
98  layer.sigmaLength(),
99  layer.averageRadiationLengths(),
100  layer.sigmaRadiationLengths(),
101  layer.averageEnergyLoss(),
102  layer.sigmaEnergyLoss())
103  << std::endl;
104  }
105  edm::LogVerbatim("TrackerMaterialAnalysis") << "TrackingMaterialAnalyser" << std::endl;
106 
107  parameters.close();
108 }
109 
110 //-------------------------------------------------------------------------
112  std::ofstream xml(name);
113  xml << "<?xml version=\"1.0\" encoding=\"utf-8\"?>" << std::endl;
114  xml << "<Groups>" << std::endl;
115  for (unsigned int i = 0; i < m_groups.size(); ++i) {
117  xml << " <Group name=\"" << layer.name() << "\">\n"
118  << " <Parameter name=\"TrackerRadLength\" value=\"" << layer.averageRadiationLengths() << "\"/>\n"
119  << " <Parameter name=\"TrackerXi\" value=\"" << layer.averageEnergyLoss() << "\"/>\n"
120  << " </Group>\n"
121  << std::endl;
122  }
123  xml << "</Groups>" << std::endl;
124 }
125 
126 //-------------------------------------------------------------------------
128  for (unsigned int i = 0; i < m_groups.size(); ++i) {
130  layer.savePlots();
131  }
132 }
133 
134 //-------------------------------------------------------------------------
136  if (m_saveParameters)
137  saveParameters("parameters");
138 
139  if (m_saveXml)
140  saveXml("parameters.xml");
141 
143  saveLayerPlots();
144 
145  if (m_saveSummaryPlot and m_plotter) {
146  m_plotter->normalize();
147  m_plotter->draw();
148  }
149 }
150 
151 //-------------------------------------------------------------------------
152 
153 //-------------------------------------------------------------------------
155  using namespace edm;
157  setup.get<IdealGeometryRecord>().get(m_tag, hDDD);
158 
159  m_groups.reserve(m_groupNames.size());
160  // Initialize m_groups iff it has size equal to zero, so that we are
161  // sure it will never be repopulated with the same entries over and
162  // over again in the eventloop, at each call of the analyze method.
163  if (m_groups.empty()) {
164  for (unsigned int i = 0; i < m_groupNames.size(); ++i)
165  m_groups.emplace_back(new DD4hep_MaterialAccountingGroup(m_groupNames[i], *hDDD));
166 
167  edm::LogVerbatim("TrackerMaterialAnalysis")
168  << "TrackingMaterialAnalyser: List of the tracker groups: " << std::endl;
169  for (unsigned int i = 0; i < m_groups.size(); ++i)
170  edm::LogVerbatim("TrackerMaterialAnalysis")
171  << i << " TrackingMaterialAnalyser:\t" << m_groups[i]->info() << std::endl;
172  }
174  event.getByToken(m_materialToken, h_tracks);
175 
176  for (std::vector<MaterialAccountingTrack>::const_iterator t = h_tracks->begin(), end = h_tracks->end(); t != end;
177  ++t) {
179  split(track);
180  }
181 }
182 
183 //-------------------------------------------------------------------
184 // split a track in segments, each associated to a sensitive detector
185 // in a DetLayer; then, associate each step to one segment, splitting
186 // the steps across the segment boundaries
187 //
188 // Nota Bene: this implementation assumes that the steps stored along
189 // each track are consecutive and adjacent, and that no step can span
190 // across 3 layers, since all steps should split at layer boundaries
191 
193  using namespace edm;
194  // group sensitive detectors by their DetLayer
195  std::vector<int> group(track.detectors().size());
196  for (unsigned int i = 0; i < track.detectors().size(); ++i)
197  group[i] = findLayer(track.detectors()[i]);
198 
199  for (unsigned int i = 0; i < group.size(); ++i)
200  if (group[i] > 0)
201  edm::LogVerbatim("TrackerMaterialAnalysis") << "TrackingMaterialAnalyser:\n"
202  << "For detector i: " << i << " index: " << group[i]
203  << " R-ranges: " << m_groups[group[i] - 1]->getBoundingR().first
204  << ", " << m_groups[group[i] - 1]->getBoundingR().second << group[i]
205  << " Z-ranges: " << m_groups[group[i] - 1]->getBoundingZ().first
206  << ", " << m_groups[group[i] - 1]->getBoundingZ().second << std::endl;
207 
208  unsigned int detectors = track.detectors().size();
209  if (detectors == 0) {
210  // the track doesn't cross any active detector:
211  // keep al material as unassigned
212  if (m_plotter)
213  for (unsigned int i = 1; i < track.steps().size(); ++i)
214  m_plotter->plotSegmentUnassigned(track.steps()[i]);
215  } else {
216  const double TOLERANCE = 0.0001; // 1 um tolerance
217  std::vector<double> limits(detectors + 2);
218 
219  // define the trivial limits
221  limits[0] = track.detectors()[0].m_curvilinearIn - TOLERANCE;
222  else
223  limits[0] = -TOLERANCE;
225  limits[detectors] = track.detectors()[detectors - 1].m_curvilinearOut + TOLERANCE;
226  else
227  limits[detectors] = track.summary().length() + TOLERANCE;
228  limits[detectors + 1] = INFINITY; // this is probably no more needed, but doesn't harm...
229 
230  // pick the algorithm to define the non-trivial limits
231  switch (m_splitMode) {
232  // assign each segment to the the nearest layer
233  // e.g. the material between pixel barrel 3 and TIB 1 will be split among the two
234  case NEAREST_LAYER:
235  for (unsigned int i = 1; i < detectors; ++i) {
236  limits[i] = (track.detectors()[i - 1].m_curvilinearOut + track.detectors()[i].m_curvilinearIn) / 2.;
237  }
238  break;
239 
240  // assign each segment to the the inner layer
241  // e.g. all material between pixel barrel 3 and TIB 1 will go into the pixel barrel
242  case INNER_LAYER:
243  for (unsigned int i = 1; i < detectors; ++i)
244  limits[i] = track.detectors()[i].m_curvilinearIn - TOLERANCE;
245  break;
246 
247  // assign each segment to the the outer layer
248  // e.g. all material between pixel barrel 3 and TIB 1 will go into the TIB
249  case OUTER_LAYER:
250  for (unsigned int i = 1; i < detectors; ++i)
251  limits[i] = track.detectors()[i - 1].m_curvilinearOut + TOLERANCE;
252  break;
253 
254  case UNDEFINED:
255  [[fallthrough]];
256 
257  default:
258  // throw something
259  throw edm::Exception(edm::errors::LogicError) << "Invalid SplitMode";
260  }
261 
262  double begin = 0.; // beginning of step, along the track
263  double end = 0.; // end of step, along the track
264  unsigned int i = 1; // step conter
265 
266  // skip the material before the first layer
267  while (end < limits[0]) {
268  const MaterialAccountingStep& step = track.steps()[i++];
269  end = begin + step.length();
270 
271  // do not account material before the first layer
272  if (m_plotter)
273  m_plotter->plotSegmentUnassigned(step);
274 
275  begin = end;
276  }
277 
278  unsigned int index = 0; // which detector
279  while (i < track.steps().size()) {
280  const MaterialAccountingStep& step = track.steps()[i++];
281 
282  end = begin + step.length();
283 
284  if (begin > limits[detectors]) {
285  // segment after last layer and skipping requested in configuation
286  if (m_plotter)
287  m_plotter->plotSegmentUnassigned(step);
288  begin = end;
289  continue;
290  }
291 
292  // from here onwards we should be in the accountable region, either completely in a single layer:
293  // limits[index] <= begin < end <= limits[index+1]
294  // or possibly split between 2 layers
295  // limits[index] < begin < limits[index+1] < end < limits[index+2]
296  if (begin < limits[index] or end > limits[index + 2]) {
297  // sanity check
298  edm::LogError("TrackerMaterialAnalysis")
299  << "TrackingMaterialAnalyser::split(): ERROR: internal logic error, expected " << limits[index] << " < "
300  << begin << " < " << limits[index + 1] << std::endl;
301  break;
302  }
303 
304  if (limits[index] <= begin and end <= limits[index + 1]) {
305  // step completely inside current detector range
306  track.detectors()[index].account(step, begin, end);
307  if (m_plotter)
308  m_plotter->plotSegmentInLayer(step, group[index]);
309  } else {
310  // step shared beteewn two detectors, transition at limits[index+1]
311  double fraction = (limits[index + 1] - begin) / (end - begin);
312  assert(fraction < 1.);
313  std::pair<MaterialAccountingStep, MaterialAccountingStep> parts = step.split(fraction);
314 
315  if (m_plotter) {
316  if (index > 0)
317  m_plotter->plotSegmentInLayer(parts.first, group[index]);
318  else
319  // track outside acceptance, keep as unassocated
320  m_plotter->plotSegmentUnassigned(parts.first);
321 
322  if (index + 1 < detectors)
323  m_plotter->plotSegmentInLayer(parts.second, group[index + 1]);
324  else
325  // track outside acceptance, keep as unassocated
326  m_plotter->plotSegmentUnassigned(parts.second);
327  }
328 
329  track.detectors()[index].account(parts.first, begin, limits[index + 1]);
330  ++index; // next layer
331  if (index < detectors)
332  track.detectors()[index].account(parts.second, limits[index + 1], end);
333  }
334  begin = end;
335  }
336  }
337 
338  // add the material from each detector to its layer (if there is one and only one)
339  for (unsigned int i = 0; i < track.detectors().size(); ++i)
340  if (group[i] != 0)
341  m_groups[group[i] - 1]->addDetector(track.detectors()[i]);
342 
343  // end of track: commit internal buffers and reset the m_groups internal state for a new track
344  for (unsigned int i = 0; i < m_groups.size(); ++i)
345  m_groups[i]->endOfTrack();
346 }
347 
348 //-------------------------------------------------------------------------
349 // find the layer index (0: none, 1-3: PixelBarrel,
350 // 4-7: TID, 8-13: TOB, 14-15,28-29: PixelEndcap,
351 // 16-18,30-32: TID, 19-27,33-41: TEC)
353  int index = 0;
354  size_t inside = 0;
355  for (size_t i = 0; i < m_groups.size(); ++i)
356  if (m_groups[i]->isInside(detector)) {
357  ++inside;
358  index = i + 1;
359  }
360  if (inside == 0) {
361  index = 0;
362  edm::LogError("TrackerMaterialAnalysis")
363  << "TrackingMaterialAnalyser::findLayer(...): ERROR: detector does not belong to any DetLayer" << std::endl;
364  edm::LogError("TrackerMaterialAnalysis")
365  << "TrackingMaterialAnalyser::findLayer(...): detector position: " << std::fixed
366  << " (r: " << std::setprecision(1) << std::setw(5) << detector.position().perp()
367  << ", z: " << std::setprecision(1) << std::setw(6) << detector.position().z()
368  << ", phi: " << std::setprecision(3) << std::setw(6) << detector.position().phi() << ")" << std::endl;
369  }
370  if (inside > 1) {
371  index = 0;
372  edm::LogError("TrackerMaterialAnalysis") << "TrackingMaterialAnalyser::findLayer(...): ERROR: detector belongs to "
373  << inside << " DetLayers" << std::endl;
374  edm::LogError("TrackerMaterialAnalysis")
375  << "TrackingMaterialAnalyser::findLayer(...): detector position: " << std::fixed
376  << " (r: " << std::setprecision(1) << std::setw(5) << detector.position().perp()
377  << ", z: " << std::setprecision(1) << std::setw(6) << detector.position().z()
378  << ", phi: " << std::setprecision(3) << std::setw(6) << detector.position().phi() << ")" << std::endl;
379  }
380 
381  return index;
382 }
383 
384 //-------------------------------------------------------------------------
385 // define as a plugin
DD4hep_TrackingMaterialAnalyser::m_groupNames
std::vector< std::string > m_groupNames
Definition: DD4hep_TrackingMaterialAnalyser.h:47
MuonGeometrySanityCheck_cfi.detectors
def detectors(dt=True, csc=True, me42=False, chambers=True, superlayers=False, layers=False)
Definition: MuonGeometrySanityCheck_cfi.py:13
alignBH_cfg.fixed
fixed
Definition: alignBH_cfg.py:54
BeamSpotPI::parameters
parameters
Definition: BeamSpotPayloadInspectorHelper.h:30
mps_fire.i
i
Definition: mps_fire.py:428
edm::ESInputTag
Definition: ESInputTag.h:87
HLT_FULL_cff.track
track
Definition: HLT_FULL_cff.py:11724
ESTransientHandle.h
MessageLogger.h
MaterialAccountingStep.h
DD4hep_TrackingMaterialAnalyser::m_tag
edm::ESInputTag m_tag
Definition: DD4hep_TrackingMaterialAnalyser.h:36
step
step
Definition: StallMonitor.cc:94
edm::errors::LogicError
Definition: EDMException.h:37
DD4hep_TrackingMaterialAnalyser::INNER_LAYER
Definition: DD4hep_TrackingMaterialAnalyser.h:22
DD4hep_TrackingMaterialAnalyser::saveLayerPlots
void saveLayerPlots()
Definition: DD4hep_TrackingMaterialAnalyser.cc:127
edm
HLT enums.
Definition: AlignableModifier.h:19
DD4hep_TrackingMaterialAnalyser::m_saveParameters
bool m_saveParameters
Definition: DD4hep_TrackingMaterialAnalyser.h:42
DD4hep_TrackingMaterialAnalyser::m_splitMode
SplitMode m_splitMode
Definition: DD4hep_TrackingMaterialAnalyser.h:37
cms::cuda::assert
assert(be >=bs)
DD4hep_TrackingMaterialAnalyser::m_saveXml
bool m_saveXml
Definition: DD4hep_TrackingMaterialAnalyser.h:43
DD4hep_TrackingMaterialAnalyser.h
DD4hep_TrackingMaterialAnalyser::UNDEFINED
Definition: DD4hep_TrackingMaterialAnalyser.h:22
edm::Handle
Definition: AssociativeIterator.h:50
singleTopDQM_cfi.setup
setup
Definition: singleTopDQM_cfi.py:37
EDMException.h
DD4hep_TrackingMaterialAnalyser::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: DD4hep_TrackingMaterialAnalyser.cc:154
MakerMacros.h
DD4hep_TrackingMaterialAnalyser::m_isHGCal
bool m_isHGCal
Definition: DD4hep_TrackingMaterialAnalyser.h:44
contentValuesFiles.parts
parts
Definition: contentValuesFiles.py:58
DD4hep_TrackingMaterialPlotter.h
DD4hep_MaterialAccountingGroup
Definition: DD4hep_MaterialAccountingGroup.h:23
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
MaterialAccountingDetector
Definition: MaterialAccountingDetector.h:15
DD4hep_TrackingMaterialAnalyser::m_groups
std::vector< DD4hep_MaterialAccountingGroup * > m_groups
Definition: DD4hep_TrackingMaterialAnalyser.h:46
HLT_FULL_cff.fraction
fraction
Definition: HLT_FULL_cff.py:52823
DD4hep_TrackingMaterialAnalyser::m_plotter
std::unique_ptr< DD4hep_TrackingMaterialPlotter > m_plotter
Definition: DD4hep_TrackingMaterialAnalyser.h:48
MaterialAccountingTrack.h
DD4hep_TrackingMaterialAnalyser::endJob
void endJob() override
Definition: DD4hep_TrackingMaterialAnalyser.cc:135
mps_fire.end
end
Definition: mps_fire.py:242
DDCompactView.h
phase1PixelTopology::layer
constexpr std::array< uint8_t, layerIndexSize > layer
Definition: phase1PixelTopology.h:99
DD4hep_TrackingMaterialAnalyser::m_skipBeforeFirstDetector
bool m_skipBeforeFirstDetector
Definition: DD4hep_TrackingMaterialAnalyser.h:39
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
DD4hep_TrackingMaterialAnalyser::NEAREST_LAYER
Definition: DD4hep_TrackingMaterialAnalyser.h:22
ModuleDef.h
DD4hep_TrackingMaterialAnalyser::m_saveSummaryPlot
bool m_saveSummaryPlot
Definition: DD4hep_TrackingMaterialAnalyser.h:40
MaterialAccountingTrack
Definition: MaterialAccountingTrack.h:10
DD4hep_TrackingMaterialAnalyser::saveXml
void saveXml(const char *name)
Definition: DD4hep_TrackingMaterialAnalyser.cc:111
DD4hep_TrackingMaterialAnalyser::OUTER_LAYER
Definition: DD4hep_TrackingMaterialAnalyser.h:22
IdealGeometryRecord.h
edm::EventSetup
Definition: EventSetup.h:58
edm::LogError
Log< level::Error, false > LogError
Definition: MessageLogger.h:123
get
#define get
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
DD4hep_TrackingMaterialAnalyser::m_saveDetailedPlots
bool m_saveDetailedPlots
Definition: DD4hep_TrackingMaterialAnalyser.h:41
edm::ESTransientHandle
Definition: ESTransientHandle.h:41
DD4hep_TrackingMaterialAnalyser::~DD4hep_TrackingMaterialAnalyser
~DD4hep_TrackingMaterialAnalyser() override
Definition: DD4hep_TrackingMaterialAnalyser.cc:67
TH2PolyOfflineMaps.limits
limits
Definition: TH2PolyOfflineMaps.py:44
DD4hep_TrackingMaterialAnalyser::m_skipAfterLastDetector
bool m_skipAfterLastDetector
Definition: DD4hep_TrackingMaterialAnalyser.h:38
MaterialAccountingStep
Definition: MaterialAccountingStep.h:9
DD4hep_TrackingMaterialAnalyser
Definition: DD4hep_TrackingMaterialAnalyser.h:16
edm::LogVerbatim
Log< level::Info, true > LogVerbatim
Definition: MessageLogger.h:128
Exception
Definition: hltDiff.cc:245
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
EventSetup.h
or
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
Definition: Activities.doc:12
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
DD4hep_TrackingMaterialAnalyser::m_materialToken
edm::EDGetTokenT< std::vector< MaterialAccountingTrack > > m_materialToken
Definition: DD4hep_TrackingMaterialAnalyser.h:35
hgcalTestNeighbor_cfi.detector
detector
Definition: hgcalTestNeighbor_cfi.py:6
DD4hep_TrackingMaterialAnalyser::m_isHFNose
bool m_isHFNose
Definition: DD4hep_TrackingMaterialAnalyser.h:45
DD4hep_TrackingMaterialAnalyser::split
void split(MaterialAccountingTrack &track)
Definition: DD4hep_TrackingMaterialAnalyser.cc:192
DD4hep_TrackingMaterialAnalyser::saveParameters
void saveParameters(const char *name)
Definition: DD4hep_TrackingMaterialAnalyser.cc:70
ParameterSet.h
event
Definition: event.py:1
edm::Event
Definition: Event.h:73
submitPVValidationJobs.t
string t
Definition: submitPVValidationJobs.py:644
edm::Log
Definition: MessageLogger.h:70
edm::InputTag
Definition: InputTag.h:15
IdealGeometryRecord
Definition: IdealGeometryRecord.h:25
DD4hep_TrackingMaterialAnalyser::DD4hep_TrackingMaterialAnalyser
DD4hep_TrackingMaterialAnalyser(const edm::ParameterSet &)
Definition: DD4hep_TrackingMaterialAnalyser.cc:27
DD4hep_TrackingMaterialAnalyser::findLayer
int findLayer(const MaterialAccountingDetector &detector)
Definition: DD4hep_TrackingMaterialAnalyser.cc:352
watchdog.group
group
Definition: watchdog.py:82