ATLAS Offline Software
Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
SurveyConstraintTestAlg Class Reference

#include <SurveyConstraintTestAlg.h>

Inheritance diagram for SurveyConstraintTestAlg:
Collaboration diagram for SurveyConstraintTestAlg:

Public Member Functions

 SurveyConstraintTestAlg (const std::string &name, ISvcLocator *pSvcLocator)
 
StatusCode initialize ()
 
StatusCode execute ()
 
StatusCode finalize ()
 
StatusCode BookHist ()
 
void CreateMisAlignNtuple ()
 
virtual StatusCode sysInitialize () override
 Override sysInitialize. More...
 
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies. More...
 
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & evtStore () const
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. More...
 
virtual StatusCode sysStart () override
 Handle START transition. More...
 
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles. More...
 
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles. More...
 
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T > &t)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc="none")
 Declare a new Gaudi property. More...
 
void updateVHKA (Gaudi::Details::PropertyBase &)
 
MsgStream & msg () const
 
MsgStream & msg (const MSG::Level lvl) const
 
bool msgLvl (const MSG::Level lvl) const
 

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution More...
 
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce (T &h)
 
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed. More...
 

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &)
 specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &)
 specialization for handling Gaudi::Property<SG::VarHandleBase> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &)
 specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
 

Private Attributes

IToolSvc * m_toolsvc
 Pointer to tool service. More...
 
ISurveyConstraintm_SurvConstr
 
const PixelIDm_pixid
 
const SCT_IDm_sctid
 
TH1m_h_PixEC_Align_Disk [6]
 
TH1m_h_PixEC_Align_first [6]
 
TH1m_h_PixEC_Align [6]
 
int m_AlignResults_nModules
 
NTuple::Item< double > m_AlignResults_x
 
NTuple::Item< double > m_AlignResults_y
 
NTuple::Item< double > m_AlignResults_z
 
NTuple::Item< double > m_AlignResults_alpha
 
NTuple::Item< double > m_AlignResults_beta
 
NTuple::Item< double > m_AlignResults_gamma
 
NTuple::Item< long > m_AlignResults_Identifier_ID
 
NTuple::Item< long > m_AlignResults_Identifier_SCT
 
NTuple::Item< long > m_AlignResults_Identifier_BarrelEC
 
NTuple::Item< long > m_AlignResults_Identifier_LayerDisc
 
NTuple::Item< long > m_AlignResults_Identifier_Phi
 
NTuple::Item< long > m_AlignResults_Identifier_Eta
 
int m_NLoop
 
DataObjIDColl m_extendedExtraObjects
 
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default) More...
 
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default) More...
 
std::vector< SG::VarHandleKeyArray * > m_vhka
 
bool m_varHandleArraysDeclared
 

Detailed Description

Definition at line 18 of file SurveyConstraintTestAlg.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< Algorithm > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ SurveyConstraintTestAlg()

SurveyConstraintTestAlg::SurveyConstraintTestAlg ( const std::string &  name,
ISvcLocator *  pSvcLocator 
)

Definition at line 23 of file SurveyConstraintTestAlg.cxx.

23  :
24 AthAlgorithm(name, pSvcLocator),
25  m_toolsvc{},
26  m_SurvConstr{},
27  m_pixid{},
28  m_sctid{},
33  m_NLoop(1){
34 
35 // Part 2: Properties go here
36  declareProperty("NLoop" , m_NLoop);
37 
38 
39 }

Member Function Documentation

◆ BookHist()

StatusCode SurveyConstraintTestAlg::BookHist ( )

Definition at line 278 of file SurveyConstraintTestAlg.cxx.

278  {
279  ServiceHandle<ITHistSvc> histSvc ("THistSvc", "SurveyConstraintTestAlg");
280  ATH_CHECK( histSvc.retrieve() );
281 
282  auto book = [&] (TH1*& h,
283  const char* name,
284  const char* title,
285  int nbins,
286  float xlo,
287  float xhi)
288  {
289  h = new TH1F (name, title, nbins, xlo, xhi);
290  const static std::string prefix = "/stat/MisAlign/";
291  return histSvc->regHist (prefix + name, h);
292  };
293 
294  ATH_CHECK( book (m_h_PixEC_Align_Disk[0], "Misalignment Disk X [mu]", "Misalignment Disk X [mu]",100, -50.,50.) );
295  ATH_CHECK( book (m_h_PixEC_Align_Disk[1], "Misalignment Disk Y [mu]", "Misalignment Disk Y [mu]",100, -100.,100.) );
296  ATH_CHECK( book (m_h_PixEC_Align_Disk[2], "Misalignment Disk Z [mu]", "Misalignment Disk Z [mu]",100, -200.,200.) );
297  ATH_CHECK( book (m_h_PixEC_Align_Disk[3], "Misalignment Disk PhiX [mrad]", "Misalignment Disk PhiX [mrad]",100, -2.,2.) );
298  ATH_CHECK( book (m_h_PixEC_Align_Disk[4], "Misalignment Disk PhiY [mrad]", "Misalignment Disk PhiY [mrad]",100, -5.,5.) );
299  ATH_CHECK( book (m_h_PixEC_Align_Disk[5], "Misalignment Disk PhiZ [mrad]", "Misalignment Disk PhiZ [mrad]",100, -2.,2.) );
300 
301  ATH_CHECK( book (m_h_PixEC_Align_first[0], "Misalignment first X [mu]", "Misalignment first X [mu]",100, -50.,50.) );
302  ATH_CHECK( book (m_h_PixEC_Align_first[1], "Misalignment first Y [mu]", "Misalignment first Y [mu]",100, -100.,100.) );
303  ATH_CHECK( book (m_h_PixEC_Align_first[2], "Misalignment first Z [mu]", "Misalignment first Z [mu]",100, -200.,200.) );
304  ATH_CHECK( book (m_h_PixEC_Align_first[3], "Misalignment first PhiX [mrad]", "Misalignment first PhiX [mrad]",100, -2.,2.) );
305  ATH_CHECK( book (m_h_PixEC_Align_first[4], "Misalignment first PhiY [mrad]", "Misalignment first PhiY [mrad]",100, -5.,5.) );
306  ATH_CHECK( book (m_h_PixEC_Align_first[5], "Misalignment first PhiZ [mrad]", "Misalignment first PhiZ [mrad]",100, -2.,2.) );
307 
308  ATH_CHECK( book (m_h_PixEC_Align[0], "Misalignment X [mu]", "Misalignment X [mu]",100, -50.,50.) );
309  ATH_CHECK( book (m_h_PixEC_Align[1], "Misalignment Y [mu]", "Misalignment Y [mu]",100, -100.,100.) );
310  ATH_CHECK( book (m_h_PixEC_Align[2], "Misalignment Z [mu]", "Misalignment Z [mu]",100, -200.,200.) );
311  ATH_CHECK( book (m_h_PixEC_Align[3], "Misalignment PhiX [mrad]", "Misalignment PhiX [mrad]",100, -2.,2.) );
312  ATH_CHECK( book (m_h_PixEC_Align[4], "Misalignment PhiY [mrad]", "Misalignment PhiY [mrad]",100, -5.,5.) );
313  ATH_CHECK( book (m_h_PixEC_Align[5], "Misalignment PhiZ [mrad]", "Misalignment PhiZ [mrad]",100, -2.,2.) );
314 
315  return StatusCode::SUCCESS;
316 }

