1 /**************************************************************************
2 * Copyright(c) 1998-2014, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
16 * Basic event selection component: Selects events according to the pA cut and a vertex-z cut
17 * For more sophisticated event selection the method IsEventSelected has to be overwritten
19 * Author: Markus Fasel
21 #include "AliEMCalTriggerEventSelection.h"
22 #include "AliEMCalTriggerEventData.h"
24 #include "AliAnalysisUtils.h"
25 #include "AliVEvent.h"
27 ClassImp(EMCalTriggerPtAnalysis::AliEMCalTriggerEventSelection)
29 namespace EMCalTriggerPtAnalysis {
31 //______________________________________________________________________________
32 AliEMCalTriggerEventSelection::AliEMCalTriggerEventSelection():
42 //______________________________________________________________________________
43 bool AliEMCalTriggerEventSelection::IsEventSelected(const AliEMCalTriggerEventData* const ev) const {
45 * Apply basic event selection
47 * Can be overwritten by inheriting classes
49 * @param ev: Combined event container
50 * @return: event selection decision (true if event is selected)
52 AliAnalysisUtils evutils;
53 AliVEvent *recEvent = ev->GetRecEvent();
54 if(!evutils.IsVertexSelected2013pA(recEvent)) return kFALSE;
55 if(!fVertexCut.IsInRange(recEvent->GetPrimaryVertex()->GetZ())) return kFALSE;
59 } /* namespace EMCalTriggerPtAnalysis */