forked from alisw/AliRoot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
morsch
committed
Nov 22, 2013
1 parent
488a166
commit 9ceeeaf
Showing
10,714 changed files
with
3,820,151 additions
and
0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
echo "Setting AliROOT to $1" | ||
export ALICE=$1 | ||
shift 1 | ||
|
||
export ALICE_LEVEL=v4-03-03 | ||
export ALICE_ROOT=$ALICE/$ALICE_LEVEL | ||
TARGET=`uname` | ||
export ALICE_TARGET=`perl -e "print lc($TARGET)"` | ||
|
||
export PATH=$ALICE_ROOT/bin/tgt_$ALICE_TARGET:/bin:/usr/bin:$HOME/bin:$ALIEN_ROOT/alice/local/bin:/usr/local/bin:$PATH | ||
export LD_LIBRARY_PATH=$ALICE_ROOT/lib/tgt_$ALICE_TARGET/:$LD_LIBRARY_PATH | ||
|
||
$* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
//_____________________________________________________// | ||
// // | ||
// This macro reads ACORDE DDL Raw Data and // | ||
// converts it into Digits // | ||
// // | ||
//____________________________________________________ // | ||
|
||
|
||
void ACORDERaw2Digits(Int_t nEvents = 1, char* fileName = "alien:///alice/data/2008/LHC08a_ACORDE/000016788/raw/08000016788014.20.root") | ||
{ | ||
// Reads DDL data from fileName | ||
|
||
TStopwatch timer; | ||
timer.Start(); | ||
|
||
TGrid::Connect("alien://"); | ||
|
||
AliRawReader* rawReader = 0x0; | ||
// rawReader = new AliRawReaderFile(fileName); // DDL files | ||
rawReader = new AliRawReaderRoot(fileName); // DDL files | ||
|
||
AliACORDERawStream* rawStream = new AliACORDERawStream(rawReader); | ||
|
||
for (Int_t i=0; i<nEvents; i++) { | ||
printf("=========== EVENT %d ===========\n",i); | ||
if (!rawReader->NextEvent()) | ||
break; | ||
|
||
rawStream->Reset(); | ||
if (!rawStream->Next()) | ||
break; | ||
printf("Data size is %d\n",rawStream->DataSize()); | ||
for (Int_t j=0; j<4; j++) | ||
printf(" %x",rawStream->GetWord(j)); | ||
printf("\n"); | ||
} | ||
|
||
delete rawReader; | ||
delete rawStream; | ||
|
||
timer.Stop(); | ||
timer.Print(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
//_____________________________________________________// | ||
// // | ||
// This macro reads ACORDE DDL Raw Data and // | ||
// converts it into Digits // | ||
// // | ||
//____________________________________________________ // | ||
|
||
|
||
void ACORDERaw2Digits(Int_t nEvents = 1, char* fileName = "rawdata.root") | ||
{ | ||
// Reads DDL data from fileName | ||
|
||
TStopwatch timer; | ||
timer.Start(); | ||
|
||
// Creates a TreeD to dump Digits | ||
|
||
AliRunLoader* rl = AliRunLoader::Open("galice.root"); | ||
|
||
AliACORDELoader* loader = (AliACORDELoader*) rl->GetLoader("ACORDELoader"); | ||
|
||
if(!loader) { | ||
AliError("no ACORDE loader found"); | ||
return kFALSE; } | ||
|
||
TTree* treeD = loader->TreeD(); | ||
if(!treeD) { | ||
loader->MakeTree("D"); | ||
treeD = loader->TreeD(); } | ||
|
||
AliACORDEdigit digit; | ||
AliACORDEdigit* pdigit = &digit; | ||
const Int_t kBufferSize = 4000; | ||
|
||
treeD->Branch("ACORDE", "AliACORDEdigit", &pdigit, kBufferSize); | ||
|
||
AliRawReader* rawReader = 0x0; | ||
// rawReader = new AliRawReaderFile(fileName); // DDL files | ||
rawReader = new AliRawReaderRoot(fileName); // DDL files | ||
|
||
AliACORDERawStream* rawStream = new AliACORDERawStream(rawReader); | ||
|
||
for (Int_t i=0; i<nEvents; i++) { | ||
printf("=========== EVENT %d ===========\n",i); | ||
if (!rawReader->NextEvent()) | ||
break; | ||
|
||
rawStream->Reset(); | ||
if (!rawStream->Next()) | ||
break; | ||
printf("Data size is %d\n",rawStream->DataSize()); | ||
/* | ||
for(Int_t i=0; i<64; i++) { | ||
new(pdigit) AliACORDEdigit(i, (Int_t)rawStream->GetADC(i), (Int_t)rawStream->GetTime(i)); | ||
treeD->Fill(); | ||
} | ||
*/ | ||
// Checks if everything is OK by printing results | ||
|
||
// for(int i=0;i<64;i++) { | ||
// printf("Channel %d : %d %d \n",i,rawStream->GetADC(i),rawStream->GetTime(i)); } | ||
// treeD->Print(); printf(" \n"); | ||
} | ||
|
||
loader->WriteDigits("OVERWRITE"); | ||
loader->UnloadDigits(); | ||
|
||
delete rawReader; | ||
delete rawStream; | ||
|
||
timer.Stop(); | ||
timer.Print(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#ifdef __CINT__ | ||
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | ||
* See cxx source for full Copyright notice */ | ||
|
||
#pragma link off all globals; | ||
#pragma link off all classes; | ||
#pragma link off all functions; | ||
|
||
#pragma link C++ enum ECRMode; | ||
|
||
#pragma link C++ class AliACORDEConstants+; | ||
#pragma link C++ class AliACORDELoader+; | ||
#pragma link C++ class AliGenACORDE+; | ||
#pragma link C++ class AliACORDECalibData+; | ||
#pragma link C++ class AliACORDEPreprocessor+; | ||
#pragma link C++ class AliACORDEDataDCS+; | ||
#pragma link C++ class AliACORDEdigit+; | ||
#pragma link C++ class AliACORDERawStream+; | ||
#pragma link C++ class AliACORDERawReader+; | ||
#pragma link C++ class AliACORDEQAChecker+; | ||
#pragma link C++ class AliACORDEAlign+; | ||
#endif |
Oops, something went wrong.