ATLAS Offline Software
TrackCollHandle_SimulationTracks.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 TrackCollHandle_SimulationTracks //
9 // //
10 // Description: Collection handle for HepMC/simhit based //
11 // truth tracks //
12 // //
13 // Author: Thomas H. Kittelmann (Thomas.Kittelmann@cern.ch) //
14 // Initial version: March 2008 //
15 // //
17 
18 #ifndef TRACKCOLLHANDLE_SIMULATIONTRACKS_H
19 #define TRACKCOLLHANDLE_SIMULATIONTRACKS_H
20 
22 
23 class SimHitHandleBase;
24 
26 
27  Q_OBJECT
28 
29 public:
30 
31  static QStringList availableCollections(IVP1System*);//For the collection widget.
32 
34  const QString& name);
36 
38 
39 protected:
40  virtual COLOURBY defaultColourBy () const { return COLOUR_BYPID; }
41  virtual bool allowColourByPID() const { return true; }
42  virtual bool load();
43  virtual bool cut(TrackHandleBase*);
44  virtual QColor defaultColor() const { return QColor::fromRgbF(0.42f, 0.96f, 0.16f); }
45 
46 private Q_SLOTS:
47  void setCutExcludeBarcodeZero(bool);
48  void setCutExcludeNeutrals(bool);
49  void setShowAscObjs(bool);
50 
51 private:
52 
53  class Imp;
54  Imp * m_d;
55  void fixPDGCode(SimHitHandleBase*) const;
56 };
57 
58 #endif
TrackCollHandle_SimulationTracks::Imp
Definition: TrackCollHandle_SimulationTracks.cxx:48
TrackCollHandleBase.h
TrackCollHandleBase
Definition: TrackCollHandleBase.h:49
TrackCollHandle_SimulationTracks::setCutExcludeNeutrals
void setCutExcludeNeutrals(bool)
Definition: TrackCollHandle_SimulationTracks.cxx:291
TrackCollHandle_SimulationTracks::cut
virtual bool cut(TrackHandleBase *)
Definition: TrackCollHandle_SimulationTracks.cxx:266
TrackCollHandle_SimulationTracks::setShowAscObjs
void setShowAscObjs(bool)
Definition: TrackCollHandle_SimulationTracks.cxx:125
TrackCollHandle_SimulationTracks::defaultColor
virtual QColor defaultColor() const
Definition: TrackCollHandle_SimulationTracks.h:44
TrackCollHandle_SimulationTracks::m_d
Imp * m_d
Definition: TrackCollHandle_SimulationTracks.h:53
TrackCollHandle_SimulationTracks::TrackCollHandle_SimulationTracks
TrackCollHandle_SimulationTracks(TrackSysCommonData *, const QString &name)
Definition: TrackCollHandle_SimulationTracks.cxx:91
IVP1System
Definition: IVP1System.h:36
TrackSysCommonData
Definition: TrackSysCommonData.h:50
TrackCollHandle_SimulationTracks::defaultColourBy
virtual COLOURBY defaultColourBy() const
Definition: TrackCollHandle_SimulationTracks.h:40
TrackCollHandle_SimulationTracks::allowColourByPID
virtual bool allowColourByPID() const
Definition: TrackCollHandle_SimulationTracks.h:41
TrackCollHandleBase::name
QString name() const
Definition: TrackCollHandleBase.cxx:310
hist_file_dump.f
f
Definition: hist_file_dump.py:135
TrackCollHandle_SimulationTracks::load
virtual bool load()
Definition: TrackCollHandle_SimulationTracks.cxx:214
TrackSystemController
Definition: TrackSystemController.h:49
TrackCollHandleBase::COLOUR_BYPID
@ COLOUR_BYPID
Definition: TrackCollHandleBase.h:138
TrackCollHandle_SimulationTracks::setupSettingsFromControllerSpecific
virtual void setupSettingsFromControllerSpecific(TrackSystemController *)
Definition: TrackCollHandle_SimulationTracks.cxx:111
TrackCollHandle_SimulationTracks::setCutExcludeBarcodeZero
void setCutExcludeBarcodeZero(bool)
Definition: TrackCollHandle_SimulationTracks.cxx:279
SimHitHandleBase
Definition: SimHitHandleBase.h:32
TrackCollHandle_SimulationTracks
Definition: TrackCollHandle_SimulationTracks.h:25
TrackCollHandle_SimulationTracks::fixPDGCode
void fixPDGCode(SimHitHandleBase *) const
Definition: TrackCollHandle_SimulationTracks.cxx:244
TrackCollHandle_SimulationTracks::availableCollections
static QStringList availableCollections(IVP1System *)
Definition: TrackCollHandle_SimulationTracks.cxx:80
TrackHandleBase
Definition: TrackHandleBase.h:56
TrackCollHandle_SimulationTracks::~TrackCollHandle_SimulationTracks
virtual ~TrackCollHandle_SimulationTracks()
Definition: TrackCollHandle_SimulationTracks.cxx:105
TrackCollHandleBase::COLOURBY
COLOURBY
Definition: TrackCollHandleBase.h:138