◆ CreateMisAlignNtuple()

void SurveyConstraintTestAlg::CreateMisAlignNtuple ( )

Definition at line 67 of file SurveyConstraintTestAlg.cxx.

67  {
68  StatusCode sc;
69  // initialize AlignResults NTuple
70 
71  NTupleFilePtr file1(ntupleSvc(), "/NTUPLES/FILE1");
72 
73  NTuplePtr nt(ntupleSvc(), "/NTUPLES/FILE1/InitialAlignment");
74  if ( !nt ) { // Check if already booked
75  nt = ntupleSvc()->book("/NTUPLES/FILE1/InitialAlignment", CLID_ColumnWiseTuple, "InitialAlignment");
76  if ( nt ) {
77  ATH_MSG_INFO( "InitialAlignment ntuple booked." );
78 
79  sc = nt->addItem("x" , m_AlignResults_x);
80  sc = nt->addItem("y" , m_AlignResults_y);
81  sc = nt->addItem("z" , m_AlignResults_z);
82  sc = nt->addItem("alpha" , m_AlignResults_alpha);
83  sc = nt->addItem("beta" , m_AlignResults_beta);
84  sc = nt->addItem("gamma" , m_AlignResults_gamma);
85  sc = nt->addItem("ID" , m_AlignResults_Identifier_ID);
86  sc = nt->addItem("PixelSCT" , m_AlignResults_Identifier_SCT);
87  sc = nt->addItem("BarrelEC" , m_AlignResults_Identifier_BarrelEC);
88  sc = nt->addItem("LayerDisc" , m_AlignResults_Identifier_LayerDisc);
89  sc = nt->addItem("Phi" , m_AlignResults_Identifier_Phi);
90  sc = nt->addItem("Eta" , m_AlignResults_Identifier_Eta);
91 
92  } else { // did not manage to book the N tuple....
93  ATH_MSG_ERROR( "Failed to book InitialAlignment ntuple." );
94  }
95  }
96 
98  int SCT,barrel_ec,layer_disk,phi,eta;
99  std::map<Identifier, SurveyConstraintModule*, std::less<Identifier> > ModuleMap;
100  m_SurvConstr -> MMap(ModuleMap);
101  std::map<Identifier, SurveyConstraintModule*, std::less<Identifier> >::iterator it;
102  for (it = ModuleMap.begin(); it != ModuleMap.end(); ++it) {
103  const Identifier& ModuleID = (it->second)->moduleID();
104  SurveyConstraintModule* mut = ModuleMap[ModuleID];
105  if(mut->isPixel()){
106  SCT = 1;
107  barrel_ec = m_pixid->barrel_ec(ModuleID);
108  layer_disk = m_pixid->layer_disk(ModuleID);
109  phi = m_pixid->phi_module(ModuleID);
110  eta = m_pixid->eta_module(ModuleID);
111  } else {
112  if (m_sctid->side(ModuleID) != 0) continue;
113  SCT = 2;
114  barrel_ec = m_sctid->barrel_ec(ModuleID);
115  layer_disk = m_sctid->layer_disk(ModuleID);
116  phi = m_sctid->phi_module(ModuleID);
117  eta = m_sctid->eta_module(ModuleID);
118  }
119  Amg::VectorX Misalign = mut->DOCA_Vector();
120  m_AlignResults_x = Misalign[0];
121  m_AlignResults_y = Misalign[1];
122  m_AlignResults_z = Misalign[2];
123  m_AlignResults_alpha = Misalign[3];
124  m_AlignResults_beta = Misalign[4];
125  m_AlignResults_gamma = Misalign[5];
132 
134 
135  // Write out AlignResults ntuple
136  sc = ntupleSvc()->writeRecord("NTUPLES/FILE1/InitialAlignment");
137  if (sc.isFailure()) {
138  ATH_MSG_ERROR( "Could not write InitialAlignment ntuple." );
139  }
140 
141  } // end of module loop
142  }

