PandaRoot
PndTrackingEventInfo.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 #ifndef PNDTRACKINGEVENTINFO_H_
14 #define PNDTRACKINGEVENTINFO_H_
15 
16 #include "FairMultiLinkedData.h"
17 #include "FairRootManager.h"
18 #include <vector>
19 #include "FairLink.h"
20 #include "PndTrack.h"
21 #include "PndTrackCand.h"
22 #include <TClonesArray.h>
23 #include <map>
24 
25 class PndTrackingEventInfo : public TObject {
26 
27  public:
28  PndTrackingEventInfo(PndTrack *, FairLink);
29 
31 
32  void CalcEventPurity(PndTrack *, FairLink);
33 
34  double GetEventPurity() { return fEventPurity; }
35 
36  std::map<int, int> GetNumTimesHitUsed(PndTrack *);
37 
38  protected:
39  double fEventPurity;
40  std::map<int, int> fMapHitIdTimesUsed;
41 
43 };
44 
45 #endif
ClassDef(PndTrackingEventInfo, 2)
void CalcEventPurity(PndTrack *, FairLink)
std::map< int, int > fMapHitIdTimesUsed
std::map< int, int > GetNumTimesHitUsed(PndTrack *)
PndTrackingEventInfo(PndTrack *, FairLink)