FairRoot/PandaRoot
PndEmc2DLocMaxFinder.h
Go to the documentation of this file.
1 //--------------------------------------------------------------------------
2 // Description:
3 // Class EmcERatioLocMaxMaxFinder./
4 // Searches for local maxima in a cluster based on the ratio
5 // between the energy of the maxima crystal and that of
6 // its neighbours
7 //
8 // Environment:
9 // Software developed for the BaBar Detector at the SLAC B-Factory.
10 //
11 // Adapted for the PANDA experiment at GSI
12 //
13 // Author List:
14 // Phil Strother
15 // Helmut Schmuecker Ruhr-Uni Bochum
16 //
17 // Copyright Information:
18 // Copyright (C) 1997 Imperial College
19 // Modified:
20 // M. Babai
21 //------------------------------------------------------------------------
22 //#pragma once
23 #ifndef PNDEMC2DLOCALMAXFINDER_H
24 #define PNDEMC2DLOCALMAXFINDER_H
25 
26 #include <PndPersistencyTask.h>
27 #include "TObject.h"
28 #include "PndEmcDataTypes.h"
29 
30 class PndEmcDigi;
31 class PndEmcCluster;
33 class PndEmcGeoPar;
34 class PndEmcDigiPar;
35 class PndEmcRecoPar;
36 
42 {
43 public:
44  // Constructors
46  // Destructor
47  virtual ~PndEmc2DLocMaxFinder();
48 
49  virtual InitStatus Init();
50  virtual void Exec(Option_t* opt);
51 
53 
54 protected:
56  virtual void SetParContainers();
60  virtual bool isALocalMax( const PndEmcDigi *const, const PndEmcCluster * const,
61  const PndEmcCoordIndexSet &amongstTheseNeighbours ) const;
62 
63 
64 private:
65  // Methods
67  std::map<Int_t, Int_t>) const;
68  // don't allow copying (-Weffc++)
69  PndEmc2DLocMaxFinder(const PndEmc2DLocMaxFinder&); // no implementation
70  PndEmc2DLocMaxFinder& operator= (const PndEmc2DLocMaxFinder&); // no implementation
71 
73  TClonesArray* fClusterArray;
75  TClonesArray* fDigiArray;
76 
80 
81  // Data members
88 
89  /* Verbosity level */
90  // Int_t fVerbose; //do not shadow PndPersistencyTask::fVerbose
91 
93 };
94 #endif // PNDEMC2DLOCALMAXFINDER_HH
PndEmcGeoPar * fGeoPar
Geometry parameter container.
void SetStorageOfData(Bool_t p=kTRUE)
virtual InitStatus Init()
Init Task.
represents the reconstructed hit of one emc crystal
Definition: PndEmcDigi.h:40
#define verbose
void getNeighbourDigis(PndEmcCoordIndexSet &, PndEmcCoordIndexSet &, int, std::map< Int_t, Int_t >) const
Get the TCIs of neighbor digis.
void SetPersistency(Bool_t val=kTRUE)
PndEmc2DLocMaxFinder & operator=(const PndEmc2DLocMaxFinder &)
stores crystal index coordinates (x,y) or (theta,phi)
ClassDef(PndEmc2DLocMaxFinder, 2)
Double_t p
Definition: anasim.C:58
PndEmcDigiPar * fDigiPar
Digitisation parameter container.
virtual void Exec(Option_t *opt)
Runs the task.
std::set< PndEmcTwoCoordIndex * > PndEmcCoordIndexSet
Double_t
parameter set of Emc digitisation
Definition: PndEmcDigiPar.h:12
PndEmc2DLocMaxFinder(Int_t verbose=0)
a cluster (group of neighboring crystals) of hit emc crystals
Definition: PndEmcCluster.h:29
PndEmcRecoPar * fRecoPar
Reconstruction parameter container.
TClonesArray * fClusterArray
Searches for local maxima in a cluster.
virtual bool isALocalMax(const PndEmcDigi *const, const PndEmcCluster *const, const PndEmcCoordIndexSet &amongstTheseNeighbours) const
Check if digi is a local maximum in its cluster.
Parameter set for Emc Reco.
Definition: PndEmcRecoPar.h:12