Page MenuHomeHEPForge

FROG_Events.h
No OneTemporary

FROG_Events.h

// FROG_Events.h: interface for the FROG_Events class.
//
//////////////////////////////////////////////////////////////////////
#ifndef _FROG_EVENTS_H__
#define _FROG_EVENTS_H__
#include <algorithm>
#include <iostream>
#include <vector>
#include <map>
#include "FROG_Chunk.h"
#include "FROG_Struct.h"
#include "FROG_Element_Tools.h"
#include "FROG_Geometry.h"
#include "FROG_Element_Base_With_DetId.h"
#include "FROG_Element_Event.h"
#include "FROG_Objects_Extended.h"
class FROG_Events
{
public:
FROG_Events() : prim(NULL),Current_Event(0) {}
FROG_Events(FROG_Element_Base* elt): prim(elt) {}
~FROG_Events(void){}
void Load (const char* path);
void Save (const char* path);
FROG_Element_Event* GoToEvent(unsigned int i);
FROG_Element_Event* NextEvent();
FROG_Element_Event* PreviousEvent();
FROG_Element_Event* getCurrentEvent() const {
if( Current_Event<prim->getDaughterSize() )
return dynamic_cast<FROG_Element_Event*>(prim->getDaughter(Current_Event));
return NULL;
}
int NumberOfEvents() const { return prim->getDaughterSize(); }
void Init(FROG_Geometry* Geom, FROG_ReadCards* Card);
void readEventToDisplay(FROG_ReadCards* Card);
void updateEventToDisplay(unsigned int EvtIdToFlip=0);
FROG_Element_Base* prim;
unsigned int Current_Event;
FROG_Objects_Extended* frogObjects_;
std::vector<unsigned int> EventToDisplay;
private :
};
#endif

File Metadata

Mime Type
text/x-c++
Expires
Wed, May 14, 11:51 AM (2 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5111540
Default Alt Text
FROG_Events.h (1 KB)

Event Timeline