Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 160116
b: "refs/tags/CMSSW_7_0_X_2014-01-03-1400"
c: 082b73a
h: "refs/heads/l1t-devel-CMSSW_7_4_0_pre5"
v: v3
  • Loading branch information
ktf committed Jan 1, 2014
1 parent fe56b91 commit 3295994
Show file tree
Hide file tree
Showing 47,660 changed files with 12,704,642 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
1 change: 1 addition & 0 deletions [refs]
Original file line number Diff line number Diff line change
Expand Up @@ -4195,3 +4195,4 @@ refs/heads/tau-updates: 7ff75914ac0650e50e8387e6befaae7003803095
"refs/tags/CMSSW_7_0_X_2014-01-02-0200": 082b73a87b4fa53784aea93e185f5fab25af7a25
"refs/tags/CMSSW_7_0_X_2014-01-02-1400": 082b73a87b4fa53784aea93e185f5fab25af7a25
"refs/tags/CMSSW_7_0_X_2014-01-03-0200": 082b73a87b4fa53784aea93e185f5fab25af7a25
"refs/tags/CMSSW_7_0_X_2014-01-03-1400": 082b73a87b4fa53784aea93e185f5fab25af7a25
2 changes: 2 additions & 0 deletions tags/CMSSW_7_0_X_2014-01-03-1400/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
__init__.py
*.pyc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<use name="Alignment/CocoaUtilities"/>
<use name="Alignment/CocoaModel"/>
<use name="CLHEP"/>
<use name="rootcore"/>
<use name="meschach"/>
<export>
<lib name="1"/>
</export>
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
// COCOA class header file
//Id: FittedEntriesManager.h
//CAT: Model
//
// Class to manage the sets of fitted entries (one set per each measurement data set)
//
// History: v1.0
// Pedro Arce

#ifndef _FittedEntriesManager_HH
#define _FittedEntriesManager_HH

#include "Alignment/CocoaUtilities/interface/CocoaGlobals.h"
#include "Alignment/CocoaAnalysis/interface/FittedEntriesSet.h"


class FittedEntriesManager
{

public:
//---------- Constructors / Destructor
FittedEntriesManager(){ };
~FittedEntriesManager(){ };
static FittedEntriesManager* getInstance();
void AddFittedEntriesSet( FittedEntriesSet* fents);
void MakeHistos();

public:
std::vector< FittedEntriesSet* > getFittedEntriesSets() const {
return theFittedEntriesSets; }

private:
ALIstring createFileName( const ALIstring& optoName, const ALIstring& entryName);
void dumpEntriesSubstraction( std::ofstream& fout, FittedEntriesSet& fes, ALIint order1, ALIint order2 );

private:
static FittedEntriesManager* instance;
std::vector< FittedEntriesSet* > theFittedEntriesSets;

void GetDifferentBetweenLasers();

};

#endif

Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
// COCOA class header file
//Id: FittedEntriesSet.h
//CAT: Model
//
// Class to store set of fitted entries with date
//
// History: v1.0
// Pedro Arce

#ifndef _FittedEntriesSet_HH
#define _FittedEntriesSet_HH

#include "Alignment/CocoaUtilities/interface/CocoaGlobals.h"
#include <ctime>
#include <vector>
#include "Alignment/CocoaAnalysis/interface/FittedEntry.h"
//#ifdef MAT_MESCHACH
#include "Alignment/CocoaFit/interface/MatrixMeschach.h"
//typedef MatrixMeschach ALIMatrix;
//#endif

class FittedEntriesSet
{

public:
//---------- Constructors / Destructor
FittedEntriesSet( MatrixMeschach* AtWAMatrix );
FittedEntriesSet( const std::vector<ALIstring>& wl );
//---- Average a list of FittedEntriesSet's
FittedEntriesSet( const std::vector<FittedEntriesSet*>& vSets );
~FittedEntriesSet(){ };
void Fill();
void FillEntries();
void FillCorrelations();
void CreateCorrelationMatrix( const ALIuint nent );
void FillEntriesFromFile( const std::vector<ALIstring>& wl);
void FillEntriesAveragingSets( const std::vector<FittedEntriesSet*>& vSets );

void SetOptOEntries();

public:
std::vector< FittedEntry* >& FittedEntries(){
return theFittedEntries;
}

//GET AND SET METHODS
ALIstring& getDate() {
return theDate;
}
ALIstring& getTime() {
return theTime;
}

public:

std::vector< FittedEntry* > theFittedEntries;
private:
//t struct tm theTime;
ALIstring theDate;
ALIstring theTime;
std::vector< std::vector<ALIdouble> > theCorrelationMatrix;
ALIint theMinEntryQuality;
MatrixMeschach* theEntriesErrorMatrix;
};

