FairRoot/PandaRoot
RhoGoodPhotonSelector.h
Go to the documentation of this file.
1 #ifndef RHOGOODPHOTONSELECTOR_H
2 #define RHOGOODPHOTONSELECTOR_H
3 // //
5 // RhoGoodPhotonSelector //
6 // //
7 // Selector classes for photon quality selections //
8 // //
9 // Author List: //
10 // Marcel Kunze, RUB, Feb. 99 //
11 // Copyright (C) 1999-2001, Ruhr-University Bochum. //
12 // Ralf Kliemt, HIM/GSI Feb.2013 (Cleanup & Restructuring) //
13 // //
15 
17 #include "PndPidCandidate.h"
18 
20 {
21 
22  public:
23  // Default constructor installs the currently accepted general setting
24  RhoGoodPhotonSelector ( const char* name="RhoGoodPhotonSelector", Double_t e=0.1, Int_t nCrys=0, Double_t lat=1.0, Bool_t qc=kFALSE );
25 
26  //Destructor
28 
29  //operations
30  virtual void SetCriterion ( const char* crit );
31  virtual Bool_t Accept ( RhoCandidate* b );
32  virtual Bool_t Accept ( PndPidCandidate* b );
33  virtual void PrintOn ( std::ostream& o=std::cout ) const;
34  void SetCrystals ( Int_t min, Int_t max ) {
35  fNcMin = min;
36  fNcMax = max;
37  }
38 // void SetLAT ( Double_t min, Double_t max ) {
39 // fLatMin = min;
40 // fLatMax = max;
41 // }
42 // void SetPhi ( Double_t min, Double_t max ) {
43 // fPhiMin = min;
44 // fPhiMax = max;
45 // }
47  fThetaMin = min;
48  fThetaMax = max;
49  }
51  fEmcMin = min;
52  fEmcMax = max;
53  }
54 
55  private:
56  Int_t fNcMin, fNcMax; // Number of crystals
57  //Double_t fLatMin, fLatMax; // Cut // Angular cuts at poca on LAT
58  //Double_t fPhiMin, fPhiMax; // Angular cuts at poca
59  Double_t fThetaMin, fThetaMax; // Angular cuts at poca
60  Double_t fEmcMin, fEmcMax; // In addition: associated bump energy
61 
62  public:
63  ClassDef ( RhoGoodPhotonSelector,1 ) // Track selector
64 };
65 
66 // standalone print
68 
69 #endif
virtual void PrintOn(std::ostream &o=std::cout) const
TTree * b
friend F32vec4 max(const F32vec4 &a, const F32vec4 &b)
Definition: P4_F32vec4.h:26
virtual void SetCriterion(const char *crit)
void SetTheta(Double_t min, Double_t max)
RhoGoodPhotonSelector(const char *name="RhoGoodPhotonSelector", Double_t e=0.1, Int_t nCrys=0, Double_t lat=1.0, Bool_t qc=kFALSE)
Double_t
friend F32vec4 min(const F32vec4 &a, const F32vec4 &b)
Definition: P4_F32vec4.h:25
void SetShowerEnergy(Double_t min, Double_t max=1.E8)
TString name
virtual Bool_t Accept(RhoCandidate *b)
std::ostream & operator<<(std::ostream &o, const RhoGoodPhotonSelector &)
void SetCrystals(Int_t min, Int_t max)