Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

ANtpEventManipulator.h

Go to the documentation of this file.
00001 
00002 // $Id: ANtpEventManipulator.h,v 1.2 2007/03/15 19:54:42 niki Exp $
00003 //
00004 // A class to easily get at the SR ntuple information
00005 //
00006 // B. Rebel 5/2005
00008 #ifndef ANTPEVENTMANIPULATOR_H
00009 #define ANTPEVENTMANIPULATOR_H
00010 
00011 #include "TClonesArray.h"
00012 
00013 #include "CandNtupleSR/NtpSREvent.h"
00014 #include "CandNtupleSR/NtpSRStrip.h"
00015 #include "CandNtupleSR/NtpSRTrack.h"
00016 #include "CandNtupleSR/NtpSRShower.h"
00017 
00018 class ANtpEventManipulator
00019 {
00020 
00021  public:
00022   ANtpEventManipulator();
00023   virtual ~ANtpEventManipulator();
00024   
00025   NtpSREvent  *GetEvent();  //get the event set by SetEventInSnarl
00026   NtpSRTrack  *GetTrack(Int_t index); //get the track of index in the set event
00027   NtpSRShower *GetShower(Int_t index); //get the shower of index in the set event
00028   NtpSRTrack  *GetPrimaryTrack(); //get the primary track of the set event
00029   NtpSRShower *GetPrimaryShower(); //get the primary shower of the set event
00030   NtpSRStrip  *GetStrip(Int_t index); //get the strip of index in the set event 
00031   NtpSRTrack  *GetPrimaryTrackNS();  //get the primary track of the event
00032   
00033   void SetPrimaryTrackCriteria(Int_t useNPlanes, Int_t useLength, Int_t usePH);
00034   void SetPrimaryShowerCriteria(Int_t useNPlanes, Int_t usePH);
00035   void SetEventInSnarl(Int_t eventIndex); //set the in the snarl to use
00036   void Initialize(TClonesArray *eventArray, TClonesArray *trackArray, 
00037                   TClonesArray *showerArray, TClonesArray *stripArray); //reset the object for a new snarl
00038 
00039  private:
00040 
00041   NtpSREvent *fNtpSREvent;
00042 
00043   TClonesArray *fEventArray;
00044   TClonesArray *fTrackArray;
00045   TClonesArray *fShowerArray;
00046   TClonesArray *fStripArray;
00047 
00048   Int_t fUseLengthTrack;  //the fUseXXX variables are set to 1 if 
00049   Int_t fUsePHShower;     //they should be used to determine primaryness
00050   Int_t fUseNPlanesShower;//or 0 if they should not
00051   Int_t fUsePHTrack;
00052   Int_t fUseNPlanesTrack;
00053 
00054   ClassDef(ANtpEventManipulator, 2) //ANtpEventManipulator
00055 };
00056 
00057 #endif // ANTPEVENTMANIPULATOR_H
00058 
00059 

Generated on Mon Feb 15 11:06:22 2010 for loon by  doxygen 1.3.9.1