ATLAS Offline Software
VP1RawDataColl_LUCID.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 
7 // //
8 // Implementation of class VP1RawDataColl_LUCID //
9 // //
10 // Author: Thomas H. Kittelmann (Thomas.Kittelmann@cern.ch) //
11 // Initial version: February 2009 //
12 // //
14 
24 
25 //#include "LUCID_RawEvent/LUCID_RawEvent/LUCID_Digit.h" // old CMT
26 #include "LUCID_RawEvent/LUCID_Digit.h" // new CMake
27 
28 
29 //____________________________________________________________________
31 {
33 }
34 
35 //____________________________________________________________________
37 public:
38  unsigned minQDC;
39 };
40 
41 
42 //____________________________________________________________________
45 {
46  m_d->minQDC = 9999999;
47  connect(common->controller(),SIGNAL(lucidMinQDCChanged(unsigned)),
48  this,SLOT(setMinQDC(unsigned)));
49  setMinQDC(common->controller()->lucidMinQDC());
50 }
51 
52 //____________________________________________________________________
54 {
55  delete m_d;
56 }
57 
58 //____________________________________________________________________
60 {
61  VP1MaterialButton::setMaterialParameters( m, 0.3, 1.0, 0.95, 0.1 );
62 }
63 
64 //____________________________________________________________________
66 {
68  message("LUCID geometry not configured in job");
69  return false;
70  }
71  const LUCID_DigitContainer* digitContainer;
72  if (!VP1SGAccessHelper(systemBase()).retrieve(digitContainer,text())) {
73  message("Problems retrieving container with key "+text());
74  return false;
75  }
76 
77  LUCID_DigitContainer::const_iterator itDigit(digitContainer->begin()), itDigitE(digitContainer->end());
78  for (;itDigit!=itDigitE;++itDigit) {
79  if (*itDigit)
80  addHandle(new VP1RawDataHandle_LUCID_Digit(this,*itDigit));
81  }
82  return true;
83 }
84 
85 //____________________________________________________________________
87 {
88  return static_cast<VP1RawDataHandle_LUCID*>(handle)->getQDC() >= m_d->minQDC;
89 }
90 
91 //____________________________________________________________________
93 {
94  if (m_d->minQDC==i)
95  return;
96  bool relaxed(i<m_d->minQDC);
97  m_d->minQDC=i;
98  if (relaxed)
100  else
102 }
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition: PyKernel.py:110
DataModel_detail::const_iterator
Const iterator class for DataVector/DataList.
Definition: DVLIterator.h:82
VP1RawDataCollBase::addHandle
void addHandle(VP1RawDataHandleBase *)
Definition: VP1RawDataCollBase.cxx:150
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
VP1RawDataColl_LUCID::setMinQDC
void setMinQDC(unsigned)
Definition: VP1RawDataColl_LUCID.cxx:92
VP1RawDataHandleBase
Definition: VP1RawDataHandleBase.h:34
VP1RawDataColl_LUCID.h
VP1RawDataHandle_LUCID_Digit.h
VP1MaterialButton.h
LUCID_DigitContainer
Definition: LUCID_DigitContainer.h:13
fillPileUpNoiseLumi.connect
string connect
Definition: fillPileUpNoiseLumi.py:70
CSV_InDetExporter.new
new
Definition: CSV_InDetExporter.py:145
VP1RawDataCollBase
Definition: VP1RawDataCollBase.h:29
VP1RawDataColl_LUCID::~VP1RawDataColl_LUCID
virtual ~VP1RawDataColl_LUCID()
Definition: VP1RawDataColl_LUCID.cxx:53
VP1RawDataHandle_LUCID_Digit
Definition: VP1RawDataHandle_LUCID_Digit.h:23
VP1RawDataCollBase::recheckCutStatusOfAllNotVisibleHandles
void recheckCutStatusOfAllNotVisibleHandles()
Definition: VP1RawDataCollBase.cxx:228
VP1RawDataColl_LUCID::availableCollections
static QStringList availableCollections(IVP1System *)
Definition: VP1RawDataColl_LUCID.cxx:30
mapkey::sys
@ sys
Definition: TElectronEfficiencyCorrectionTool.cxx:42
VP1SGContentsHelper::getKeys
QStringList getKeys() const
Definition: VP1SGContentsHelper.h:55
VP1RawDataCollBase::recheckCutStatusOfAllVisibleHandles
void recheckCutStatusOfAllVisibleHandles()
Definition: VP1RawDataCollBase.cxx:211
VP1RawDataColl_LUCID::assignDefaultMaterial
void assignDefaultMaterial(SoMaterial *) const
Definition: VP1RawDataColl_LUCID.cxx:59
IVP1System
Definition: IVP1System.h:36
VP1RawDataHandle_LUCID
Definition: VP1RawDataHandle_LUCID.h:23
lumiFormat.i
int i
Definition: lumiFormat.py:85
VP1MaterialButton::setMaterialParameters
static void setMaterialParameters(SoMaterial *m, const QColor &, const double &brightness=0.0, const double &transp=0.0)
Definition: VP1MaterialButton.cxx:802
VP1RawDataSysController.h
VP1JobConfigInfo::hasLUCIDGeometry
static bool hasLUCIDGeometry()
Definition: VP1JobConfigInfo.cxx:136
VP1StdCollection::text
QString text() const
Definition: VP1StdCollection.cxx:132
LUCID_Digit.h
VP1RawDataCommonData.h
VP1HelperClassBase::systemBase
IVP1System * systemBase() const
Definition: VP1HelperClassBase.h:50
VP1SGContentsHelper
Definition: VP1SGContentsHelper.h:26
DataVector::end
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
VP1RawDataColl_LUCID::m_d
Imp * m_d
Definition: VP1RawDataColl_LUCID.h:48
LUCID_DigitContainer.h
VP1RawDataCommonData
Definition: VP1RawDataCommonData.h:31
VP1HelperClassBase::message
void message(const QString &) const
Definition: VP1HelperClassBase.cxx:49
VP1JobConfigInfo.h
VP1SGAccessHelper
Definition: VP1SGAccessHelper.h:25
VP1SGAccessHelper.h
VP1RawDataColl_LUCID::VP1RawDataColl_LUCID
VP1RawDataColl_LUCID(VP1RawDataCommonData *, const QString &key)
Definition: VP1RawDataColl_LUCID.cxx:43
VP1RawDataColl_LUCID::cut
bool cut(VP1RawDataHandleBase *)
Definition: VP1RawDataColl_LUCID.cxx:86
VP1RawDataColl_LUCID::load
bool load()
Definition: VP1RawDataColl_LUCID.cxx:65
DataVector::begin
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
common
Definition: common.py:1
VP1RawDataColl_LUCID::Imp
Definition: VP1RawDataColl_LUCID.cxx:36
VP1SGContentsHelper.h
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37
VP1RawDataColl_LUCID::Imp::minQDC
unsigned minQDC
Definition: VP1RawDataColl_LUCID.cxx:38