DD4hep - The AIDA detector description toolkit for high energy physics experiments
DD4hep  Rev:Unversioneddirectory
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AlignedVolumePrinter.cpp
Go to the documentation of this file.
1 //==========================================================================
2 // AIDA Detector description implementation for LCD
3 //--------------------------------------------------------------------------
4 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
5 // All rights reserved.
6 //
7 // For the licensing terms see $DD4hepINSTALL/LICENSE.
8 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
9 //
10 // Author : M.Frank
11 //
12 //==========================================================================
13 
14 // Framework includes
17 
18 using std::string;
19 using namespace DD4hep;
20 using namespace DD4hep::Alignments;
21 
23 AlignedVolumePrinter::AlignedVolumePrinter(const string& pref, int flg)
24  : AlignmentsProcessor(0), name("Alignment"), prefix(pref), m_flag(flg)
25 {
26 }
27 
30  printAlignment(name, a);
31  return 1;
32 }
33 
36  printContainer(name, container, m_pool);
37  return 1;
38 }
39 
43  return 1;
44 }
void printContainer(const std::string &prefix, Container container, UserPool *pool)
Default printout of a container entry.
pool_type * m_pool
Reference to the user pool.
virtual int processElement(DetElement de)
Callback to output alignments information of an entire DetElement.
AlignedVolumePrinter(const std::string &prefix="", int flags=0)
Initializing constructor.
Main handle class to hold an alignment object.
Definition: Alignments.h:65
Generic Alignments processor.
std::string name
Printer name. Want to know who is printing what.
void printAlignment(const std::string &prefix, Alignment alignment)
Default printout of an alignment entry.
Handle class describing a detector element.
Definition: Detector.h:172
Container class for alignment handles aggregated by a detector element.
Definition: Alignments.h:206
void printElementPlacement(const std::string &prefix, DetElement detector, UserPool *pool)
PrintElement placement with/without alignment applied.
virtual int operator()(Alignment cond)
Callback to output alignments information.