]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG2/FEMTOSCOPY/AliFemto/AliFemtoCutMonitorHandler.h
Making the directory structure of AliFemto flat. All files go into one common directory
[u/mrichter/AliRoot.git] / PWG2 / FEMTOSCOPY / AliFemto / AliFemtoCutMonitorHandler.h
CommitLineData
d0e92d9a 1///////////////////////////////////////////////////////////////////////////
2// //
3// AliFemtoCutMonitorHandler: a handler for cut monitors //
4// //
5///////////////////////////////////////////////////////////////////////////
67427ff7 6#ifndef AliFemtoCutMonitorHandler_hh
7#define AliFemtoCutMonitorHandler_hh
8
9
d0e92d9a 10#include "AliFemtoTypes.h"
11#include "AliFemtoEvent.h"
12#include "AliFemtoTrack.h"
13#include "AliFemtoV0.h"
14#include "AliFemtoKink.h"
15#include "AliFemtoPair.h" //Gael 12/04/02
16#include "AliFemtoParticleCollection.h" // Gael 19/06/02
17#include "AliFemtoCutMonitorCollection.h"
18#include "AliFemtoCutMonitor.h"
67427ff7 19
20class AliFemtoCutMonitorHandler{
21
22 public:
23
24 AliFemtoCutMonitorHandler();
0215f606 25 AliFemtoCutMonitorHandler(const AliFemtoCutMonitorHandler& aHan);
67427ff7 26 virtual ~AliFemtoCutMonitorHandler();
0215f606 27 AliFemtoCutMonitorHandler& operator=(const AliFemtoCutMonitorHandler& aHan);
28
67427ff7 29 AliFemtoCutMonitorCollection* PassMonitorColl();
30 AliFemtoCutMonitorCollection* FailMonitorColl();
31 AliFemtoCutMonitor* PassMonitor(int n);
32 AliFemtoCutMonitor* FailMonitor(int n);
33 void AddCutMonitor(AliFemtoCutMonitor* cutMoni1, AliFemtoCutMonitor* cutMoni2);
34 void AddCutMonitor(AliFemtoCutMonitor* cutMoni);
35 void AddCutMonitorPass(AliFemtoCutMonitor* cutMoni);
36 void AddCutMonitorFail(AliFemtoCutMonitor* cutMoni);
37 void FillCutMonitor(const AliFemtoEvent* event, bool pass);
38 void FillCutMonitor(const AliFemtoTrack* track, bool pass);
39 void FillCutMonitor(const AliFemtoV0* v0, bool pass);
40 void FillCutMonitor(const AliFemtoKink* kink, bool pass);
41 void FillCutMonitor(const AliFemtoPair* pair, bool pass);//Gael 11/04/02
42 void FillCutMonitor(const AliFemtoParticleCollection* partColl);// Gael 19/06/02
43 void FillCutMonitor(const AliFemtoEvent* event, const AliFemtoParticleCollection* partColl);// Gael 19/06/02
44 void Finish();
45
46 private:
d0e92d9a 47 bool fCollectionsEmpty; // Are the collections empty?
48 AliFemtoCutMonitorCollection* fPassColl; // Collection of cut monitors for passed entities
49 AliFemtoCutMonitorCollection* fFailColl; // Collection of cut monitors for failed entities
67427ff7 50#ifdef __ROOT__
51 ClassDef(AliFemtoCutMonitorHandler, 0)
52#endif
53
54};
55
56inline AliFemtoCutMonitorCollection* AliFemtoCutMonitorHandler::PassMonitorColl() { return fPassColl;}
57inline AliFemtoCutMonitorCollection* AliFemtoCutMonitorHandler::FailMonitorColl() { return fFailColl;}
58
59#endif