* See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
* full copyright notice. *
**************************************************************************/
+
//
// Sources:
//
* See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
* full copyright notice. *
**************************************************************************/
+
#include "AliEveMUONTrack.h"
#include <EveBase/AliEveEventManager.h>
* See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
* full copyright notice. *
**************************************************************************/
+
//////////////////////////////////////////////////////////////////////////
// //
// The main AliEVE drawing module for the T0 detector //
AddFrame(f);
}
- fEvent = new TEveGValuator(this, "AliEveEventManager:", 110, 0);
+ fEvent = new TEveGValuator(this, "Event:", 110, 0);
fEvent->SetShowSlider(kFALSE);
fEvent->SetLabelWidth(labelW);
fEvent->SetNELength(6);
fEvent->SetToolTip("Current event number");
fEvent->Connect("ValueSet(Double_t)",
"AliEveTPCLoaderEditor", this, "DoEvent()");
- // Reuse AliEveEventManager for DoubleSR button
+ // Reuse Event for DoubleSR button
fDoubleSR = new TGCheckButton(fEvent, "Double SR");
fDoubleSR->SetToolTipText("Double sampling rate");
fEvent->AddFrame(fDoubleSR, new TGLayoutHints(kLHintsLeft, 12, 0, 2, 0));
TTree *t = 0x0;
TFile *f = new TFile(Form("%s/%s", fDir.Data(), fFilename.Data()));
- if(! f->cd(Form("AliEveEventManager%d", ev))){
+ if(! f->cd(Form("Event%d", ev))){
AliError(Form("Couldn't find event %d in file \"%s/%s\".", ev, fDir.Data(), fFilename.Data()));
f->Close(); delete f;
return kFALSE;
AddFrame(f);
- fEvent = new TEveGValuator(this, "AliEveEventManager:", 110, 0);
+ fEvent = new TEveGValuator(this, "Event:", 110, 0);
fEvent->SetShowSlider(kFALSE);
fEvent->SetLabelWidth(labelW);
fEvent->SetNELength(6);
/*
* ---------------------------------------------------------------------------------
- * AliEveEventManager Handling
+ * Event Handling
* ---------------------------------------------------------------------------------
*/
fEventID = (ULong64_t) fReader->GetEventID();
fCurrentBlk = 0;
- AliInfo( Form("AliEveEventManager 0x%016LX (%Lu) with %lu blocks", fEventID, fEventID, fNBlks) );
+ AliInfo( Form("Event 0x%016LX (%Lu) with %lu blocks", fEventID, fEventID, fNBlks) );
#if 1
/*
* ---------------------------------------------------------------------------------
- * AliEveEventManager Handling - public
+ * Event Handling - public
* ---------------------------------------------------------------------------------
*/
- /** Loads the next AliEveEventManager, after being connected
+ /** Loads the next Event, after being connected
* @return 0 on sucess, "HOMER" errors on error
*/
Int_t NextEvent();
* See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
* full copyright notice. *
**************************************************************************/
+
#include <iomanip.h>
void MUON_trigger_info(Int_t label) {
TEveProjectionManager* NLT_test(TEveElement* top=0)
{
- TEveScene* s = gEve->SpawnNewScene("Projected AliEveEventManager");
+ TEveScene* s = gEve->SpawnNewScene("Projected Event");
gEve->GetDefViewer()->AddScene(s);
TGLViewer* v = (TGLViewer *)gEve->GetGLViewer();
**************************************************************************/
TEvePointSet*
-acorde_hits(const char *varexp = "ACORDE.fX:ACORDE.fY:ACORDE.fZ",
- const char *selection = "",
- TEveElement* cont = 0)
+acorde_hits(const char *varexp = "ACORDE.fX:ACORDE.fY:ACORDE.fZ",
+ const char *selection = "",
+ TEveElement *cont = 0)
{
AliRunLoader* rl = AliEveEventManager::AssertRunLoader();
rl->LoadHits("ACORDE");
* See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
* full copyright notice. *
**************************************************************************/
+
void emcal_digits()
{
AliRunLoader* rl = AliEveEventManager::AssertRunLoader();
* full copyright notice. *
**************************************************************************/
-// #include "AliEveEventManager.h"
-// #include "TEveManager.h"
-// #include "AliEveCascade.h"
-
-// #include "AliESD.h"
-// #include "AliESDtrack.h"
-// #include "AliESDcascade.h"
-// #include "AliESDVertex.h"
-
AliEveCascade* esd_make_cas(TEveTrackPropagator* rnrStyle, AliESDVertex* primVtx,
AliESDcascade* cas, AliESDtrack* neg, AliESDtrack* pos,
AliESDtrack* bach,Int_t i) {
}
-
-
CascadeList* esd_AliEveCascade(Double_t min_pt=0.1, Double_t max_pt=100)
{
printf("THIS SCRIPT DOES NOT WORK.\n"
* See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
* full copyright notice. *
**************************************************************************/
+
void event_goto(Int_t event=0)
{
- if(gEvent == 0) {
- printf("AliEveEventManager not set!\n");
+ if (gEvent == 0) {
+ printf("AliEveEventManager is not initialized!\n");
return;
}
gEvent->GotoEvent(event);
* See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
* full copyright notice. *
**************************************************************************/
+
void event_next()
{
- if(gEvent == 0) {
- printf("AliEveEventManager not set!\n");
+ if (gEvent == 0) {
+ printf("AliEveEventManager is not initialized!\n");
return;
}
gEvent->NextEvent();
* See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
* full copyright notice. *
**************************************************************************/
+
void event_prev()
{
- if(gEvent == 0) {
- printf("AliEveEventManager not set!\n");
+ if (gEvent == 0) {
+ printf("AliEveEventManager is not initialized!\n");
return;
}
gEvent->PrevEvent();
* See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
* full copyright notice. *
**************************************************************************/
+
AliEveJetPlane* jetplane(Int_t iev)
{
TFile* f = new TFile("aod.root");
TClonesArray* jets = aod->GetJets();
Int_t njets = jets->GetEntries();
- printf("AliEveEventManager: %5d Number of jets: %5d \n", iev, njets);
+ printf("Event: %5d Number of jets: %5d \n", iev, njets);
for (Int_t ij = 0; ij < njets; ij++)
{
TClonesArray* tracks = aod->GetTracks();
Int_t ntracks = tracks->GetEntries();
- printf("AliEveEventManager: %5d Number of tracks: %5d \n", iev, ntracks);
+ printf("Event: %5d Number of tracks: %5d \n", iev, ntracks);
for (Int_t ij = 0; ij < ntracks; ij++)
{
* See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
* full copyright notice. *
**************************************************************************/
+
// Import tracks from kinematics-tree / particle-stack.
// Preliminary/minimal solution.
* See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
* full copyright notice. *
**************************************************************************/
-// ---------------------------------------------------------------------- //
+
void pmd_digits(Int_t mode = 0)
{
Bool_t drawBackPolygons = kFALSE;
* See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
* full copyright notice. *
**************************************************************************/
+
TEveTrackList* primary_vertex_tracks()
{
TEveUtil::LoadMacro("esd_tracks.C");
* See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
* full copyright notice. *
**************************************************************************/
+
void print_kine_from_label(Int_t label)
{
AliRunLoader* rl = AliEveEventManager::AssertRunLoader();
* full copyright notice. *
**************************************************************************/
-class AliEveEventManager;
-
void t0_digits()
{
AliRunLoader* rl = AliEveEventManager::AssertRunLoader();
* full copyright notice. *
**************************************************************************/
-class AliEveEventManager;
-
void t0_raw()
{
AliRunLoader* rl = AliEveEventManager::AssertRunLoader();
* See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
* full copyright notice. *
**************************************************************************/
+
void tof_digits()
{
TClonesArray *array = 0x0;
* See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
* full copyright notice. *
**************************************************************************/
+
void tof_digits_sector(Int_t sector=0)
{
Int_t nDigitsInVolume[3] = {-1, -1, -1};
* See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
* full copyright notice. *
**************************************************************************/
+
void tof_digits_strips()
{
TClonesArray *array = 0x0;
**************************************************************************/
TEvePointSet*
-tpc_hits(const char *varexp = "TPC2.fArray.fR:TPC2.fArray.fFi:TPC2.fArray.fZ",
- const char *selection = "TPC2.fArray.fR>80",
- TEveElement* cont = 0)
+tpc_hits(const char *varexp = "TPC2.fArray.fR:TPC2.fArray.fFi:TPC2.fArray.fZ",
+ const char *selection = "TPC2.fArray.fR>80",
+ TEveElement *cont = 0)
{
// Extracts 'major' TPC hits (not the compressed ones).
// This gives ~2.5% of all hits.
* See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
* full copyright notice. *
**************************************************************************/
-// fV0CHeight1 = 2.5; // height of cell 1
-// fV0CHeight2 = 4.4; // height of cell 2
-// fV0CHeight3 = 7.4; // height of cell 3
-// fV0CHeight4 = 12.5; // height of cell 4
-// fV0CRMin = 4.6; // inner radius of box
-
-// fV0AR0 = 4.2; // Radius of hole
-// fV0AR1 = 7.6; // Maximun radius of 1st cell
-// fV0AR2 = 13.8; // Maximun radius of 2nd cell
-// fV0AR3 = 22.7; // Maximun radius of 3rd cell
-// fV0AR4 = 41.3; // Maximun radius of 4th cell
+
+// fV0CHeight1 = 2.5; // height of cell 1
+// fV0CHeight2 = 4.4; // height of cell 2
+// fV0CHeight3 = 7.4; // height of cell 3
+// fV0CHeight4 = 12.5; // height of cell 4
+// fV0CRMin = 4.6; // inner radius of box
+//
+// fV0AR0 = 4.2; // Radius of hole
+// fV0AR1 = 7.6; // Maximun radius of 1st cell
+// fV0AR2 = 13.8; // Maximun radius of 2nd cell
+// fV0AR3 = 22.7; // Maximun radius of 3rd cell
+// fV0AR4 = 41.3; // Maximun radius of 4th cell
void vzero_digits()
{
#include <string>
#endif
+// !!!!! Need initialization that will also work for raw.
+// Path and event-id are usually not needed.
+// const Text_t* raw_file = 0,
+
void alieve_init(const Text_t* path = ".", Int_t event=0,
const Text_t* cdburi = 0,
Bool_t assert_runloader=kFALSE, Bool_t assert_esd=kFALSE)