#endif

Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
// COCOA class header file
//Id: FittedEntry.h
//CAT: Model
//
// Class to store the data of a fitted entry (only those of quality 'unk')
//
// History: v1.0
// Pedro Arce

#ifndef FittedEntry_HH
#define FittedEntry_HH

#include "Alignment/CocoaUtilities/interface/CocoaGlobals.h"
#include <vector>
class Entry;

class FittedEntry
{

public:
//---------- Constructors / Destructor
FittedEntry(){ };
FittedEntry( Entry* entry, ALIint order, ALIdouble sigma);
FittedEntry( ALIstring name, float value, float sigma);
FittedEntry( const std::vector<FittedEntry*>& vFEntry );
~FittedEntry(){ };

void BuildName();

ALIstring getOptOName() const {
return theOptOName;
}
ALIstring getEntryName() const {
return theEntryName;
}
ALIstring getName() const {
return theName;
}
ALIdouble getValue() const {
return theValue;
}
ALIdouble getSigma() const {
return theSigma;
}
ALIdouble getOrigValue() const {
return theOrigValue;
}
ALIdouble getOrigSigma() const {
return theOrigSigma;
}
ALIint getOrder() const {
return theOrder;
}
ALIint getQuality() const {
return theQuality;
}
Entry* getEntry() const {
return theEntry;
}


private:
ALIdouble theValue;
Entry* theEntry;
ALIint theOrder;
ALIstring theName;
ALIstring theOptOName;
ALIstring theEntryName;
ALIdouble theSigma;
ALIdouble theOrigValue;
ALIdouble theOrigSigma;
ALIint theQuality;

};

#endif

Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
// COCOA class header file
//Id: HistoDef.h
//CAT: Model
//
// Class to store the data of a fitted entry (only those of quality 'unk')
//
// History: v1.0
// Pedro Arce

#ifndef HistoDef_HH
#define HistoDef_HH

#include "Alignment/CocoaUtilities/interface/CocoaGlobals.h"
#include <vector>
class Entry;

class HistoDef
{

public:
//---------- Constructors / Destructor
HistoDef(){ };
void init( ALIstring name );
~HistoDef(){ };

ALIstring name() const {
return theName;
}
float minimum() const {
return theMin;
}
float maximum() const {
return theMax;
}

void setMinimum( float min ){
theMin = min;
}
void setMaximum( float max ){
theMax = max;
}

private:
ALIstring theName;
float theMin;
float theMax;

};

#endif

Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
// COCOA class header file
//Id: NtupleManager.h
//CAT: Analysis
//
// History: v1.0
// Luca Scodellaro

#ifndef _NtupleManager_HH
#define _NtupleManager_HH

#include "Alignment/CocoaUtilities/interface/CocoaGlobals.h"
#include "Alignment/CocoaFit/interface/MatrixMeschach.h"
#include "Alignment/CocoaAnalysis/interface/NtupleObjects.h"
#include "CLHEP/Vector/Rotation.h"

class TFile;
class TTree;
class TClonesArray;

class NtupleManager
{

public:
//---------- Constructors / Destructor
NtupleManager(){ };
~NtupleManager(){ };
static NtupleManager* getInstance();
void BookNtuple();
void InitNtuple();
void FillNtupleTree();
void WriteNtuple();
void FillChi2();
void FillFitParameters(MatrixMeschach* AtWAMatrix);
void FillOptObjects(MatrixMeschach* AtWAMatrix);
void FillMeasurements();


private:
static NtupleManager* instance;

void GetGlobalAngles(const CLHEP::HepRotation& rmGlob, double *theta);

TFile *theRootFile;

TTree *CocoaTree;
/* TTree *FitParametersTree; */
/* TTree *MeasurementsTree; */

TClonesArray* CloneFitParam; FitParam *FitParamA;
TClonesArray* CloneOptObject; OptObject *OptObjectA;
TClonesArray* CloneSensor2DMeas; Sensor2DMeas *Sensor2DMeasA;
TClonesArray* CloneDistancemeterMeas; DistancemeterMeas *DistancemeterMeasA;
TClonesArray* CloneDistancemeter1DimMeas; Distancemeter1DimMeas *Distancemeter1DimMeasA;
TClonesArray* CloneTiltmeterMeas; TiltmeterMeas *TiltmeterMeasA;
TClonesArray* CloneCopsMeas; CopsMeas *CopsMeasA;

/* bool BookFitParameters; */
/* bool BookMeasurements; */

double Chi2Measurements, Chi2CalibratedParameters;
int NDegreesOfFreedom;
int NFitParameters;
int NOptObjects;
int NSensor2D;
int NDistancemeter;
int NDistancemeter1Dim;
int NTiltmeter;
int NCops;
};

#endif

Loading

0 comments on commit 3295994

Please sign in to comment.