◆ declareGaudiProperty() [1/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Algorithm > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleKeyArrayType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKeyArray>

Definition at line 170 of file AthCommonDataStore.h.

172  {
173  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
174  hndl.value(),
175  hndl.documentation());
176 
177  }

◆ declareGaudiProperty() [2/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Algorithm > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleKeyType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158  {
159  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
160  hndl.value(),
161  hndl.documentation());
162 
163  }

◆ declareGaudiProperty() [3/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Algorithm > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleBase>

Definition at line 184 of file AthCommonDataStore.h.

186  {
187  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
188  hndl.value(),
189  hndl.documentation());
190  }

◆ declareGaudiProperty() [4/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Algorithm > >::declareGaudiProperty ( Gaudi::Property< T > &  t,
const SG::NotHandleType  
)
inlineprivateinherited

specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>

Definition at line 199 of file AthCommonDataStore.h.

200  {
201  return PBASE::declareProperty(t);
202  }

◆ declareProperty() [1/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty ( const std::string &  name,
SG::VarHandleBase hndl,
const std::string &  doc,
const SG::VarHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleBase. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 245 of file AthCommonDataStore.h.

249  {
250  this->declare(hndl.vhKey());
251  hndl.vhKey().setOwner(this);
252 
253  return PBASE::declareProperty(name,hndl,doc);
254  }

◆ declareProperty() [2/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty ( const std::string &  name,
SG::VarHandleKey hndl,
const std::string &  doc,
const SG::VarHandleKeyType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleKey. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 221 of file AthCommonDataStore.h.

225  {
226  this->declare(hndl);
227  hndl.setOwner(this);
228 
229  return PBASE::declareProperty(name,hndl,doc);
230  }

◆ declareProperty() [3/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty ( const std::string &  name,
SG::VarHandleKeyArray hndArr,
const std::string &  doc,
const SG::VarHandleKeyArrayType  
)
inlineinherited

Definition at line 259 of file AthCommonDataStore.h.

263  {
264 
265  // std::ostringstream ost;
266  // ost << Algorithm::name() << " VHKA declareProp: " << name
267  // << " size: " << hndArr.keys().size()
268  // << " mode: " << hndArr.mode()
269  // << " vhka size: " << m_vhka.size()
270  // << "\n";
271  // debug() << ost.str() << endmsg;
272 
273  hndArr.setOwner(this);
274  m_vhka.push_back(&hndArr);
275 
276  Gaudi::Details::PropertyBase* p = PBASE::declareProperty(name, hndArr, doc);
277  if (p != 0) {
278  p->declareUpdateHandler(&AthCommonDataStore<PBASE>::updateVHKA, this);
279  } else {
280  ATH_MSG_ERROR("unable to call declareProperty on VarHandleKeyArray "
281  << name);
282  }
283 
284  return p;
285 
286  }

◆ declareProperty() [4/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc,
const SG::NotHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This is the generic version, for types that do not derive from SG::VarHandleKey. It just forwards to the base class version of declareProperty.

Definition at line 333 of file AthCommonDataStore.h.

337  {
338  return PBASE::declareProperty(name, property, doc);
339  }

◆ declareProperty() [5/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc = "none" 
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This dispatches to either the generic declareProperty or the one for VarHandle/Key/KeyArray.

Definition at line 352 of file AthCommonDataStore.h.

355  {
356  typedef typename SG::HandleClassifier<T>::type htype;
357  return declareProperty (name, property, doc, htype());
358  }

◆ declareProperty() [6/6]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty ( Gaudi::Property< T > &  t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145  {
146  typedef typename SG::HandleClassifier<T>::type htype;
148  }

◆ detStore()

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< Algorithm > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

95 { return m_detStore; }

◆ evtStore() [1/2]

ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< Algorithm > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

85 { return m_evtStore; }

◆ evtStore() [2/2]

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< Algorithm > >::evtStore ( ) const
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 90 of file AthCommonDataStore.h.

90 { return m_evtStore; }

◆ execute()

StatusCode SurveyConstraintTestAlg::execute ( )

Definition at line 146 of file SurveyConstraintTestAlg.cxx.

146  {
147 
148 // Part 1: Get the messaging service, print where you are
149 ATH_MSG_INFO( "execute()" );
150 
151  float multipl=1.E3;
152 
153  Amg::VectorX dparams(6); // alignment parameters
154  double deltachisq = 0;
155  Amg::VectorX DOCA_Vector(6);
156  Amg::MatrixX DOCA_Matrix(6,6);
157 
158  // Pix EC
159  bool NewDisk = true, NewSector = true;
160  int previous_disk = -1, previous_sector = -1;
161  for(int i=0;i!=m_NLoop;++i){
162  if(i!=0){m_SurvConstr -> finalize().ignore();m_SurvConstr -> setup_SurveyConstraintModules();}
163  for (PixelID::const_id_iterator wafer_it=m_pixid->wafer_begin(); wafer_it!=m_pixid->wafer_end(); ++wafer_it) {
164  const Identifier Pixel_ModuleID = *wafer_it;
165  if(std::abs(m_pixid->barrel_ec(Pixel_ModuleID)) == 2){
166  ATH_CHECK(m_SurvConstr -> computeConstraint(Pixel_ModuleID,
167  dparams,
168  deltachisq,
169  DOCA_Vector,
170  DOCA_Matrix));
171 
172 
173  if(previous_disk == m_pixid->layer_disk(Pixel_ModuleID) &&
174  previous_sector == m_SurvConstr->SectorNumber(m_pixid->phi_module(Pixel_ModuleID)))
175  NewSector=false;
176  else NewSector=true;
177  if(previous_disk == m_pixid->layer_disk(Pixel_ModuleID))
178  NewDisk=false;
179  else NewDisk=true;
180  if (NewDisk) for (unsigned int i=0;i!=6;++i) m_h_PixEC_Align_Disk[i] -> Fill(multipl*dparams[i]);
181  if (NewSector) for (unsigned int i=0;i!=6;++i) m_h_PixEC_Align_first[i] -> Fill(multipl*dparams[i]);
182  else for (unsigned int i=0;i!=6;++i) m_h_PixEC_Align[i] -> Fill(multipl*dparams[i]);
183  previous_disk = m_pixid->layer_disk(Pixel_ModuleID);
184  previous_sector = m_SurvConstr->SectorNumber(m_pixid->phi_module(Pixel_ModuleID));
185 
186  ATH_MSG_DEBUG( "Pixel_ModuleID = " << Pixel_ModuleID);
187  ATH_MSG_DEBUG( "alignment parameters = (" << dparams[0] << "," << dparams[1] << "," << dparams[2] << "," << dparams[3] << "," << dparams[4] << "," << dparams[5] << ")");
188  ATH_MSG_DEBUG( "chi^2 = " << deltachisq);
189  ATH_MSG_DEBUG( "DOCA_Vector = (" << DOCA_Vector[0] << "," << DOCA_Vector[1] << "," << DOCA_Vector[2] << "," << DOCA_Vector[3] << "," << DOCA_Vector[4] << "," << DOCA_Vector[5] << ")");
190  ATH_MSG_DEBUG( "DOCA_Matrix = (" <<DOCA_Matrix(0,0) << "," << DOCA_Matrix(1,0) << "," << DOCA_Matrix(2,0) << "," << DOCA_Matrix(3,0) << "," << DOCA_Matrix(4,0) << "," << DOCA_Matrix(5,0) << ")");
191  ATH_MSG_DEBUG( "DOCA_Matrix = (" <<DOCA_Matrix(0,1) << "," << DOCA_Matrix(1,1) << "," << DOCA_Matrix(2,1) << "," << DOCA_Matrix(3,1) << "," << DOCA_Matrix(4,1) << "," << DOCA_Matrix(5,1) << ")");
192  ATH_MSG_DEBUG( "DOCA_Matrix = (" <<DOCA_Matrix(0,0) << "," << DOCA_Matrix(1,1) << "," << DOCA_Matrix(2,2) << "," << DOCA_Matrix(3,2) << "," << DOCA_Matrix(4,4) << "," << DOCA_Matrix(5,5) << ")");
193  //break;
194  }
195  }
196  }
197 
198  // Pix B
199  for (PixelID::const_id_iterator wafer_it=m_pixid->wafer_begin(); wafer_it!=m_pixid->wafer_end(); ++wafer_it) {
200  const Identifier Pixel_ModuleID = *wafer_it;
201  if(m_pixid->barrel_ec(Pixel_ModuleID) == 0){
202  ATH_CHECK(m_SurvConstr -> computeConstraint(Pixel_ModuleID,
203  dparams,
204  deltachisq,
205  DOCA_Vector,
206  DOCA_Matrix));
207  ATH_MSG_DEBUG( "Pixel Barrel ModuleID = " << Pixel_ModuleID);
208  ATH_MSG_DEBUG( "alignment parameters = (" << dparams[0] << "," << dparams[1] << "," << dparams[2] << "," << dparams[3] << "," << dparams[4] << "," << dparams[5] << ")");
209  ATH_MSG_DEBUG( "chi^2 = " << deltachisq);
210  ATH_MSG_DEBUG( "DOCA_Vector = (" << DOCA_Vector[0] << "," << DOCA_Vector[1] << "," << DOCA_Vector[2] << "," << DOCA_Vector[3] << "," << DOCA_Vector[4] << "," << DOCA_Vector[5] << ")");
211  ATH_MSG_DEBUG( "DOCA_Matrix = (" <<DOCA_Matrix(0,0) << "," << DOCA_Matrix(1,0) << "," << DOCA_Matrix(2,0) << "," << DOCA_Matrix(3,0) << "," << DOCA_Matrix(4,0) << "," << DOCA_Matrix(5,0) << ")");
212  ATH_MSG_DEBUG( "DOCA_Matrix = (" <<DOCA_Matrix(0,1) << "," << DOCA_Matrix(1,1) << "," << DOCA_Matrix(2,1) << "," << DOCA_Matrix(3,1) << "," << DOCA_Matrix(4,1) << "," << DOCA_Matrix(5,1) << ")");
213  ATH_MSG_DEBUG( "DOCA_Matrix = (" <<DOCA_Matrix(0,0) << "," << DOCA_Matrix(1,1) << "," << DOCA_Matrix(2,2) << "," << DOCA_Matrix(3,2) << "," << DOCA_Matrix(4,4) << "," << DOCA_Matrix(5,5) << ")");
214  break;
215  }
216  }
217 
218  // SCT EC
219 
220  for (SCT_ID::const_id_iterator wafer_it=m_sctid->wafer_begin(); wafer_it!=m_sctid->wafer_end(); ++wafer_it) {
221  const Identifier SCT_ModuleID = *wafer_it;
222  if(std::abs(m_sctid->barrel_ec(SCT_ModuleID)) == 2){
223  ATH_CHECK(m_SurvConstr -> computeConstraint(SCT_ModuleID,
224  dparams,
225  deltachisq,
226  DOCA_Vector,
227  DOCA_Matrix));
228  ATH_MSG_DEBUG( "SCT_ModuleID = " << SCT_ModuleID);
229  ATH_MSG_DEBUG( "alignment parameters = (" << dparams[0] << "," << dparams[1] << "," << dparams[2] << "," << dparams[3] << "," << dparams[4] << "," << dparams[5] << ")");
230  ATH_MSG_DEBUG( "chi^2 = " << deltachisq);
231  ATH_MSG_DEBUG( "DOCA_Vector = (" << DOCA_Vector[0] << "," << DOCA_Vector[1] << "," << DOCA_Vector[2] << "," << DOCA_Vector[3] << "," << DOCA_Vector[4] << "," << DOCA_Vector[5] << ")");
232  ATH_MSG_DEBUG( "DOCA_Matrix = (" <<DOCA_Matrix(0,0) << "," << DOCA_Matrix(1,0) << "," << DOCA_Matrix(2,0) << "," << DOCA_Matrix(3,0) << "," << DOCA_Matrix(4,0) << "," << DOCA_Matrix(5,0) << ")");
233  ATH_MSG_DEBUG( "DOCA_Matrix = (" <<DOCA_Matrix(0,1) << "," << DOCA_Matrix(1,1) << "," << DOCA_Matrix(2,1) << "," << DOCA_Matrix(3,1) << "," << DOCA_Matrix(4,1) << "," << DOCA_Matrix(5,1) << ")");
234  ATH_MSG_DEBUG( "DOCA_Matrix = (" <<DOCA_Matrix(0,0) << "," << DOCA_Matrix(1,1) << "," << DOCA_Matrix(2,2) << "," << DOCA_Matrix(3,2) << "," << DOCA_Matrix(4,4) << "," << DOCA_Matrix(5,5) << ")");
235  break;
236  }
237  }
238 
239 
240  // SCT B
241  for (SCT_ID::const_id_iterator wafer_it=m_sctid->wafer_begin(); wafer_it!=m_sctid->wafer_end(); ++wafer_it) {
242  const Identifier SCT_ModuleID = *wafer_it;
243  if(m_sctid->barrel_ec(SCT_ModuleID) == 0){
244  ATH_CHECK(m_SurvConstr -> computeConstraint(SCT_ModuleID,
245  dparams,
246  deltachisq,
247  DOCA_Vector,
248  DOCA_Matrix));
249  ATH_MSG_DEBUG( "SCT Barrel ModuleID = " << SCT_ModuleID);
250  ATH_MSG_DEBUG( "alignment parameters = (" << dparams[0] << "," << dparams[1] << "," << dparams[2] << "," << dparams[3] << "," << dparams[4] << "," << dparams[5] << ")");
251  ATH_MSG_DEBUG( "chi^2 = " << deltachisq);
252  ATH_MSG_DEBUG( "DOCA_Vector = (" << DOCA_Vector[0] << "," << DOCA_Vector[1] << "," << DOCA_Vector[2] << "," << DOCA_Vector[3] << "," << DOCA_Vector[4] << "," << DOCA_Vector[5] << ")");
253  ATH_MSG_DEBUG( "DOCA_Matrix = (" <<DOCA_Matrix(0,0) << "," << DOCA_Matrix(1,0) << "," << DOCA_Matrix(2,0) << "," << DOCA_Matrix(3,0) << "," << DOCA_Matrix(4,0) << "," << DOCA_Matrix(5,0) << ")");
254  ATH_MSG_DEBUG( "DOCA_Matrix = (" <<DOCA_Matrix(0,1) << "," << DOCA_Matrix(1,1) << "," << DOCA_Matrix(2,1) << "," << DOCA_Matrix(3,1) << "," << DOCA_Matrix(4,1) << "," << DOCA_Matrix(5,1) << ")");
255  ATH_MSG_DEBUG( "DOCA_Matrix = (" <<DOCA_Matrix(0,0) << "," << DOCA_Matrix(1,1) << "," << DOCA_Matrix(2,2) << "," << DOCA_Matrix(3,2) << "," << DOCA_Matrix(4,4) << "," << DOCA_Matrix(5,5) << ")");
256  break;
257  }
258  }
259 
260  return StatusCode::SUCCESS;
261  }

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< Algorithm > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase &  ExtraDeps)
protectedinherited

Add StoreName to extra input/output deps as needed.

use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given

◆ extraOutputDeps()

const DataObjIDColl & AthAlgorithm::extraOutputDeps ( ) const
overridevirtualinherited

Return the list of extra output dependencies.

This list is extended to include symlinks implied by inheritance relations.

Definition at line 50 of file AthAlgorithm.cxx.

51 {
52  // If we didn't find any symlinks to add, just return the collection
53  // from the base class. Otherwise, return the extended collection.
54  if (!m_extendedExtraObjects.empty()) {
56  }
57  return Algorithm::extraOutputDeps();
58 }

◆ finalize()

StatusCode SurveyConstraintTestAlg::finalize ( )

Definition at line 265 of file SurveyConstraintTestAlg.cxx.

265  {
266 
267  // Part 1: Get the messaging service, print where you are
268  ATH_MSG_INFO( "finalize()" );
269 
270  ATH_MSG_INFO( "mm = " << CLHEP::mm
271  << ", mrad = " << CLHEP::mrad
272  << ", micrometer = " << CLHEP::micrometer
273  << ", deg = " << CLHEP::deg);
274 
275  return StatusCode::SUCCESS;
276 }

◆ initialize()

StatusCode SurveyConstraintTestAlg::initialize ( )

Definition at line 43 of file SurveyConstraintTestAlg.cxx.

43  {
44 
45  // Part 1: Get the messaging service, print where you are
46  ATH_MSG_DEBUG( "initialize()" );
47 
48  // Get The ToolSvc
49  ATH_CHECK( service("ToolSvc",m_toolsvc));
50 
51 
52  // Get SurveyConstraint from ToolService
53  ATH_CHECK( m_toolsvc->retrieveTool("SurveyConstraint",m_SurvConstr));
54 
55  // get ID helpers from detector store (relying on GeoModel to put them)
58  ATH_MSG_DEBUG( "got ID helpers from detector store (relying on GeoModel to put them)" );
59 
60  // book histograms
61  ATH_CHECK( BookHist() );
63 
64 return StatusCode::SUCCESS;
65 }

◆ inputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< Algorithm > >::inputHandles ( ) const
overridevirtualinherited

Return this algorithm's input handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ msg() [1/2]

MsgStream& AthCommonMsg< Algorithm >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24  {
25  return this->msgStream();
26  }

◆ msg() [2/2]

MsgStream& AthCommonMsg< Algorithm >::msg ( const MSG::Level  lvl) const
inlineinherited

Definition at line 27 of file AthCommonMsg.h.

27  {
28  return this->msgStream(lvl);
29  }

◆ msgLvl()

bool AthCommonMsg< Algorithm >::msgLvl ( const MSG::Level  lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30  {
31  return this->msgLevel(lvl);
32  }

◆ outputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< Algorithm > >::outputHandles ( ) const
overridevirtualinherited

Return this algorithm's output handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ renounce()

std::enable_if_t<std::is_void_v<std::result_of_t<decltype(&T::renounce)(T)> > && !std::is_base_of_v<SG::VarHandleKeyArray, T> && std::is_base_of_v<Gaudi::DataHandle, T>, void> AthCommonDataStore< AthCommonMsg< Algorithm > >::renounce ( T &  h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381  {
382  h.renounce();
383  PBASE::renounce (h);
384  }

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< Algorithm > >::renounceArray ( SG::VarHandleKeyArray handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364  {
365  handlesArray.renounce();
366  }

◆ sysInitialize()

StatusCode AthAlgorithm::sysInitialize ( )
overridevirtualinherited

Override sysInitialize.

Override sysInitialize from the base class.

Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc

Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc

Reimplemented from AthCommonDataStore< AthCommonMsg< Algorithm > >.

Reimplemented in AthAnalysisAlgorithm, AthFilterAlgorithm, PyAthena::Alg, and AthHistogramAlgorithm.

Definition at line 66 of file AthAlgorithm.cxx.

66  {
68 
69  if (sc.isFailure()) {
70  return sc;
71  }
72  ServiceHandle<ICondSvc> cs("CondSvc",name());
73  for (auto h : outputHandles()) {
74  if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
75  // do this inside the loop so we don't create the CondSvc until needed
76  if ( cs.retrieve().isFailure() ) {
77  ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
78  return StatusCode::SUCCESS;
79  }
80  if (cs->regHandle(this,*h).isFailure()) {
81  sc = StatusCode::FAILURE;
82  ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
83  << " with CondSvc");
84  }
85  }
86  }
87  return sc;
88 }

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< Algorithm > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< Algorithm > >::updateVHKA ( Gaudi::Details::PropertyBase &  )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308  {
309  // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310  // << " size: " << m_vhka.size() << endmsg;
311  for (auto &a : m_vhka) {
312  std::vector<SG::VarHandleKey*> keys = a->keys();
313  for (auto k : keys) {
314  k->setOwner(this);
315  }
316  }
317  }

Member Data Documentation

◆ m_AlignResults_alpha

NTuple::Item<double> SurveyConstraintTestAlg::m_AlignResults_alpha
private

Definition at line 40 of file SurveyConstraintTestAlg.h.

◆ m_AlignResults_beta

NTuple::Item<double> SurveyConstraintTestAlg::m_AlignResults_beta
private

Definition at line 41 of file SurveyConstraintTestAlg.h.

◆ m_AlignResults_gamma

NTuple::Item<double> SurveyConstraintTestAlg::m_AlignResults_gamma
private

Definition at line 42 of file SurveyConstraintTestAlg.h.

◆ m_AlignResults_Identifier_BarrelEC

NTuple::Item<long> SurveyConstraintTestAlg::m_AlignResults_Identifier_BarrelEC
private

Definition at line 45 of file SurveyConstraintTestAlg.h.

◆ m_AlignResults_Identifier_Eta

NTuple::Item<long> SurveyConstraintTestAlg::m_AlignResults_Identifier_Eta
private

Definition at line 48 of file SurveyConstraintTestAlg.h.

◆ m_AlignResults_Identifier_ID

NTuple::Item<long> SurveyConstraintTestAlg::m_AlignResults_Identifier_ID
private

Definition at line 43 of file SurveyConstraintTestAlg.h.

◆ m_AlignResults_Identifier_LayerDisc

NTuple::Item<long> SurveyConstraintTestAlg::m_AlignResults_Identifier_LayerDisc
private

Definition at line 46 of file SurveyConstraintTestAlg.h.

◆ m_AlignResults_Identifier_Phi

NTuple::Item<long> SurveyConstraintTestAlg::m_AlignResults_Identifier_Phi
private

Definition at line 47 of file SurveyConstraintTestAlg.h.

◆ m_AlignResults_Identifier_SCT

NTuple::Item<long> SurveyConstraintTestAlg::m_AlignResults_Identifier_SCT
private

Definition at line 44 of file SurveyConstraintTestAlg.h.

◆ m_AlignResults_nModules

int SurveyConstraintTestAlg::m_AlignResults_nModules
private

Definition at line 36 of file SurveyConstraintTestAlg.h.

◆ m_AlignResults_x

NTuple::Item<double> SurveyConstraintTestAlg::m_AlignResults_x
private

Definition at line 37 of file SurveyConstraintTestAlg.h.

◆ m_AlignResults_y

NTuple::Item<double> SurveyConstraintTestAlg::m_AlignResults_y
private

Definition at line 38 of file SurveyConstraintTestAlg.h.

◆ m_AlignResults_z

NTuple::Item<double> SurveyConstraintTestAlg::m_AlignResults_z
private

Definition at line 39 of file SurveyConstraintTestAlg.h.

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Algorithm > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Algorithm > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

DataObjIDColl AthAlgorithm::m_extendedExtraObjects
privateinherited

Definition at line 79 of file AthAlgorithm.h.

◆ m_h_PixEC_Align

TH1* SurveyConstraintTestAlg::m_h_PixEC_Align[6]
private

Definition at line 34 of file SurveyConstraintTestAlg.h.

◆ m_h_PixEC_Align_Disk

TH1* SurveyConstraintTestAlg::m_h_PixEC_Align_Disk[6]
private

Definition at line 32 of file SurveyConstraintTestAlg.h.

◆ m_h_PixEC_Align_first

TH1* SurveyConstraintTestAlg::m_h_PixEC_Align_first[6]
private

Definition at line 33 of file SurveyConstraintTestAlg.h.

◆ m_NLoop

int SurveyConstraintTestAlg::m_NLoop
private

Definition at line 51 of file SurveyConstraintTestAlg.h.

◆ m_pixid

const PixelID* SurveyConstraintTestAlg::m_pixid
private

Definition at line 30 of file SurveyConstraintTestAlg.h.

◆ m_sctid

const SCT_ID* SurveyConstraintTestAlg::m_sctid
private

Definition at line 31 of file SurveyConstraintTestAlg.h.

◆ m_SurvConstr

ISurveyConstraint* SurveyConstraintTestAlg::m_SurvConstr
private

Definition at line 29 of file SurveyConstraintTestAlg.h.

◆ m_toolsvc

IToolSvc* SurveyConstraintTestAlg::m_toolsvc
private

Pointer to tool service.

Definition at line 28 of file SurveyConstraintTestAlg.h.

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< Algorithm > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< Algorithm > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files:
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition: PyKernel.py:110
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
SurveyConstraintTestAlg::m_AlignResults_Identifier_LayerDisc
NTuple::Item< long > m_AlignResults_Identifier_LayerDisc
Definition: SurveyConstraintTestAlg.h:46
SurveyConstraintModule::isPixel
bool isPixel()
Definition: SurveyConstraintModule.h:83
SurveyConstraintTestAlg::m_h_PixEC_Align
TH1 * m_h_PixEC_Align[6]
Definition: SurveyConstraintTestAlg.h:34
SurveyConstraintTestAlg::m_AlignResults_Identifier_Eta
NTuple::Item< long > m_AlignResults_Identifier_Eta
Definition: SurveyConstraintTestAlg.h:48
PixelID::const_id_iterator
std::vector< Identifier >::const_iterator const_id_iterator
Definition: PixelID.h:72
Amg::VectorX
Eigen::Matrix< double, Eigen::Dynamic, 1 > VectorX
Dynamic Vector - dynamic allocation.
Definition: EventPrimitives.h:32
SurveyConstraintTestAlg::m_AlignResults_y
NTuple::Item< double > m_AlignResults_y
Definition: SurveyConstraintTestAlg.h:38
Amg::MatrixX
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Definition: EventPrimitives.h:29
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
PixelID::wafer_end
const_id_iterator wafer_end(void) const
Definition: PixelID.cxx:925
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:64
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
PixelID::barrel_ec
int barrel_ec(const Identifier &id) const
Values of different levels (failure returns 0)
Definition: PixelID.h:619
SurveyConstraintModule::DOCA_Vector
Amg::VectorX DOCA_Vector() const
Definition: SurveyConstraintModule.h:71
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:79
AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
SurveyConstraintTestAlg::m_AlignResults_z
NTuple::Item< double > m_AlignResults_z
Definition: SurveyConstraintTestAlg.h:39
skel.it
it
Definition: skel.GENtoEVGEN.py:423
PixelID::wafer_begin
const_id_iterator wafer_begin(void) const
Iterators over full set of ids. Wafer iterator is sorted.
Definition: PixelID.cxx:921
SCT_ID::wafer_begin
const_id_iterator wafer_begin(void) const
Iterators over full set of ids. Wafer iterator is sorted.
Definition: SCT_ID.cxx:648
SurveyConstraintTestAlg::m_NLoop
int m_NLoop
Definition: SurveyConstraintTestAlg.h:51
SurveyConstraintTestAlg::m_AlignResults_gamma
NTuple::Item< double > m_AlignResults_gamma
Definition: SurveyConstraintTestAlg.h:42
AthCommonDataStore< AthCommonMsg< Algorithm > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< Algorithm > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
SurveyConstraintTestAlg::m_SurvConstr
ISurveyConstraint * m_SurvConstr
Definition: SurveyConstraintTestAlg.h:29
deg
#define deg
Definition: SbPolyhedron.cxx:17
SurveyConstraintTestAlg::m_h_PixEC_Align_Disk
TH1 * m_h_PixEC_Align_Disk[6]
Definition: SurveyConstraintTestAlg.h:32
SurveyConstraintTestAlg::BookHist
StatusCode BookHist()
Definition: SurveyConstraintTestAlg.cxx:278
SCT_ID::const_id_iterator
std::vector< Identifier >::const_iterator const_id_iterator
Definition: SCT_ID.h:73
SurveyConstraintTestAlg::m_toolsvc
IToolSvc * m_toolsvc
Pointer to tool service.
Definition: SurveyConstraintTestAlg.h:28
SCT_ID::barrel_ec
int barrel_ec(const Identifier &id) const
Values of different levels (failure returns 0)
Definition: SCT_ID.h:728
SCT_ID::phi_module
int phi_module(const Identifier &id) const
Definition: SCT_ID.h:740
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
SurveyConstraintTestAlg::m_AlignResults_x
NTuple::Item< double > m_AlignResults_x
Definition: SurveyConstraintTestAlg.h:37
python.SystemOfUnits.mrad
int mrad
Definition: SystemOfUnits.py:112
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
AthCommonDataStore< AthCommonMsg< Algorithm > >::detStore
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
Definition: AthCommonDataStore.h:95
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
SCT_CalibAlgs::nbins
@ nbins
Definition: SCT_CalibNumbers.h:10
SurveyConstraintTestAlg::CreateMisAlignNtuple
void CreateMisAlignNtuple()
Definition: SurveyConstraintTestAlg.cxx:67
AthCommonDataStore
Definition: AthCommonDataStore.h:52
AthAlgorithm::sysInitialize
virtual StatusCode sysInitialize() override
Override sysInitialize.
Definition: AthAlgorithm.cxx:66
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
AthCommonDataStore< AthCommonMsg< Algorithm > >::outputHandles
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
WritePulseShapeToCool.xhi
xhi
Definition: WritePulseShapeToCool.py:152
book
T * book(const std::string &n, const std::string &t, unsigned nbins)
Definition: main_benchmark.cxx:138
lumiFormat.i
int i
Definition: lumiFormat.py:92
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
extractSporadic.h
list h
Definition: extractSporadic.py:97
covarianceTool.title
title
Definition: covarianceTool.py:542
checkCorrelInHIST.prefix
dictionary prefix
Definition: checkCorrelInHIST.py:391
MuonSegmentReaderConfig.histSvc
histSvc
Definition: MuonSegmentReaderConfig.py:96
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
SurveyConstraintTestAlg::m_AlignResults_beta
NTuple::Item< double > m_AlignResults_beta
Definition: SurveyConstraintTestAlg.h:41
SurveyConstraintTestAlg::m_pixid
const PixelID * m_pixid
Definition: SurveyConstraintTestAlg.h:30
AthCommonDataStore< AthCommonMsg< Algorithm > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
python.SystemOfUnits.micrometer
int micrometer
Definition: SystemOfUnits.py:71
WritePulseShapeToCool.xlo
xlo
Definition: WritePulseShapeToCool.py:133
SCT
Definition: SCT_ChipUtils.h:14
SurveyConstraintTestAlg::m_AlignResults_Identifier_Phi
NTuple::Item< long > m_AlignResults_Identifier_Phi
Definition: SurveyConstraintTestAlg.h:47
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
PixelID::layer_disk
int layer_disk(const Identifier &id) const
Definition: PixelID.h:626
ISurveyConstraint::SectorNumber
virtual int SectorNumber(int)=0
PixelID::eta_module
int eta_module(const Identifier &id) const
Definition: PixelID.h:651
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
SurveyConstraintTestAlg::finalize
StatusCode finalize()
Definition: SurveyConstraintTestAlg.cxx:265
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
SCT_ID::layer_disk
int layer_disk(const Identifier &id) const
Definition: SCT_ID.h:734
SurveyConstraintTestAlg::m_h_PixEC_Align_first
TH1 * m_h_PixEC_Align_first[6]
Definition: SurveyConstraintTestAlg.h:33
python.SystemOfUnits.mm
int mm
Definition: SystemOfUnits.py:83
AthAlgorithm::m_extendedExtraObjects
DataObjIDColl m_extendedExtraObjects
Definition: AthAlgorithm.h:79
a
TList * a
Definition: liststreamerinfos.cxx:10
h
SurveyConstraintTestAlg::m_AlignResults_Identifier_SCT
NTuple::Item< long > m_AlignResults_Identifier_SCT
Definition: SurveyConstraintTestAlg.h:44
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
SurveyConstraintTestAlg::m_AlignResults_Identifier_BarrelEC
NTuple::Item< long > m_AlignResults_Identifier_BarrelEC
Definition: SurveyConstraintTestAlg.h:45
SurveyConstraintTestAlg::m_AlignResults_Identifier_ID
NTuple::Item< long > m_AlignResults_Identifier_ID
Definition: SurveyConstraintTestAlg.h:43
TH1
Definition: rootspy.cxx:268
SCT_ID::eta_module
int eta_module(const Identifier &id) const
Definition: SCT_ID.h:746
SurveyConstraintTestAlg::m_AlignResults_nModules
int m_AlignResults_nModules
Definition: SurveyConstraintTestAlg.h:36
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:616
declareProperty
#define declareProperty(n, p, h)
Definition: BaseFakeBkgTool.cxx:15
SCT_ID::side
int side(const Identifier &id) const
Definition: SCT_ID.h:752
SCT_ID::wafer_end
const_id_iterator wafer_end(void) const
Definition: SCT_ID.cxx:652
AthAlgorithm::AthAlgorithm
AthAlgorithm()
Default constructor:
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:790
python.TrigEgammaMonitorHelper.TH1F
def TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
Definition: TrigEgammaMonitorHelper.py:24
LHEF::Writer
Pythia8::Writer Writer
Definition: Prophecy4fMerger.cxx:12
beamspotnt.nt
def nt
Definition: bin/beamspotnt.py:1063
PixelID::phi_module
int phi_module(const Identifier &id) const
Definition: PixelID.h:644
ntupleSvc
INTupleSvc * ntupleSvc()
Definition: ServiceAccessor.h:14
SurveyConstraintTestAlg::m_sctid
const SCT_ID * m_sctid
Definition: SurveyConstraintTestAlg.h:31
SurveyConstraintModule
Definition: SurveyConstraintModule.h:24
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
SurveyConstraintTestAlg::m_AlignResults_alpha
NTuple::Item< double > m_AlignResults_alpha
Definition: SurveyConstraintTestAlg.h:40
fitman.k
k
Definition: fitman.py:528
SCT
@ SCT
Definition: RegSelEnums.h:25
ServiceHandle< ITHistSvc >