1 /**************************************************************************
2 * Author: Panos Christakoglou. *
3 * Contributors are mentioned in the code where appropriate. *
5 * Permission to use, copy, modify and distribute this software and its *
6 * documentation strictly for non-commercial purposes is hereby granted *
7 * without fee, provided that the above copyright notice appears in all *
8 * copies and that both the copyright notice and this permission notice *
9 * appear in the supporting documentation. The authors make no claims *
10 * about the suitability of this software for any purpose. It is *
11 * provided "as is" without express or implied warranty. *
12 **************************************************************************/
16 //-----------------------------------------------------------------
17 // AliLHCTagCuts class
18 // This is the class to deal with the LHC tag level cuts
19 // Origin: Panos Christakoglou, UOA-CERN, Panos.Christakoglou@cern.ch
20 //-----------------------------------------------------------------
24 #include "AliLHCTag.h"
25 #include "AliLHCTagCuts.h"
27 ClassImp(AliLHCTagCuts)
30 //___________________________________________________________________________
31 AliLHCTagCuts::AliLHCTagCuts() :
34 fLHCStateFlag(kFALSE),
37 fLHCLuminosityFlag(kFALSE)
39 //Default constructor which calls the Reset method.
43 //___________________________________________________________________________
44 AliLHCTagCuts::~AliLHCTagCuts() {
48 //___________________________________________________________________________
49 void AliLHCTagCuts::Reset() {
50 //Sets dummy values to every private member.
52 fLHCStateFlag = kFALSE;
53 fLHCLuminosityMin = -1.0;
54 fLHCLuminosityMax = 0.0;
55 fLHCLuminosityFlag = kFALSE;
58 //___________________________________________________________________________
59 Bool_t AliLHCTagCuts::IsAccepted(AliLHCTag *lhcTag) const {
60 //Returns true if the event is accepted otherwise false.
62 if((lhcTag->GetLHCState() != fLHCState))
64 if(fLHCLuminosityFlag)
65 if((lhcTag->GetLuminosity() < fLHCLuminosityMin)||(lhcTag->GetLuminosity() > fLHCLuminosityMax))