ATLAS Offline Software
VP1RawDataCollBase.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 
7 // //
8 // Header file for class VP1RawDataCollBase //
9 // //
10 // Description: ... //
11 // //
12 // Author: Thomas H. Kittelmann (Thomas.Kittelmann@cern.ch) //
13 // Initial version: January 2009 //
14 // //
16 
17 #ifndef VP1RAWDATACOLLBASE_H
18 #define VP1RAWDATACOLLBASE_H
19 
22 #include "VP1Base/VP1Interval.h"
23 #include <vector>
24 
28 
30 
31  Q_OBJECT
32 
33 public:
34 
36  virtual ~VP1RawDataCollBase();
37  virtual void init(VP1MaterialButtonBase* mat=0);
38 
39  VP1RawDataCommonData * common() const { return m_common; }
41 
42  virtual bool usesInDetPartsCuts() { return false; }//Override if InDet
43 
44 public Q_SLOTS:
45  void setAllowedEta(const VP1Interval&);
46  void setAllowedPhi(const QList<VP1Interval>&);
47  void setEnabledInDetParts(VP1RawDataFlags::InDetPartsFlags);
48 
49 //Nb: RawDataHandleBase needs eta() and phi() method.
50 
51 protected:
52  QString provideText() const;
53 
54 //For use in load() reimplementations:
55  void addHandle(VP1RawDataHandleBase*);//Return pointer to the handle. Base class (this) will own it.
56 
57  virtual bool cut(VP1RawDataHandleBase*) = 0;//Return true if should be shown (based on various cuts not including eta and phi), false otherwise.
58 
59  //For rechecking cut status:
64 
65  std::vector<VP1RawDataHandleBase*>& getHandles();
66 
67 private Q_SLOTS:
68  void collVisibilityChanged(bool);
69 
70 private:
72  class Imp;
73  Imp * m_d;
74 
75 };
76 
77 #endif
VP1RawDataCollBase::addHandle
void addHandle(VP1RawDataHandleBase *)
Definition: VP1RawDataCollBase.cxx:150
VP1RawDataHandleBase
Definition: VP1RawDataHandleBase.h:34
VP1RawDataCollBase::~VP1RawDataCollBase
virtual ~VP1RawDataCollBase()
Definition: VP1RawDataCollBase.cxx:78
VP1RawDataCollBase::VP1RawDataCollBase
VP1RawDataCollBase(VP1RawDataCommonData *, const QString &key)
Definition: VP1RawDataCollBase.cxx:41
mat
GeoMaterial * mat
Definition: LArDetectorConstructionTBEC.cxx:55
VP1RawDataCollBase::cut
virtual bool cut(VP1RawDataHandleBase *)=0
VP1RawDataCollBase
Definition: VP1RawDataCollBase.h:29
VP1RawDataCollBase::recheckCutStatusOfAllNotVisibleHandles
void recheckCutStatusOfAllNotVisibleHandles()
Definition: VP1RawDataCollBase.cxx:228
VP1RawDataCollBase::provideText
QString provideText() const
Definition: VP1RawDataCollBase.cxx:90
VP1RawDataCollBase::recheckCutStatusOfAllVisibleHandles
void recheckCutStatusOfAllVisibleHandles()
Definition: VP1RawDataCollBase.cxx:211
VP1RawDataCollBase::recheckCutStatusOfAllHandles
void recheckCutStatusOfAllHandles()
Definition: VP1RawDataCollBase.cxx:194
VP1ExtraSepLayerHelper
Definition: VP1ExtraSepLayerHelper.h:22
VP1RawDataCollBase::getHandles
std::vector< VP1RawDataHandleBase * > & getHandles()
Definition: VP1RawDataCollBase.cxx:242
VP1RawDataCollBase::recheckCutStatus
void recheckCutStatus(VP1RawDataHandleBase *)
Definition: VP1RawDataCollBase.cxx:188
VP1RawDataCollBase::Imp
Definition: VP1RawDataCollBase.cxx:27
VP1RawDataCollBase::m_common
VP1RawDataCommonData * m_common
Definition: VP1RawDataCollBase.h:71
VP1RawDataCollBase::m_d
Imp * m_d
Definition: VP1RawDataCollBase.h:72
VP1Interval.h
VP1RawDataFlags.h
VP1RawDataCollBase::usesInDetPartsCuts
virtual bool usesInDetPartsCuts()
Definition: VP1RawDataCollBase.h:42
VP1MaterialButtonBase
Definition: VP1MaterialButton.h:25
VP1RawDataCollBase::setAllowedPhi
void setAllowedPhi(const QList< VP1Interval > &)
Definition: VP1RawDataCollBase.cxx:123
VP1RawDataCollBase::init
virtual void init(VP1MaterialButtonBase *mat=0)
Definition: VP1RawDataCollBase.cxx:50
VP1Interval
Definition: VP1Interval.h:23
VP1RawDataCollBase::setEnabledInDetParts
void setEnabledInDetParts(VP1RawDataFlags::InDetPartsFlags)
Definition: VP1RawDataCollBase.cxx:132
VP1RawDataCollBase::sepHelper
VP1ExtraSepLayerHelper * sepHelper() const
Definition: VP1RawDataCollBase.cxx:70
VP1RawDataCollBase::collVisibilityChanged
void collVisibilityChanged(bool)
Definition: VP1RawDataCollBase.cxx:96
VP1RawDataCommonData
Definition: VP1RawDataCommonData.h:31
VP1StdCollection
Definition: VP1StdCollection.h:31
VP1StdCollection.h
VP1RawDataCollBase::setAllowedEta
void setAllowedEta(const VP1Interval &)
Definition: VP1RawDataCollBase.cxx:107
VP1RawDataCollBase::common
VP1RawDataCommonData * common() const
Definition: VP1RawDataCollBase.h:39
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37