Commit 756eb644 authored by Pavel Sharov's avatar Pavel Sharov

* update crate config.

parent ec74e750
# Go4 library for ACCULINNA2 experiments
## 24e01
### Naming conventions
- prefix T[number]x is for telescope
- By default channel 1--16 for X-strips 16--32 for Y.
/* -*- mode:c++ c-file-style:"linux" -*- */
//=================================================================== //===================================================================
//== TNeEvent.cxx: //== TNeEvent.cxx:
//== Version: //== Version:
//=================================================================== //===================================================================
using namespace std; using namespace std;
#include "TNeEvent.h" #include "TNeEvent.h"
#include "Riostream.h" #include "Riostream.h"
#include <algorithm>
TNeEvent::TNeEvent() TNeEvent::TNeEvent()
:TGo4EventElement() :TGo4EventElement()
{ {
cout << "**** TNeEvent: Create instance" << endl; cout << "**** TNeEvent: Create instance" << endl;
} //------------------------------------------------------------------- } //-------------------------------------------------------------------
TNeEvent::TNeEvent(const char* name) TNeEvent::TNeEvent(const char* name)
:TGo4EventElement(name) :TGo4EventElement(name)
{ {
cout << "**** TNeEvent: Create instance " << name << endl; cout << "**** TNeEvent: Create instance " << name << endl;
...@@ -26,45 +29,51 @@ TNeEvent::~TNeEvent() ...@@ -26,45 +29,51 @@ TNeEvent::~TNeEvent()
void TNeEvent::Clear(Option_t *t) void TNeEvent::Clear(Option_t *t)
{ {
//================================================================== //==================================================================
//== all members should be cleared. //== all members should be cleared.
//== memset(fRawData,0, sizeof(fRawData)); //== memset(fRawData,0, sizeof(fRawData));
//================================================================== //==================================================================
// Si // Si
memset(Lxa, 0, sizeof(Lxa)); memset(Lxa, 0, sizeof(Lxa));
memset(Lxt, 0, sizeof(Lxt)); memset(Lxt, 0, sizeof(Lxt));
memset(Lya, 0, sizeof(Lya)); memset(Lya, 0, sizeof(Lya));
memset(Lyt, 0, sizeof(Lyt)); memset(Lyt, 0, sizeof(Lyt));
memset(Rxa, 0, sizeof(Rxa)); memset(Rxa, 0, sizeof(Rxa));
memset(Rxt, 0, sizeof(Rxt)); memset(Rxt, 0, sizeof(Rxt));
memset(Rya, 0, sizeof(Rya)); memset(Rya, 0, sizeof(Rya));
memset(Ryt, 0, sizeof(Ryt)); memset(Ryt, 0, sizeof(Ryt));
memset(RVa, 0, sizeof(RVa)); memset(RVa, 0, sizeof(RVa));
memset(RVt, 0, sizeof(RVt)); memset(RVt, 0, sizeof(RVt));
memset(R60a, 0, sizeof(R60a)); memset(R20a, 0, sizeof(R20a));
memset(R60t, 0, sizeof(R60t)); memset(R20t, 0, sizeof(R20t));
memset(AnSa, 0, sizeof(AnSa)); memset(AnSa, 0, sizeof(AnSa));
memset(AnSt, 0, sizeof(AnSt)); memset(AnSt, 0, sizeof(AnSt));
memset(AnRa, 0, sizeof(AnRa)); memset(AnRa, 0, sizeof(AnRa));
memset(AnRt, 0, sizeof(AnRt)); memset(AnRt, 0, sizeof(AnRt));
memset(AnVa, 0, sizeof(AnVa)); memset(AnVa, 0, sizeof(AnVa));
memset(AnVt, 0, sizeof(AnVt)); memset(AnVt, 0, sizeof(AnVt));
std::fill_n(Rcsa,16,0);
std::fill_n(Rcst,16,0);
std::fill_n(Lcsa,16,0);
std::fill_n(Lcst,16,0);
// ToF // ToF
memset(F3, 0, sizeof(F3)); memset(F3, 0, sizeof(F3));
memset(tF3, 0, sizeof(tF3)); memset(tF3, 0, sizeof(tF3));
memset(F5, 0, sizeof(F5)); memset(F5, 0, sizeof(F5));
memset(tF5, 0, sizeof(tF5)); memset(tF5, 0, sizeof(tF5));
// MWPC // MWPC
memset(tMWPC, 0, sizeof(tMWPC)); memset(tMWPC, 0, sizeof(tMWPC));
nevent = 0; nevent = 0;
trigger = 0; trigger = 0;
subevents = 0; subevents = 0;
evsize = 0; evsize = 0;
mtime = 0; mtime = 0;
} //------------------------------------------------------------------- } //-------------------------------------------------------------------
/* -*- mode:c++ c-file-style:"linux" -*- */
//=================================================================== //===================================================================
//== TNeEvent.h: //== TNeEvent.h:
//== Version: //== Version:
...@@ -29,14 +30,18 @@ public: ...@@ -29,14 +30,18 @@ public:
unsigned short Ryt[16]; unsigned short Ryt[16];
unsigned short RVa[16]; unsigned short RVa[16];
unsigned short RVt[16]; unsigned short RVt[16];
unsigned short R60a[16]; unsigned short R20a[16];
unsigned short R60t[16]; unsigned short R20t[16];
unsigned short AnSa[16]; unsigned short AnSa[16];
unsigned short AnSt[16]; unsigned short AnSt[16];
unsigned short AnRa[16]; unsigned short AnRa[16];
unsigned short AnRt[16]; unsigned short AnRt[16];
unsigned short AnVa[16]; unsigned short AnVa[16];
unsigned short AnVt[16]; unsigned short AnVt[16];
unsigned short Rcsa[16];
unsigned short Rcst[16];
unsigned short Lcsa[16];
unsigned short Lcst[16];
unsigned short F3[4]; unsigned short F3[4];
unsigned short tF3[4]; unsigned short tF3[4];
......
This diff is collapsed.
...@@ -8,17 +8,17 @@ ...@@ -8,17 +8,17 @@
//-----class TNeParam-----; //-----class TNeParam-----;
extern int otl; extern int otl;
class TNeProc : public TGo4EventProcessor class TNeProc : public TGo4EventProcessor
{ {
public: public:
TNeProc() ; TNeProc() ;
TNeProc(const char* name); TNeProc(const char* name);
virtual ~TNeProc() ; virtual ~TNeProc() ;
//! event processing function
Bool_t BuildEvent(TGo4EventElement* target); // event processing function Bool_t BuildEvent(TGo4EventElement* target);
double GetClasters(unsigned short n, unsigned short *x); double GetClasters(unsigned short n, unsigned short *x);
static long bit[32]; static long bit[32];
private: private:
TH1 *fTrigger; TH1 *fTrigger;
TH1 *fSubEvents; TH1 *fSubEvents;
...@@ -47,6 +47,20 @@ private: ...@@ -47,6 +47,20 @@ private:
TH1 *d1AnVa[16]; TH1 *d1AnVa[16];
TH1 *d1AnVt[16]; TH1 *d1AnVt[16];
TH1 *d1AnVc[16]; TH1 *d1AnVc[16];
TH1 *d1R20a[16];
TH1 *d1R20t[16];
TH1 *d1R20c[16];
TH1 *d1Rcsa[16];
TH1 *d1Rcst[16];
TH1 *d1Rcsc[16];
TH1 *d1Lcsa[16];
TH1 *d1Lcst[16];
TH1 *d1Lcsc[16];
//-----clb----- //-----clb-----
TH1 *d1sq1_x_c[16]; TH1 *d1sq1_x_c[16];
//-----ToF+MWPC----- //-----ToF+MWPC-----
...@@ -64,7 +78,7 @@ private: ...@@ -64,7 +78,7 @@ private:
TH2 *d2ToFaF5; TH2 *d2ToFaF5;
//-----CALIBRATED----- //-----CALIBRATED-----
//-----neutrons----- //-----neutrons-----
//-----WIRES----- //-----WIRES-----
TH1 *d1X1; TH1 *d1X1;
TH1 *d1Y1; TH1 *d1Y1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment